/* ==========================================================================
   MyPay Portal v2 — public pages
   Loaded only on the marketing and legal side. The member app never pays for
   any of this.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Site chrome
   -------------------------------------------------------------------------- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 500;
    background: color-mix(in srgb, var(--canvas) 82%, transparent);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}
body.is-scrolled .site-nav {
    border-bottom-color: var(--border);
    background: color-mix(in srgb, var(--canvas) 92%, transparent);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    height: 72px;
}

.site-nav-links { display: flex; align-items: center; gap: 2px; margin-left: var(--sp-4); }
.site-nav-links a {
    padding: 8px 13px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.site-nav-links a:hover { color: var(--text-heading); background: var(--surface-sunken); }
.site-nav-links a.is-active { color: var(--brand-text); }

.site-nav-actions { display: flex; align-items: center; gap: var(--sp-2); margin-left: auto; }


.nav-burger { display: none; }

/* --------------------------------------------------------------------------
   Mobile navigation
   -------------------------------------------------------------------------- */

.mobile-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    z-index: 700;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: var(--sp-5);
    transform: translateX(100%);
    transition: transform var(--t-slow) var(--ease);
    display: flex; flex-direction: column; gap: var(--sp-2);
    overflow-y: auto;
}
body.nav-open .mobile-nav { transform: translateX(0); }
.mobile-nav a.mobile-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 14px;
    border-radius: var(--r-md);
    font-size: 15px; font-weight: 600;
    color: var(--text-body);
}
.mobile-nav a.mobile-link:hover { background: var(--surface-sunken); color: var(--text-heading); }

.nav-scrim {
    position: fixed; inset: 0; z-index: 690;
    background: rgba(7, 11, 18, .5);
    backdrop-filter: blur(3px);
    opacity: 0; pointer-events: none;
    transition: opacity var(--t-base) var(--ease);
}
body.nav-open .nav-scrim { opacity: 1; pointer-events: auto; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: var(--sp-24) 0; }
.section-sm { padding: var(--sp-16) 0; }
.section-tint { background: var(--canvas-tint); }
.section-surface { background: var(--surface); }

.section-head { max-width: 660px; margin-bottom: var(--sp-10); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: 34px; letter-spacing: var(--ls-tight); margin-bottom: var(--sp-3); }
.section-head p { font-size: 16.5px; color: var(--text-muted); margin: 0; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    height: 28px; padding: 0 12px;
    margin-bottom: var(--sp-4);
    border-radius: var(--r-pill);
    background: var(--brand-soft);
    border: 1px solid var(--brand-soft-border);
    color: var(--brand-text);
    font-size: 12px; font-weight: 700;
    letter-spacing: .02em;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal][data-reveal-delay="1"] { transition-delay: 70ms; }
[data-reveal][data-reveal-delay="2"] { transition-delay: 140ms; }
[data-reveal][data-reveal-delay="3"] { transition-delay: 210ms; }
[data-reveal][data-reveal-delay="4"] { transition-delay: 280ms; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    padding: var(--sp-20) 0 var(--sp-24);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -340px; left: 50%;
    width: 1100px; height: 780px;
    transform: translateX(-52%);
    background:
        radial-gradient(closest-side, rgba(18, 162, 116, .16), transparent 72%),
        radial-gradient(closest-side, rgba(91, 91, 214, .12), transparent 70%);
    background-position: 20% 40%, 78% 30%;
    background-repeat: no-repeat;
    background-size: 62% 78%, 58% 70%;
    pointer-events: none;
    filter: blur(6px);
}
:root[data-theme="dark"] .hero::before {
    background:
        radial-gradient(closest-side, rgba(18, 162, 116, .26), transparent 72%),
        radial-gradient(closest-side, rgba(91, 91, 214, .20), transparent 70%);
    background-position: 20% 40%, 78% 30%;
    background-repeat: no-repeat;
    background-size: 62% 78%, 58% 70%;
}

/* A faint grid, clipped to a soft ellipse so it never reads as graph paper. */
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px),
        linear-gradient(to bottom, var(--border) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: .4;
    -webkit-mask-image: radial-gradient(ellipse 76% 58% at 50% 24%, #000 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 76% 58% at 50% 24%, #000 0%, transparent 100%);
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    gap: var(--sp-16);
    align-items: center;
}

.hero h1 {
    font-size: clamp(38px, 4.6vw, 60px);
    line-height: 1.04;
    letter-spacing: -.032em;
    font-weight: 800;
    margin-bottom: var(--sp-5);
}
.hero-sub {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: var(--sp-8);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-8); }

.hero-trust {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: var(--sp-2) var(--sp-6);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
}
.hero-trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.hero-trust-item svg { color: var(--brand); }

/* --------------------------------------------------------------------------
   Hero product preview

   A real, static rendering of the v2 dashboard rather than a screenshot: it
   themes with the page, stays crisp on every display, and costs no image
   bytes. Everything in it is decorative — aria-hidden on the wrapper.
   -------------------------------------------------------------------------- */

.preview {
    position: relative;
    perspective: 1600px;
}
.preview-frame {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: rotateY(-7deg) rotateX(3deg) translateZ(0);
    transition: transform var(--t-slow) var(--ease);
}
.preview:hover .preview-frame { transform: rotateY(-3deg) rotateX(1.5deg); }

.preview-bar {
    display: flex; align-items: center; gap: 7px;
    padding: 11px var(--sp-4);
    border-bottom: 1px solid var(--border);
    background: var(--surface-sunken);
}
.preview-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.preview-url {
    margin-left: var(--sp-3);
    flex: 1;
    height: 24px;
    border-radius: var(--r-pill);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
    font-size: 10.5px; font-weight: 600;
    color: var(--text-subtle);
    font-family: var(--font-mono);
}
.preview-url svg { width: 11px; height: 11px; color: var(--success); }

.preview-body { padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); background: var(--canvas); }

.preview-hero {
    background: var(--gradient-brand);
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-5);
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
}
.preview-hero::after {
    content: "";
    position: absolute; top: -60%; right: -12%;
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 68%);
}
.preview-hero-label { font-size: 9.5px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.preview-hero-value { font-family: var(--font-mono); font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-top: 3px; }
.preview-hero-row { display: flex; gap: var(--sp-4); margin-top: var(--sp-3); position: relative; z-index: 1; }
.preview-chip {
    display: inline-flex; align-items: center; gap: 5px;
    height: 24px; padding: 0 10px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .16);
    font-size: 11px; font-weight: 600;
}

.preview-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.preview-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 11px 12px;
}
.preview-tile-label { font-size: 8.5px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-subtle); }
.preview-tile-value { font-family: var(--font-mono); font-size: 14.5px; font-weight: 700; color: var(--text-heading); margin-top: 3px; letter-spacing: -.02em; }

.preview-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.preview-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    font-size: 11.5px; font-weight: 700; color: var(--text-heading);
}
.preview-row {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
}
.preview-row:last-child { border-bottom: none; }
.preview-ic {
    width: 26px; height: 26px; flex: none;
    border-radius: 8px;
    display: grid; place-items: center;
}
.preview-ic svg { width: 13px; height: 13px; }
.preview-ic.in  { background: var(--success-soft); color: var(--success-text); }
.preview-ic.out { background: var(--danger-soft); color: var(--danger-text); }
.preview-ic.ref { background: var(--accent-soft); color: var(--accent-text); }
.preview-row-main { flex: 1; min-width: 0; }
.preview-row-title { font-size: 11.5px; font-weight: 600; color: var(--text-heading); }
.preview-row-sub { font-size: 9.5px; color: var(--text-subtle); }
.preview-row-amt { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; }

/* Sparkline bars — pure CSS, animate up once on load. */
.preview-chart { display: flex; align-items: flex-end; gap: 5px; height: 58px; padding: 0 12px 12px; }
.preview-chart i {
    flex: 1;
    background: var(--brand-soft);
    border-radius: 3px 3px 0 0;
    animation: bar-rise 700ms var(--ease) backwards;
}
.preview-chart i.on { background: var(--gradient-brand); }
@keyframes bar-rise { from { height: 0 !important; opacity: 0; } }

/* Floating side cards give the mock depth without a drop shadow pile-up. */
.preview-float {
    position: absolute;
    z-index: 2;
    /* Raised, not plain surface: on the dark hero the two are only a few
       points apart and the card would read as a hole rather than a chip. */
    background: var(--surface-raised);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    padding: 11px 13px;
    display: flex; align-items: center; gap: 10px;
    animation: float-soft 5.5s ease-in-out infinite;
}
/* Anchored to the frame's edges rather than floating over its middle — a chip
   that covers the balance card's own buttons reads as a bug, not as depth. */
.preview-float-a { left: -54px; top: 33%; }
.preview-float-b { right: -22px; bottom: 9%; animation-delay: -2.6s; }
@keyframes float-soft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
.preview-float-title { display: block; font-size: 11.5px; font-weight: 700; color: var(--text-heading); line-height: 1.3; }
.preview-float-sub { display: block; font-size: 10px; color: var(--text-muted); line-height: 1.3; }

/* --------------------------------------------------------------------------
   Metric band
   -------------------------------------------------------------------------- */

.metric-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.metric {
    background: var(--surface);
    padding: var(--sp-6) var(--sp-5);
    text-align: center;
}
.metric-value {
    font-family: var(--font-mono);
    font-size: 30px; font-weight: 700;
    letter-spacing: -.03em;
    color: var(--text-heading);
}
.metric-label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    display: flex; flex-direction: column; gap: var(--sp-3);
    transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.feature h3 { font-size: 17px; }
.feature p { font-size: 14px; color: var(--text-muted); margin: 0; }
.feature-link {
    margin-top: auto;
    padding-top: var(--sp-2);
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 13.5px; font-weight: 700;
    color: var(--brand-text);
}
.feature-link svg { transition: transform var(--t-fast) var(--ease); }
.feature:hover .feature-link svg { transform: translateX(3px); }

/* A wide feature that spans two columns and carries a small visual. */
.feature-wide {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    gap: var(--sp-6);
    align-items: center;
}

/* --------------------------------------------------------------------------
   Steps
   -------------------------------------------------------------------------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); counter-reset: step; }
.step { position: relative; padding-top: var(--sp-8); }
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute; top: 0; left: 0;
    font-family: var(--font-mono);
    font-size: 13px; font-weight: 700;
    color: var(--brand-text);
    letter-spacing: .04em;
}
.step::after {
    content: "";
    position: absolute; top: 8px; left: 34px; right: -14px;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
}
.step:last-child::after { display: none; }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Split feature panel
   -------------------------------------------------------------------------- */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp-16);
    align-items: center;
}
.split-reverse .split-media { order: -1; }

.checklist { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-6); }
.checklist-item { display: flex; gap: var(--sp-3); }
.checklist-item .tick {
    width: 22px; height: 22px; flex: none;
    border-radius: 50%;
    background: var(--success-soft);
    color: var(--success-text);
    display: grid; place-items: center;
    margin-top: 1px;
}
.checklist-item .tick svg { width: 13px; height: 13px; stroke-width: 3; }
.checklist-item h4 { font-size: 14.5px; margin-bottom: 2px; }
.checklist-item p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Security panel
   -------------------------------------------------------------------------- */

.security-panel {
    background: var(--gradient-deep);
    border-radius: var(--r-2xl);
    padding: var(--sp-12);
    color: rgba(255, 255, 255, .8);
    position: relative;
    overflow: hidden;
}
.security-panel::before {
    content: "";
    position: absolute; inset: auto auto -30% -10%;
    width: 480px; height: 480px; border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 162, 116, .28), transparent 68%);
}
.security-panel h2, .security-panel h3, .security-panel h4 { color: #fff; }
.security-panel .section-head p { color: rgba(255, 255, 255, .66); }
.security-panel .eyebrow { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.security-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.security-item .ic-tile {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .14);
    color: #6ee0bc;
    margin-bottom: var(--sp-3);
}
.security-item h4 { font-size: 15px; margin-bottom: 5px; }
.security-item p { font-size: 13.5px; color: rgba(255, 255, 255, .62); margin: 0; }

/* --------------------------------------------------------------------------
   Quotes
   -------------------------------------------------------------------------- */

.quote {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    display: flex; flex-direction: column; gap: var(--sp-4);
}
.quote-text { font-size: 15px; line-height: 1.6; color: var(--text-body); }
.quote-who { display: flex; align-items: center; gap: var(--sp-3); }
.quote-name { font-size: 13.5px; font-weight: 700; color: var(--text-heading); }
.quote-role { font-size: 12px; color: var(--text-muted); }
.stars { display: flex; gap: 2px; color: var(--warning); }
.stars svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color var(--t-fast) var(--ease);
}
.faq-item.is-open { border-color: var(--brand-soft-border); }
.faq-q {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-5);
    background: none; border: none; cursor: pointer;
    text-align: left;
    font-size: 15px; font-weight: 600;
    color: var(--text-heading);
}
.faq-q svg { color: var(--text-subtle); transition: transform var(--t-base) var(--ease); flex: none; }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); color: var(--brand); }
.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--t-slow) var(--ease);
}
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p {
    padding: 0 var(--sp-5) var(--sp-5);
    font-size: 14.5px;
    color: var(--text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
    background: var(--gradient-brand);
    border-radius: var(--r-2xl);
    padding: var(--sp-16) var(--sp-12);
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-brand);
}
.cta-band::before {
    content: "";
    position: absolute; inset: -50% -20% auto auto;
    width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 66%);
}
.cta-band h2 { color: #fff; font-size: 36px; letter-spacing: var(--ls-tight); position: relative; z-index: 1; }
.cta-band p { color: rgba(255, 255, 255, .8); font-size: 16.5px; max-width: 540px; margin: var(--sp-3) auto var(--sp-8); position: relative; z-index: 1; }
.cta-band .btn-row { position: relative; z-index: 1; display: flex; gap: var(--sp-3); justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--jade-700); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .4); }
.cta-band .btn-primary:hover { background: #fff; color: var(--jade-800); filter: brightness(.97); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--sp-16) 0 var(--sp-8);
    margin-top: var(--sp-4);
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
    gap: var(--sp-10);
    padding-bottom: var(--sp-10);
    border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 13.5px; color: var(--text-muted); max-width: 300px; margin: var(--sp-4) 0 var(--sp-5); }
.footer-col h5 { font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-subtle); margin-bottom: var(--sp-4); }
.footer-col a {
    display: block;
    padding: 5px 0;
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}
.footer-col a:hover { color: var(--brand-text); }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
    padding-top: var(--sp-6);
    font-size: 12.5px;
    color: var(--text-subtle);
}
.footer-legal-note {
    margin-top: var(--sp-6);
    padding: var(--sp-4);
    border-radius: var(--r-md);
    background: var(--surface-sunken);
    border: 1px solid var(--border);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

.social-row { display: flex; gap: var(--sp-2); }
.social-row a {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--t-fast) var(--ease);
}
.social-row a:hover { color: var(--brand-text); border-color: var(--brand-soft-border); background: var(--brand-soft); }

/* --------------------------------------------------------------------------
   Legal / document pages
   -------------------------------------------------------------------------- */

.doc-hero {
    padding: var(--sp-16) 0 var(--sp-10);
    border-bottom: 1px solid var(--border);
    background: var(--canvas-tint);
}
.doc-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--sp-12);
    padding: var(--sp-12) 0 var(--sp-24);
    align-items: start;
}
.doc-toc { position: sticky; top: calc(72px + var(--sp-6)); }
.doc-toc h5 { font-size: 11px; font-weight: 700; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--text-subtle); margin-bottom: var(--sp-3); }
.doc-toc a {
    display: block;
    padding: 7px 12px;
    border-left: 2px solid var(--border);
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
}
.doc-toc a:hover { color: var(--text-heading); border-left-color: var(--border-strong); }

.doc-body { max-width: 720px; }
.doc-body h2 {
    font-size: 22px;
    margin: var(--sp-10) 0 var(--sp-3);
    scroll-margin-top: 100px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 16px; margin: var(--sp-6) 0 var(--sp-2); }
.doc-body p, .doc-body li { font-size: 15px; line-height: 1.7; color: var(--text-body); }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 var(--sp-4); }
.doc-body li { margin-bottom: 7px; }
.doc-body strong { color: var(--text-heading); font-weight: 700; }

/* --------------------------------------------------------------------------
   Auth pages
   -------------------------------------------------------------------------- */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}
.auth-aside {
    background: var(--gradient-deep);
    padding: var(--sp-12);
    display: flex; flex-direction: column; justify-content: space-between;
    color: rgba(255, 255, 255, .75);
    position: relative;
    overflow: hidden;
}
.auth-aside::before {
    content: "";
    position: absolute; inset: auto auto -20% -18%;
    width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(18, 162, 116, .3), transparent 68%);
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .logo-name, .auth-aside h2 { color: #fff; }
.auth-aside .logo-sub { color: rgba(255, 255, 255, .5); }
.auth-aside h2 { font-size: 30px; letter-spacing: var(--ls-tight); margin-bottom: var(--sp-4); }
.auth-aside p { color: rgba(255, 255, 255, .62); font-size: 15px; max-width: 400px; }

.auth-points { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-8); }
.auth-point { display: flex; gap: var(--sp-3); align-items: flex-start; }
.auth-point .tick {
    width: 24px; height: 24px; flex: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #6ee0bc;
    display: grid; place-items: center;
}
.auth-point .tick svg { width: 13px; height: 13px; stroke-width: 3; }
.auth-point strong { color: #fff; font-size: 14px; display: block; }
.auth-point span { font-size: 13px; color: rgba(255, 255, 255, .56); }

.auth-main {
    display: flex; align-items: center; justify-content: center;
    padding: var(--sp-10) var(--sp-6);
    background: var(--canvas);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card > p { color: var(--text-muted); margin-bottom: var(--sp-6); }

.auth-divider {
    display: flex; align-items: center; gap: var(--sp-3);
    margin: var(--sp-5) 0;
    font-size: 12px; color: var(--text-subtle);
}
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }

/* Return-target notice: tells someone WHY they landed on the sign-in page. */
.return-note {
    display: flex; align-items: center; gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    background: var(--info-soft);
    color: var(--info-text);
    font-size: 13px;
    margin-bottom: var(--sp-5);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-12); }
    .preview-frame { transform: none; }
    .preview-float-a { left: -12px; }
    .preview-float-b { right: -8px; }
    .split { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
    .split-reverse .split-media { order: 0; }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-8); }
    .footer-brand { grid-column: span 3; }
    .doc-layout { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
    .doc-toc { position: static; display: flex; gap: var(--sp-1); overflow-x: auto; padding-bottom: var(--sp-2); }
    .doc-toc h5 { display: none; }
    .doc-toc a { white-space: nowrap; border-left: none; border-bottom: 2px solid var(--border); }
    .auth { grid-template-columns: minmax(0, 1fr); }
    .auth-aside { display: none; }
}

@media (max-width: 900px) {
    .site-nav-links { display: none; }
    .nav-burger { display: grid; }
    .site-nav-actions .btn-hide-sm { display: none; }
    .metric-band { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
    .step::after { display: none; }
    .security-grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
    .security-panel { padding: var(--sp-8); }
    .feature-wide { grid-column: span 1; grid-template-columns: minmax(0, 1fr); }
    .cta-band { padding: var(--sp-10) var(--sp-6); }
    .cta-band h2 { font-size: 27px; }
    .section { padding: var(--sp-16) 0; }
    .section-head h2 { font-size: 27px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-brand { grid-column: span 2; }
    .preview-float { display: none; }
    .hero { padding-top: var(--sp-12); }
    .metric-band { grid-template-columns: repeat(2, 1fr); }
    .metric { padding: var(--sp-5) var(--sp-3); }
    .metric-value { font-size: 24px; }
}

/* Four-across steps, declared as a class so the phone breakpoint can win.
   As an inline style this stayed four columns at 360px wide. */
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .steps-4 { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 640px) {
    .hero h1 { font-size: 34px; }
    .hero-sub { font-size: 16px; }
    .hero-cta { display: grid; grid-template-columns: minmax(0, 1fr); }
    .hero-trust { gap: var(--sp-2) var(--sp-4); }
    .cta-band .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); }
    .split { gap: var(--sp-8); }
}

/* The closing call to action is about joining the platform, not about a
   balance, so it takes the indigo half of the palette. It also stops the
   landing page ending on the same green it opened with. */
.cta-band {
    background: var(--gradient-indigo);
    box-shadow: var(--shadow-indigo);
}
.cta-band .btn-primary { color: var(--indigo-700); }
.cta-band .btn-primary:hover { color: var(--indigo-700); }

/* Feature tiles alternate down the grid so nine of them are not a green wall. */
.feature:nth-child(3n-1) .ic-tile { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.feature:nth-child(3n-1):hover .ic-tile { background: var(--gradient-indigo); color: #fff; }
.feature:nth-child(3n-2):hover .ic-tile { background: var(--gradient-brand); color: #fff; }
.feature .ic-tile { transition: background var(--t-base) var(--ease), color var(--t-base) var(--ease); }

/* Steps: the counter takes indigo, so the numbered spine reads as structure
   rather than as another money cue. */
.step::before { color: var(--accent-text); }
