/* ============================================================
   SlabDraw Marketing — style.css
   Single source of truth. White background, brand-blue accent
   (#0095ff), slate neutrals. No dark mode. No second accent.
   ============================================================ */

/* ─────────────────────────────────────────────
   1. Design tokens
   ───────────────────────────────────────────── */
:root {
    /* Accent */
    --brand:          #0095ff;
    --brand-hover:    #0077cc;
    --brand-deep:     #0a5d9c;
    --brand-tint:     #eff7ff;
    --brand-tint-2:   #dbefff;
    --brand-ring:     rgba(0, 149, 255, 0.18);

    /* Neutrals — slate */
    --bg:             #ffffff;
    --bg-alt:         #f8fafc;
    --bg-deep:        #f1f5f9;
    --border:         #e5e7eb;
    --border-strong:  #d1d5db;
    --ink:            #0f172a;
    --ink-soft:       #1e293b;
    --text:           #334155;
    --text-muted:     #64748b;
    --text-faint:     #94a3b8;

    /* Shadows */
    --shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow:         0 4px 14px -6px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-lg:      0 24px 60px -24px rgba(15, 23, 42, 0.18), 0 6px 16px -10px rgba(15, 23, 42, 0.08);
    --shadow-brand:   0 20px 48px -20px rgba(0, 149, 255, 0.45);

    /* Radii */
    --r-xs: 6px;
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 18px;
    --r-xl: 24px;

    /* Z-index scale — every stacking decision cites one of these, never
       a raw number. Keeps layering predictable and gives future additions
       (modal, toast, tooltip) predefined slots. Higher = closer to user.
       Gaps between steps leave room for intermediate work without having
       to renumber. */
    --z-base:    0;
    --z-sticky:  10;
    --z-dropdown: 20;
    --z-overlay: 30;
    --z-modal:   40;
    --z-nav:     50;
    --z-toast:   60;

    /* Layout */
    --container:  1200px;
    --nav-h:      68px;
    --section-y:  clamp(64px, 8vw, 120px);

    /* Typography scale */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Keep a single family across the site — no plotter/mono accent. */
    --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --type-display:   clamp(2.25rem, 4.8vw, 3.5rem);
    --type-h1:        clamp(2.25rem, 4.4vw, 3.4rem);
    --type-h2:        clamp(1.85rem, 3.2vw, 2.6rem);   /* main section titles */
    --type-h2-sub:    clamp(1.5rem, 2.4vw, 2rem);      /* subsection titles (plan section, feature group, compare, cta banner) */
    --type-h3:        clamp(1.15rem, 1.6vw, 1.35rem);  /* column + card titles (roadmap column) */
    --type-lead:      clamp(1.08rem, 1.4vw, 1.2rem);
    --type-body:      1rem;
    --type-small:     0.92rem;
    --type-caption:   0.82rem;

    --ls-display:     -0.035em;
    --ls-tight:       -0.025em;
    --ls-normal:      -0.012em;
    --ls-wide:        0.08em;

    /* Motion */
    --ease-out:       cubic-bezier(0.2, 0.6, 0.3, 1);
    --t-fast:         80ms var(--ease-out);
    --t-med:          120ms var(--ease-out);
    --t-slow:         200ms var(--ease-out);
}

/* ─────────────────────────────────────────────
   2. Reset + base
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    /* Lock the site to a light color scheme regardless of the OS
       setting. Mobile browsers (Chrome / Samsung Internet) will
       otherwise auto-darken form inputs, scrollbars, and select
       elements when the device is in dark mode. Declaring
       color-scheme:light tells the browser "this page is designed
       for light mode, do not auto-invert." */
    color-scheme: light;
}
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: var(--type-body);
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    overflow-x: hidden;
}
html { overflow-x: hidden; }

img, svg { display: block; max-width: 100%; }
svg { height: auto; }
button { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; transition: color var(--t-med); }
a:hover { color: var(--brand-hover); }

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    font-weight: 700;
    letter-spacing: var(--ls-tight);
    line-height: 1.12;
    margin: 0 0 .6em;
}
p { margin: 0 0 1em; }

::selection { background: var(--brand-tint-2); color: var(--ink); }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
    transition: outline-offset var(--t-fast);
}

/* Numeric tabular figures wherever a measurement sits */
.num, .stats-num, .plan-price-amt, .compare-table td, .compare-table th {
    font-variant-numeric: tabular-nums lining-nums;
}

/* ─────────────────────────────────────────────
   3. Layout primitives
   ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.section {
    padding: var(--section-y) 0;
}
.section-alt {
    /* Same padding as .section (inherited if the same element carries
       both classes) but repeated here so a standalone .section-alt on
       a different element still gets the right vertical rhythm. */
    padding: var(--section-y) 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-size: var(--type-h2);
    letter-spacing: var(--ls-tight);
    max-width: 22ch;
    margin-bottom: .35em;
}
.section-sub {
    font-size: var(--type-lead);
    color: var(--text-muted);
    max-width: 56ch;
    margin-bottom: clamp(28px, 3.5vw, 48px);
}

/* Eyebrow: unadorned, numbered small label — no pill, no dot */
.eyebrow {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: var(--type-caption);
    font-weight: 600;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0 0 6px 0;   /* explicit: border-bottom sits flush under text */
    margin: 0 0 18px;
    border-bottom: 1px solid var(--border);
    background: transparent;
    border-radius: 0;
}
.eyebrow::before {
    content: attr(data-n);
    color: var(--brand);
    font-weight: 700;
}

.inline-link {
    color: var(--brand);
    font-weight: 500;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
}
.inline-link:hover { color: var(--brand-hover); }

/* ─────────────────────────────────────────────
   4. Buttons
   ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: .94rem;
    font-weight: 600;
    letter-spacing: var(--ls-normal);
    line-height: 1.2;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--t-med), border-color var(--t-med), box-shadow var(--t-med), color var(--t-med), filter var(--t-med);
}
.btn:active { filter: brightness(0.95); }

.btn-primary {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
    box-shadow: 0 1px 2px rgba(0, 72, 130, 0.20), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #ffffff;
    box-shadow: 0 6px 14px -4px rgba(0, 149, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.18);
    filter: brightness(1.05);
}

.btn-secondary {
    background: #ffffff;
    color: var(--ink);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 10px;
}

/* ─────────────────────────────────────────────
   5. Navigation
   ───────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: var(--z-nav);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--nav-h);
    gap: 32px;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: var(--ls-tight);
    color: var(--ink);
}
.nav-logo:hover { color: var(--ink); }
.nav-logo-icon { color: var(--brand); flex: none; }
.nav-logo-word { display: inline-flex; align-items: baseline; gap: 1px; }
.nav-logo-word b { color: var(--brand); font-weight: 700; }

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    font-size: .94rem;
    font-weight: 500;
    color: var(--text);
    border-radius: 6px;
    transition: color var(--t-med), background var(--t-med);
}
.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }
.nav-links a.active { color: var(--ink); box-shadow: inset 0 -2px 0 0 var(--brand); border-radius: 0; }

.nav-link-login {
    color: var(--text-muted);
}
.nav-link-login:hover { color: var(--ink); }

.nav-cta.btn {
    margin-left: 8px;
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
    padding: 9px 16px;
    font-weight: 600;
}
.nav-cta.btn:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #ffffff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s var(--ease-out), opacity .2s var(--ease-out);
}
.nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────
   6. Page header (non-home pages)
   ─────────────────────────────────────────────
   The header OUTER spans the full container so it
   visually ties to the content block that follows
   (plan cards, FAQ list, contact grid, etc). The
   H1 + lead paragraph INSIDE the header get their
   own max-widths for reading — a 120-character H1
   never belongs on a marketing page anyway.
   ───────────────────────────────────────────── */
.page-header {
    position: relative;
    padding: clamp(56px, 7vw, 100px) 0 clamp(36px, 4.5vw, 60px);
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    overflow: hidden;
}
.page-header-inner {
    position: relative;
    text-align: left;
}
.page-header h1 {
    font-size: var(--type-h1);
    letter-spacing: var(--ls-display);
    margin-bottom: 14px;
    line-height: 1.05;
    max-width: 24ch;
}
.page-header p {
    font-size: var(--type-lead);
    color: var(--text-muted);
    line-height: 1.55;
    max-width: 60ch;
    margin: 0;
}

/* ─────────────────────────────────────────────
   7. Hero (home)
   ───────────────────────────────────────────── */
.hero {
    position: relative;
    padding: clamp(56px, 7vw, 112px) 0 clamp(56px, 7vw, 112px);
    background: #ffffff;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy h1 {
    font-size: var(--type-display);
    font-weight: 700;
    letter-spacing: var(--ls-display);
    line-height: 0.98;
    margin-bottom: 24px;
    color: var(--ink);
}
.hero-copy h1 .hero-slash {
    color: var(--brand);
    font-weight: 700;
    padding: 0 .05em;
}
.hero-sub {
    font-size: var(--type-lead);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 48ch;
    margin-bottom: 28px;
}
.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}
.hero-trust {
    font-size: var(--type-small);
    color: var(--text-muted);
    margin: 0;
    font-family: var(--font-mono);
    letter-spacing: 0.01em;
    max-width: 52ch;
}

/* Hero visual — first-class slab diagram, no chrome */
.hero-visual {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 620px;
}
.hero-visual-svg {
    width: 100%;
    height: auto;
    display: block;
}
.hero-visual-svg text {
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums lining-nums;
}

/* ─────────────────────────────────────────────
   8. Stats band (home) — compact fact row
   ───────────────────────────────────────────── */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.stats-cell {
    background: #ffffff;
    padding: clamp(22px, 2.6vw, 32px) clamp(16px, 2vw, 28px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 1px solid var(--border);
}
.stats-cell:first-child { border-left: 0; }
.stats-num {
    font-family: var(--font-mono);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    line-height: 1.05;
    font-variant-numeric: tabular-nums lining-nums;
}
.stats-label {
    font-size: var(--type-caption);
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: var(--ls-normal);
}

/* ─────────────────────────────────────────────
   9. Shop reality (asymmetric narrative row)
   ───────────────────────────────────────────── */
.reality {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    margin-bottom: clamp(40px, 6vw, 80px);
}
.reality--flip { grid-template-columns: 1.1fr 0.9fr; }
.reality h2 {
    font-size: var(--type-h2);
    letter-spacing: var(--ls-tight);
    margin-bottom: 16px;
}
.reality p {
    font-size: var(--type-lead);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 48ch;
}
.reality-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    padding: 24px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r);
}
.reality-chain--clean {
    background: #ffffff;
    border-color: var(--brand-tint-2);
}
.reality-chain-item {
    flex: 1 1 84px;
    min-width: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 6px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 0.78rem;
    color: var(--text);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}
.reality-chain-item svg { color: var(--text-muted); }
.reality-chain-item small {
    color: var(--text-faint);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.reality-chain-arrow {
    align-self: center;
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 0 2px;
}
.reality-chain--clean .reality-chain-item {
    border-color: var(--brand-tint-2);
    background: var(--brand-tint);
    color: var(--ink);
}
.reality-chain--clean .reality-chain-item svg { color: var(--brand); }
.reality-chain-solo {
    flex: 1 1 100%;
    padding: 28px 18px;
    text-align: left;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--brand-tint-2);
    border-radius: var(--r);
    color: var(--ink);
    font-family: var(--font-sans);
    letter-spacing: var(--ls-normal);
    font-size: 1rem;
}
.reality-chain-solo b { color: var(--brand); display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }

/* ─────────────────────────────────────────────
   10. Feature grid / cards
   ───────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.feature-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 28px 26px;
    transition: border-color var(--t-slow), box-shadow var(--t-slow);
}
.feature-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}
.feature-card h3 {
    font-size: var(--type-h3);
    letter-spacing: var(--ls-tight);
    margin-bottom: 8px;
    color: var(--ink);
}
.feature-card p {
    color: var(--text-muted);
    font-size: .96rem;
    line-height: 1.6;
    margin: 0;
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 36px;
    border-radius: 4px;
    background: #ffffff;
    color: var(--brand);
    margin-bottom: 18px;
    border: 1px solid var(--brand);
    overflow: hidden;
}
.feature-icon svg { width: 100%; height: 100%; display: block; }

/* Large "hero" feature card */
.feature-card--hero {
    grid-column: span 2;
    padding: 32px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 32px;
    align-items: center;
    background: #ffffff;
}
.feature-card--hero .feature-card-copy { min-width: 0; }
.feature-card--hero .feature-icon {
    width: 64px; height: 44px;
}
.feature-card--hero h3 { font-size: 1.5rem; }
.feature-card--hero p { font-size: 1rem; }
.feature-card-visual {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}
.feature-card-visual svg { width: 100%; height: auto; }
.feature-card-visual svg text { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; }

/* Section-grouped features */
.feature-group { margin-bottom: clamp(40px, 5vw, 72px); }
.feature-group:last-child { margin-bottom: 0; }
.feature-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;   /* tag drops beneath H2 instead of drifting off-center on mid-widths */
    gap: 10px 24px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.feature-group-head h2 {
    font-size: var(--type-h2-sub);
    letter-spacing: var(--ls-tight);
    margin: 0;
}
.feature-group-head .feature-group-tag {
    font-family: var(--font-mono);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ─────────────────────────────────────────────
   11. Outputs section (what SlabDraw outputs)
   ───────────────────────────────────────────── */
.outputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.output-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    transition: border-color var(--t-slow);
}
.output-card:hover { border-color: var(--brand); }
.output-card-visual {
    background: var(--bg-alt);
    padding: 18px;
    border-bottom: 1px solid var(--border);
}
.output-card-visual svg { width: 100%; height: auto; }
.output-card-visual svg text { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; }
.output-card-body { padding: 20px 22px 24px; }
.output-card-kind {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand);
    margin: 0 0 6px;
}
.output-card h3 {
    font-size: var(--type-h3);
    margin-bottom: 6px;
    letter-spacing: var(--ls-tight);
}
.output-card p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.output-note {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 18px;
    text-align: center;
}

/* ─────────────────────────────────────────────
   12. Home — "how it works" steps
   ───────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    counter-reset: step;
    position: relative;
}
.step {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 24px;
    transition: border-color var(--t-slow);
}
.step:hover { border-color: var(--brand); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: var(--brand);
    border: 1px solid var(--brand);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: var(--ls-normal);
    margin-bottom: 16px;
}
.step h3 {
    font-size: 1.08rem;
    letter-spacing: var(--ls-tight);
    margin-bottom: 6px;
}
.step p {
    color: var(--text-muted);
    font-size: .94rem;
    line-height: 1.6;
    margin: 0;
}

/* ─────────────────────────────────────────────
   13. CTA banner — end-of-page punctuation
   ───────────────────────────────────────────── */
.cta-banner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    padding: clamp(28px, 3.5vw, 44px) 0;
    border-top: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
    overflow: visible;
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
    font-size: var(--type-h2-sub);
    letter-spacing: var(--ls-tight);
    margin-bottom: 6px;
    max-width: 28ch;
}
.cta-banner p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 56ch;
    margin: 0;
}
.cta-banner .btn,
.cta-banner > a:not(.inline-link) {
    justify-self: end;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .cta-banner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cta-banner .btn,
    .cta-banner > a:not(.inline-link) {
        justify-self: start;
    }
}

/* Inline promo row */
.inline-promo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-left: 2px solid var(--brand);
    border-radius: var(--r-sm);
    font-size: .98rem;
    color: var(--ink-soft);
}
.inline-promo strong { color: var(--ink); font-weight: 600; }
.inline-promo .inline-promo-arrow {
    margin-left: auto;
    color: var(--brand);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.inline-promo .inline-promo-arrow::after {
    content: '→';
    transition: transform var(--t-med);
}
.inline-promo .inline-promo-arrow:hover::after { transform: translateX(3px); }
.inline-promo + .cta-banner { margin-top: clamp(32px, 4vw, 56px); }
.waitlist-form + .inline-promo {
    max-width: 540px;
    margin: clamp(24px, 3vw, 40px) auto 0;
}

/* ─────────────────────────────────────────────
   14. Pricing
   ───────────────────────────────────────────── */
.plan-sec { margin-bottom: clamp(40px, 5vw, 64px); }
.plan-sec:last-child { margin-bottom: 0; }
.plan-sec-head {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.plan-sec-title {
    font-size: var(--type-h2-sub);
    letter-spacing: var(--ls-tight);
    margin-bottom: 6px;
}
.plan-sec-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 60ch;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding-top: 14px;
    align-items: stretch;
}
.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 32px 28px 28px;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t-slow), box-shadow var(--t-slow);
}
.plan-card:hover {
    border-color: var(--brand);
}

/* Featured plan: a single clean 2px blue border. No ring, no gradient
   composite — those were showing as "incomplete border" on some
   browsers because the box-shadow ring didn't follow the border-radius
   the same way the border did at sub-pixel scales. */
.plan-card--featured {
    border: 2px solid var(--brand);
    padding-top: calc(1.5rem - 1px);
}
.plan-card--featured .plan-price--primary .plan-price-amt {
    color: var(--brand);
}
.plan-card--featured .plan-cta {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}
.plan-card--featured .plan-cta:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #ffffff;
}
.plan-card--featured .plan-feats li::before {
    background: var(--brand);
    border-color: var(--brand);
}
.plan-card--featured .plan-feats li::after {
    border-color: #ffffff;
}

/* "Most chosen" label — inside the card, never floating */
.plan-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--brand);
    padding: 0 0 10px;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: static;
    transform: none;
    white-space: nowrap;
}
.plan-flag::before {
    content: '';
    width: 16px;
    height: 1.5px;
    background: var(--brand);
    display: inline-block;
}

.plan-name {
    font-size: 1.15rem;
    letter-spacing: var(--ls-tight);
    margin-bottom: 6px;
    color: var(--ink);
}
.plan-desc {
    color: var(--text-muted);
    font-size: .94rem;
    line-height: 1.55;
    margin-bottom: 24px;
    min-height: 2.8em;
}

.plan-prices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 22px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-price--primary .plan-price-amt {
    font-family: var(--font-mono);
    font-size: clamp(2.25rem, 3.2vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1;
    font-variant-numeric: tabular-nums lining-nums;
}
.plan-price--primary .plan-price-unit {
    font-family: var(--font-mono);
    font-size: .88rem;
    color: var(--text-muted);
    font-weight: 500;
}
.plan-price--secondary, .plan-price--lifetime {
    font-family: var(--font-mono);
    font-size: .86rem;
    color: var(--text-muted);
    align-items: center;
}
.plan-price--secondary .plan-price-amt,
.plan-price--lifetime .plan-price-amt {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: var(--ls-normal);
}
.plan-price--primary { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; flex-wrap: nowrap; }
.plan-price-main { display: flex; align-items: baseline; gap: 6px; }
.plan-price-eyebrow {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.plan-price-eyebrow s {
    color: var(--ink-soft);
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: #b80000;
    font-weight: 600;
}
.plan-price-save-inline {
    font-size: .72rem;
    font-weight: 700;
    color: #b80000;
    background: #ffe8e8;
    border: 1px solid #ffc5c5;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.4;
}
.plan-price-eyebrow-inline {
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 6px;
}
.plan-price-eyebrow-inline s {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: #b80000;
    font-weight: 600;
}
.plan-price-slot-row { margin-top: 4px; }
.plan-price-slots {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 600;
    color: var(--brand);
    border: 1px solid var(--brand);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: .04em;
    text-transform: uppercase;
}


.plan-feats {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}
.plan-feats li {
    position: relative;
    padding-left: 26px;
    color: var(--text);
    font-size: .94rem;
    line-height: 1.5;
}
.plan-feats li::before {
    content: '';
    position: absolute;
    left: 0; top: 4px;
    width: 16px; height: 16px;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
}
.plan-feats li::after {
    content: '';
    position: absolute;
    left: 4px; top: 8px;
    width: 8px; height: 4px;
    border-left: 1.75px solid var(--brand);
    border-bottom: 1.75px solid var(--brand);
    transform: rotate(-45deg);
}

.plan-cta {
    /* Matches .btn sizing (padding + font-size + radius) so plan-card
       buttons read as the same family as hero / section CTAs. The visual
       variant (outline with accent hover) is different from .btn-primary
       on purpose — plan cards are decision moments, not primary actions. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    border: 1px solid var(--border-strong);
    text-decoration: none;
    transition: background var(--t-med), border-color var(--t-med), color var(--t-med), box-shadow var(--t-med);
    box-shadow: var(--shadow-sm);
}
.plan-cta:hover {
    border-color: var(--ink);
    color: var(--ink);
    box-shadow: var(--shadow);
}
.plan-cta-sub {
    text-align: center;
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

.plan-loading, .plan-error {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: .98rem;
}
.plan-error a { font-weight: 600; }

/* ─────────────────────────────────────────────
   15. Plan comparison table
   ───────────────────────────────────────────── */
.compare-wrap {
    max-width: 1040px;
    margin: clamp(40px, 5vw, 72px) auto 0;
}
.compare-head {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.compare-head h2 {
    font-size: var(--type-h2-sub);
    letter-spacing: var(--ls-tight);
    margin-bottom: 6px;
}
.compare-head p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}
.compare-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: #ffffff;
}
.compare-table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
    font-size: .94rem;
}
.compare-table thead th {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: var(--z-sticky);
    text-align: left;
    font-family: var(--font-mono);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}
.compare-table thead th.compare-plan-col {
    color: var(--ink);
    text-align: center;
    font-size: .82rem;
    letter-spacing: .06em;
}
.compare-table thead th.compare-plan-col[data-featured] {
    color: var(--brand);
}
.compare-table thead th:first-child {
    min-width: 220px;
}
.compare-table tbody th {
    text-align: left;
    font-weight: 500;
    color: var(--ink);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
}
.compare-table tbody td {
    text-align: center;
    color: var(--text);
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-variant-numeric: tabular-nums lining-nums;
    font-family: var(--font-mono);
    font-size: .9rem;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr.compare-group th {
    background: var(--bg-alt);
    font-family: var(--font-mono);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    padding: 12px 18px;
}
.compare-table tbody tr.compare-group td { background: var(--bg-alt); }
.compare-yes {
    display: inline-block;
    width: 14px; height: 8px;
    border-left: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(-45deg);
    vertical-align: middle;
    margin-bottom: 2px;
}
.compare-no {
    display: inline-block;
    width: 14px; height: 1.5px;
    background: var(--text-faint);
    vertical-align: middle;
}
.compare-table td[data-featured] {
    background: var(--brand-tint);
}
.compare-table th[data-featured] {
    color: var(--brand);
}

@media (max-width: 760px) {
    .compare-scroll { border-radius: 0; border-left: 0; border-right: 0; }
    .compare-table { min-width: 560px; }
    .compare-table thead th:first-child,
    .compare-table tbody th {
        position: sticky;
        left: 0;
        background: #ffffff;
        z-index: 1;
        border-right: 1px solid var(--border);
    }
    .compare-table tbody tr.compare-group th { background: var(--bg-alt); }
}

/* ─────────────────────────────────────────────
   16. FAQ
   ───────────────────────────────────────────── */
.faq-list {
    max-width: 820px;
    margin: 0 auto;   /* center in the container so it matches .legal + .compare-wrap */
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}
.faq-item {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 20px 4px;
    transition: background var(--t-slow);
}
.faq-item:hover summary { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq-item[open] {
    background: transparent;
    box-shadow: none;
}
.faq-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: var(--ls-normal);
    color: var(--ink);
    padding-right: 36px;
    line-height: 1.45;
    transition: color var(--t-med);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-65%) rotate(45deg);
    transition: transform .2s var(--ease-out);
}
.faq-item[open] summary::after {
    transform: translateY(-25%) rotate(-135deg);
    border-color: var(--brand);
}
.faq-item p {
    margin: 14px 0 4px;
    color: var(--text-muted);
    line-height: 1.65;
    font-size: .98rem;
}
.faq-item p a { font-weight: 500; }

/* ─────────────────────────────────────────────
   17. Contact
   ───────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 28px;
    max-width: 1040px;
    margin: 0 auto;
    align-items: start;
}
.contact-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 44px);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t-slow), box-shadow var(--t-slow);
}
.contact-card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
}
.contact-card h3 {
    font-size: 1.4rem;
    letter-spacing: var(--ls-tight);
    margin-bottom: 12px;
}
.contact-card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.65;
    font-size: 1.02rem;
}
.contact-card a[href^="mailto:"] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: var(--ls-normal);
    padding: 12px 20px;
    border: 1px solid var(--brand);
    background: #ffffff;
    border-radius: 10px;
    transition: background var(--t-med), color var(--t-med);
}
.contact-card a[href^="mailto:"]:hover {
    background: var(--brand);
    color: #ffffff;
}
.contact-meta {
    display: flex;
    gap: 24px;
    font-size: .9rem;
    color: var(--text-muted);
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.contact-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.contact-meta-item svg { color: var(--brand); flex: none; }
.contact-meta-item strong { color: var(--ink); font-weight: 600; }

.contact-card-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.contact-card-section h4 {
    font-family: var(--font-mono);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 12px;
}
.contact-card-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.contact-card-section li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    font-size: .96rem;
    line-height: 1.55;
}
.contact-card-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-strong);
}
.contact-card-section li::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 9px;
    width: 6px;
    height: 3px;
    border-left: 1.5px solid var(--brand);
    border-bottom: 1.5px solid var(--brand);
    transform: rotate(-45deg);
}

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.contact-aside-block {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 22px 24px;
}
.contact-aside-block h4 {
    font-family: var(--font-mono);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 14px;
}
.contact-aside-block p {
    color: var(--text);
    font-size: .96rem;
    line-height: 1.55;
    margin: 0 0 .6em;
}
.contact-aside-block p:last-child { margin-bottom: 0; }
.contact-aside-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.contact-aside-block ul a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--ink-soft);
    font-size: .96rem;
    font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--t-med);
}
.contact-aside-block ul li:last-child a { border-bottom: 0; }
.contact-aside-block ul a:hover { color: var(--brand); }
.contact-aside-block ul a::after {
    content: '→';
    color: var(--text-faint);
    transition: transform var(--t-med), color var(--t-med);
}
.contact-aside-block ul a:hover::after { color: var(--brand); transform: translateX(3px); }

@media (max-width: 960px) {
    /* Contact grid breaks earlier than other 880px rules so the form
       + sidebar don't cram together on iPad-portrait widths. */
    .contact-grid { grid-template-columns: 1fr; max-width: 720px; }
}

/* ─────────────────────────────────────────────
   18. Waitlist form
   ───────────────────────────────────────────── */
.waitlist-form {
    max-width: 540px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 40px);
    box-shadow: var(--shadow);
}
.waitlist-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.waitlist-field label {
    font-size: .9rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: var(--ls-normal);
}
.waitlist-optional {
    color: var(--text-faint);
    font-weight: 400;
    font-size: .82rem;
}
.waitlist-field input,
.waitlist-field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    transition: border-color var(--t-med), box-shadow var(--t-med);
    font-size: .98rem;
}
.waitlist-field input::placeholder,
.waitlist-field textarea::placeholder {
    color: var(--text-faint);
}
.waitlist-field input:focus,
.waitlist-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-ring);
}
.waitlist-field textarea { resize: vertical; min-height: 90px; }

.waitlist-submit {
    width: 100%;
    margin-top: 4px;
}
.waitlist-submit:disabled {
    opacity: .6;
    cursor: progress;
}
.waitlist-privacy {
    font-size: .82rem;
    color: var(--text-muted);
    text-align: center;
    margin: 14px 0 0;
}

.waitlist-feedback {
    margin-top: 14px;
    font-size: .92rem;
    text-align: center;
    min-height: 1.2em;
}
.waitlist-feedback--ok  { color: var(--brand); }
.waitlist-feedback--err { color: var(--ink); background: var(--bg-alt); border: 1px solid var(--border); padding: 10px; border-radius: 8px; }

.waitlist-thanks {
    text-align: center;
    padding: 8px 4px;
}
.waitlist-thanks h3 {
    font-size: 1.35rem;
    letter-spacing: var(--ls-tight);
    margin-bottom: 10px;
    color: var(--ink);
}
.waitlist-thanks p {
    color: var(--text-muted);
    margin-bottom: 6px;
}
.waitlist-thanks-sub {
    font-size: .88rem;
    color: var(--text-faint);
}

/* ─────────────────────────────────────────────
   19. Legal (terms, privacy)
   ───────────────────────────────────────────── */
.legal {
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 40px) clamp(72px, 9vw, 128px);
}
.legal h1 {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    letter-spacing: var(--ls-display);
    margin-bottom: 8px;
}
.legal h2 {
    font-size: 1.3rem;
    letter-spacing: var(--ls-tight);
    margin: 48px 0 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; }
.legal h3 {
    font-size: 1.05rem;
    letter-spacing: var(--ls-normal);
    margin: 24px 0 8px;
    color: var(--ink-soft);
}
.legal p, .legal li {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}
.legal ul { padding-left: 22px; margin: 0 0 16px; }
.legal ul li { margin-bottom: 6px; }
/* ─────────────────────────────────────────────
   19b. Changelog
   ───────────────────────────────────────────── */
.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.changelog-entry {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}
.changelog-entry:last-child { border-bottom: 0; }
.changelog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: .82rem;
}
.changelog-date {
    color: var(--text-muted);
    font-weight: 500;
}
.changelog-version {
    color: var(--text-faint);
    font-weight: 600;
    letter-spacing: .02em;
}
.changelog-tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    border: 1px solid var(--border);
    background: var(--bg-alt);
    color: var(--text-muted);
}
.changelog-tag--new {
    border-color: var(--brand);
    background: var(--brand-tint);
    color: var(--brand-hover);
}
.changelog-title {
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    margin: 0 0 14px;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.changelog-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text);
}
.changelog-items li {
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}
.changelog-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    background: var(--brand);
    border-radius: 50%;
}

/* ─────────────────────────────────────────────
   19c. Roadmap
   ───────────────────────────────────────────── */
.roadmap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* desktop: 4-column kanban */
    gap: 28px;
}
@media (max-width: 1199px) {
    /* Tablet landscape: drop to 2×2. Fills the screen without feeling cramped. */
    .roadmap { grid-template-columns: repeat(2, 1fr); }
}
.roadmap-col {
    padding: 28px 26px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.roadmap-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.roadmap-head h2 {
    font-size: var(--type-h3);
    margin: 0;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.roadmap-head p {
    flex: 1 1 100%;
    font-size: .86rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}
.roadmap-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.roadmap-head--now .roadmap-dot   { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }
.roadmap-head--soon .roadmap-dot  { background: var(--brand-hover); }
.roadmap-head--later .roadmap-dot { background: var(--text-faint); }
.roadmap-head--not .roadmap-dot   { background: #ffffff; border: 2px solid var(--border-strong); }
.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.roadmap-list li {
    font-size: .96rem;
    line-height: 1.55;
    color: var(--text);
}
.roadmap-list strong {
    display: block;
    color: var(--ink);
    font-weight: 700;
    margin-bottom: 3px;
}

.legal-meta {
    color: var(--text-muted);
    font-size: .9rem;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { font-weight: 500; }

/* ─────────────────────────────────────────────
   20. Footer
   ───────────────────────────────────────────── */
.footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: clamp(48px, 6vw, 80px) 0 32px;
    color: var(--text-muted);
    font-size: .94rem;
}
.footer-tagline-row {
    padding-bottom: clamp(28px, 4vw, 48px);
    margin-bottom: clamp(32px, 4vw, 48px);
    border-bottom: 1px solid var(--border);
}
.footer-tagline-big {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    letter-spacing: var(--ls-display);
    color: var(--ink);
    font-weight: 700;
    margin: 0;
    line-height: 1.1;
}
.footer-tagline-big b { color: var(--brand); }
.footer-tagline-where {
    font-family: var(--font-mono);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 10px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.footer-brand {
    max-width: 320px;
}
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
    font-size: 1.05rem;
    letter-spacing: var(--ls-tight);
    margin-bottom: 14px;
}
.footer-logo:hover { color: var(--ink); }
.footer-brand-desc {
    color: var(--text-muted);
    font-size: .94rem;
    line-height: 1.6;
    margin: 0 0 12px;
}
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 16px;
    font-weight: 700;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-col a {
    color: var(--text);
    font-size: .94rem;
    transition: color var(--t-med);
}
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .78rem;
    color: var(--text-faint);
    flex-wrap: wrap;
    gap: 12px;
}

/* ─────────────────────────────────────────────
   21. Reveal utility (kept as no-op for render-at-rest)
   ───────────────────────────────────────────── */
.reveal { opacity: 1; transform: none; transition: none; }

/* ─────────────────────────────────────────────
   22. Responsive breakpoints
   ───────────────────────────────────────────── */
@media (max-width: 960px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { justify-self: stretch; max-width: 100%; margin-top: 24px; }

    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .stats-cell:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
    .stats-cell:nth-child(4) { border-top: 1px solid var(--border); }

    .steps { grid-template-columns: repeat(2, 1fr); }

    .feature-card--hero { grid-column: span 1; grid-template-columns: 1fr; }

    .reality, .reality--flip { grid-template-columns: 1fr; }

    .outputs { grid-template-columns: 1fr; }

    .footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px;
    }
    .footer-brand { grid-column: span 3; }
}

@media (max-width: 760px) {
    :root {
        --section-y: 64px;
    }
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 20px;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        gap: 2px;
        display: none;
    }
    .nav-links.open { display: flex; }
    .nav-links a {
        padding: 12px 14px;
        font-size: 1rem;
    }
    .nav-cta.btn { margin: 6px 0 0; justify-content: center; padding: 12px; }

    .stats-band { grid-template-columns: 1fr 1fr; }

    .feature-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }

    /* Reality chain on mobile: stack vertically, kill the inline arrows
       (they only make sense as a horizontal flow; in a column they look
       like errant text). Items expand to full width for tap targets, and
       get consistent vertical padding so the flow feels even top-to-bottom. */
    .reality-chain { flex-direction: column; padding: 16px; gap: 12px; }
    .reality-chain-item { flex: 1 1 auto; width: 100%; padding: 16px 14px; flex-direction: row; justify-content: flex-start; align-items: center; text-align: left; gap: 14px; }
    .reality-chain-item svg { flex-shrink: 0; }
    .reality-chain-arrow { display: none; }
    .reality-chain-solo { padding: 20px 16px; }

    /* Roadmap stacks on mobile */
    .roadmap { grid-template-columns: 1fr; gap: 20px; }

    /* CTA banner stacks button under copy instead of side-by-side. */
    .cta-banner { display: block; }
    .cta-banner > * { margin-top: 12px; }
    .cta-banner h2 { margin-top: 0; max-width: none; }
    .cta-banner .btn { width: 100%; }

    /* Inline promo wraps its "See all plans" link to a new line. */
    .inline-promo { padding: 14px 16px; }
    .inline-promo .inline-promo-arrow { margin-left: 0; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: span 2; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    /* Body copy on mobile: wider line-length for small screens. */
    .section-title, .hero-copy h1 { max-width: none; }
}

@media (max-width: 480px) {
    .hero { padding-top: 32px; padding-bottom: 40px; }
    .hero-copy h1 { font-size: 2rem; letter-spacing: -0.025em; line-height: 1.1; }
    .hero-sub { font-size: 1rem; }
    /* Hero CTAs on small screens: stack, full-width, and give the
       buttons real internal padding so the labels don't look cramped
       against the button edges. Previous rules only set width:100% —
       the default `.btn` padding (10px 18px) reads too tight when the
       button stretches across the whole viewport. */
    .hero-ctas {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 20px;
    }
    .hero-ctas .btn {
        flex: none;
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
        min-height: 48px;
    }
    .hero-trust { font-size: .82rem; margin-top: 14px; }

    /* Section padding + titles on small screens */
    .section-title { font-size: 1.5rem; }
    .section-sub { font-size: .98rem; }
    .page-header h1 { font-size: 1.75rem; }

    .plan-card { padding: 28px 20px 22px; }
    .plan-price--primary .plan-price-amt { font-size: 2.4rem; }

    .faq-item summary { font-size: .95rem; }

    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-brand { grid-column: auto; }
    .footer-col h4 { margin-top: 8px; }
}

/* Smallest phones (≤360px — old iPhone SE, small Androids). Without this,
   hero H1 + CTA buttons overflow and eyebrow labels can push horizontal
   scroll. Mostly type down-sizing; container padding already flexes. */
@media (max-width: 360px) {
    .hero-copy h1 { font-size: 1.7rem; }
    .page-header h1 { font-size: 1.55rem; }
    .section-title { font-size: 1.3rem; }
    .hero-ctas .btn { padding: 12px 16px; font-size: .95rem; }
    .plan-card { padding: 24px 16px 18px; }
    .plan-price--primary .plan-price-amt { font-size: 2.1rem; }
}

/* ── Lifetime installment link (pricing cards) ──────────────────
   Subtle secondary CTA under the lifetime price. Not a primary
   action — a "by the way, you can split this" hint. The link
   target is signup.php?plan=X&type=installment which routes
   through sd_create_stripe_checkout with plan_type='installment'. */
.plan-price-installment {
  margin-top: 6px;
  font-size: .85rem;
  line-height: 1.4;
}
.plan-price-installment a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px dashed var(--text-faint);
  transition: color .15s, border-color .15s;
}
.plan-price-installment a strong {
  color: var(--ink);
  font-weight: 600;
}
.plan-price-installment a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}
.plan-price-installment a:hover strong { color: var(--brand); }

/* Plan comparison matrix — only new component this revamp introduces.
   Uses existing tokens. Row rhythm matches .plan-card. Group rows pick up
   .plan-sec-head's hairline-on-bg-alt treatment. */
.plan-compare-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: #ffffff;
    margin-top: clamp(20px, 3vw, 36px);
    -webkit-overflow-scrolling: touch;
}
.plan-compare {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    font-size: .96rem;
}
.plan-compare thead th {
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--ink);
    padding: 18px 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border-strong);
    letter-spacing: var(--ls-tight);
    white-space: nowrap;
}
.plan-compare thead th.pc-feature {
    text-align: left;
    width: 40%;
    color: var(--text-muted);
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
}
.plan-compare tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: center;
    color: var(--brand-deep);
    font-weight: 600;
    vertical-align: top;
}
.plan-compare tbody td:first-child {
    text-align: left;
    color: var(--ink);
    font-weight: 500;
}
.plan-compare tbody tr:hover td { background: var(--bg-alt); }
.plan-compare tbody tr:last-child td { border-bottom: none; }
.pc-group th {
    background: var(--bg-deep);
    color: var(--brand-deep);
    text-align: left;
    text-transform: uppercase;
    letter-spacing: var(--ls-wide);
    font-size: .76rem;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-strong);
}
.plan-compare-note {
    font-size: .9rem;
    color: var(--text-muted);
    margin-top: 14px;
    text-align: center;
}

/* When FAQ is grouped by eyebrow + list, give subsequent eyebrows breathing
   room — uses the section rhythm already established elsewhere. */
.faq-list + .eyebrow { margin-top: clamp(36px, 4vw, 56px); }
