/* ============================================================
   NUCASH — MARKETING SITE
   Design system mirrors the in-app React rebuild: warm neutral
   canvas, brand green, four category colours, friendly radii,
   soft warm-tinted shadows, Inter. Keep this in lockstep with
   web/src/index.css so the site and the product feel like one thing.
   ============================================================ */

:root {
    /* Brand green — identity, growth, "go" */
    --brand-50:  #eafaf1;
    --brand-100: #d0f3e1;
    --brand-200: #a3e7c5;
    --brand-300: #6dd6a3;
    --brand-400: #3dbd82;
    --brand-500: #1ba368;
    --brand-600: #128454;
    --brand-700: #106a45;
    --brand-800: #11543a;
    --brand-900: #0d3d2b;

    /* Warm neutral canvas (paper-warm, not cold gray). Text inks carry a faint
       green undertone so neutrals feel related to the brand, not grey-on-grey. */
    --ink:        #1b2620;
    --ink-soft:   #495850;
    /* Darkened so it passes WCAG AA (4.5:1) on white, paper AND the sunken
       section bg (was #8a948c at ~3.1:1). Used for labels, meta, footer, trust. */
    --ink-faint:  #66706a;
    --line:       #e7e7e0;
    --line-soft:  #f0efe9;
    --paper:      #f9f7f2;
    --card:       #ffffff;
    --sunken:     #f3f1ea;
    --sidebar:    #f6f4ee;
    --draft-soft: #f6efdf;

    /* Dramatic dark surface — a deep forest green instead of stark black, so the
       "spotlight" moments (paycheck node, dark section) read as on-brand, not
       jarring. Paired tints for layering on top of it. */
    --forest:      #0f2c1e;
    --forest-soft: #16382a;
    --forest-line: #2a4a3a;

    /* The four jobs — kept distinct (a core product concept) but tuned to ONE
       muted, desaturated family so they harmonise with the green + cream rather
       than fighting it. Allowance stays the true brand green as the anchor. */
    --cat-bills:     #6b93c2;  /* muted slate-blue */
    --cat-allowance: #1ba368;  /* brand green */
    --cat-savings:   #9585c4;  /* dusty violet */
    --cat-splurge:   #d4925f;  /* warm clay */

    /* Semantic — softened to sit in the same low-chroma family */
    --positive: #1ba368;
    --negative: #c8514a;
    --warn:     #d99f4e;
    /* Darkened so the "Unpaid" pill text passes 4.5:1 on --draft-soft */
    --draft:    #856005;

    /* Friendly rounded radii */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 20px;
    --r-xl: 28px;
    --r-pill: 999px;

    /* Soft, warm green-tinted elevation (shadows pick up the forest undertone so
       cards feel lit by the same light as the brand, not a neutral grey). */
    --shadow-soft: 0 1px 2px rgba(20,40,30,.045), 0 2px 8px rgba(20,40,30,.045);
    --shadow-card: 0 1px 3px rgba(20,40,30,.05), 0 6px 20px -8px rgba(20,40,30,.11);
    --shadow-pop:  0 12px 32px -8px rgba(18,42,30,.18);
    --shadow-hero: 0 30px 80px -28px rgba(16,44,30,.28);

    --transition: .22s cubic-bezier(.22,1,.36,1);
    --maxw: 1160px;
}

/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* 93.75% → a 15px rem base (from the browser default 16px). Tightens the whole
   page's type/spacing scale for small laptops without touching every value. */
html { font-size: 93.75%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-size: 1rem;
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-variant-numeric: tabular-nums;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Visually hidden but available to screen readers */
.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3, h4, h5 {
    letter-spacing: -0.02em;
    font-weight: 700;
    line-height: 1.1;
}

.tnum { font-variant-numeric: tabular-nums; }

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

::selection { background: var(--brand-200); color: var(--brand-900); }

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: var(--r-pill);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
    white-space: nowrap;
}
.btn svg { transition: transform var(--transition); }

.btn-primary {
    background: var(--brand-500);
    color: #fff;
    padding: 15px 30px;
    box-shadow: 0 6px 18px -4px rgba(27,163,104,.45);
}
.btn-primary:hover {
    background: var(--brand-600);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -6px rgba(27,163,104,.55);
}
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
    background: var(--card);
    color: var(--ink);
    padding: 14px 28px;
    border: 1.5px solid var(--line);
    box-shadow: var(--shadow-soft);
}
.btn-secondary:hover {
    border-color: var(--brand-400);
    color: var(--brand-600);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--ink);
    color: #fff;
    padding: 15px 30px;
    box-shadow: var(--shadow-card);
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-dark:hover svg { transform: translateX(3px); }

.btn-lg { padding: 17px 38px; font-size: 1.08rem; }
.btn-ghost { background: transparent; padding: 10px 16px; color: var(--ink-soft); font-weight: 600; }
.btn-ghost:hover { color: var(--ink); }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: color-mix(in srgb, var(--paper) 80%, transparent);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), background var(--transition);
}
.nav.scrolled {
    border-bottom-color: var(--line);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 750;
    font-size: 1.28rem;
    letter-spacing: -0.02em;
}
.nav-logo img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}
.nav-links a {
    font-size: .95rem;
    font-weight: 550;
    color: var(--ink-soft);
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-cta .btn-primary { padding: 11px 22px; font-size: .95rem; }

/* ── Section scaffolding ─────────────────────────────────── */
section { position: relative; }

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}
.section-header h2 {
    font-size: clamp(2rem, 1.3rem + 2.6vw, 2.85rem);
    margin: 18px 0 14px;
}
.section-header p {
    font-size: 1.12rem;
    color: var(--ink-soft);
    line-height: 1.6;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    /* brand-700 (not 600) clears WCAG AA on the brand-50 tint: 6.1:1 vs 4.37:1 */
    color: var(--brand-700);
    background: var(--brand-50);
    padding: 7px 14px;
    border-radius: var(--r-pill);
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    padding: 128px 0 64px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -240px; right: -120px;
    width: 820px; height: 640px;
    background: radial-gradient(ellipse at center, rgba(27,163,104,.13), transparent 62%);
    pointer-events: none;
    z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
}
.hero-copy { max-width: 540px; }

/* GROUP 1 — Identity: eyebrow + H1 + sub, tightly bonded. The eyebrow is flat
   text (no card) so the H1 is the unambiguous first fixation. */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--brand-700);
    margin: 0 0 12px;
}
.hero-eyebrow i { color: var(--brand-500); }

.hero h1 {
    font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.3rem);
    letter-spacing: -0.035em;
    margin: 0 0 16px;
    line-height: 1.06;
}
.hero h1 .highlight {
    color: var(--brand-600);
    position: relative;
    white-space: nowrap;
}
.hero h1 .highlight::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: .06em;
    height: .14em;
    background: var(--brand-200);
    border-radius: 4px;
    z-index: -1;
}
.hero-sub {
    font-size: clamp(1rem, .92rem + .3vw, 1.12rem);
    color: var(--ink-soft);
    max-width: 480px;
    margin: 0;
    line-height: 1.6;
}

/* GROUP 2 — Action: the CTA + one quiet terms/trust line, set off from the
   identity group by a whitespace moat above. */
.hero-action { margin-top: 34px; }

.hero-action .hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}
/* Secondary action demoted from a button to a quiet text link so the primary
   CTA owns the visual weight. */
.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    font-size: .95rem;
    color: var(--ink-soft);
    transition: color var(--transition);
}
.btn-text-link i { font-size: .85rem; transition: transform var(--transition); }
.btn-text-link:hover { color: var(--brand-600); }
.btn-text-link:hover i { transform: translateY(2px); }

/* The single quiet line carrying both the card-required terms and the one trust
   token (Plaid). It's the only supporting text under the CTA. */
.hero-cta-micro {
    font-size: .82rem;
    color: var(--ink-soft);
    margin: 0;
    line-height: 1.5;
    max-width: 440px;
}
.hero-cta-micro i { margin-left: 2px; }

/* ── Hero animated explainer (paycheck → 4 jobs → daily number) ── */
.hero-flow {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-hero);
    padding: 30px 32px 32px;
}
.hero-flow-anim {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.flow-source {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: linear-gradient(165deg, var(--forest-soft), var(--forest));
    color: #fff;
    border-radius: var(--r-md);
    padding: 12px 26px;
    box-shadow: 0 10px 26px -10px rgba(15,44,30,.5);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.flow-source-label { font-size: .64rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.flow-source-amt { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.flow-source-amt sup { font-size: .5em; vertical-align: .5em; opacity: .7; margin-right: 1px; }

.flow-wires { width: 100%; height: 68px; margin: 2px 0 0; opacity: .85; }
.flow-wires .fw {
    /* Each path declares pathLength="1" so the dash maths is resolution-
       independent — the wire "draws" from source to job as offset goes 1 → 0. */
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset .7s ease .25s;
}

.flow-jobs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}
/* Calm, near-white cards. Colour is a small accent — an icon chip + a hairline
   top rule — not a full tinted panel. Keeps the four "jobs" legible as one
   group instead of four competing colour blocks. */
.flow-job {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 16px 6px 14px;
    border-radius: var(--r-md);
    /* Quieted (no shadow, softer fill/border) so the green "safe to spend" result
       card is the explainer's single focal point — the eye ends on the number. */
    background: var(--sunken);
    border: 1px solid var(--line-soft);
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(.96);
    transition: opacity .45s ease, transform .45s cubic-bezier(.34,1.56,.64,1);
}
.flow-job::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--c);
    opacity: .9;
}
.flow-job-ic {
    width: 30px; height: 30px;
    border-radius: var(--r-sm);
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--c) 13%, transparent);
    color: var(--c);
    font-size: 1rem;
}
.flow-job small { font-size: .6rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); white-space: nowrap; }
.flow-job b { font-size: .95rem; font-weight: 750; letter-spacing: -0.01em; }

/* Narrow phones: four cards across is too tight for "ALLOWANCE" to fit. Drop to
   a roomy 2×2 grid and hide the fan-out wires (they only read horizontally). */
@media (max-width: 480px) {
    .hero-flow { padding: 22px 20px 24px; }
    .flow-wires { display: none; }
    .flow-jobs { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
    .flow-job { padding: 14px 8px; }
    .flow-arrow { margin: 12px 0 10px; }
}

.flow-arrow {
    color: var(--ink-faint);
    font-size: .95rem;
    margin: 14px 0 12px;
    opacity: 0;
    transition: opacity .4s ease;
}
/* The payoff. A clean light surface; green is reserved for the grade pill and
   the number, so it reads as the one thing that matters, not another colour block. */
.flow-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    background: var(--brand-50);
    border: 1px solid var(--brand-200);
    border-radius: var(--r-lg);
    padding: 18px 22px;
    box-shadow: 0 6px 20px -10px rgba(27,163,104,.4);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.flow-result-grade {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-500);
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    padding: 6px 13px;
    border-radius: var(--r-pill);
    flex-shrink: 0;
}
.flow-result-num { text-align: right; }
.flow-result-label { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); opacity: .75; }
.flow-result-label small { display: block; font-size: .82em; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .85; margin-top: 1px; }
.flow-result-num strong { font-size: 2.1rem; font-weight: 750; letter-spacing: -0.03em; line-height: 1.05; color: var(--brand-800); }
.flow-result-num sup { font-size: .45em; vertical-align: .6em; opacity: .6; margin-right: 1px; }

/* Staged playback when the explainer enters view */
[data-anim="flow"].playing .flow-source { opacity: 1; transform: none; }
[data-anim="flow"].playing .flow-wires .fw { stroke-dashoffset: 0; }
[data-anim="flow"].playing .flow-job { opacity: 1; transform: none; }
[data-anim="flow"].playing .flow-job:nth-child(1) { transition-delay: .55s; }
[data-anim="flow"].playing .flow-job:nth-child(2) { transition-delay: .65s; }
[data-anim="flow"].playing .flow-job:nth-child(3) { transition-delay: .75s; }
[data-anim="flow"].playing .flow-job:nth-child(4) { transition-delay: .85s; }
[data-anim="flow"].playing .flow-arrow { opacity: 1; transition-delay: 1s; }
[data-anim="flow"].playing .flow-result { opacity: 1; transform: none; transition-delay: 1.1s; }

.app-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: var(--shadow-soft);
}
/* Feature previews show three summary cards — fill the width with 3 columns
   rather than leaving the 4th-column slot empty. */
.app-metrics.mini { grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.app-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 16px;
    border-left: 1px solid var(--line);
    min-width: 0;
}
.app-card:first-child { border-left: 0; }
.app-card small {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-faint);
    /* Labels truncate instead of wrapping — so a 2-line label can't shove its
       value out of line with its neighbours (matches the in-app StatGroup). */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-card strong { font-size: 1.18rem; font-weight: 700; margin-top: auto; }
.text-green { color: var(--brand-500); }
.text-muted { color: var(--ink-faint); }

/* ── Manifesto — the brand point of view (editorial moment) ── */
.manifesto { padding: 76px 0 24px; }
.manifesto-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.manifesto-inner .eyebrow { margin-bottom: 18px; }
.manifesto-inner h2 {
    font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 22px;
}
.manifesto-inner h2 + p { font-size: 1.18rem; }
.manifesto-inner p {
    font-size: 1.08rem;
    line-height: 1.66;
    color: var(--ink-soft);
    margin-bottom: 16px;
}
.manifesto-inner p:last-child { margin-bottom: 0; }
.manifesto-inner p strong { color: var(--ink); font-weight: 700; }
.manifesto-fineprint { font-size: .82rem !important; color: var(--ink-faint) !important; line-height: 1.55 !important; max-width: 600px; margin: 18px auto 0 !important; }

/* ── Theory / four jobs ──────────────────────────────────── */
.theory { padding: 72px 0; }
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 8px;
}
.job-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px 22px;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}
.job-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--job-color, var(--brand-500));
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.job-icon {
    width: 46px; height: 46px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    background: color-mix(in srgb, var(--job-color) 14%, transparent);
    color: var(--job-color);
}
.job-card h4 { font-size: 1.15rem; margin-bottom: 8px; }
.job-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }

/* ── "The number" — daily allowance highlight ────────────── */
.number-section {
    padding: 80px 0;
    background: radial-gradient(120% 140% at 80% 0%, var(--forest-soft), var(--forest) 70%);
    color: #fff;
}
.number-section .section-header h2 { color: #fff; }
.number-section .section-header p { color: rgba(255,255,255,.66); }
.number-section .eyebrow { background: rgba(255,255,255,.09); color: var(--brand-300); }

.number-stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-top: 14px;
}
.number-display {
    background: linear-gradient(165deg, rgba(255,255,255,.03), rgba(27,163,104,.12));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-xl);
    padding: 44px 40px;
    text-align: center;
}
.number-grade {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(27,163,104,.16);
    color: var(--brand-300);
    font-weight: 700;
    font-size: .9rem;
    padding: 7px 16px;
    border-radius: var(--r-pill);
    margin-bottom: 24px;
}
/* "Bad" state for the cost-of-inaction example */
.number-grade.bad { background: rgba(224,86,79,.18); color: #f0a39e; }
.number-label { font-size: .95rem; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.number-big {
    font-size: clamp(3.4rem, 2rem + 5vw, 5.2rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1;
}
.number-display .number-big { color: #f0a39e; }
.number-big sup { font-size: .42em; vertical-align: .9em; opacity: .7; font-weight: 600; }
.number-sub { font-size: .95rem; color: rgba(255,255,255,.7); margin-top: 14px; }
.number-sub strong { color: #fff; font-weight: 700; }

.number-points { display: flex; flex-direction: column; gap: 22px; }
.number-point { display: flex; gap: 16px; }
.number-point .np-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: var(--r-sm);
    background: rgba(255,255,255,.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--brand-300);
}
.number-point h4 { font-size: 1.08rem; margin-bottom: 5px; color: #fff; }
.number-point p { font-size: .94rem; color: rgba(255,255,255,.62); line-height: 1.55; }

/* ── Comparison table — the credit differentiator ──────────────
   A real <table> for semantics; laid out as a grid for the look. thead/tbody
   use display:contents so the grid rows read straight off the <tr>s. */
.compare { padding: 80px 0; }
.compare-table {
    display: block;
    max-width: 880px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    border-collapse: collapse;
}
.compare-table thead, .compare-table tbody { display: contents; }
.compare-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: center;
    border-top: 1px solid var(--line-soft);
}
.compare-row:first-child { border-top: 0; }
.compare-feature { padding: 16px 22px; font-size: .95rem; font-weight: 600; color: var(--ink); text-align: left; }
.compare-us, .compare-them {
    padding: 16px 18px;
    font-size: .9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    text-align: left;
}
.compare-us { background: var(--brand-50); color: var(--brand-800); border-left: 1px solid var(--brand-100); }
.compare-us i { color: var(--brand-600); font-size: 1rem; }
.compare-them { color: var(--ink-faint); border-left: 1px solid var(--line-soft); }
.compare-them i { color: var(--negative); font-size: .95rem; }
/* Header row: brand the Nucash column, label the other */
.compare-head .compare-us, .compare-head .compare-them {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.compare-head .compare-us { color: var(--brand-700); }
.compare-head .compare-us img { border-radius: 6px; }
.compare-head .compare-them { color: var(--ink-soft); }

/* ── Features ────────────────────────────────────────────── */
.features { padding: 80px 0; background: var(--sunken); }

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 72px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }

.feature-icon {
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-text h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); margin-bottom: 14px; }
.feature-text > p { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 22px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: 1rem;
    color: var(--ink);
    font-weight: 500;
}
.feature-list li::before {
    content: "";
    flex-shrink: 0;
    width: 22px; height: 22px;
    margin-top: 1px;
    border-radius: 50%;
    background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23128454' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* mock surfaces shared inside feature visuals */
.feature-visual { min-width: 0; }
.app-mockup {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.app-card sup { font-size: .55em; vertical-align: .4em; opacity: .65; margin-right: 1px; }

/* ── Budgets preview — "give every dollar a job" ─────────────── */
.budget-bar {
    display: flex;
    height: 12px;
    border-radius: var(--r-pill);
    overflow: hidden;
    background: var(--sunken);
    margin: 4px 0 16px;
}
.budget-bar-fill {
    width: var(--w);
    transition: width .9s cubic-bezier(.22,1,.36,1);
    /* A hairline gap between segments so the four parts read as distinct by
       boundary, not by hue alone (colorblind-safe). */
    box-shadow: inset -2px 0 0 var(--card);
}
.budget-bar-fill:last-child { box-shadow: none; }
.budget-jobs { display: flex; flex-direction: column; gap: 9px; }
.budget-job {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
}
.bj-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--c);
    flex-shrink: 0;
}
.bj-name { font-weight: 550; }
.bj-amt { margin-left: auto; font-weight: 700; }
.budget-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 11px 14px;
    border-radius: var(--r-sm);
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: .85rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.22,1,.36,1);
}
.budget-status i { font-size: 1rem; }

/* ── Transactions preview — faithful to the in-app table ─────── */
.tx-mock { padding: 16px; }
.tx-table {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.tx-head, .tx-row {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) .7fr 1.35fr .85fr 22px;
    gap: 10px;
    align-items: center;
}
.tx-head {
    padding: 9px 16px;
    border-bottom: 1px solid var(--line);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
.tx-row {
    padding: 10px 16px;
    border-bottom: 1px solid var(--line-soft);
}
.tx-row:last-child { border-bottom: 0; }

.tx-desc-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tx-logo {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: var(--r-xs);
    background: var(--sunken);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
}
.tx-desc-text { min-width: 0; display: flex; flex-direction: column; }
.tx-desc-text b { font-size: .85rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-desc-text small { font-size: .7rem; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cost: the sunken "button" the app uses to open the cost editor */
.tx-cost {
    font-size: .82rem;
    font-weight: 650;
    background: var(--sunken);
    border: 1px solid transparent;
    border-radius: var(--r-xs);
    padding: 6px 10px;
    text-align: left;
}

/* Budget: the accent-dot select. The dot + label colour in by category; a
   chevron hints it's a dropdown, exactly like the in-app SelectMenu.
   Starts neutral ("Stack"), then sorts into its category as the demo plays. */
.tx-budget {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-xs);
    box-shadow: inset 3px 0 0 var(--line);
    padding: 6px 9px;
    font-size: .78rem;
    font-weight: 650;
    min-width: 0;
    transition: box-shadow .4s ease;
}
.tx-budget-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ink-faint);
    flex-shrink: 0;
    transition: background .4s ease;
}
.tx-budget-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-faint); transition: color .4s ease; }
.tx-budget i { margin-left: auto; font-size: .62rem; color: var(--ink-faint); }

/* Status pill: amber "Unpaid" → green "Paid", just like the app */
.tx-status {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .74rem;
    font-weight: 650;
    padding: 5px 11px;
    border-radius: var(--r-xs);
    background: var(--draft-soft);
    color: var(--draft);
    border: 1px solid color-mix(in srgb, var(--draft) 25%, transparent);
    white-space: nowrap;
    transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.tx-tag { display: flex; justify-content: center; color: var(--ink-faint); font-size: .8rem; }
.tx-tag i { color: var(--brand-600); }

/* ── Bills preview ───────────────────────────────────────────── */
.mock-bill-header {
    display: grid;
    grid-template-columns: 1.8fr 1fr .8fr;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ink-faint);
    padding: 6px 0;
}
.mock-bill-row {
    display: grid;
    grid-template-columns: 1.8fr 1fr .8fr;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .88rem;
}
.mock-bill-row:last-child { border-bottom: 0; }
.bill-name { font-weight: 550; }
.bill-cost { font-weight: 700; }
.bill-every { color: var(--ink-faint); font-size: .82rem; }

/* ── Goals preview — forecast bar fills toward "ready" ───────── */
.goal-card {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
}
.goal-card:last-child { border-bottom: 0; }
.goal-ic {
    flex-shrink: 0;
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    background: color-mix(in srgb, var(--cat-savings) 13%, transparent);
    color: var(--cat-savings);
}
.goal-body { flex: 1; min-width: 0; }
.goal-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.goal-top strong { font-size: .92rem; font-weight: 650; }
.goal-ready {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--brand-700);
    background: var(--brand-50);
    padding: 3px 10px;
    border-radius: var(--r-pill);
    opacity: 0;
    transform: scale(.85);
    transition: opacity .45s ease .6s, transform .45s cubic-bezier(.34,1.56,.64,1) .6s;
}
.goal-forecast { font-size: .74rem; color: var(--ink-faint); font-weight: 500; }
.goal-track {
    height: 8px;
    border-radius: var(--r-pill);
    background: var(--sunken);
    overflow: hidden;
}
.goal-fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: var(--r-pill);
    background: var(--cat-savings);
    transition: width 1s cubic-bezier(.22,1,.36,1) .15s;
}
.goal-meta {
    display: flex;
    justify-content: space-between;
    font-size: .74rem;
    color: var(--ink-faint);
    margin-top: 7px;
}

/* ── Preview animations fire when .playing is added ──────────── */
[data-anim="budgets"].playing .budget-bar-fill:nth-child(1) { width: 33.3%; }
[data-anim="budgets"].playing .budget-bar-fill:nth-child(2) { width: 33.3%; }
[data-anim="budgets"].playing .budget-bar-fill:nth-child(3) { width: 21.4%; }
[data-anim="budgets"].playing .budget-bar-fill:nth-child(4) { width: 12%; }
[data-anim="budgets"].playing .budget-status { opacity: 1; transform: none; transition-delay: .9s; }

/* Transactions: each row auto-sorts into its category (dot + stripe + label
   colour in), staggered top to bottom; then the paid rows flip to green. */
[data-anim="tx"].playing .tx-budget { box-shadow: inset 3px 0 0 var(--cat); }
[data-anim="tx"].playing .tx-budget-dot { background: var(--cat); }
[data-anim="tx"].playing .tx-budget-label { color: var(--cat); }
[data-anim="tx"].playing .tx-row:nth-child(2) .tx-budget-dot,
[data-anim="tx"].playing .tx-row:nth-child(2) .tx-budget-label,
[data-anim="tx"].playing .tx-row:nth-child(2) .tx-budget { transition-delay: .15s; }
[data-anim="tx"].playing .tx-row:nth-child(3) .tx-budget-dot,
[data-anim="tx"].playing .tx-row:nth-child(3) .tx-budget-label,
[data-anim="tx"].playing .tx-row:nth-child(3) .tx-budget { transition-delay: .3s; }
[data-anim="tx"].playing .tx-row:nth-child(4) .tx-budget-dot,
[data-anim="tx"].playing .tx-row:nth-child(4) .tx-budget-label,
[data-anim="tx"].playing .tx-row:nth-child(4) .tx-budget { transition-delay: .45s; }
[data-anim="tx"].playing .tx-row:nth-child(5) .tx-budget-dot,
[data-anim="tx"].playing .tx-row:nth-child(5) .tx-budget-label,
[data-anim="tx"].playing .tx-row:nth-child(5) .tx-budget { transition-delay: .6s; }

/* The status pill always reserves room for the check, hidden until the row is
   paid, so it doesn't pop in early during the sort phase. */
.tx-status::before {
    content: "\F26E"; /* bootstrap-icons check */
    font-family: "bootstrap-icons";
    font-size: .85em;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width .3s ease, opacity .3s ease;
}
/* After sorting, the rows that get paid flip from amber "Unpaid" to green "Paid" */
[data-anim="tx"].playing .tx-row[data-paid="1"] .tx-status {
    background: var(--brand-500);
    color: #fff;
    border-color: var(--brand-500);
    transition-delay: .9s;
}
[data-anim="tx"].playing .tx-row[data-paid="1"] .tx-status::before {
    width: 1em;
    opacity: 1;
    transition-delay: .9s;
}

[data-anim="goals"].playing .goal-fill { width: var(--p); }
[data-anim="goals"].playing .goal-ready { opacity: 1; transform: none; }

/* ── How it works ────────────────────────────────────────── */
.how-it-works { padding: 80px 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.step-number {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 750;
    font-size: 1.1rem;
    margin-bottom: 16px;
}
.step h4 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { font-size: .92rem; color: var(--ink-soft); line-height: 1.55; }

/* ── Testimonials ────────────────────────────────────────── */
.testimonials { padding: 80px 0; background: var(--sunken); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.testimonial-stars { color: #b9840f; letter-spacing: 2px; font-size: 1rem; }
.testimonial-card blockquote {
    font-size: 1.02rem;
    line-height: 1.6;
    color: var(--ink);
    font-weight: 500;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--brand-100);
    color: var(--brand-700);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}
.testimonial-author .name { font-weight: 700; font-size: .95rem; }
.testimonial-author .role { font-size: .82rem; color: var(--ink-faint); }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing { padding: 80px 0; }
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 56px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
}
.pricing-pitch .eyebrow { margin-bottom: 16px; }
.pricing-pitch h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.7rem); margin-bottom: 14px; }
.pricing-pitch > p { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; max-width: 44ch; }

/* Loss-aversion anchor: overdraft fee vs a year of Nucash */
.pricing-anchor {
    display: inline-flex;
    align-items: stretch;
    gap: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-soft);
    padding: 16px 20px;
    margin-bottom: 26px;
}
.anchor-row { display: flex; align-items: center; gap: 11px; }
.anchor-row strong { display: block; font-size: 1.35rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1; }
.anchor-row small { font-size: .76rem; color: var(--ink-faint); }
.anchor-x, .anchor-check {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
}
.anchor-x { background: color-mix(in srgb, var(--negative) 12%, transparent); color: var(--negative); }
.anchor-check { background: var(--brand-50); color: var(--brand-600); }
.anchor-vs { align-self: center; font-size: .8rem; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; }

.pricing-trust { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.pricing-trust li { display: flex; align-items: center; gap: 11px; font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.pricing-trust i { color: var(--brand-600); font-size: 1.05rem; flex-shrink: 0; }

.pricing-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.pricing-header {
    text-align: center;
    padding: 38px 32px 30px;
    background: linear-gradient(165deg, var(--brand-50), var(--card));
    border-bottom: 1px solid var(--line);
}
.trial-badge {
    display: inline-block;
    background: var(--brand-500);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 18px;
    letter-spacing: .02em;
}
.price { font-size: 4.4rem; font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.price sup { font-size: .36em; vertical-align: .95em; color: var(--ink-faint); font-weight: 600; }
.price-period { font-size: .95rem; color: var(--ink-faint); margin-top: 6px; }
.pricing-body { padding: 30px 32px 34px; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 26px; }
.pricing-features li { display: flex; align-items: center; gap: 11px; font-size: .98rem; font-weight: 500; }
.pricing-features .check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand-50);
    color: var(--brand-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 800;
}
.pricing-body .btn-primary { width: 100%; }
.pricing-note { text-align: center; font-size: .85rem; color: var(--ink-faint); margin-top: 14px; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { padding: 80px 0; background: var(--sunken); }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}
.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px 22px;
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: inherit;
}
.faq-q .faq-chevron { transition: transform var(--transition); color: var(--ink-faint); flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
    padding: 0 22px;
    color: var(--ink-soft);
    font-size: .98rem;
    line-height: 1.6;
}
.faq-item.open .faq-a { max-height: 800px; padding: 0 22px 22px; }

/* ── Final CTA ───────────────────────────────────────────── */
.final-cta {
    padding: 84px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(27,163,104,.10), transparent 60%);
    pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.2rem); margin-bottom: 16px; }
.final-cta p { font-size: 1.15rem; color: var(--ink-soft); max-width: 540px; margin: 0 auto 32px; line-height: 1.6; }
/* This section reuses .hero-buttons (now left-aligned in the hero) but is a
   centered layout — re-center the button row here. */
.final-cta .hero-buttons { justify-content: center; }
.final-cta-note { font-size: .9rem !important; color: var(--ink-faint) !important; margin: 18px auto 0 !important; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { padding: 44px 0; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-logo { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 1.15rem; }
.footer-logo img { width: 24px; height: 24px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 24px; list-style: none; }
.footer-links a { font-size: .92rem; color: var(--ink-soft); transition: color var(--transition); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { font-size: .85rem; color: var(--ink-faint); }

/* ── Reveal-on-scroll ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Mobile menu ─────────────────────────────────────────── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
/* Hidden at every width by default; the 720px query reveals it when the nav is
   open. Without this base rule it renders as a stray bar above 720px. */
.mobile-menu { display: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 980px) {
    .jobs-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
    .number-stage { grid-template-columns: 1fr; gap: 36px; }
    .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; }
    .feature-row.reverse .feature-text, .feature-row.reverse .feature-visual { order: initial; }

    /* Hero stacks to a single column (flex so `order` works). Identity + CTA lead;
       the explainer card follows directly beneath, reinforcing the promise. */
    .hero-grid { display: flex; flex-direction: column; gap: 28px; }
    .hero-copy { max-width: 600px; order: 0; }
    .hero-flow { max-width: 460px; margin: 0 auto; order: 1; }
    .pricing-grid { grid-template-columns: 1fr; gap: 36px; max-width: 480px; }
    .pricing-anchor { display: flex; }
}

@media (max-width: 720px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav.menu-open + .mobile-menu { display: flex; }
    .mobile-menu {
        display: none;
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        padding: 16px 24px 24px;
        gap: 4px;
        z-index: 99;
        box-shadow: var(--shadow-card);
    }
    .mobile-menu a { padding: 12px 8px; font-weight: 600; color: var(--ink-soft); border-radius: var(--r-sm); }
    .mobile-menu a:hover { background: var(--sunken); color: var(--ink); }
    .mobile-menu .btn-primary { margin-top: 8px; color: #fff; padding: 15px 30px; }
    .mobile-menu .btn-primary:hover { background: var(--brand-600); color: #fff; }

    .hero { padding: 100px 0 36px; }
    /* Explainer leads, then a tight identity + CTA block. Full-width CTA, and the
       "see how it works" link drops (the card above IS how it works). */
    .hero-eyebrow { margin-bottom: 10px; }
    .hero h1 { margin-bottom: 12px; }
    .hero-action { margin-top: 24px; }
    .hero-buttons .btn-primary { width: 100%; justify-content: center; }
    .hero-buttons .btn-text-link { display: none; }
    .app-metrics, .app-metrics.mini { grid-template-columns: repeat(2, 1fr); }
    .app-card:nth-child(2) { border-left: 0; }
    /* A lone third metric card (odd count) spans the full row instead of leaving
       a half-empty cell — keeps the strip balanced on phones. */
    .app-metrics > .app-card:nth-child(3):last-child,
    .app-metrics.mini > .app-card:nth-child(3):last-child { grid-column: 1 / -1; border-left: 0; }

    /* Transactions preview collapses to the app's mobile card: merchant + cost on
       top, then Budget select and Status as two equal controls below. */
    .tx-head { display: none; }
    .tx-row {
        position: relative;
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "desc desc" "budget status";
        row-gap: 12px;
        column-gap: 10px;
        padding: 13px 14px;
    }
    .tx-row .tx-desc-cell { grid-area: desc; padding-right: 70px; } /* room for cost */
    .tx-row .tx-cost {
        /* Cost pinned top-right, on the merchant line (matches the app's card). */
        position: absolute;
        top: 13px; right: 14px;
        background: transparent;
        border: 0;
        padding: 0;
        font-size: .95rem;
    }
    .tx-row .tx-budget { grid-area: budget; }
    .tx-row .tx-status { grid-area: status; justify-self: stretch; justify-content: center; }
    .tx-tag { display: none; }

    /* Comparison table: stack the feature label above its two verdicts so the
       row reads top-down instead of cramming three columns onto a phone. */
    .compare-row { grid-template-columns: 1fr 1fr; }
    .compare-feature {
        grid-column: 1 / -1;
        padding: 12px 16px 4px;
        font-size: .9rem;
        font-weight: 700;
    }
    .compare-head { display: none; } /* the column labels are obvious once stacked */
    .compare-us, .compare-them {
        padding: 10px 14px 14px;
        font-size: .85rem;
        align-items: flex-start;
        border-top: 0;
    }
    .compare-us { border-left: 0; border-right: 1px solid var(--brand-100); }
    .compare-them { border-left: 0; }

    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 460px) {
    .jobs-grid, .steps-grid { grid-template-columns: 1fr; }
    .hero-buttons .btn { width: 100%; }
    .container { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
