/* ============================================================================
   Gara — Larp design system
   Shared across every page on garapremium.app.
   Mirrors the React Native app: AuroraBackground variant="home" + GlassCardBg.
   ============================================================================ */

/* ----------------------------------------------------------------------------
   1. Reset
---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
    min-height: 100vh;
    background: #0A0118;
    color: #FFFFFF;
    font-family: var(--font);
    font-weight: 500;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: transparent; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #A78BFA; outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

/* ----------------------------------------------------------------------------
   2. Design tokens
---------------------------------------------------------------------------- */
:root {
    --bg-app: #0A0118;
    --bg-canvas: #050010;
    --bg-deep: #03000B;

    --glass-fill: rgba(14, 10, 26, 0.25);
    --glass-fill-strong: rgba(14, 10, 26, 0.45);
    --glass-fill-faint: rgba(14, 10, 26, 0.12);

    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: rgba(255, 255, 255, 0.65);
    --text-faint: rgba(255, 255, 255, 0.45);
    --icon-glass: #E5E7EB;

    --brand-300: #C4B5FD;
    --brand-400: #A78BFA;
    --brand-500: #8B5CF6;
    --brand-600: #7C3AED;
    --brand-700: #6D28D9;

    --win: #22C55E;
    --win-soft: #4ADE80;
    --loss: #F43F5E;
    --loss-soft: #F87171;
    --warning: #FB923C;
    --info: #60A5FA;

    --hairline: rgba(255, 255, 255, 0.08);
    --hairline-strong: rgba(255, 255, 255, 0.14);

    --radius-card: 20px;
    --radius-hero: 24px;
    --radius-sm: 12px;
    --radius-md: 14px;
    --radius-pill: 999px;

    --blur-glass: 20px;

    --shadow-brand: 0 12px 40px rgba(139, 92, 246, 0.28);
    --shadow-card: 0 18px 60px rgba(0, 0, 0, 0.35);

    --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Visual height of the floating nav pill from the top of the viewport
       (outer 22px padding + ~78px pill). Used by every section that needs
       to clear the nav (.hero, .page-header, .legal-toc, etc.) — keep
       this in sync with `.nav` padding + `.nav-inner` content height. */
    --nav-height: 112px;
    --container-max: 1200px;
    --container-narrow: 920px;
    --container-pad: 24px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------------------------
   3. Aurora background (matches AuroraBackground variant="home")
---------------------------------------------------------------------------- */
.aurora-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: #0A0118;
}
.aurora-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(85% 75% at 50% 50%, #16102A 0%, #0A0418 60%, #03000B 100%);
}
.aurora-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg,
        rgba(3, 0, 11, 0.72) 0%,
        rgba(3, 0, 11, 0.35) 18%,
        rgba(3, 0, 11, 0) 40%,
        rgba(3, 0, 11, 0) 60%,
        rgba(3, 0, 11, 0.38) 82%,
        rgba(2, 0, 7, 0.78) 100%);
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
    z-index: 1;
}
.aurora-blob.b1 {
    width: 80vmax; height: 80vmax; left: -15vmax; top: 10vmax;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 45%, transparent 100%);
    animation: aurora-drift1 24s ease-in-out infinite alternate;
}
.aurora-blob.b2 {
    width: 70vmax; height: 70vmax; left: 30vmax; top: 20vmax;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.035) 45%, transparent 100%);
    animation: aurora-drift2 28s ease-in-out infinite alternate;
}
.aurora-blob.b3 {
    width: 60vmax; height: 60vmax; left: 5vmax; top: -5vmax;
    background: radial-gradient(circle, rgba(245, 243, 250, 0.07) 0%, rgba(245, 243, 250, 0.025) 45%, transparent 100%);
    animation: aurora-drift3 32s ease-in-out infinite alternate;
}
.aurora-blob.b4 {
    width: 70vmax; height: 70vmax; left: -10vmax; top: 35vmax;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.018) 45%, transparent 100%);
    animation: aurora-drift4 26s ease-in-out infinite alternate;
}
@keyframes aurora-drift1 { from { transform: translate(-26px,  14px) scale(0.95); } to { transform: translate( 26px, -14px) scale(1.08); } }
@keyframes aurora-drift2 { from { transform: translate(-30px,  16px) scale(0.95); } to { transform: translate( 30px, -16px) scale(1.08); } }
@keyframes aurora-drift3 { from { transform: translate(-22px,  12px) scale(0.95); } to { transform: translate( 22px, -12px) scale(1.08); } }
@keyframes aurora-drift4 { from { transform: translate(-24px,  13px) scale(0.95); } to { transform: translate( 24px, -13px) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .aurora-blob { animation: none; } }

/* ----------------------------------------------------------------------------
   3a. Aurora "profile" variant (matches AuroraBackground variant="profile")
   Bright lavender mist crowning the top, fading to near-black at the bottom.
   Opt-in via `.aurora-bg.aurora-bg--profile` on the wrapper.
---------------------------------------------------------------------------- */
.aurora-bg--profile { background: #0A0118; }

.aurora-bg--profile::before {
    background: radial-gradient(110% 85% at 50% 0%,
        #231745 0%,
        #130828 40%,
        #04000F 100%);
}

.aurora-bg--profile::after {
    background: linear-gradient(180deg,
        rgba(4, 0, 15, 0) 0%,
        rgba(4, 0, 15, 0.12) 35%,
        rgba(4, 0, 15, 0.45) 65%,
        rgba(3, 0, 8, 0.82) 100%);
}

.aurora-bg--profile .aurora-blob.b1 {
    width: 78vmax; height: 78vmax; left: 16vmax; top: -28vmax;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.42) 0%,
        rgba(255, 255, 255, 0.15) 45%,
        transparent 100%);
}
.aurora-bg--profile .aurora-blob.b2 {
    width: 68vmax; height: 68vmax; left: -28vmax; top: -16vmax;
    background: radial-gradient(circle,
        rgba(216, 200, 255, 0.26) 0%,
        rgba(216, 200, 255, 0.09) 45%,
        transparent 100%);
}
.aurora-bg--profile .aurora-blob.b3 {
    width: 58vmax; height: 58vmax; left: 3vmax; top: -3vmax;
    background: radial-gradient(circle,
        rgba(237, 228, 255, 0.18) 0%,
        rgba(237, 228, 255, 0.06) 45%,
        transparent 100%);
}
.aurora-bg--profile .aurora-blob.b4 {
    width: 50vmax; height: 50vmax; left: 30vmax; top: 6vmax;
    background: radial-gradient(circle,
        rgba(155, 123, 255, 0.14) 0%,
        rgba(155, 123, 255, 0.05) 45%,
        transparent 100%);
}

/* ----------------------------------------------------------------------------
   3a-2. Aurora "league" variant (matches AuroraBackground variant="tags-league")
   Cool blue fog crowning the top, fading dark only at the very bottom.
---------------------------------------------------------------------------- */
.aurora-bg--league { background: #0A0118; }
.aurora-bg--league::before {
    background: radial-gradient(95% 90% at 50% 12%,
        #13243F 0%,
        #0A0418 60%,
        #03000B 100%);
}
.aurora-bg--league::after {
    background: linear-gradient(180deg,
        rgba(3, 0, 11, 0) 0%,
        rgba(3, 0, 11, 0) 55%,
        rgba(3, 0, 11, 0.22) 82%,
        rgba(2, 0, 7, 0.5) 100%);
}
.aurora-bg--league .aurora-blob.b1 {
    width: 80vmax; height: 80vmax; left: -10vmax; top: -11vmax;
    background: radial-gradient(circle,
        rgba(96, 165, 250, 0.32) 0%,
        rgba(96, 165, 250, 0.11) 45%,
        transparent 100%);
}
.aurora-bg--league .aurora-blob.b2 {
    width: 71vmax; height: 71vmax; left: 19vmax; top: -5vmax;
    background: radial-gradient(circle,
        rgba(96, 165, 250, 0.26) 0%,
        rgba(96, 165, 250, 0.09) 45%,
        transparent 100%);
}
.aurora-bg--league .aurora-blob.b3 {
    width: 62vmax; height: 62vmax; left: 3vmax; top: 7vmax;
    background: radial-gradient(circle,
        rgba(191, 219, 254, 0.18) 0%,
        rgba(191, 219, 254, 0.06) 45%,
        transparent 100%);
}
.aurora-bg--league .aurora-blob.b4 {
    width: 74vmax; height: 74vmax; left: -6vmax; top: 24vmax;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 45%,
        transparent 100%);
}

/* ----------------------------------------------------------------------------
   3a-3. Aurora "profit" variant (matches AuroraBackground variant="tags-team")
   Green profit-mood fog crowning the top — same family as the in-app
   home-profit ribbon but full-screen instead of a transparent overlay.
---------------------------------------------------------------------------- */
.aurora-bg--profit { background: #0A0118; }
.aurora-bg--profit::before {
    background: radial-gradient(95% 90% at 50% 12%,
        #0F2A1A 0%,
        #0A0418 60%,
        #03000B 100%);
}
.aurora-bg--profit::after {
    background: linear-gradient(180deg,
        rgba(3, 0, 11, 0) 0%,
        rgba(3, 0, 11, 0) 55%,
        rgba(3, 0, 11, 0.22) 82%,
        rgba(2, 0, 7, 0.5) 100%);
}
.aurora-bg--profit .aurora-blob.b1 {
    width: 80vmax; height: 80vmax; left: -10vmax; top: -11vmax;
    background: radial-gradient(circle,
        rgba(34, 197, 94, 0.32) 0%,
        rgba(34, 197, 94, 0.11) 45%,
        transparent 100%);
}
.aurora-bg--profit .aurora-blob.b2 {
    width: 71vmax; height: 71vmax; left: 19vmax; top: -5vmax;
    background: radial-gradient(circle,
        rgba(34, 197, 94, 0.26) 0%,
        rgba(34, 197, 94, 0.09) 45%,
        transparent 100%);
}
.aurora-bg--profit .aurora-blob.b3 {
    width: 62vmax; height: 62vmax; left: 3vmax; top: 7vmax;
    background: radial-gradient(circle,
        rgba(187, 247, 208, 0.18) 0%,
        rgba(187, 247, 208, 0.06) 45%,
        transparent 100%);
}
.aurora-bg--profit .aurora-blob.b4 {
    width: 74vmax; height: 74vmax; left: -6vmax; top: 24vmax;
    background: radial-gradient(circle,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.02) 45%,
        transparent 100%);
}

/* ----------------------------------------------------------------------------
   3a-4. Aurora "blacklist" variant (matches AuroraBackground variant="blacklist")
   Smoky crimson fog on a near-black base — dark crown + dark bottom
   with a lit middle, same "danger" mood as the in-app blacklist screens.
---------------------------------------------------------------------------- */
.aurora-bg--blacklist { background: #000000; }
.aurora-bg--blacklist::before {
    background: radial-gradient(85% 75% at 50% 50%,
        #1A0608 0%,
        #0A0203 60%,
        #000000 100%);
}
.aurora-bg--blacklist::after {
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.35) 18%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0) 60%,
        rgba(0, 0, 0, 0.4) 82%,
        rgba(0, 0, 0, 0.82) 100%);
}
.aurora-bg--blacklist .aurora-blob.b1 {
    width: 80vmax; height: 80vmax; left: -9vmax; top: 11vmax;
    background: radial-gradient(circle,
        rgba(220, 38, 38, 0.14) 0%,
        rgba(220, 38, 38, 0.05) 45%,
        transparent 100%);
}
.aurora-bg--blacklist .aurora-blob.b2 {
    width: 71vmax; height: 71vmax; left: 19vmax; top: 17vmax;
    background: radial-gradient(circle,
        rgba(239, 68, 68, 0.10) 0%,
        rgba(239, 68, 68, 0.035) 45%,
        transparent 100%);
}
.aurora-bg--blacklist .aurora-blob.b3 {
    width: 62vmax; height: 62vmax; left: 3vmax; top: 5vmax;
    background: radial-gradient(circle,
        rgba(185, 28, 28, 0.09) 0%,
        rgba(185, 28, 28, 0.03) 45%,
        transparent 100%);
}
.aurora-bg--blacklist .aurora-blob.b4 {
    width: 74vmax; height: 74vmax; left: -6vmax; top: 28vmax;
    background: radial-gradient(circle,
        rgba(127, 29, 29, 0.07) 0%,
        rgba(127, 29, 29, 0.025) 45%,
        transparent 100%);
}

/* ----------------------------------------------------------------------------
   3a-5. Aurora scroll-stack (home page only)
   Five `.aurora-bg--scroll` layers live inside `.aurora-stack`. Each is
   `position: fixed` and z-index: -1 (inherited from `.aurora-bg`), and
   starts hidden — JS drives opacity per scroll progress to crossfade
   between the variants. The "home" layer starts visible so the page
   renders correctly before JS hydrates the scroll listener.
---------------------------------------------------------------------------- */
.aurora-bg--scroll {
    opacity: 0;
    visibility: hidden;
    will-change: opacity;
}
.aurora-bg--scroll[data-aurora="home"] {
    opacity: 1;
    visibility: visible;
}
@media (prefers-reduced-motion: reduce) {
    /* Keep the static home aurora — JS bails out on its own, so this
       only guards against any inline opacity that may have been left
       behind from a previous session/page state. */
    .aurora-bg--scroll { opacity: 0 !important; visibility: hidden !important; }
    .aurora-bg--scroll[data-aurora="home"] { opacity: 1 !important; visibility: visible !important; }
}

/* ----------------------------------------------------------------------------
   3b. Shooting stars (matches the onboarding intro-slide animation)
   Six staggered diagonal streaks travelling from off-left to off-right,
   each with a glowing head + soft trailing tail. Clipped to the hero so
   they only appear in the landing viewport.
---------------------------------------------------------------------------- */
.shooting-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    /* Behind hero copy/media (which lifts itself to z-index: 2), in
       front of the fixed aurora background that lives at z-index: -1. */
    z-index: 0;
}
.star {
    position: absolute;
    width: var(--star-len, 70px);
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.18) 55%,
        var(--star-color, #FFFFFF) 100%);
    opacity: 0;
    will-change: transform, opacity;
    animation: star-shoot 7s linear var(--star-delay, 0s) infinite;
}
.star::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--star-color, #FFFFFF);
    box-shadow:
        0 0 6px 1px var(--star-color, #FFFFFF),
        0 0 14px 2px rgba(255, 255, 255, 0.35);
    transform: translateY(-50%);
}

.star.s1  { top: 18%; left: -10%; --star-color: #FFFFFF; --star-angle: 22deg; --star-dx: 130vw; --star-dy: 30vh; --star-delay: 0s;   }
.star.s2  { top: 38%; left: -10%; --star-color: #A78BFA; --star-angle: 18deg; --star-dx: 130vw; --star-dy: 24vh; --star-delay: 0.45s; }
.star.s3  { top:  8%; left: -10%; --star-color: #FFFFFF; --star-angle: 16deg; --star-dx: 130vw; --star-dy: 20vh; --star-delay: 0.9s;  }
.star.s4  { top: 52%; left: -10%; --star-color: #C4B5FD; --star-angle: 14deg; --star-dx: 130vw; --star-dy: 16vh; --star-delay: 1.35s; }
.star.s5  { top: 28%; left: -10%; --star-color: #FFFFFF; --star-angle: 24deg; --star-dx: 130vw; --star-dy: 34vh; --star-delay: 1.8s;  }
.star.s6  { top: 44%; left: -10%; --star-color: #A78BFA; --star-angle: 20deg; --star-dx: 130vw; --star-dy: 28vh; --star-delay: 2.25s; }
/* Second wave — different vertical bands, slightly varied angles + smaller
   streaks so the sky reads as busier without feeling repetitive. */
.star.s7  { top: 12%; left: -10%; --star-color: #FFFFFF; --star-angle: 19deg; --star-dx: 130vw; --star-dy: 26vh; --star-delay: 2.7s;  --star-len: 55px; }
.star.s8  { top: 60%; left: -10%; --star-color: #A78BFA; --star-angle: 13deg; --star-dx: 130vw; --star-dy: 14vh; --star-delay: 3.15s; --star-len: 60px; }
.star.s9  { top: 22%; left: -10%; --star-color: #C4B5FD; --star-angle: 26deg; --star-dx: 130vw; --star-dy: 38vh; --star-delay: 3.6s;  --star-len: 80px; }
.star.s10 { top: 48%; left: -10%; --star-color: #FFFFFF; --star-angle: 17deg; --star-dx: 130vw; --star-dy: 22vh; --star-delay: 4.05s; --star-len: 50px; }
.star.s11 { top:  4%; left: -10%; --star-color: #A78BFA; --star-angle: 21deg; --star-dx: 130vw; --star-dy: 32vh; --star-delay: 4.5s;  --star-len: 65px; }
.star.s12 { top: 34%; left: -10%; --star-color: #FFFFFF; --star-angle: 15deg; --star-dx: 130vw; --star-dy: 18vh; --star-delay: 4.95s; --star-len: 75px; }
.star.s13 { top: 56%; left: -10%; --star-color: #C4B5FD; --star-angle: 23deg; --star-dx: 130vw; --star-dy: 30vh; --star-delay: 5.4s;  --star-len: 60px; }
.star.s14 { top: 16%; left: -10%; --star-color: #FFFFFF; --star-angle: 12deg; --star-dx: 130vw; --star-dy: 12vh; --star-delay: 5.85s; --star-len: 45px; }

@keyframes star-shoot {
    /* Visible portion ≈ 20% of the 7s cycle (≈ 1.4s of streak time),
       matching the onboarding component's per-cycle visibility window. */
    0% {
        transform: translate(0, 0) rotate(var(--star-angle, 20deg));
        opacity: 0;
    }
    3%  { opacity: 1; }
    16% { opacity: 1; }
    20% {
        transform: translate(var(--star-dx, 130vw), var(--star-dy, 25vh)) rotate(var(--star-angle, 20deg));
        opacity: 0;
    }
    100% {
        transform: translate(var(--star-dx, 130vw), var(--star-dy, 25vh)) rotate(var(--star-angle, 20deg));
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .star { animation: none; opacity: 0; }
}

/* ----------------------------------------------------------------------------
   4. Layout primitives
---------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}
.container-narrow {
    width: 100%;
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-loose { padding: 128px 0; }

@media (max-width: 768px) {
    .section { padding: 72px 0; }
    .section-tight { padding: 48px 0; }
    .section-loose { padding: 88px 0; }
    :root { --container-pad: 20px; }
}
@media (max-width: 480px) {
    .section { padding: 56px 0; }
    .section-tight { padding: 40px 0; }
    .section-loose { padding: 72px 0; }
}

/* ----------------------------------------------------------------------------
   5. Typography
---------------------------------------------------------------------------- */
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #9CA3AF;
}

.section-title {
    font-size: clamp(32px, 4.5vw, 48px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.8px;
    color: var(--text-primary);
    margin-top: 16px;
}
.section-subtitle {
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 640px;
    margin-top: 16px;
}
.section-header {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 64px;
}
.section-header .section-subtitle { margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
    .section-header { margin-bottom: 48px; }
}

/* Tabular nums for any stat readout */
.num { font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------------------------
   6. Glass primitive (matches GlassCardBg)
---------------------------------------------------------------------------- */
.glass {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
}
.glass--hero { border-radius: var(--radius-hero); }
.glass--strong { background: var(--glass-fill-strong); }
.glass--faint { background: var(--glass-fill-faint); }
.glass--pill { border-radius: var(--radius-pill); }

/* ----------------------------------------------------------------------------
   7. Buttons
---------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), background 180ms var(--ease-out);
    white-space: nowrap;
    user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
    position: relative;
    background: rgba(196, 181, 253, 0.10);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    color: var(--brand-300);
    box-shadow:
        inset 0 0 0 1px rgba(196, 181, 253, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 32px rgba(124, 58, 237, 0.18);
    transition: background 180ms var(--ease-out), color 180ms var(--ease-out), box-shadow 220ms var(--ease-out), transform 180ms var(--ease-out);
}
.btn-primary:hover {
    background: rgba(196, 181, 253, 0.18);
    color: #FFFFFF;
    box-shadow:
        inset 0 0 0 1px rgba(196, 181, 253, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 14px 40px rgba(124, 58, 237, 0.32);
}

.btn-secondary {
    position: relative;
    overflow: hidden;
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    color: var(--text-primary);
}
.btn-secondary:hover { background: var(--glass-fill-strong); }

.btn-ghost {
    color: var(--text-muted);
    padding: 14px 18px;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg { padding: 17px 30px; font-size: 16px; border-radius: 16px; }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }

.btn[disabled],
.btn[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}
.btn[disabled]:hover,
.btn[aria-disabled="true"]:hover {
    box-shadow:
        inset 0 0 0 1px rgba(196, 181, 253, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 10px 32px rgba(124, 58, 237, 0.18);
    transform: none;
}

/* Store-style download buttons (App Store / Google Play)
   Big pill-shaped glass cards matching the reference: near-transparent
   dark fill, hairline border, backdrop blur, soft purple glow shadow,
   and a monochrome icon — same recipe as the in-app BottomTabBar /
   floating nav pill, just sized larger. */
/* Napper-style "buttonless" store badges: a flat, near-chromeless dark
   pill — just a subtle fill, no glassy blur, no purple glow, no heavy
   border — so the icon + two-line wordmark read as the badge itself
   rather than a chunky button. */
.store-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px 12px 16px;
    border-radius: 14px;
    color: var(--text-primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: none;
    transition: transform 180ms var(--ease-out), background 200ms var(--ease-out);
}
.store-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}
.store-btn .store-btn-icon { width: 28px; height: 28px; flex: 0 0 28px; color: var(--text-primary); }
.store-btn .store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    gap: 3px;
    font-family: var(--font);
}
/* Canonical Apple / Google store-badge typography: small mixed-case
   line above a chunky bold wordmark. */
.store-btn .store-btn-eyebrow {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1px;
    text-transform: none;
    color: var(--text-primary);
    line-height: 1;
}
.store-btn .store-btn-label {
    font-size: 20px;
    /* Napper's badge wordmarks are a medium weight, not bold — matching
       the official Google Play / App Store lockups. 700 read as far too
       heavy next to the reference. */
    font-weight: 500;
    letter-spacing: -0.2px;
    color: var(--text-primary);
    line-height: 1.05;
}

.store-btn[aria-disabled="true"] {
    cursor: not-allowed;
}
.store-btn[aria-disabled="true"]:hover { transform: none; }
.store-btn[aria-disabled="true"] .store-btn-icon { opacity: 0.95; }

@media (max-width: 480px) {
    .store-btn { gap: 11px; padding: 11px 18px 11px 14px; border-radius: 13px; }
    .store-btn .store-btn-icon { width: 26px; height: 26px; flex: 0 0 26px; }
    .store-btn .store-btn-eyebrow { font-size: 11px; }
    .store-btn .store-btn-label { font-size: 18px; }
}

.cta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------------------
   8. Navigation — Napper-style left-aligned pill
   The floating pill sits in the upper-left of the viewport (with a clear
   inset from the edge), NOT centered. Mirrors the napper.app layout where
   the brand + links pill is at the left and the right side stays open
   for a hero image / QR code.
---------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    /* Left-aligned: bigger left/right inset so the pill sits noticeably
       inside the viewport instead of hugging the edge. Matches the
       napper.app top bar — a clear top gap above the pill and a generous
       left inset. */
    padding: 32px clamp(28px, 6vw, 84px);
    text-align: left;
    pointer-events: none;
    transition: padding 220ms var(--ease-out);
}
.nav.is-scrolled { padding-top: 16px; padding-bottom: 16px; }

.nav-inner {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 34px;
    padding: 18px 30px 18px 32px;
    border-radius: var(--radius-pill);
    text-align: left;
    /* Matches the in-app BottomTabBar's glassmorphism: near-transparent
       fill with a hairline border + backdrop blur doing the glass work,
       plus a soft purple glow shadow. */
    background: rgba(14, 10, 26, 0.22);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow:
        0 4px 16px rgba(139, 92, 246, 0.12),
        0 8px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.nav.is-scrolled .nav-inner {
    background: rgba(14, 10, 26, 0.34);
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.16),
        0 10px 32px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
    flex-shrink: 0;
}
.nav-brand-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* drop-shadow (not box-shadow) so the purple glow follows the squircle's
       transparent corners instead of rendering as a hard rectangle behind it. */
    filter: drop-shadow(0 6px 18px rgba(139, 92, 246, 0.28));
}
.nav-brand-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-brand-wordmark { height: 30px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    padding: 13px 20px;
    font-size: 19px;
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-pill);
    transition: color 160ms var(--ease-out), background 160ms var(--ease-out);
}
.nav-link:hover { background: rgba(255, 255, 255, 0.06); }

.nav-cta {
    margin-left: 6px;
    padding: 14px 26px;
    font-size: 17px;
    border-radius: var(--radius-pill);
}

.nav-toggle {
    display: none;
    width: 38px; height: 38px;
    border-radius: var(--radius-pill);
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    transition: background 160ms var(--ease-out);
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle svg { width: 20px; height: 20px; }

.nav-mobile {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(10, 1, 24, 0.92);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    padding: calc(var(--nav-height) + 24px) var(--container-pad) 32px;
    display: none;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.nav-mobile.is-open { display: flex; opacity: 1; transform: none; }
.nav-mobile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 16px;
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass));
    backdrop-filter: blur(var(--blur-glass));
}
.nav-mobile-link svg { width: 18px; height: 18px; color: var(--icon-glass); }
.nav-mobile-cta { margin-top: 14px; padding: 18px; justify-content: center; }

@media (max-width: 880px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .nav-inner { padding: 8px 10px 8px 18px; }
}
@media (max-width: 480px) {
    .nav { padding: 12px 14px; }
    .nav-inner { padding: 6px 8px 6px 14px; }
}

/* ----------------------------------------------------------------------------
   9. Image slot — designed for Higgsfield-generated app screenshots
---------------------------------------------------------------------------- */
.image-slot {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-hero);
    background:
        radial-gradient(60% 50% at 50% 25%, rgba(139, 92, 246, 0.18) 0%, rgba(139, 92, 246, 0) 70%),
        linear-gradient(180deg, rgba(26, 15, 46, 0.55) 0%, rgba(10, 1, 24, 0.55) 100%);
    -webkit-backdrop-filter: blur(var(--blur-glass));
    backdrop-filter: blur(var(--blur-glass));
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-slot::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    background-position: center center;
    mask-image: radial-gradient(80% 60% at 50% 50%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(80% 60% at 50% 50%, #000 0%, transparent 80%);
    pointer-events: none;
    opacity: 0.6;
}
.image-slot__label {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 26px;
    border-radius: 14px;
    background: rgba(14, 10, 26, 0.5);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    text-align: center;
    color: var(--text-faint);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.image-slot__label-icon {
    width: 28px; height: 28px;
    color: var(--brand-300);
    opacity: 0.7;
}
.image-slot__label-dims {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* Aspect ratio modifiers (keeps layout stable when real image is dropped in) */
.image-slot--portrait { aspect-ratio: 9 / 19.5; max-width: 360px; margin: 0 auto; }
.image-slot--phone    { aspect-ratio: 9 / 19.5; }
.image-slot--media    { aspect-ratio: 9 / 15; }
.image-slot--quad     { aspect-ratio: 1 / 1; border-radius: 20px; }
.image-slot--landscape{ aspect-ratio: 16 / 11; }
.image-slot--feature  { aspect-ratio: 4 / 5; }
.image-slot--wide     { aspect-ratio: 4 / 3; }
.image-slot--square   { aspect-ratio: 1 / 1; }

.image-slot img,
.image-slot video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

/* Phone frame wrapper — wraps a portrait image-slot with a phone bezel */
.phone-frame {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 14px;
    border-radius: 52px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.phone-frame::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 28px;
    background: #050010;
    border-radius: 16px;
    z-index: 4;
}
.phone-frame .image-slot {
    border-radius: 40px;
    aspect-ratio: 9 / 19.5;
}
.phone-frame .image-slot img { border-radius: 40px; }

/* ----------------------------------------------------------------------------
   10. Feature cards / splits
---------------------------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.feature-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 1024px) { .feature-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  { .feature-grid-4 { grid-template-columns: 1fr; } }

.feature-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 260ms var(--ease-out), background 260ms var(--ease-out);
}
.feature-card:hover { transform: translateY(-3px); background: var(--glass-fill-strong); }
.feature-card__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(124, 58, 237, 0.12));
    color: var(--brand-300);
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card__title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}
.feature-card__body {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
}
.feature-card__slot {
    margin-top: 10px;
    border-radius: 14px;
    aspect-ratio: 4 / 3;
}

/* ---- Feature slideshow (one-at-a-time, with arrows + dots) ----
   Replaces the old 4-up grid for the "Built around how bettors actually
   work" section. Each slide is a single, much larger glass card with
   copy on one side and a big image-slot on the other. */
.feature-slider {
    position: relative;
}
.feature-slider__viewport {
    overflow: hidden;
    border-radius: var(--radius-card);
}
.feature-slider__track {
    display: flex;
    align-items: stretch;
    will-change: transform;
    transition: transform 520ms var(--ease-out);
}
.feature-slide {
    flex: 0 0 100%;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    padding: 56px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
}
.feature-slide__copy {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.feature-slide__icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(124, 58, 237, 0.12));
    color: var(--brand-300);
}
.feature-slide__icon svg { width: 28px; height: 28px; }
.feature-slide__title {
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.6px;
    line-height: 1.08;
    color: var(--text-primary);
}
.feature-slide__body {
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 460px;
}
.feature-slide__slot {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
}

.feature-slider__controls {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.feature-slider__arrow {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-glass);
    background: rgba(14, 10, 26, 0.42);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
        0 4px 16px rgba(139, 92, 246, 0.10),
        0 8px 28px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: background 200ms var(--ease-out), transform 200ms var(--ease-out), color 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.feature-slider__arrow:hover {
    background: rgba(14, 10, 26, 0.6);
    color: #FFFFFF;
    transform: scale(1.05);
}
.feature-slider__arrow:active { transform: scale(0.97); }
.feature-slider__arrow svg { width: 22px; height: 22px; }
.feature-slider__arrow[disabled] { opacity: 0.4; cursor: not-allowed; }
.feature-slider__arrow[disabled]:hover { transform: none; background: rgba(14, 10, 26, 0.42); }

.feature-slider__dots {
    display: flex;
    align-items: center;
    gap: 10px;
}
.feature-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    transition: width 240ms var(--ease-out), background 240ms var(--ease-out);
    cursor: pointer;
}
.feature-slider__dot:hover { background: rgba(255, 255, 255, 0.32); }
.feature-slider__dot.is-active {
    width: 28px;
    background: var(--brand-300);
}

@media (max-width: 880px) {
    .feature-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 36px 28px;
    }
    .feature-slide__body { max-width: none; }
    .feature-slider__controls { margin-top: 22px; gap: 14px; }
    .feature-slider__arrow { width: 46px; height: 46px; }
    .feature-slider__arrow svg { width: 20px; height: 20px; }
}
@media (max-width: 480px) {
    .feature-slide { padding: 28px 22px; }
}

/* Split layout (alternating L/R) */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.feature-split + .feature-split { margin-top: 96px; }
.feature-split.is-reversed .feature-split__media { order: -1; }

.feature-split__copy { max-width: 560px; }
.feature-split__title {
    font-size: clamp(36px, 4.6vw, 52px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.8px;
    margin-top: 16px;
}
.feature-split__body {
    margin-top: 22px;
    font-size: 19px;
    line-height: 1.65;
    color: var(--text-muted);
}

/* Four-slot media block (napper.app "Crunching data, crushing sleep"):
   two columns of stacked square cards, the right column raised above the
   left for the staggered offset. Sits inside a .feature-split__media cell
   so the copy stays vertically centred against it. */
.feature-quad {
    display: flex;
    align-items: flex-start;
    gap: clamp(12px, 1.4vw, 16px);
}
.feature-quad__col {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.4vw, 16px);
}
/* Left column sits lower, so the right column reads as raised. */
.feature-quad__col--low { margin-top: 56px; }

@media (max-width: 880px) {
    .feature-split { grid-template-columns: 1fr; gap: 40px; }
    .feature-split + .feature-split { margin-top: 72px; }
    .feature-split.is-reversed .feature-split__media { order: 0; }
    /* Drop the stagger on stacked mobile layout and keep the 2x2 grid
       from growing too large. */
    .feature-quad { max-width: 520px; margin: 0 auto; }
    .feature-quad__col--low { margin-top: 0; }
}

/* ----------------------------------------------------------------------------
   11. How it works (Napper-inspired timeline)
---------------------------------------------------------------------------- */
.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ---- Header: heading + subtitle at top ---- */
.hiw-header {
    text-align: center;
    margin-bottom: 56px;
}
.hiw-heading {
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 16px;
}
.hiw-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto;
}

/* ---- Body: two-column layout ---- */
.hiw-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    position: relative;
    align-items: start;
}

/* ---- Left column: toggle + timeline ---- */
.hiw-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
    position: relative;
    z-index: 2;
}

/* Toggle pill */
.hiw-toggle {
    display: inline-flex;
    position: relative;
    border-radius: 12px;
    padding: 4px;
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    width: fit-content;
}
.hiw-toggle__slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(124, 58, 237, 0.2));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}
.how-it-works.hiw--pending .hiw-toggle__slider {
    transform: translateX(100%);
}
.hiw-toggle__btn {
    position: relative;
    z-index: 1;
    padding: 8px 24px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.1px;
    cursor: pointer;
    transition: color 0.25s ease;
    border-radius: 9px;
}
.hiw-toggle__btn.is-active {
    color: #fff;
}
.hiw-toggle__btn:hover:not(.is-active) {
    color: #d1d5db;
}

/* Timeline container */
.hiw-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    padding-left: 36px;
}

/* Vertical progress line */
.hiw-progress {
    position: absolute;
    left: 5px;
    top: 24px;
    bottom: 24px;
    width: 2px;
}
.hiw-progress__track {
    position: absolute;
    inset: 0;
    border-radius: 1px;
    background: rgba(100, 140, 200, 0.15);
}
.hiw-progress__fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 1px;
    background: linear-gradient(180deg, rgba(100, 140, 200, 0.5), rgba(100, 140, 200, 0.1));
    transform-origin: top;
}

/* Individual step */
.hiw-step {
    position: relative;
}

/* Step dot on the progress track */
.hiw-step__dot {
    position: absolute;
    left: -36px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(100, 140, 200, 0.4);
    background: transparent;
    flex-shrink: 0;
    z-index: 1;
    transform: translateX(-0.5px);
}
.hiw-step[data-step="1"] .hiw-step__dot {
    background: #6B8EC0;
    border-color: #6B8EC0;
    box-shadow: 0 0 8px rgba(107, 142, 192, 0.4);
}

/* Step card (Napper-style background card) */
.hiw-step__card {
    border-radius: 16px;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Step label pill */
.hiw-step__label {
    display: inline-block;
    width: fit-content;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: rgba(140, 170, 210, 0.8);
    background: rgba(100, 140, 200, 0.08);
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 4px;
}
.hiw-step__title {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.3px;
    color: #fff;
    line-height: 1.3;
    transition: opacity 0.25s ease;
}
.hiw-step__desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    font-weight: 400;
    transition: opacity 0.25s ease;
}

/* Step 4: hidden by default, shown in pending mode */
.hiw-step--pending-only {
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.how-it-works.hiw--pending .hiw-step--pending-only {
    display: block;
    opacity: 1;
}

/* Text fade class used by JS during swap */
.hiw-step__title.is-fading,
.hiw-step__desc.is-fading {
    opacity: 0;
}

/* ---- Right column: phone mockup space ---- */
.hiw-phone-area {
    position: relative;
    min-height: 400px;
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
    .hiw-heading { font-size: 34px; }
}
@media (max-width: 880px) {
    .hiw-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hiw-phone-area {
        display: none;
    }
    .hiw-heading { font-size: 30px; }
    .hiw-header { margin-bottom: 40px; }
    .hiw-toggle { align-self: center; }
}
@media (max-width: 480px) {
    .hiw-heading { font-size: 26px; }
    .hiw-header { margin-bottom: 32px; }
    .hiw-step__card { padding: 20px 22px; }
    .hiw-step__title { font-size: 20px; }
}

/* ----------------------------------------------------------------------------
   12. FAQ accordion
---------------------------------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    transition: background 200ms var(--ease-out);
}
.faq-item.is-open { background: var(--glass-fill-strong); }
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    text-align: left;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}
.faq-question__icon {
    flex: 0 0 26px;
    width: 26px; height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-glass);
    transition: transform 240ms var(--ease-out);
}
.faq-item.is-open .faq-question__icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms var(--ease-in-out);
}
.faq-answer__inner {
    padding: 0 24px 24px;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--text-muted);
}
.faq-answer__inner p + p { margin-top: 12px; }

/* ----------------------------------------------------------------------------
   13. Testimonial cards
---------------------------------------------------------------------------- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 1024px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100%;
}
.testimonial-card__stars {
    display: inline-flex;
    gap: 2px;
    color: #FBBF24;
}
.testimonial-card__stars svg { width: 16px; height: 16px; }
.testimonial-card__quote {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    flex: 1;
}
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--hairline);
}
.testimonial-card__avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(60, 50, 100, 0.4));
    color: var(--brand-300);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.testimonial-card__meta { display: flex; flex-direction: column; gap: 2px; }
.testimonial-card__name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.testimonial-card__source {
    font-size: 12px;
    color: var(--text-faint);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.testimonial-card__source svg { width: 12px; height: 12px; }

/* ----------------------------------------------------------------------------
   14. Pricing cards
---------------------------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 880px;
    margin: 0 auto;
}
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-hero);
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.pricing-card--featured {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.18) 0%, var(--glass-fill) 60%);
    box-shadow: var(--shadow-brand);
}
.pricing-card__badge {
    position: absolute;
    top: 18px; right: 18px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #0A0118;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #C4B5FD, #A78BFA);
}
.pricing-card__name {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #9CA3AF;
}
.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.pricing-card__price-amount {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.4px;
}
.pricing-card__price-period { color: var(--text-muted); font-size: 16px; }
.pricing-card__sub { color: var(--text-muted); font-size: 14.5px; line-height: 1.5; }
.pricing-card__divider { height: 1px; background: var(--hairline); }
.pricing-card__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pricing-card__list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14.5px;
    color: var(--text-primary);
    line-height: 1.45;
}
.pricing-card__list-item svg { width: 18px; height: 18px; color: var(--brand-300); flex: 0 0 18px; margin-top: 1px; }
.pricing-card .btn { width: 100%; }

/* ----------------------------------------------------------------------------
   15. Trust strip
---------------------------------------------------------------------------- */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 32px;
    padding: 18px 22px;
    border-radius: var(--radius-pill);
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
}
.trust-strip__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
}
.trust-strip__item svg { width: 16px; height: 16px; color: var(--brand-300); }

/* ----------------------------------------------------------------------------
   16. Footer
---------------------------------------------------------------------------- */
.footer {
    position: relative;
    padding: 64px 0 32px;
    margin-top: 96px;
    border-top: 1px solid var(--hairline);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 880px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; max-width: 320px; }
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
    font-size: 14.5px;
    color: var(--text-muted);
    transition: color 160ms var(--ease-out);
}
.footer-col a:hover { color: var(--text-primary); }
.footer-col a[aria-disabled="true"] { color: var(--text-faint); cursor: not-allowed; }

.footer-bottom {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--hairline);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-faint);
}
.footer-gambling {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(254, 215, 170, 0.06);
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
    border: 1px solid rgba(251, 146, 60, 0.18);
}
.footer-gambling strong { color: #FED7AA; font-weight: 600; }
.footer-gambling a { color: var(--brand-300); }

/* ----------------------------------------------------------------------------
   17. Hero (landing)
---------------------------------------------------------------------------- */
.hero {
    position: relative;
    /* Napper leaves a clear gap below the nav pill, then vertically
       centres the copy against the tall media cards. We clear the pill
       (+ a comfortable gap) on top; the tall two-card media block makes
       the row tall enough that `align-items: center` floats the slogan
       around the vertical middle, exactly like the reference. */
    padding: calc(var(--nav-height) + 88px) 0 110px;
}
/* Anchor the hero to the viewport's left edge (no max-width centering)
   so the headline sits flush with the floating nav pill on wide screens —
   same way napper.app anchors its hero copy. With a centered container
   the text drifts inward by hundreds of pixels on >1280px monitors. */
.hero > .container {
    /* Match the nav's left inset exactly so the slogan, subtitle and store
       buttons start at the same x as the nav pill's left edge (napper.app
       aligns its hero copy with the pill like this). */
    padding-left: clamp(28px, 6vw, 84px);
    padding-right: clamp(28px, 6vw, 80px);
    max-width: none;
    /* Sits above the shooting-stars layer (z-index: 0). */
    position: relative;
    z-index: 2;
}
.hero-inner {
    display: grid;
    /* Give the copy column noticeably more room than the media column
       so the headline's first sentence "Track every bet." fits on a
       single line at our target font-size. With a balanced 1fr/1fr
       split it wraps onto two lines on a 1024px viewport, which is
       what produced the four-line layout. `minmax(0, …fr)` keeps the
       long second sentence from blowing the grid open. */
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(36px, 4vw, 72px);
    align-items: center;
}
/* Copy is vertically centred against the tall media cards (no negative
   tuck) so the slogan sits around the vertical middle like napper.app. */
.hero-copy {
    margin-top: 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass));
    backdrop-filter: blur(var(--blur-glass));
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--brand-300);
}
.hero-badge__dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--brand-400);
    box-shadow: 0 0 12px var(--brand-400);
}
.hero-title {
    margin-top: 8px;
    font-family: var(--font);
    /* Big, bold, Napper-style display headline. The cap (66px) + 4vw
       track is tuned so the two-word line "Smarter Tracking for" stays
       on a single line inside the copy column across breakpoints — a
       larger cap would wrap the longer first line onto a third line on
       ~1280-1440px monitors. */
    font-size: clamp(34px, 4vw, 66px);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -2px;
    color: var(--text-primary);
}
.hero-title .accent {
    font-style: normal;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}
.hero-sub {
    margin-top: 18px;
    max-width: 560px;
    /* Held at ~1/4 of the slogan size to mirror Napper's slogan-to-body
       ratio. */
    font-size: clamp(16px, 1.4vw, 18px);
    line-height: 1.6;
    color: var(--text-muted);
}
.hero-cta-row {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-meta {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-faint);
    font-size: 13px;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }

/* Hero product shot — dual-phone mockup (replaces the old two-slot layout). */
.hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 12px;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: -10%;
    z-index: -1;
    background: radial-gradient(60% 50% at 50% 50%, rgba(139, 92, 246, 0.4) 0%, rgba(139, 92, 246, 0) 70%);
    filter: blur(40px);
    opacity: 0.55;
}
.hero-media-img {
    display: block;
    width: 100%;
    max-width: min(680px, 100%);
    height: auto;
    /* Transparent floating-phones render — use a drop-shadow that follows
       the device silhouette rather than a card border/ring around the box. */
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
}

@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: left; }
    .hero-media { max-width: 560px; margin: 0 auto; padding-top: 20px; }
    .hero-copy { margin-top: 0; }
}

/* ----------------------------------------------------------------------------
   18. Final CTA
---------------------------------------------------------------------------- */
.final-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-hero);
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    padding: 64px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.final-cta::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(80% 60% at 50% 100%, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    pointer-events: none;
}
.final-cta__title {
    position: relative;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    letter-spacing: -0.6px;
    line-height: 1.1;
}
.final-cta__sub { position: relative; max-width: 540px; color: var(--text-muted); font-size: 17px; line-height: 1.55; }
.final-cta .cta-row { position: relative; justify-content: center; }
@media (max-width: 640px) { .final-cta { padding: 44px 22px; } }

/* ----------------------------------------------------------------------------
   19. Page header (legal / support)
---------------------------------------------------------------------------- */
.page-header {
    padding: calc(var(--nav-height) + 56px) 0 24px;
    text-align: center;
}
.page-header__eyebrow { display: inline-flex; }
.page-header__title {
    margin-top: 18px;
    font-family: var(--font);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 500;
    letter-spacing: -1.2px;
    line-height: 1.05;
    color: var(--text-primary);
}
.page-header__sub {
    margin: 18px auto 0;
    max-width: 620px;
    color: var(--text-muted);
    font-size: clamp(16px, 1.65vw, 19px);
    line-height: 1.55;
}

/* ----------------------------------------------------------------------------
   20. Legal layout (privacy / terms)
---------------------------------------------------------------------------- */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}
.legal-toc {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    padding: 22px;
    border-radius: 18px;
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    max-height: calc(100vh - var(--nav-height) - 48px);
    overflow: auto;
}
.legal-toc h4 {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 14px;
}
.legal-toc ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.legal-toc a {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.4;
}
.legal-toc a:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.04); }
.legal-toc a.is-active { color: var(--brand-300); background: rgba(139, 92, 246, 0.1); }

.legal-content {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-hero);
    background: var(--glass-fill);
    -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    backdrop-filter: blur(var(--blur-glass)) saturate(140%);
    padding: 56px 56px 64px;
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.7;
}
.legal-content > * + * { margin-top: 18px; }
.legal-content h2 {
    margin-top: 48px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.2;
    scroll-margin-top: calc(var(--nav-height) + 16px);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
    margin-top: 24px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}
.legal-content p { color: var(--text-muted); }
.legal-content strong { color: var(--text-primary); font-weight: 600; }
.legal-content a { color: var(--brand-300); }
.legal-content a:hover { color: var(--text-primary); }
.legal-content ul, .legal-content ol { padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.legal-content li { color: var(--text-muted); }
.legal-content li::marker { color: var(--brand-400); }
.legal-content hr {
    border: 0;
    border-top: 1px solid var(--hairline);
    margin: 36px 0;
}

.legal-callout {
    margin: 24px 0;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(139, 92, 246, 0.08);
    border-left: 3px solid var(--brand-500);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .legal-layout { grid-template-columns: 1fr; gap: 24px; }
    .legal-toc { position: relative; top: auto; max-height: none; }
}
@media (max-width: 640px) {
    .legal-content { padding: 36px 24px 40px; }
}

/* ----------------------------------------------------------------------------
   21. Cookie consent
---------------------------------------------------------------------------- */
.cookie-banner {
    position: fixed;
    inset: auto 24px 24px 24px;
    z-index: 1000;
    border-radius: 18px;
    background: rgba(10, 1, 24, 0.88);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--hairline);
    padding: 22px 24px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    display: none;
    flex-direction: column;
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner__row { display: flex; align-items: flex-start; gap: 14px; }
.cookie-banner__icon { width: 26px; height: 26px; color: var(--brand-300); flex-shrink: 0; }
.cookie-banner__title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cookie-banner__body { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.cookie-banner__body a { color: var(--brand-300); text-decoration: underline; }
.cookie-banner__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------------------
   22. Utility helpers
---------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-0 { margin-top: 0 !important; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.hidden { display: none !important; }

/* ----------------------------------------------------------------------------
   22b. Mission page — scattered photo collage + manifesto copy + columns
   Mirrors the "Our story" layout from the reference: three rounded,
   slightly-rotated photos collaged on one side; manifesto headline +
   body paragraphs on the other; three short pillars in a row beneath.
---------------------------------------------------------------------------- */
.mission-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
    padding-top: calc(var(--nav-height) - 8px);
}

.mission-collage {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 1 / 1.05;
}
.mission-collage__photo {
    position: absolute;
    overflow: hidden;
    border-radius: 22px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 600ms var(--ease-out);
}
.mission-collage__photo img,
.mission-collage__photo .image-slot {
    width: 100%;
    height: 100%;
    display: block;
}
.mission-collage__photo img {
    object-fit: cover;
}
.mission-collage__photo .image-slot {
    border-radius: 0;
    aspect-ratio: auto;
}
.mission-collage__photo--1 {
    top: 8%;
    left: 0;
    width: 46%;
    aspect-ratio: 4 / 5;
    transform: rotate(-5deg);
    z-index: 2;
}
.mission-collage__photo--2 {
    top: 0;
    right: 0;
    width: 54%;
    aspect-ratio: 4 / 5.4;
    transform: rotate(2deg);
    z-index: 3;
}
.mission-collage__photo--3 {
    bottom: 0;
    left: 22%;
    width: 48%;
    aspect-ratio: 4 / 4.6;
    transform: rotate(-3deg);
    z-index: 1;
}
.mission-collage:hover .mission-collage__photo--1 { transform: rotate(-6deg) translateY(-4px); }
.mission-collage:hover .mission-collage__photo--2 { transform: rotate(3deg) translateY(-4px); }
.mission-collage:hover .mission-collage__photo--3 { transform: rotate(-4deg) translateY(-4px); }

.mission-copy {
    max-width: 560px;
}
.mission-title {
    font-family: var(--font);
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 500;
    letter-spacing: -1.6px;
    line-height: 1.02;
    color: var(--text-primary);
}
.mission-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
}
.mission-body {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.mission-body p {
    font-size: clamp(15.5px, 1.4vw, 17.5px);
    line-height: 1.65;
    color: var(--text-muted);
}
.mission-body p strong {
    color: var(--text-primary);
    font-weight: 600;
}

.mission-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 5vw, 80px);
}
.mission-pillar__title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.15;
    color: var(--text-primary);
}
.mission-pillar__body {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

@media (max-width: 980px) {
    .mission-split {
        grid-template-columns: 1fr;
        gap: 56px;
        padding-top: calc(var(--nav-height) + 8px);
    }
    .mission-collage { max-width: 480px; }
    .mission-copy { max-width: none; }
}
@media (max-width: 720px) {
    .mission-pillars { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 480px) {
    .mission-collage { max-width: 360px; aspect-ratio: 1 / 1.1; }
}

/* ----------------------------------------------------------------------------
   23. Scroll-reveal animation
---------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"] { transition-delay: 480ms; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}
