/* =========================================================================
   Luris, lurisapp.com
   The app's own look: deep navy surfaces and one electric blue accent, from
   Luris/Theme/LurisTheme.swift and Core/DesignSystem/LurisTheme+Tokens.swift.
   The app is dark only. Page chrome follows the system theme; the hero, the
   device stages and the closing panel stay navy in both, like the app.
   One motif: the GPS route line, the shape of the app's own demo run, which
   links the feature sections and is drawn as the reader scrolls.
   Same-origin only: no web fonts, no scripts. The system font is the app's font.
   ========================================================================= */

:root {
    color-scheme: light dark;

    /* app tokens (LurisTheme) */
    --navy: #0A0F1A;            /* background */
    --navy-surface: #141C2B;    /* surface */
    --navy-raised: #1B2436;     /* surfaceElevated */
    --blue: #2E7BFF;            /* accent */
    --blue-bright: #3C8CFF;     /* accentBright */
    --blue-deep: #1A5FE0;       /* accentDeep */
    --blue-sky: #5BA4FF;        /* accentGradient start */

    /* metric accents (LurisTheme+Tokens): dots, marks and strokes only */
    --m-steps: #2E7BFF;
    --m-calories: #FF7A45;
    --m-active: #34C759;
    --m-sleep: #8B5CF6;
    --m-floors: #2DD4BF;
    --m-gold: #FFC83D;

    /* page, light */
    --bg: #F3F6FB;
    --bg-alt: #E9EFF8;
    --surface: #FFFFFF;
    --surface-2: #EEF2F9;
    --text: #0A0F1A;
    --text-2: #3B4558;
    --text-3: #566074;
    --line: #DCE3EE;
    --line-strong: #C5CFDE;
    --accent: #1A5FE0;          /* links on a light page: accentDeep, 5.2:1 */
    --focus: #1A5FE0;
    --header-bg: rgba(243, 246, 251, 0.84);
    --shadow: 0 18px 40px rgba(10, 15, 26, 0.14);
    --shadow-soft: 0 6px 18px rgba(10, 15, 26, 0.06);
    --route-track: rgba(26, 95, 224, 0.20);
    --waypoint-bg: #F3F6FB;

    /* the primary button: the app's CTA gradient, deepened so white text keeps
       4.5:1 across the whole fill (4.8:1 at the top, 5.6:1 at the bottom) */
    --cta: linear-gradient(180deg, #226AF0, #1A5FE0);
    --cta-glow: 0 8px 22px rgba(46, 123, 255, 0.30);

    --radius-panel: 32px;
    --radius-stage: 28px;
    --radius-card: 18px;        /* Radius.card */
    --radius-tile: 14px;        /* Radius.tile */

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --gutter: 16px;
    --max: 1160px;
    --header-h: 64px;
    --row-gap: 88px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0A0F1A;
        --bg-alt: #0E1522;
        --surface: #141C2B;
        --surface-2: #1B2436;
        --text: #FFFFFF;
        --text-2: rgba(255, 255, 255, 0.74);
        --text-3: rgba(255, 255, 255, 0.62);
        --line: rgba(255, 255, 255, 0.12);
        --line-strong: rgba(255, 255, 255, 0.2);
        --accent: #5BA4FF;
        --focus: #8CBBFF;
        --header-bg: rgba(10, 15, 26, 0.8);
        --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
        --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.28);
        --route-track: rgba(91, 164, 255, 0.22);
        --waypoint-bg: #0A0F1A;
    }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 28px; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 100;
    background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px;
    box-shadow: var(--shadow-soft);
}
.skip-link:focus { top: 12px; }

/* ---------- header ---------- */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid var(--line);
}

.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); flex-shrink: 0; padding: 4px 0; }
.brand img { width: 32px; height: 32px; }
.wordmark { width: 67px; height: 15px; display: block; }
.wm-a { stop-color: #2E7BFF; }
.wm-b { stop-color: #1A5FE0; }
@media (prefers-color-scheme: dark) {
    .wm-a { stop-color: #5BA4FF; }
    .wm-b { stop-color: #2E7BFF; }
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
    color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
    padding: 8px 10px; border-radius: 10px;
}
.nav a:not(.btn):hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav .nav-wide { display: none; }
@media (min-width: 700px) { .nav .nav-wide { display: inline-block; } .nav { gap: 8px; } }
/* the narrowest phones (320 px, or 200% zoom): the mark alone, so Support and the
   download state still fit without a horizontal scroll */
@media (max-width: 359px) {
    .site-header .wordmark { display: none; }
    .nav a:not(.btn) { padding: 8px 6px; }
}

.soon-chip {
    margin-left: 4px;
    font: 600 13.5px/1 var(--font); white-space: nowrap;
    padding: 8px 12px; border-radius: 999px;
    color: var(--text-2); background: var(--surface); border: 1px solid var(--line-strong);
}

/* ---------- buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font: 600 16px/1 var(--font);
    text-decoration: none; border-radius: 999px; border: 0; cursor: pointer;
    padding: 12px 20px; min-height: 44px; white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cta); color: #fff; box-shadow: var(--cta-glow); }
.btn-small { font-size: 15px; padding: 9px 16px; min-height: 38px; }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); }

/* ---------- navy panels: hero and closing call to action ---------- */

.panel {
    position: relative; isolation: isolate; overflow: hidden;
    color: #fff;
    background:
        radial-gradient(60% 70% at 10% 0%, rgba(46, 123, 255, 0.38), transparent 70%),
        radial-gradient(50% 60% at 95% 100%, rgba(46, 123, 255, 0.20), transparent 70%),
        linear-gradient(180deg, var(--navy) 0%, var(--navy-surface) 100%);
    border-radius: var(--radius-panel);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset, var(--shadow);
}
.panel a:not(.btn) { color: #9CC6FF; }
.panel :focus-visible { outline-color: #9CC6FF; }

.hero-wrap { padding-top: 16px; }
@media (min-width: 720px) { .hero-wrap { padding-top: 24px; } }

.hero {
    display: grid; gap: 40px; align-items: center;
    padding: 44px 22px 36px;
}
@media (min-width: 900px) {
    .hero { grid-template-columns: minmax(0, 34rem) minmax(0, 1fr); gap: 32px; padding: 64px 56px; }
}

.eyebrow {
    display: inline-flex; align-items: flex-start; gap: 9px;
    font: 600 15px/1.3 var(--font); letter-spacing: 0.005em;
    color: var(--tint-text, var(--accent));
}
.eyebrow .dot {
    width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
    margin-top: calc((1.3em - 9px) / 2);
    background: var(--tint, currentColor);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--tint, currentColor) 22%, transparent);
}
.panel .eyebrow { color: #8CBBFF; }

.hero h1 {
    margin-top: 18px;
    font-size: clamp(2.25rem, 7.5vw + 0.5rem, 4.25rem);
    font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
}
@media (min-width: 900px) { .hero h1 { font-size: clamp(3rem, 2rem + 2.6vw, 4.25rem); } }
.accent-text {
    background: linear-gradient(90deg, #5BA4FF, #2E7BFF);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.hero .lede { margin-top: 20px; font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); color: rgba(255, 255, 255, 0.76); max-width: 33em; }

/* download state: "Coming soon" until release, then the badge (see _tools/release-day.md) */
.store-state { margin-top: 28px; display: grid; gap: 12px; justify-items: start; }
.soon {
    display: inline-flex; align-items: center; gap: 10px;
    font: 600 16px/1.2 var(--font); color: #fff;
    padding: 13px 18px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.2);
}
.soon svg { width: 20px; height: 20px; color: #8CBBFF; flex-shrink: 0; }
.requirement { font-size: 14px; color: rgba(255, 255, 255, 0.68); }
.store-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.store-badge { display: inline-block; border-radius: 8px; }
.store-badge img { width: 150px; height: 50px; }
.qr-tile { display: none; }
@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
    .qr-tile { display: flex; align-items: center; gap: 12px; }
    .qr-tile p { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); max-width: 9em; line-height: 1.35; }
    .qr { width: 120px; height: 120px; border-radius: 10px; }
}

.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
    font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, 0.86);
    padding: 6px 11px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-devices { position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.device img { width: 100%; }
.device-front { width: min(76vw, 300px); }
.device-back { display: none; }
@media (min-width: 900px) {
    .hero-devices { justify-content: flex-end; }
    .device-front { width: 290px; }
    .device-back { display: block; width: 230px; margin-top: 96px; }
}
@media (min-width: 900px) and (max-width: 1099px) {
    .device-back { display: none; }
    .hero-devices { justify-content: center; }
}

/* ---------- sections ---------- */

.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.section-title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em; }
.section-head { max-width: 44rem; }
.section-head p { margin-top: 16px; color: var(--text-2); font-size: 1.08rem; }

/* how it works: a real sequence, so it is numbered */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 28px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
.step-num {
    grid-row: span 2;
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    font: 700 18px/1 var(--font-display); color: var(--accent);
    border: 2px solid currentColor;
}
.steps h3 { font-size: 1.25rem; font-weight: 700; margin-top: 9px; }
.steps p { margin-top: 6px; color: var(--text-2); }

/* ---------- features, joined by the route line ---------- */

.features { padding: 8px 0 var(--row-gap); }
.feature { position: relative; display: grid; gap: 32px; align-items: center; }
.feature + .feature { margin-top: var(--row-gap); }
@media (min-width: 960px) {
    :root { --row-gap: 128px; }
    .feature { grid-template-columns: 1fr 1fr; column-gap: 136px; }
    .feature:nth-of-type(even) .stage { order: -1; }
}

.tint-steps { --tint: var(--m-steps); --tint-text: #1A5FE0; }
.tint-calories { --tint: var(--m-calories); --tint-text: #B8440F; }
.tint-sleep { --tint: var(--m-sleep); --tint-text: #6D3FE0; }
.tint-active { --tint: var(--m-active); --tint-text: #1B7A35; }
.tint-gold { --tint: var(--m-gold); --tint-text: #8A5F00; }
.tint-floors { --tint: var(--m-floors); --tint-text: #0B7568; }
@media (prefers-color-scheme: dark) {
    .tint-steps { --tint-text: #5BA4FF; }
    .tint-calories { --tint-text: #FF8A5B; }
    .tint-sleep { --tint-text: #A78BFA; }
    .tint-active { --tint-text: #34C759; }
    .tint-gold { --tint-text: #FFC83D; }
    .tint-floors { --tint-text: #2DD4BF; }
}

.feature-copy { position: relative; z-index: 1; max-width: 31rem; }
.feature-copy h2 { margin-top: 12px; font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
.feature-copy > p { margin-top: 14px; color: var(--text-2); font-size: 1.06rem; }
.feature-copy .fine { margin-top: 22px; font-size: 14px; color: var(--text-3); line-height: 1.5; }

.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 1rem; line-height: 1.5; }
.checks svg { width: 24px; height: 24px; color: var(--tint-text, var(--accent)); }

/* the device stage: navy in both themes, the way the app looks */
.stage {
    position: relative; z-index: 1;
    display: flex; justify-content: center; align-items: center; gap: 28px;
    padding: 40px 24px;
    border-radius: var(--radius-stage);
    background:
        radial-gradient(65% 50% at 50% 38%, rgba(46, 123, 255, 0.30), transparent 72%),
        linear-gradient(180deg, #111A2B 0%, var(--navy) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.stage .device { width: min(64vw, 270px); }
.stage-share .device { width: min(64vw, 250px); }
.share-card { display: none; }
@media (min-width: 600px) {
    .share-card { display: block; width: 150px; flex-shrink: 0; }
    .share-card img { border-radius: 8px; }
}

/* the route line and its waypoints, wide screens only */
.route, .waypoint, .route-cap { display: none; }
@media (min-width: 960px) {
    .route {
        display: block; position: absolute; z-index: 0;
        left: 50%; width: 80px; margin-left: -40px;
        top: calc(var(--row-gap) / -2); bottom: calc(var(--row-gap) / -2); height: calc(100% + var(--row-gap));
        overflow: visible; pointer-events: none;
    }
    .route path { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
    .route-track path { stroke: var(--route-track); }
    .route-line path { stroke: var(--blue); }
    .waypoint {
        display: block; position: absolute; z-index: 1;
        left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
        border-radius: 50%; background: var(--waypoint-bg);
        border: 5px solid var(--tint);
        box-shadow: 0 0 0 6px color-mix(in srgb, var(--tint) 20%, transparent);
    }
}
@media (min-width: 960px) {
    /* the start and the finish, marked the way the app marks a run on its map */
    .route-cap {
        display: block; position: absolute; z-index: 1; left: 50%;
        width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
    }
    .route-cap-start {
        top: calc(var(--row-gap) / -2 - 8px);
        background: var(--m-active); box-shadow: 0 0 0 5px rgba(52, 199, 89, 0.22);
    }
    .route-cap-end {
        bottom: calc(var(--row-gap) / -2 - 8px);
        background: var(--waypoint-bg); border: 4px solid var(--blue);
    }
}
/* drawn as the reader scrolls: the tip of the line and the next waypoint meet at
   the middle of the screen. Without support, or with reduced motion, it is simply
   drawn in full. */
@supports (animation-timeline: view()) {
    @media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
        .route-line {
            animation: route-reveal linear both;
            animation-timeline: view();
            animation-range: cover 50vh cover calc(100% - 50vh);
        }
        .waypoint {
            animation: waypoint-reached linear both;
            animation-timeline: view();
            animation-range: cover calc(50vh - 2px) cover calc(50vh + 22px);
        }
    }
}
@keyframes route-reveal {
    from { clip-path: inset(0 0 100% 0); }
    to { clip-path: inset(0 0 0 0); }
}
@keyframes waypoint-reached {
    from { border-color: var(--route-track); box-shadow: 0 0 0 0 transparent; }
    to { border-color: var(--tint); box-shadow: 0 0 0 6px color-mix(in srgb, var(--tint) 20%, transparent); }
}

/* ---------- also in Luris ---------- */

.also { background: var(--bg-alt); }
.also-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0 40px; }
@media (min-width: 640px) { .also-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .also-list { grid-template-columns: repeat(3, 1fr); } }
.also-list li { padding: 26px 0 30px; border-top: 1px solid var(--line-strong); }
.also-icon { width: 28px; height: 28px; color: var(--accent); }
.also-list h3 { margin-top: 14px; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
.also-list p { margin-top: 8px; color: var(--text-2); font-size: 0.98rem; line-height: 1.55; }
.languages span { white-space: nowrap; }

/* ---------- privacy, told like a label ---------- */

.ledger { margin-top: 40px; display: grid; gap: 16px; }
@media (min-width: 820px) { .ledger { grid-template-columns: 1fr 1fr; gap: 20px; } }
.ledger-col {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
    padding: 24px 24px 12px; box-shadow: var(--shadow-soft);
}
.ledger-col h3 { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; padding-bottom: 16px; border-bottom: 2px solid var(--text); }
.ledger-col h3 svg { width: 26px; height: 26px; flex-shrink: 0; }
.ledger-stays h3 svg { color: #1B7A35; }
.ledger-leaves h3 svg { color: var(--accent); }
@media (prefers-color-scheme: dark) { .ledger-stays h3 svg { color: #34C759; } }
.ledger-col ul { list-style: none; margin: 0; padding: 0; }
.ledger-col li { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--text-2); line-height: 1.5; }
.ledger-col li:last-child { border-bottom: 0; }
.ledger-foot { margin-top: 24px; color: var(--text-2); max-width: 44rem; }

/* ---------- questions ---------- */

.questions { padding-top: 0; }
.questions-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .questions-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } }
.questions-head p { margin-top: 14px; color: var(--text-2); }
.qa { border-top: 1px solid var(--line-strong); }
.qa details { border-bottom: 1px solid var(--line-strong); }
.qa summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 2px; font-weight: 650; font-size: 1.08rem; line-height: 1.4;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
    content: ""; flex-shrink: 0; width: 18px; height: 18px;
    background:
        linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
        linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
    color: var(--text-3);
    transition: transform .2s ease;
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 2px 22px; color: var(--text-2); max-width: 40rem; }

/* ---------- closing call to action ---------- */

.cta-wrap { padding-bottom: 80px; }
@media (min-width: 900px) { .cta-wrap { padding-bottom: 112px; } }
.cta { text-align: center; padding: 56px 22px; }
@media (min-width: 900px) { .cta { padding: 80px 40px; } }
.cta-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; box-shadow: 0 16px 40px rgba(46, 123, 255, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.cta h2 { margin-top: 26px; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
.cta > p { margin: 14px auto 0; max-width: 32em; color: rgba(255, 255, 255, 0.76); font-size: 1.08rem; }
.cta .store-state { justify-items: center; }
.cta .store-row { justify-content: center; }

/* ---------- inner pages: support, legal, 404 ---------- */

.narrow { max-width: 820px; }
main.narrow { padding-bottom: 80px; }

.page-head { padding: 56px 0 8px; }
.page-head h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.page-head .lede { margin-top: 14px; color: var(--text-2); font-size: 1.1rem; max-width: 40em; }

.contact-card {
    margin-top: 32px; display: grid; gap: 18px; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
    padding: 24px; box-shadow: var(--shadow-soft);
}
@media (min-width: 720px) { .contact-card { grid-template-columns: 1fr auto; padding: 28px 32px; } }
.contact-card h2 { font-size: 1.35rem; font-weight: 700; }
.contact-card p { margin-top: 8px; color: var(--text-2); }
.contact-card .mail { font-weight: 600; overflow-wrap: anywhere; }
.contact-card .btn { justify-self: start; }

.faq-index { margin-top: 40px; }
.faq-index h2 { font-size: 1.05rem; font-weight: 700; color: var(--text-2); letter-spacing: -0.005em; }
.faq-index ol { margin: 12px 0 0; padding-left: 1.4em; display: grid; gap: 6px; }
.faq-index li { line-height: 1.5; }

.faq { margin-top: 24px; }
.faq-item { padding: 36px 0 4px; border-top: 1px solid var(--line-strong); margin-top: 32px; }
.faq-item h2 { font-size: 1.4rem; font-weight: 750; letter-spacing: -0.015em; }
.faq-item > * + * { margin-top: 12px; }
.faq-item p, .faq-item li { color: var(--text-2); }
.faq-item ol, .faq-item ul { padding-left: 1.3em; margin-bottom: 0; }
.faq-item li + li { margin-top: 8px; }
.faq-item strong { color: var(--text); font-weight: 600; }
.faq-item:target h2 { color: var(--accent); }

/* legal documents: the policy and terms text is kept verbatim, only restyled */
.legal { padding: 8px 0 24px; overflow-wrap: break-word; }
.legal .meta { color: var(--text-3); font-size: 0.92rem; margin: 10px 0 28px; }
.legal h2 { font-size: 1.22rem; font-weight: 700; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.04rem; font-weight: 650; margin: 26px 0 8px; letter-spacing: -0.005em; color: var(--text); }
.legal p, .legal li { color: var(--text-2); }
.legal p + p { margin-top: 12px; }
.legal strong { color: var(--text); }
.legal ul, .legal ol { margin: 12px 0 0; padding-left: 1.3em; }
.legal li + li { margin-top: 8px; }
.legal ul + p, .legal ol + p, .legal table + p, .legal p + table { margin-top: 12px; }
.legal .callout {
    background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue);
    border-radius: 14px; padding: 18px 20px; margin: 26px 0; box-shadow: var(--shadow-soft); color: var(--text-2);
}
.legal .callout p + p { margin-top: 10px; }
.legal .callout.warn { border-left-color: #F0A33A; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; width: 36%; }
.legal td { color: var(--text-2); }
.legal .legal-note { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-3); font-size: 0.9rem; }
.legal .toc {
    background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
    padding: 18px 20px; margin: 0 0 8px; box-shadow: var(--shadow-soft);
}
.legal .toc h2 { margin: 0 0 6px; font-size: 1rem; color: var(--text-2); }
.legal .toc ol { margin: 0; padding-left: 1.5em; font-size: 0.95rem; }
.legal .toc li + li { margin-top: 4px; }
.legal .toc li { line-height: 1.55; }
@media (min-width: 720px) { .legal .toc ol { columns: 2; column-gap: 32px; } .legal .toc li { break-inside: avoid; } }
.legal h2:target, .legal h3:target { color: var(--accent); }

.notfound { text-align: center; padding: 88px 0 72px; }
.notfound img { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 24px; }
.notfound h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.notfound p { margin: 14px auto 0; max-width: 30em; color: var(--text-2); }
.notfound-actions { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 32px; font-size: 15px; background: var(--bg); }
.footer-grid { display: grid; gap: 32px 24px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); }
    .footer-brand { grid-column: auto; }
}
.footer-brand p { margin-top: 12px; color: var(--text-2); max-width: 22em; }
.footer-col h2 { font: 700 14px/1.2 var(--font); color: var(--text); margin-bottom: 12px; letter-spacing: 0; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-col a { display: inline-block; padding: 3px 0; color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); text-decoration: underline; }
.footer-dev p { color: var(--text-2); line-height: 1.75; }
.footer-health { margin-top: 36px; color: var(--text-3); font-size: 14px; max-width: 60rem; }
.footer-health a { color: var(--text-2); }
.footer-bottom {
    margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
    color: var(--text-3); font-size: 13.5px;
}
.trademarks { max-width: 46rem; }

/* ---------- accessibility fallbacks ---------- */

@media (forced-colors: active) {
    .accent-text { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; }
    .wm-a, .wm-b { stop-color: CanvasText; }
    .soon, .chips li, .stage, .ledger-col, .soon-chip { border: 1px solid CanvasText; }
    .route-line path { stroke: Highlight; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .btn:hover { transform: none; }
}
