/* ============================================================================
   closestify.com - site stylesheet
   Built by SONNET-102 from design-handoffs/closestify-site-spec/README.md.

   The :root tokens and the two dark-mode blocks are copied by name and value
   from src/SharedLedger.Web/wwwroot/app.css so that the brand workstream can
   restyle the site and the application from one token file. Plain CSS custom
   properties. No preprocessor, no build step, no framework, no webfont, no CDN.
   ASCII-only punctuation throughout (project encoding rule).
   ============================================================================ */

/* ---------------------------------------------------------------- 1. Tokens */

:root {
    --navy-900: #0E1A26;
    --navy-800: #142433;
    --navy-700: #1C3141;
    --navy-600: #27435A;
    --rail-bg: var(--navy-900);
    --ink-900: #0E1A26;
    --ink-700: #33475B;
    --ink-500: #5B6F82;
    --ink-300: #94A5B4;
    --canvas: #F6F8FA;
    --surface: #FFFFFF;
    --surface-2: #EEF2F5;
    --surface-3: #E3E9EE;
    --border: #D8E0E7;
    --border-strong: #B8C6D1;
    --on-navy: #E8EFF5;
    --on-navy-muted: #A8BACB;
    --on-navy-quiet: #5B6F82;
    --emerald-700: #075E52;
    --emerald-600: #0B7A6A;
    --emerald-500: #0E9384;
    --emerald-100: #D5F2EC;
    --emerald-50: #ECFAF7;
    --accent-bright: #2FE3C2;
    --accent-bright-hover: #3FEFCF;
    --accent-bright-2: #26C4AC;
    --accent-deep: #1E93A6;
    --accent-deepest: #186E86;
    --on-accent: #08201C;
    --warn-700: #8A4008;
    --warn-600: #B45309;
    --warn-400: #D97706;
    --warn-100: #FEF0DC;
    --danger-700: #912018;
    --danger-600: #B42318;
    --danger-100: #FDE7E5;
    --info-600: #175CD3;
    --info-100: #E3EDFC;
    --neutral-600: #5B6F82;
    --neutral-100: #E7ECF0;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
        Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono",
        Menlo, monospace;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --card-padding: var(--space-6);
    --grid-gap: var(--space-5);
    --page-gutter: var(--space-4);
    --section-rhythm: var(--space-16);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-pill: 999px;
    --shadow-sm: 0 1px 2px rgba(14, 26, 38, 0.06);
    --shadow-md: 0 4px 12px rgba(14, 26, 38, 0.10);
    --shadow-lg: 0 16px 40px rgba(14, 26, 38, 0.22);
    --shadow-focus: 0 0 0 3px rgba(14, 147, 132, 0.35);
    --control-height: 44px;
    --control-height-sm: 36px;
    --tap-min: 44px;
    --content-max: 1180px;
    --focus-ring-width: 2px;
    --motion-fast: 120ms;
    --motion-base: 160ms;
    --easing: ease-out;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --canvas: #16212F;
        --surface: #1D2937;
        --surface-2: #22323F;
        --surface-3: #283848;
        --border: #2A3A4C;
        --border-strong: #2A3A4C;
        --ink-900: #E8EFF5;
        --ink-700: #E8EFF5;
        --ink-500: #93A6B8;
        --ink-300: #6B7F91;
        --on-navy-quiet: #6B7F91;
        --rail-bg: #101C2B;
        --emerald-700: #26C4AC;
        --emerald-600: #2FE3C2;
        --emerald-500: #2FE3C2;
        --emerald-100: rgba(47, 227, 194, 0.25);
        --emerald-50: rgba(47, 227, 194, 0.15);
        --danger-700: #FF6B5E;
        --danger-600: #FF8A80;
        --danger-100: rgba(255, 138, 128, 0.18);
        --warn-700: #FFB454;
        --warn-600: #FFA23D;
        --warn-400: #FFA23D;
        --warn-100: rgba(255, 162, 61, 0.18);
        --info-600: #6FA8F5;
        --info-100: rgba(111, 168, 245, 0.18);
        --neutral-600: #93A6B8;
        --neutral-100: #1D2937;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --canvas: #16212F;
    --surface: #1D2937;
    --surface-2: #22323F;
    --surface-3: #283848;
    --border: #2A3A4C;
    --border-strong: #2A3A4C;
    --ink-900: #E8EFF5;
    --ink-700: #E8EFF5;
    --ink-500: #93A6B8;
    --ink-300: #6B7F91;
    --on-navy-quiet: #6B7F91;
    --rail-bg: #101C2B;
    --emerald-700: #26C4AC;
    --emerald-600: #2FE3C2;
    --emerald-500: #2FE3C2;
    --emerald-100: rgba(47, 227, 194, 0.25);
    --emerald-50: rgba(47, 227, 194, 0.15);
    --danger-700: #FF6B5E;
    --danger-600: #FF8A80;
    --danger-100: rgba(255, 138, 128, 0.18);
    --warn-700: #FFB454;
    --warn-600: #FFA23D;
    --warn-400: #FFA23D;
    --warn-100: rgba(255, 162, 61, 0.18);
    --info-600: #6FA8F5;
    --info-100: rgba(111, 168, 245, 0.18);
    --neutral-600: #93A6B8;
    --neutral-100: #1D2937;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------- 2. Base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-700);
    background: var(--canvas);
}
h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.25; margin: 0 0 var(--space-3); }
h1 { font-size: 28px; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 21px; font-weight: 620; letter-spacing: -0.005em; margin-top: var(--space-8); }
h3 { font-size: 16px; font-weight: 620; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.4em; }
li { margin-bottom: var(--space-2); }
a { color: var(--emerald-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--emerald-700); }
:focus-visible { outline: var(--focus-ring-width) solid var(--emerald-500); outline-offset: 2px; box-shadow: var(--shadow-focus); }
img, svg { max-width: 100%; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.money { font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); margin-bottom: var(--space-2); }
.small { font-size: 13px; color: var(--ink-500); }
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--page-gutter); }
.main { padding-top: var(--space-8); padding-bottom: var(--space-16); }
.main > section + section { margin-top: var(--section-rhythm); }
.lead { font-size: 17px; color: var(--ink-700); max-width: 60ch; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 100;
    background: var(--surface); color: var(--ink-900); padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
}
.skip-link:focus { left: 8px; }

/* ----------------------------------------------------------- 3. Controls */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: var(--control-height); padding: 0 var(--space-5);
    border-radius: var(--radius-md); border: 1px solid transparent;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background var(--motion-fast) var(--easing), color var(--motion-fast) var(--easing);
}
.btn--primary { background: var(--emerald-600); color: #FFFFFF; }
.btn--primary:hover { background: var(--emerald-700); color: #FFFFFF; }
:root[data-theme="dark"] .btn--primary { background: var(--accent-bright); color: var(--on-accent); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .btn--primary { background: var(--accent-bright); color: var(--on-accent); }
}
.btn--secondary { background: var(--surface); color: var(--ink-900); border-color: var(--border-strong); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--quiet { background: transparent; color: var(--ink-700); }
.btn--quiet:hover { background: var(--surface-2); color: var(--ink-900); }
.btn--disabled { background: var(--surface-2); color: var(--ink-500); cursor: default; border-color: var(--border); }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: var(--space-5) 0; }
.link-arrow::after { content: " ->"; }

.placeholder {
    display: inline-block; font-family: var(--font-mono); font-size: 12px; line-height: 1.3;
    padding: 2px 8px; border-radius: var(--radius-pill);
    background: var(--warn-100); color: var(--warn-700); border: 1px dashed var(--warn-600);
    vertical-align: baseline; white-space: nowrap;
}
.note {
    border-left: 4px solid var(--warn-400); background: var(--warn-100); color: var(--ink-900);
    padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); margin: var(--space-4) 0;
}

/* ------------------------------------------------------------- 4. Header */

.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--surface); border-bottom: 1px solid var(--border);
}
.site-header__row { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink-900); font-weight: 650; font-size: 19px; letter-spacing: -0.01em; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.site-header__actions { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }
.nav-menu { position: relative; }
.nav-menu__toggle {
    list-style: none; display: inline-flex; align-items: center; justify-content: center;
    width: var(--tap-min); height: var(--tap-min); border-radius: var(--radius-md); cursor: pointer; color: var(--ink-700);
}
.nav-menu__toggle::-webkit-details-marker { display: none; }
.nav-menu__toggle:hover { background: var(--surface-2); }
.nav { display: flex; flex-direction: column; }
.nav a { color: var(--ink-700); text-decoration: none; font-weight: 550; padding: 0 var(--space-3); min-height: var(--tap-min); display: inline-flex; align-items: center; border-radius: var(--radius-md); }
.nav a:hover { background: var(--surface-2); color: var(--ink-900); }
@media (max-width: 819px) {
    /* The panel drops below the WHOLE header row (which wraps to two rows at phone
       width), never over the Log in and primary buttons on the second row. */
    .site-header__row { position: relative; }
    .nav-menu { position: static; }
    .nav-menu:not([open]) .nav { display: none; }
    .nav-menu[open] .nav {
        position: absolute; left: var(--page-gutter); top: 100%; min-width: 220px;
        background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md); padding: var(--space-2); z-index: 60;
    }
    .site-header__actions .btn { padding: 0 var(--space-3); }
}
@media (min-width: 820px) {
    /* site.js opens the details at this width so the nav sits inline; without
       JavaScript the summary stays as a Menu button and the nav drops as a panel. */
    .nav-menu[open] .nav-menu__toggle { display: none; }
    .nav-menu[open] .nav { flex-direction: row; gap: var(--space-1); position: static; }
    .nav-menu:not([open]) .nav { display: none; }
}

/* ------------------------------------------------------------- 5. Footer */

.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: var(--space-10) 0 var(--space-8); margin-top: var(--space-8); font-size: 14px; }
.site-footer__cols { display: grid; grid-template-columns: 1fr; gap: var(--space-6); }
@media (min-width: 820px) { .site-footer__cols { grid-template-columns: repeat(4, 1fr); } }
.site-footer__col a { display: block; color: var(--ink-700); text-decoration: none; min-height: 32px; line-height: 32px; }
.site-footer__col a:hover { color: var(--emerald-700); text-decoration: underline; }
.site-footer__h { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 var(--space-2); }
.site-footer__line { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--border); color: var(--ink-500); font-size: 13px; }
.theme { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: center; }
.theme__label { color: var(--ink-500); margin-right: var(--space-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 650; }
.theme__btn {
    font: inherit; font-size: 13px; min-height: var(--control-height-sm); padding: 0 var(--space-3);
    border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink-700); border-radius: var(--radius-pill); cursor: pointer;
}
.theme__btn[aria-pressed="true"] { background: var(--ink-900); color: var(--canvas); border-color: var(--ink-900); }

/* ------------------------------------------------------------ 6. Layouts */

.hero { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; padding: var(--space-6) 0 var(--space-4); }
.hero h1 { font-size: 34px; max-width: 16ch; }
.hero .lead { max-width: 48ch; }
@media (min-width: 820px) { .hero { grid-template-columns: 1fr 1fr; } .hero h1 { font-size: 44px; } }
.value-lines { list-style: none; padding: 0; margin: var(--space-5) 0 0; }
.value-lines li { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 600; color: var(--ink-900); }
.value-lines .icon { flex: none; color: var(--emerald-600); margin-top: 2px; }

.two-col { display: grid; grid-template-columns: 1fr; gap: var(--space-6); align-items: center; }
@media (min-width: 820px) {
    .two-col { grid-template-columns: 1fr 1fr; }
    .two-col--flip > :first-child { order: 2; }
}
.cards { display: grid; grid-template-columns: 1fr; gap: var(--grid-gap); margin: var(--space-5) 0; }
@media (min-width: 640px) { .cards--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--card-padding); box-shadow: var(--shadow-sm); }
.card h2, .card h3 { margin-top: 0; }
a.card { display: block; text-decoration: none; color: inherit; }
a.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
a.card h2, a.card h3 { color: var(--ink-900); }
input[type="search"] {
    font: inherit; width: 100%; max-width: 520px; min-height: var(--control-height);
    padding: 0 var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--surface); color: var(--ink-900);
}
input[type="search"]:disabled { background: var(--surface-2); color: var(--ink-500); }
.card--muted { border-style: dashed; background: var(--surface-2); color: var(--ink-500); }
.card--muted h2, .card--muted h3 { color: var(--ink-500); }
.card--lead { border-color: var(--emerald-500); }
.card__tag { display: inline-block; font-size: 12px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--emerald-700); background: var(--emerald-100); padding: 2px 8px; border-radius: var(--radius-pill); margin-bottom: var(--space-3); }
.card__price { font-size: 24px; font-weight: 700; color: var(--ink-900); margin: var(--space-2) 0; }
.card ul { padding-left: 1.2em; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--grid-gap); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--card-padding); }
.steps li::before { content: counter(step); display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ink-900); color: var(--canvas); font-weight: 700; margin-bottom: var(--space-3); }
.steps strong { display: block; color: var(--ink-900); margin-bottom: var(--space-1); }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); list-style: none; padding: 0; }
@media (min-width: 820px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-5); }
.trust .icon { color: var(--emerald-600); width: 24px; height: 24px; margin-bottom: var(--space-2); }
.trust strong { display: block; color: var(--ink-900); margin-bottom: var(--space-1); }
.trust p { margin: 0; font-size: 14px; }

.figure {
    display: flex; align-items: center; justify-content: center; text-align: center;
    aspect-ratio: 16 / 10; width: 100%; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg);
    background: var(--surface-2); color: var(--ink-500); font-size: 13px; padding: var(--space-4);
}
.figure--phone { aspect-ratio: 9 / 16; max-width: 300px; margin: 0 auto; }
.caption { font-size: 13px; color: var(--ink-500); margin-top: var(--space-2); }

.jump { display: flex; gap: var(--space-2); overflow-x: auto; padding: var(--space-2) 0 var(--space-4); margin-bottom: var(--space-4); }
.jump a { flex: none; white-space: nowrap; text-decoration: none; color: var(--ink-700); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0 var(--space-4); min-height: var(--control-height-sm); display: inline-flex; align-items: center; }
.jump a:hover { border-color: var(--border-strong); color: var(--ink-900); }
.which-plan { font-size: 13px; color: var(--ink-500); margin-top: var(--space-3); }

/* --------------------------------------------------- 7. Document, article */

.doc { display: grid; grid-template-columns: 1fr; gap: var(--space-8); }
@media (min-width: 1024px) { .doc { grid-template-columns: 240px minmax(0, 70ch); } .doc .toc { position: sticky; top: 80px; align-self: start; } }
.doc__version { font-size: 13px; color: var(--ink-500); margin-bottom: var(--space-2); }
.doc h2 { font-size: 19px; margin-top: var(--space-8); }
.doc__body > p, .doc__body > ul, .doc__body > ol { max-width: 70ch; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-4); font-size: 14px; }
.toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-500); margin: 0 0 var(--space-2); }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--ink-700); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.table-wrap { overflow-x: auto; margin: var(--space-5) 0; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.table th, .table td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--border); vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }

.articles { list-style: none; padding: 0; }
.articles li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-2); }
.article__title { display: block; font-weight: 600; color: var(--ink-900); }
.article__summary { font-size: 14px; color: var(--ink-700); }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: var(--space-2); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink-900); padding: var(--space-3) var(--space-4); min-height: var(--tap-min); display: flex; align-items: center; }
.faq details > *:not(summary) { padding: 0 var(--space-4) var(--space-3); }

.changelog__entry { border-top: 1px solid var(--border); padding-top: var(--space-5); margin-top: var(--space-5); }
.changelog__entry h2 { font-size: 17px; margin-top: 0; }
.changelog__entry time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-500); margin-right: var(--space-2); }

.simple { max-width: 520px; margin: var(--space-6) auto; }
.simple .card { padding: var(--space-8); }
.simple .brand { justify-content: center; width: 100%; margin-bottom: var(--space-6); }
.contact-cards { display: grid; grid-template-columns: 1fr; gap: var(--grid-gap); }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }
dl.entity { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
dl.entity dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-500); }
dl.entity dd { margin: 0 0 var(--space-2); }
.toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); overflow: hidden; margin: var(--space-3) 0; }
.toggle button { font: inherit; min-height: var(--control-height-sm); padding: 0 var(--space-4); border: 0; background: var(--surface); color: var(--ink-700); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--ink-900); color: var(--canvas); }
.final { text-align: center; padding: var(--space-10) 0 var(--space-4); }
.final h2 { margin-top: 0; }
@media (max-width: 639px) { .cards--plans .card--lead { order: -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ----------------------------------------------------------- 9. Landing */
/* SONNET-112: the cinematic landing page (tasks/SONNET-112-cinematic-landing-page.md). Only the
   landing layout (main--landing) uses these rules; every other page renders as before. One
   self-hosted display face under the SIL Open Font License (assets/fonts/OFL.txt), no CDN. */

@font-face {
    font-family: "Fraunces Display";
    src: url("/assets/fonts/Fraunces144pt-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --stage: #0E1A26;               /* the page's dark tone; the brand workstream may replace it */
    --stage-ink: #F2F6F9;
    --stage-ink-muted: #C2CFDA;
    --font-display: "Fraunces Display", Georgia, "Times New Roman", serif;
}

.main--landing { padding-top: 0; padding-bottom: 0; }
.main--landing > section + section { margin-top: 0; }

/* the stages: full-bleed sections that carry their own .wrap */
.stage { position: relative; isolation: isolate; }
.stage--light { background: var(--canvas); color: var(--ink-900); }
.stage--plain { background: var(--surface); color: var(--ink-900); padding: var(--space-16) 0; }
.stage--plans { border-top: 1px solid var(--border); }
.stage--dark, .stage--final, .stage--hero { background: var(--stage); color: var(--stage-ink); }
.stage--dark h2, .stage--final h2, .stage--hero h1, .stage--dark strong, .stage--final strong { color: var(--stage-ink); }
.stage--dark p, .stage--final p, .stage--hero .lead { color: var(--stage-ink-muted); }
.stage__h { margin: 0 0 var(--space-6); }
.stage__body { position: relative; z-index: 2; padding: var(--space-16) var(--page-gutter); }
.stage__lift { position: relative; z-index: 2; margin-top: -72px; padding-bottom: var(--space-16); }
.stage__roomy { padding-top: var(--space-12); padding-bottom: var(--space-16); }

/* the scenes: a still (always), a film (added by landing.js), a veil so type reads at every frame */
.scene { position: absolute; inset: 0; margin: 0; overflow: hidden; z-index: 0; background: var(--stage); }
.scene--band { position: relative; height: 30svh; min-height: 220px; max-height: 360px; }
.scene--band-thin { height: 22svh; min-height: 160px; max-height: 260px; }
.scene__still, .scene__film {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
    display: block;
}
.scene__film { opacity: 0; transition: opacity 900ms ease-out; }
.scene[data-film="ready"] .scene__film { opacity: 1; }
.scene__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 26, 38, 0.35) 0%, rgba(14, 26, 38, 0.55) 100%); }
.scene__veil--deep { background: linear-gradient(180deg, rgba(14, 26, 38, 0.55) 0%, rgba(14, 26, 38, 0.72) 100%); }
.scene--hero .scene__veil { background: linear-gradient(90deg, rgba(14, 26, 38, 0.86) 0%, rgba(14, 26, 38, 0.62) 45%, rgba(14, 26, 38, 0.28) 100%); }

/* the hero */
.stage--hero { min-height: 70svh; display: flex; flex-direction: column; justify-content: flex-end; }
.stage--hero > .wrap { width: 100%; } /* a column flex item with auto side margins would otherwise shrink to its content */
.stage--hero .stage__body { padding-top: 112px; padding-bottom: var(--space-10); flex: 1; display: flex; align-items: flex-end; }
.hero-copy { width: 100%; max-width: 40ch; }
.stage--hero h1 {
    font-family: var(--font-display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5.5rem);
    line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 var(--space-5); max-width: 15ch;
}
.stage--hero .lead { font-size: clamp(1.125rem, 1.6vw, 1.375rem); max-width: 34ch; margin-bottom: var(--space-6); }
.stage--hero .actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn--on-film { background: transparent; color: var(--stage-ink); border-color: rgba(242, 246, 249, 0.55); }
.btn--on-film:hover { background: rgba(242, 246, 249, 0.12); color: var(--stage-ink); }
.value-lines--strip {
    position: relative; z-index: 2; margin: 0; padding: var(--space-5) 0 var(--space-6);
    display: grid; grid-template-columns: 1fr; gap: var(--space-3);
    border-top: 1px solid rgba(242, 246, 249, 0.18);
}
.value-lines--strip li { color: var(--stage-ink); font-weight: 500; }
.value-lines--strip .icon { color: var(--accent-bright); }

/* editorial type on every stage */
.main--landing h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.01em; max-width: 20ch; }
.prose-lg { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); max-width: 60ch; }
.main--landing .money { font-variant-numeric: tabular-nums; }

/* the steps on film */
.steps--film li { background: rgba(242, 246, 249, 0.06); border-color: rgba(242, 246, 249, 0.18); color: var(--stage-ink-muted); backdrop-filter: blur(6px); }
.steps--film li::before { background: var(--accent-bright); color: var(--on-accent); }
.steps--film strong { color: var(--stage-ink); }

/* the phone figure on film */
.figure--on-film { border-color: rgba(242, 246, 249, 0.35); background: rgba(242, 246, 249, 0.06); color: var(--stage-ink-muted); }

/* the product screenshots (captured by LandingScreenshotCapture, light mode, no browser chrome) */
.shot { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: 0 24px 48px -24px rgba(14, 26, 38, 0.45); background: var(--surface); }
.shots { display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-8); }
.shot--card { box-shadow: 0 16px 32px -20px rgba(14, 26, 38, 0.35); }
.shot-phone { max-width: 300px; margin: 0 auto; }
.shot--phone { border-radius: 28px; border: 6px solid var(--stage); box-shadow: 0 32px 64px -28px rgba(0, 0, 0, 0.7); }
@media (min-width: 820px) { .shots--2 { grid-template-columns: 1fr 1fr; } }

/* the final call */
.final--film { text-align: center; }
.final--film h2 { margin: 0 auto var(--space-6); }

/* the header over the hero */
/* SONNET-114: the stage tone, not transparency - the header sits above the hero in flow, so a
   transparent header showed the light theme's page background behind white type */
.site-header[data-over-hero] { background: var(--stage); border-bottom-color: transparent; }
.site-header[data-over-hero] .brand, .site-header[data-over-hero] .nav a, .site-header[data-over-hero] .btn--quiet { color: var(--stage-ink); }
.site-header[data-over-hero] .nav-menu__toggle { color: var(--stage-ink); }
.site-header[data-over-hero] .nav a:hover, .site-header[data-over-hero] .nav-menu__toggle:hover, .site-header[data-over-hero] .btn--quiet:hover { background: rgba(242, 246, 249, 0.12); color: var(--stage-ink); }
@media (max-width: 819px) {
    .site-header[data-over-hero] .nav-menu[open] .nav { background: var(--stage); border-color: rgba(242, 246, 249, 0.18); }
}
.site-header { transition: background-color 300ms ease-out, border-color 300ms ease-out; }

/* reveals: hidden until landing.js marks them shown; visible at once without script (the html[data-js]
   gate is set by season-early.js before paint, so a page without script never hides a section) */
@media (prefers-reduced-motion: no-preference) {
    html[data-js] .main--landing [data-reveal=""] { opacity: 0; transform: translateY(12px); }
    .main--landing [data-reveal="shown"] { opacity: 1; transform: none; transition: opacity 600ms cubic-bezier(0.22, 1, 0.36, 1), transform 600ms cubic-bezier(0.22, 1, 0.36, 1); }
    .steps--film li:nth-child(2)[data-reveal="shown"] { transition-delay: 120ms; }
    .steps--film li:nth-child(3)[data-reveal="shown"] { transition-delay: 240ms; }
}
@media (prefers-reduced-motion: reduce) {
    .scene__film { display: none; }
    .main--landing [data-reveal] { opacity: 1; transform: none; }
}

@media (min-width: 820px) {
    .stage--hero { min-height: 100svh; max-height: 900px; }
    .stage--hero .stage__body { padding-top: 128px; padding-bottom: var(--space-12); }
    .hero-copy { max-width: min(44rem, 58%); }
    .value-lines--strip { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
    .stage__lift { margin-top: -96px; }
}
@media (min-width: 1440px) {
    .stage--hero { max-height: 900px; min-height: 640px; }
}
