/* ──────────────────────────────────────────────────────────────
   Route Mockup Kit · _kit.css
   Shared component layer for all /mockups/*.html pages.
   Mirrors iOS Theme.swift tokens and key component patterns
   so HTML facsimiles read as the real product.
   ────────────────────────────────────────────────────────────── */

/* ─── 1. Tokens (1:1 with Theme.swift) ─────────────────────── */
:root {
    /* App tokens (from AppColors init defaults in Theme.swift) */
    --bg:           #0a0f0d;
    --bg-light:     #121a16;
    --bg-lighter:   #1a251f;
    --bg-card:      #151d18;
    --bg-card-rgba: rgba(21, 29, 24, 0.92);
    --bg-elev:      rgba(18, 26, 22, 0.88);

    --text:           #f0f2f1;
    --text-secondary: #9ca89f;
    --text-muted:     #7a8580;

    --accent:        #2ecc71;
    --accent-dark:   #27ae60;
    --accent-soft:   rgba(46, 204, 113, 0.16);
    --accent-glow:   rgba(46, 204, 113, 0.45);
    --on-accent:     #07110c;

    --positive:      #2ecc71;
    --negative:      #e74c3c;
    --warning:       #f39c12;
    --info:          #5dade2;
    --blitz:         #33e6ff;

    --border:        #243830;
    --border-light:  #2d4338;

    /* Computed text variants (mirroring AppColors text helpers) */
    --accent-text:    #8af0b6;
    --negative-text:  #ffadad;
    --warning-text:   #ffd599;
    --info-text:      #b5dfff;
    --blitz-text:     #99f3ff;

    /* Radius + shadow */
    --radius:     22px;
    --radius-sm:  14px;
    --radius-xs:  10px;

    --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.28);
    --shadow-deep: 0 40px 80px rgba(0, 0, 0, 0.55);

    /* iOS chrome */
    --frame-radius:   46px;
    --screen-radius:  36px;

    /* Banner */
    --banner-h: 36px;
}

/* ─── 2. Position colors (1:1 with PositionColors.forPosition) ─ */
:root {
    --pos-qb-bg:    #2c5282;
    --pos-qb-text:  #90cdf4;
    --pos-rb-bg:    #285e47;
    --pos-rb-text:  #9ae6b4;
    --pos-wr-bg:    #744210;
    --pos-wr-text:  #fbd38d;
    --pos-te-bg:    #553c9a;
    --pos-te-text:  #b794f4;
    --pos-k-bg:     #4a5568;
    --pos-k-text:   #cbd5e0;
    --pos-def-bg:   #702459;
    --pos-def-text: #f687b3;
    --pos-flex-bg:  #2d3748;
    --pos-flex-text:#a0aec0;
}

/* ─── 3. Team theme presets (sample of 5 from the 33 in iOS) ── */
:root {
    /* Eagles midnight green */
    --team-phi-primary: #004C54;
    --team-phi-secondary: #A5ACAF;

    /* Bills royal */
    --team-buf-primary: #00338D;
    --team-buf-secondary: #C60C30;

    /* Chiefs red */
    --team-kc-primary: #E31837;
    --team-kc-secondary: #FFB81C;

    /* Cowboys */
    --team-dal-primary: #003594;
    --team-dal-secondary: #869397;

    /* 49ers */
    --team-sf-primary: #AA0000;
    --team-sf-secondary: #B3995D;
}

/* ─── 4. Reset + base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
                 "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Numeric tabular alignment for stats */
.tabular { font-variant-numeric: tabular-nums; }

/* ─── 5. Mockup banner (consistent across mockups) ────────── */
.kit-banner {
    position: sticky; top: 0; z-index: 200;
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 18px;
    background: linear-gradient(90deg, rgba(255, 196, 89, 0.18), rgba(255, 124, 54, 0.12));
    border-bottom: 1px solid rgba(255, 196, 89, 0.32);
    font-size: 0.78rem; color: var(--warning-text);
    font-weight: 700; letter-spacing: 0.04em;
}
.kit-banner span:last-child {
    color: var(--text-muted); font-weight: 600; letter-spacing: 0;
}

/* ─── 6. iOS Chrome ───────────────────────────────────────── */
.ios-frame {
    position: relative;
    width: 390px;
    max-width: 100%;
    border-radius: var(--frame-radius);
    padding: 12px;
    background: linear-gradient(155deg, #1a251f, #0a0f0d 80%);
    border: 1px solid rgba(45, 67, 56, 0.92);
    box-shadow: var(--shadow-deep);
}
.ios-frame.compact { width: 320px; }

.ios-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 19.5;
    border-radius: var(--screen-radius);
    overflow: hidden;
    background:
        radial-gradient(800px 460px at 50% -20%, rgba(46, 204, 113, 0.14) 0%, transparent 60%),
        radial-gradient(640px 360px at 100% 0%, rgba(93, 173, 226, 0.10) 0%, transparent 60%),
        var(--bg);
    border: 1px solid rgba(36, 56, 48, 0.82);
    display: flex;
    flex-direction: column;
}

.ios-status-bar {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 22px 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text);
    z-index: 5;
}
.ios-status-bar .ios-time { font-variant-numeric: tabular-nums; }
.ios-status-bar .ios-icons {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text);
}
.ios-status-bar .ios-icons svg { width: 16px; height: 12px; }

.ios-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 28px;
    border-radius: 999px;
    background: #000;
    z-index: 6;
}

.ios-home-indicator {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    padding: 6px 0 8px;
}
.ios-home-indicator::after {
    content: "";
    width: 134px;
    height: 5px;
    border-radius: 999px;
    background: var(--text);
    opacity: 0.95;
}

.ios-app-area {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* ─── 6b. Screenshot mode ──────────────────────────────────
   Swap any HTML facsimile for a real iOS simulator screenshot.
   Usage:
     <div class="ios-screen from-screenshot">
       <div class="ios-notch"></div>
       <img class="ios-shot" src="../assets/screenshots/app-big-board.png" alt="">
     </div>
   The image fills the screen and the notch overlay sits on top.
   No status bar / tab bar markup needed — the screenshot already includes them.
   ────────────────────────────────────────────────────────── */
.ios-screen.from-screenshot {
    /* image fills the rounded screen exactly */
    background: #000;
    overflow: hidden;
}

.ios-screen.from-screenshot .ios-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* preserve sharpness */
    image-rendering: -webkit-optimize-contrast;
    z-index: 1;
}

/* Screenshot mode uses the captured app chrome directly. */

/* ─── 6c. Device frame (SVG) ──────────────────────────────
   Vector iPhone frame (assets/frames/iphone.svg). Crisp at any
   zoom or rotation, no raster artifacts.

   Usage:
     <div class="ios-frame device-frame">
       <div class="ios-screen from-screenshot">
         <img class="ios-shot" src="./assets/screenshots/app-big-board.png">
       </div>
     </div>

   SVG canvas is 320×660. Screen interior sits at top 3.64% /
   left 6.88% / right 6.88% / bottom 4.24%. Unlike the deprecated
   .png-mock, the SVG does NOT draw a Dynamic Island. HTML-rendered
   mock screens can use the kit's .ios-notch overlay; screenshot mode
   hides it because captured screenshots already include native chrome.

   Legacy alias: .png-mock still works as an alias for .device-frame.
   ────────────────────────────────────────────────────────── */
.ios-frame.device-frame,
.ios-frame.png-mock {
    background: none;
    border: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: 320 / 660;     /* matches iphone.svg viewBox */
    width: 320px;                /* configurable per use */
}

.ios-frame.device-frame::before,
.ios-frame.png-mock::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("./assets/frames/iphone.svg") center / contain no-repeat;
    z-index: 1;
    pointer-events: none;
}

.ios-frame.device-frame .ios-screen,
.ios-frame.png-mock .ios-screen {
    position: absolute;
    top: 3.64%;                  /* SVG screen interior position */
    left: 6.88%;
    right: 6.88%;
    bottom: 4.24%;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    border: 0;
    /* Matches the SVG's inner screen-surround rx=46 (~52px at frame width 360px).
       Using asymmetric % so x and y radii both land near 52px and the .ios-screen
       overlay's corners line up with the SVG's screen-rect corners — preventing
       the "ghosted inner rectangle" caused by curvature mismatch. */
    border-radius: 17% / 7.5%;
    background: #000;
    z-index: 2;
    overflow: hidden;
}

/* Notch overlay sits on top of HTML-rendered screen content. Screenshot
   mode hides it so we don't stack synthetic chrome over captured chrome. */
.ios-frame.device-frame .ios-notch,
.ios-frame.png-mock .ios-notch {
    z-index: 6;
}

.ios-screen.from-screenshot > .ios-notch,
.ios-screen.from-screenshot > .ios-status-bar {
    display: none;
}

.ios-screen.from-screenshot.hero-screenshot .ios-status-mask {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    height: 7.4%;
    padding: 4.1% 22px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    color: #f6fbf7;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: #050b08;
    pointer-events: none;
}

.ios-status-mask .ios-time {
    font-variant-numeric: tabular-nums;
}

.ios-status-mask .ios-icons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ios-status-mask .ios-icons svg {
    width: 12px;
    height: 9px;
    fill: currentColor;
    stroke: currentColor;
}

.ios-status-mask .ios-icons svg:last-child {
    width: 20px;
}

/* Placeholder when no real screenshot is dropped in yet */
.ios-shot-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background:
        repeating-linear-gradient(45deg,
            rgba(46, 204, 113, 0.04) 0 12px,
            rgba(46, 204, 113, 0.08) 12px 24px),
        rgba(8, 13, 11, 0.92);
    color: var(--text-muted);
    font-size: 0.86rem;
    text-align: center;
    padding: 32px;
}
.ios-shot-placeholder strong {
    color: var(--text-secondary);
    font-size: 1rem;
    letter-spacing: -0.01em;
}
.ios-shot-placeholder code {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 10px;
    border-radius: 6px;
    color: var(--info-text);
    font-size: 0.78rem;
}

/* ─── 7. iOS bottom tab bar (5 tabs, mirroring app shell) ── */
.tab-bar {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    padding: 6px 8px 4px;
    border-top: 1px solid var(--border);
    background: rgba(8, 13, 11, 0.92);
    backdrop-filter: blur(20px);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 0;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: 0.18s ease;
}
.tab-item.active { color: var(--accent); }
.tab-item .tab-icon {
    width: 22px; height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.tab-item svg { width: 22px; height: 22px; fill: currentColor; }
.tab-item .tab-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ─── 8. App modal header (back chevron + title + action) ── */
.app-modal-header {
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    gap: 8px;
    align-items: center;
    padding: 10px 14px 14px;
    border-bottom: 1px solid var(--border);
}
.app-modal-header .back-chev {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 999px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.18s ease;
}
.app-modal-header .back-chev:hover {
    background: var(--bg-elev);
    color: var(--text);
}
.app-modal-header .back-chev svg { width: 18px; height: 18px; fill: currentColor; }
.app-modal-header h2 {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.app-modal-header .action {
    justify-self: end;
    background: transparent;
    border: 0;
    color: var(--accent-text);
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    padding: 8px 6px;
}

/* ─── 9. Big Board surface ────────────────────────────────── */
.bb-toolbar {
    padding: 12px 14px 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bb-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 0.84rem;
}
.bb-search svg { width: 14px; height: 14px; fill: currentColor; }

.bb-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bb-filter {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.18s ease;
}
.bb-filter.active {
    background: var(--accent);
    color: var(--on-accent);
    border-color: var(--accent);
}

.bb-list {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 14px 14px;
}

.bb-tier {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 4px 2px;
    color: var(--text-muted);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.bb-tier::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* ─── 10. Player row (mirrors PlayerRow.swift / DraftTab row) ── */
.player-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    background: rgba(18, 26, 22, 0.74);
    border: 1px solid rgba(45, 67, 56, 0.78);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease;
    will-change: transform;
}

.player-row .pos-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 28px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.player-row .pos-chip.QB  { background: var(--pos-qb-bg);  color: var(--pos-qb-text);  }
.player-row .pos-chip.RB  { background: var(--pos-rb-bg);  color: var(--pos-rb-text);  }
.player-row .pos-chip.WR  { background: var(--pos-wr-bg);  color: var(--pos-wr-text);  }
.player-row .pos-chip.TE  { background: var(--pos-te-bg);  color: var(--pos-te-text);  }
.player-row .pos-chip.K   { background: var(--pos-k-bg);   color: var(--pos-k-text);   }
.player-row .pos-chip.DEF { background: var(--pos-def-bg); color: var(--pos-def-text); }

.player-row .meta {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}
.player-row .rank {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    min-width: 24px;
}
.player-row .info { display: grid; gap: 2px; min-width: 0; }
.player-row .name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.player-row .stats {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    display: flex;
    gap: 8px;
}
.player-row .stats .sep { opacity: 0.5; }
.player-row .stats .adp { color: var(--info-text); font-weight: 700; }
.player-row .stats .proj { color: var(--accent-text); font-weight: 700; }

.player-row.featured {
    background: linear-gradient(120deg, rgba(46, 204, 113, 0.22), rgba(93, 173, 226, 0.14));
    border-color: rgba(46, 204, 113, 0.55);
    box-shadow: 0 14px 26px rgba(46, 204, 113, 0.18);
}
.player-row.featured .rank { color: var(--accent-text); }

/* Headshot disc (optional) */
.headshot {
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--text);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    background: var(--bg-light);
}

/* ─── 11. Delta badges (Big Board +N ↑ / -N ↓) ────────────── */
.delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: background 0.4s ease, color 0.4s ease;
}
.delta-up      { color: var(--accent-text);   background: rgba(46, 204, 113, 0.18); }
.delta-down    { color: var(--negative-text); background: rgba(231, 76, 60, 0.16);  }
.delta-neutral { color: var(--text-muted);    background: rgba(122, 133, 128, 0.14);}

/* ─── 12. Live status indicators ──────────────────────────── */
.live-dot {
    position: relative;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
    display: inline-flex;
}
.live-dot::after {
    content: "";
    position: absolute; inset: -3px;
    border-radius: 50%;
    border: 1px solid rgba(46, 204, 113, 0.32);
    animation: live-ring 2.2s ease-out infinite;
}
@keyframes live-ring {
    0%   { transform: scale(0.85); opacity: 0.85; }
    100% { transform: scale(1.6);  opacity: 0; }
}

.beta-stripe {
    position: relative;
    width: 22px; height: 11px;
    border-radius: 4px;
    background:
        repeating-linear-gradient(45deg,
            var(--info) 0 4px,
            transparent 4px 8px);
    flex: 0 0 auto;
}

.preview-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px; height: 14px;
    border-radius: 50%;
    border: 1.5px dashed rgba(154, 168, 159, 0.6);
    color: var(--text-muted);
    font-size: 0.6rem;
    flex: 0 0 auto;
}

/* Status pill (matches mockup C taxonomy) */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.status-pill.live    { background: rgba(46, 204, 113, 0.18);  color: var(--accent-text);   }
.status-pill.beta    { background: rgba(93, 173, 226, 0.18);  color: var(--info-text);     }
.status-pill.preview {
    background: transparent;
    color: var(--text-muted);
    border: 1px dashed rgba(122, 133, 128, 0.5);
}

/* Card border treatments per status */
.app-card.live {
    border: 1px solid rgba(46, 204, 113, 0.4);
    background: linear-gradient(180deg, rgba(10, 15, 13, 0.86), rgba(8, 13, 11, 0.96));
}
.app-card.live::before {
    content: "";
    position: absolute; top: 0; left: 22px; right: 22px;
    height: 2px; border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(46, 204, 113, 0.7), transparent);
}
.app-card.beta {
    border: 1px solid rgba(93, 173, 226, 0.34);
    background: linear-gradient(180deg, rgba(10, 15, 13, 0.86), rgba(8, 13, 11, 0.96));
}
.app-card.beta::before {
    content: "";
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 4px; border-radius: var(--radius) 0 0 var(--radius);
    background: linear-gradient(180deg, var(--info), rgba(93, 173, 226, 0.35));
}
.app-card.preview {
    border: 1.5px dashed rgba(122, 133, 128, 0.45);
    background: rgba(10, 15, 13, 0.58);
    opacity: 0.92;
}

/* ─── 13. Draft top bar (round / pick / clock) ─────────────── */
.draft-top-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(46, 204, 113, 0.06);
    gap: 12px;
}

.draft-top-bar.bot { background: rgba(93, 173, 226, 0.06); }

.team-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    font-size: 0.96rem;
    background: rgba(46, 204, 113, 0.22);
    border: 1px solid rgba(46, 204, 113, 0.4);
    flex: 0 0 auto;
}

.draft-top-bar .who {
    flex: 1 1 auto;
    display: grid;
    gap: 2px;
}
.draft-top-bar .who-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--accent-text);
    text-transform: uppercase;
}
.draft-top-bar.bot .who-label { color: var(--info-text); }
.draft-top-bar .who-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.draft-clock {
    display: grid;
    text-align: center;
    min-width: 48px;
}
.draft-clock .seconds {
    font-size: 1.4rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    line-height: 1;
}
.draft-clock.bot .seconds { color: var(--info); }
.draft-clock.urgent .seconds { color: var(--negative); }
.draft-clock .label {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.draft-pick-strip {
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    overflow-x: auto;
    border-bottom: 1px solid var(--border);
    background: rgba(8, 13, 11, 0.58);
}
.draft-pick-strip::-webkit-scrollbar { display: none; }
.pick-chip {
    flex: 0 0 auto;
    display: inline-grid;
    grid-template-columns: auto auto;
    gap: 6px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
}
.pick-chip .pick-num {
    font-weight: 800;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}
.pick-chip .pick-name {
    font-weight: 700;
    color: var(--text);
}
.pick-chip.you { border-color: rgba(46, 204, 113, 0.5); background: rgba(46, 204, 113, 0.1); }
.pick-chip.you .pick-num { color: var(--accent-text); }

/* ─── 14. Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.18s ease, background 0.18s ease,
                box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
    color: var(--on-accent);
    background: var(--accent);
    box-shadow: 0 12px 28px rgba(46, 204, 113, 0.18);
}
.btn-primary:hover {
    transform: translateY(-1px);
    background: var(--accent-dark);
    box-shadow: 0 16px 34px rgba(46, 204, 113, 0.28);
}
.btn-secondary {
    color: var(--text);
    background: var(--bg-elev);
    border-color: var(--border);
}
.btn-secondary:hover {
    transform: translateY(-1px);
    background: rgba(26, 37, 31, 0.92);
    border-color: var(--border-light);
}
.btn-info {
    color: #08111a;
    background: var(--info);
}
.btn-info:hover { background: #4d9fd5; transform: translateY(-1px); }
.btn-dashed {
    color: var(--text-secondary);
    background: transparent;
    border: 1px dashed rgba(122, 133, 128, 0.5);
}
.btn-dashed:hover {
    color: var(--text);
    border-style: solid;
    border-color: var(--border-light);
    background: var(--bg-elev);
}
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.86rem; }

/* ─── 15. Annotation callout ─────────────────────────────── */
.callout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(10, 15, 13, 0.94);
    border: 1px solid rgba(46, 204, 113, 0.42);
    color: var(--accent-text);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
    pointer-events: none;
}
.callout.info {
    color: var(--info-text);
    border-color: rgba(93, 173, 226, 0.42);
}
.callout.warning {
    color: var(--warning-text);
    border-color: rgba(243, 156, 18, 0.42);
}

/* ─── 16. Theme color chips (for theme-cycler) ───────────── */
.theme-chip {
    width: 36px; height: 36px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    flex: 0 0 auto;
    cursor: pointer;
    transition: 0.18s ease;
}
.theme-chip.phi { background: linear-gradient(135deg, var(--team-phi-primary), var(--team-phi-secondary)); }
.theme-chip.buf { background: linear-gradient(135deg, var(--team-buf-primary), var(--team-buf-secondary)); }
.theme-chip.kc  { background: linear-gradient(135deg, var(--team-kc-primary),  var(--team-kc-secondary));  }
.theme-chip.dal { background: linear-gradient(135deg, var(--team-dal-primary), var(--team-dal-secondary)); }
.theme-chip.sf  { background: linear-gradient(135deg, var(--team-sf-primary),  var(--team-sf-secondary));  }
.theme-chip:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.18); }
.theme-chip.active {
    border-color: var(--text);
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

/* ─── 17. Subtle noise grain (pair with bg gradients) ────── */
.grain::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0.025;
    mix-blend-mode: overlay;
    /* SVG noise filter */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

/* ──────────────────────────────────────────────────────────────
   Route waitlist site · production layer
   The component kit above is copied verbatim from mockups/_kit.css.
   Everything below is page-specific composition.
   ────────────────────────────────────────────────────────────── */

:root {
    --theme-primary: var(--accent);
    --theme-secondary: var(--info);
    --theme-bg: var(--bg);
    --theme-surface: var(--bg-card);
    --theme-border: var(--border);
    --theme-text: var(--text);
    --theme-muted: var(--text-muted);
}

body {
    /* Left-side green radial only — gives the headline area subtle ambient
       color without bleeding behind the hero phone on the right (the
       previous right-side blue radial at 100% 0% was creating a visible
       haze around the phone bezel). */
    background:
        radial-gradient(1200px 760px at 12% -8%, rgba(46, 204, 113, 0.16) 0%, transparent 55%),
        linear-gradient(180deg, #0a0f0d 0%, #0b110f 100%);
    min-height: 100vh;
}

.site-shell {
    width: min(calc(100vw - 32px), 1160px);
    margin: 0 auto;
}

.site-main {
    display: grid;
    gap: 36px;
    padding: 24px 0 60px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 22px 0 8px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(45, 67, 56, 0.82);
    background: rgba(18, 26, 22, 0.92);
}

.brand-mark {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
}

.brand-subtitle {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.site-nav {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    text-decoration: none;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    transition: 0.18s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
    border-color: var(--border);
    background: var(--bg-elev);
}

.launch-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(10, 15, 13, 0.58);
}

.launch-banner-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-weight: 800;
    font-size: 0.78rem;
    white-space: nowrap;
}

.launch-banner p,
.footer-copy,
.footer-meta {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.45;
}

.hero,
.live-now,
.theme-section,
.future-preview,
.closing-cta {
    min-height: 240px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 36px;
    align-items: center;
    min-height: 78vh;
    padding: 36px 0 48px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero-eyebrow .live-pill {
    color: var(--accent-text);
    font-weight: 800;
}

.eyebrow-divider {
    opacity: 0.6;
}

.hero-title {
    margin: 0;
    font-size: clamp(2.6rem, 6.2vw, 5.2rem);
    line-height: 0.96;
    font-weight: 800;
}

.hero-title em {
    font-style: normal;
    background: linear-gradient(120deg, #2ecc71 0%, #5dade2 92%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-bullets {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 32ch;
}

.hero-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-bullets li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.arrow {
    display: inline-block;
    transition: transform 0.18s ease;
}

.btn-secondary:hover .arrow {
    transform: translateY(2px);
}

.notify-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(10, 15, 13, 0.58);
    max-width: 520px;
}

.notify-form[hidden] {
    display: none;
}

.notify-form input {
    flex: 1 1 220px;
    min-height: 42px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(8, 13, 11, 0.86);
    color: var(--text);
    padding: 0 14px;
    font: inherit;
}

.notify-form input:focus {
    outline: 2px solid rgba(46, 204, 113, 0.36);
    outline-offset: 2px;
}

.notify-message {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 100%;
    min-height: 1.3em;
    margin: 0;
    color: var(--accent-text);
    font-size: 0.86rem;
    font-weight: 700;
}

.notify-message:not(:empty)::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    border-radius: 999px;
    background:
        linear-gradient(135deg, transparent 45%, var(--on-accent) 46% 58%, transparent 59%) 4px 4px / 7px 7px no-repeat,
        var(--accent);
}

.phone-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 620px;
}

.phone-glow {
    /* Removed: even very-soft radial gradients created visible "haze"
       around the phone since the page bg is uniformly dark — every drop
       of ambient color above the phone read as a halo against the
       darker page bg below (the drop-shadow). The page background's
       own radial gradients provide enough ambient color; the phone now
       sits cleanly on the dark surface. */
    display: none;
}

.phone-stage .ios-frame {
    position: relative;
    z-index: 1;
    /* SVG canvas is now tight (320×660 portrait), so frame width = visible phone width */
    width: min(340px, 90vw);
    max-width: 100%;
    transform: rotate(-4deg) translateY(6px);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    /* Stacked drop-shadows where each has offset-y > blur — keeps the shadow
       fully below the phone (no upward blur halo at the top). */
    filter:
        drop-shadow(0 28px 18px rgba(0, 0, 0, 0.5))
        drop-shadow(0 78px 48px rgba(0, 0, 0, 0.34));
}

.phone-stage:hover .ios-frame {
    transform: rotate(-2deg) translateY(0);
}

.section-eyebrow {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.live-now h2,
.theme-section h2,
.future-preview h2,
.closing-cta h2 {
    margin: 0;
    font-size: clamp(2rem, 4.8vw, 3.4rem);
    line-height: 1.02;
    font-weight: 800;
}

.spotlight-driver {
    position: relative;
    height: 240vh;
}

.spotlight-stage {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.stage-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--accent-text);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.stage-h2 {
    margin: 0;
    max-width: 18ch;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    line-height: 1.05;
    font-weight: 800;
}

.stage-h2 em {
    font-style: normal;
    background: linear-gradient(120deg, #2ecc71, #5dade2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stage-progress {
    margin-top: 28px;
}

.stage-progress-track {
    position: relative;
    height: 4px;
    border-radius: 999px;
    background: rgba(36, 56, 48, 0.8);
    overflow: hidden;
}

.stage-progress-fill {
    position: absolute;
    inset: 0;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(46, 204, 113, 0.7), rgba(93, 173, 226, 1));
    transform: scaleX(var(--p, 0));
    transition: transform 0.18s ease-out;
}

.progress-stages {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.progress-stages span {
    transition: color 0.2s;
}

.progress-stages span.active {
    color: var(--text);
}

.stage-narrative {
    min-height: 60px;
    margin: 24px 0 0;
    max-width: 38ch;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.55;
}

.spotlight-phone-stage {
    position: relative;
    display: flex;
    justify-content: center;
}

.spotlight-phone-stage .ios-frame.device-frame,
.spotlight-phone-stage .ios-frame.png-mock {
    /* SVG canvas is now tight (320×660 portrait), so frame width = visible phone width */
    width: min(340px, 88vw);
    transform: rotate(-2deg);
    /* Stacked drop-shadows with offset-y > blur — no upward blur halo */
    filter:
        drop-shadow(0 20px 16px rgba(0, 0, 0, 0.45))
        drop-shadow(0 70px 50px rgba(0, 0, 0, 0.35));
}

/* Modal header: auto-width action column so it doesn't squeeze the title.
   Title gets all the leftover space inside the SVG-frame's narrow screen interior. */
.spotlight-phone-stage .app-modal-header {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 8px 10px 10px;
}

.spotlight-phone-stage .app-modal-header .back-chev {
    width: 32px;
    height: 32px;
}

.spotlight-phone-stage .app-modal-header h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.9rem;
}

.spotlight-phone-stage .app-modal-header .action {
    white-space: nowrap;
    padding-inline: 6px;
    font-size: 0.74rem;
}

.bb-list {
    display: grid;
    gap: 8px;
    padding: 10px;
    overflow: hidden;
}

.spotlight-phone-stage .bb-list .player-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 8px;
}

.spotlight-phone-stage .bb-list .player-row .pos-chip {
    min-width: 30px;
    height: 23px;
    font-size: 0.62rem;
}

.spotlight-phone-stage .bb-list .player-row .name {
    font-size: 0.78rem;
}

.bb-list .player-row {
    will-change: transform;
}

.section-lead {
    margin: 16px 0 28px;
    max-width: 68ch;
    color: var(--text-secondary);
    font-size: 1.04rem;
    line-height: 1.55;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(22px, 2vw, 30px);
    border-radius: var(--radius);
    min-height: 520px;
}

.app-card.beta {
    border: 1px solid rgba(93, 173, 226, 0.46);
}

.app-card.beta::before {
    left: 22px;
    right: 22px;
    bottom: auto;
    width: auto;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(93, 173, 226, 0.84), transparent);
}

.card-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    margin-bottom: 18px;
}

.vote-counter {
    min-width: 0;
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.vote-counter strong {
    color: var(--text-secondary);
    margin-right: 4px;
}

.app-card h3 {
    margin: 0 0 14px;
    font-size: 1.55rem;
    line-height: 1.05;
    font-weight: 800;
}

.card-body {
    margin: 0 0 18px;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.5;
}

.surface {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: rgba(8, 13, 11, 0.6);
}

.surface .player-row {
    padding: 8px 10px;
}

.surface .player-row .pos-chip {
    min-width: 30px;
    height: 22px;
    font-size: 0.62rem;
}

.import-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(45, 67, 56, 0.74);
    border-radius: 10px;
    background: rgba(18, 26, 22, 0.56);
}

.import-row strong {
    font-size: 0.84rem;
}

.import-row span {
    color: var(--accent-text);
    font-weight: 800;
    font-size: 0.84rem;
}

.format-surface {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.format-surface span {
    min-height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(45, 67, 56, 0.74);
    border-radius: 10px;
    background: rgba(18, 26, 22, 0.56);
    color: var(--text);
    font-weight: 800;
}

.seat-strip {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    padding: 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(93, 173, 226, 0.26);
    background: rgba(8, 13, 11, 0.62);
}

.seat {
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    background: rgba(18, 26, 22, 0.62);
    border: 1px solid rgba(45, 67, 56, 0.74);
}

.seat.taken {
    background: rgba(93, 173, 226, 0.55);
    border-color: rgba(93, 173, 226, 0.85);
}

.seat.you {
    background: var(--info);
    border-color: var(--info);
    box-shadow: 0 0 0 2px rgba(93, 173, 226, 0.3);
}

.seat-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.seat-meta strong {
    color: var(--text);
    font-weight: 800;
    margin-right: 4px;
}

.wishlist {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1.5px dashed rgba(122, 133, 128, 0.4);
    border-radius: var(--radius-sm);
}

.wishlist-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    background: rgba(18, 26, 22, 0.4);
    border: 1px dashed rgba(122, 133, 128, 0.32);
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.wishlist-row strong {
    color: var(--text);
    font-weight: 700;
}

.card-cta {
    margin-top: auto;
    padding-top: 18px;
}

.theme-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 26px;
    align-items: start;
    padding: 30px;
    border: 1px solid color-mix(in srgb, var(--theme-primary) 32%, var(--border) 68%);
    border-radius: var(--radius);
    background:
        radial-gradient(820px 420px at 100% 0%, color-mix(in srgb, var(--theme-secondary) 16%, transparent), transparent 60%),
        radial-gradient(760px 440px at 0% 100%, color-mix(in srgb, var(--theme-primary) 18%, transparent), transparent 62%),
        color-mix(in srgb, var(--theme-bg) 92%, transparent);
}

.theme-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.current-theme-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--theme-primary) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 50%, transparent);
    color: var(--theme-text);
    font-weight: 700;
}

.current-theme-pill .swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--theme-primary);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.team-chip {
    display: grid;
    gap: 7px;
    min-height: 62px;
    padding: 9px;
    border: 1px solid color-mix(in srgb, var(--theme-primary) 14%, var(--border) 86%);
    border-radius: var(--radius-xs);
    background: rgba(8, 13, 11, 0.48);
    color: var(--text-secondary);
    cursor: pointer;
    transition: 0.18s ease;
}

.team-chip:hover,
.team-chip.active {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--theme-primary) 60%, transparent);
    color: var(--text);
}

.team-chip.active {
    box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--theme-primary);
}

.team-swatches {
    display: flex;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
}

.team-swatches .a {
    flex: 1.4 1 0;
}

.team-swatches .b {
    flex: 1 1 0;
}

.team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 800;
}

.preview-row {
    display: grid;
    gap: 14px;
}

.themed-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 35%, var(--border) 65%);
    background:
        radial-gradient(500px 220px at 100% 0%, color-mix(in srgb, var(--theme-primary) 18%, transparent), transparent 58%),
        color-mix(in srgb, var(--theme-surface) 88%, transparent);
}

.themed-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--theme-primary) 70%, transparent), transparent);
}

.themed-eyebrow {
    margin: 0;
    color: color-mix(in srgb, var(--theme-primary) 70%, var(--text) 30%);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.themed-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.themed-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 10px;
    align-items: center;
    min-height: 44px;
    padding: 9px 10px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--theme-bg) 78%, transparent);
    border: 1px solid color-mix(in srgb, var(--theme-primary) 18%, var(--border) 82%);
}

.themed-row.featured {
    background: linear-gradient(90deg, color-mix(in srgb, var(--theme-primary) 20%, transparent), color-mix(in srgb, var(--theme-secondary) 12%, transparent));
    border-color: color-mix(in srgb, var(--theme-primary) 50%, transparent);
}

.themed-row span,
.themed-row em {
    color: var(--theme-muted);
    font-style: normal;
    font-weight: 800;
    font-size: 0.78rem;
}

.hero:empty,
.spotlight-driver:empty,
.live-now:empty,
.theme-section:empty,
.future-preview:empty,
.closing-cta:empty {
    display: none;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 32px 0 44px;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--text);
}

.closing-cta {
    display: grid;
    gap: 18px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(720px 360px at 100% 0%, rgba(46, 204, 113, 0.16), transparent 62%),
        linear-gradient(135deg, rgba(10, 15, 13, 0.92), rgba(18, 26, 22, 0.7));
    box-shadow: var(--shadow-card);
}

.closing-cta .section-lead {
    max-width: 650px;
}

.card,
.page-header,
.legal-page {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(520px 260px at 100% 0%, rgba(46, 204, 113, 0.08), transparent 64%),
        rgba(10, 15, 13, 0.72);
    box-shadow: var(--shadow-card);
}

.card {
    padding: 26px;
}

.page-header,
.legal-page {
    padding: 34px;
}

.eyebrow,
.section-label {
    margin: 0 0 12px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead,
.body-copy,
.legal-page p,
.support-block p {
    color: var(--text-secondary);
    line-height: 1.55;
}

.lead.compact {
    max-width: 720px;
}

.page-header h1,
.legal-page h1 {
    margin: 0 0 14px;
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.card h2,
.legal-page h2 {
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 1.1em;
    color: var(--text-secondary);
    line-height: 1.45;
    font-weight: 700;
}

.support-block,
.faq-list details,
.inline-links {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(8, 13, 11, 0.56);
}

.support-block {
    display: grid;
    gap: 4px;
    padding: 16px;
    margin-top: 12px;
}

.support-label,
.legal-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 16px 18px;
}

.faq-list summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 900;
}

.faq-list p {
    color: var(--text-secondary);
    line-height: 1.5;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
}

.card a,
.legal-page a,
.support-block a,
.inline-links a {
    color: var(--accent-text);
    font-weight: 900;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
}

.button-primary {
    background: var(--accent);
    color: var(--on-accent);
}

.governance-main {
    display: grid;
    gap: 28px;
    padding: 38px 0 70px;
}

.governance-hero {
    max-width: 820px;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(680px 320px at 100% 0%, rgba(93, 173, 226, 0.12), transparent 60%),
        rgba(10, 15, 13, 0.72);
}

.governance-hero h1 {
    margin: 0 0 14px;
    max-width: 760px;
    font-size: clamp(2.8rem, 8vw, 5.6rem);
    line-height: 0.9;
    letter-spacing: -0.075em;
}

.governance-league-card,
.settled-ledger,
.footer-note-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(10, 15, 13, 0.72);
    box-shadow: var(--shadow-card);
}

.governance-league-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
}

.league-badge {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--info));
    color: var(--on-accent);
    font-size: 1.35rem;
    font-weight: 900;
}

.governance-league-card h2 {
    margin: 0 0 4px;
    font-size: 1.2rem;
}

.governance-league-card p {
    margin: 0;
    color: var(--text-secondary);
}

.league-stat-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.league-stat-strip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 800;
}

.league-stat-strip strong {
    color: var(--text);
}

.governance-proposals-section {
    display: grid;
    gap: 18px;
}

.sec-label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 8px rgba(46, 204, 113, 0.1);
}

.governance-proposals {
    display: grid;
    gap: 18px;
}

.governance-proposal {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.36fr);
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(520px 260px at 0% 0%, rgba(46, 204, 113, 0.1), transparent 58%),
        rgba(10, 15, 13, 0.78);
}

.proposal-main,
.voter-rail {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(8, 13, 11, 0.62);
}

.proposal-main {
    padding: 22px;
}

.proposal-kicker,
.vote-summary {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 850;
}

.proposal-kicker span,
.vote-summary span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.proposal-main h2 {
    margin: 18px 0 10px;
    font-size: clamp(1.55rem, 3vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.045em;
}

.proposal-main p {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--text-secondary);
    font-weight: 700;
    line-height: 1.45;
}

.vote-meter {
    position: relative;
    display: flex;
    height: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.vote-fill {
    display: block;
    transition: width 0.28s ease;
}

.vote-fill-for {
    background: linear-gradient(90deg, var(--accent-dark), var(--accent));
}

.vote-fill-against {
    background: linear-gradient(90deg, rgba(231, 76, 60, 0.8), var(--negative));
}

.vote-fill-pending {
    background: rgba(255, 255, 255, 0.08);
}

.threshold-marker {
    position: absolute;
    top: -4px;
    bottom: -4px;
    width: 2px;
    background: var(--text);
    opacity: 0.78;
}

.vote-summary {
    margin-top: 14px;
}

.vote-summary strong {
    color: var(--text);
}

.vote-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.vote-action {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: rgba(18, 26, 22, 0.72);
    color: var(--text);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.vote-action:hover,
.vote-action:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.for-btn:hover,
.for-btn.is-cast {
    border-color: rgba(46, 204, 113, 0.62);
    background: rgba(46, 204, 113, 0.14);
    color: var(--accent-text);
}

.against-btn:hover,
.against-btn.is-cast {
    border-color: rgba(231, 76, 60, 0.55);
    background: rgba(231, 76, 60, 0.12);
    color: var(--negative-text);
}

.voter-rail {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 14px;
}

.voter-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.voter-row.you {
    border: 1px solid rgba(46, 204, 113, 0.42);
    background: rgba(46, 204, 113, 0.08);
}

.voter-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
}

.voter-name {
    display: grid;
    gap: 2px;
    min-width: 0;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 900;
}

.voter-name em {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.68rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vote-pill,
.outcome {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.vote-pill.for,
.outcome.passed {
    color: var(--accent-text);
    background: rgba(46, 204, 113, 0.16);
}

.vote-pill.against,
.outcome.failed {
    color: var(--negative-text);
    background: rgba(231, 76, 60, 0.16);
}

.vote-pill.pending {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
}

.settled-ledger,
.footer-note-card {
    padding: 22px;
}

.settled-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--border);
}

.settled-row:first-of-type {
    border-top: 0;
}

.settled-row strong {
    display: block;
    margin-bottom: 4px;
}

.settled-row em,
.footer-note-card {
    color: var(--text-secondary);
    font-style: normal;
    line-height: 1.45;
}

@media (max-width: 720px) {
    .site-shell {
        width: min(calc(100vw - 24px), 1160px);
    }

    .topbar,
    .footer,
    .launch-banner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .site-main {
        gap: 28px;
        padding-top: 18px;
    }

    .launch-banner p {
        font-size: 0.9rem;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 24px 0;
    }

    .spotlight-driver {
        height: 320vh;
    }

    .spotlight-stage {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 0;
    }

    .hero-title {
        font-size: clamp(2.45rem, 15vw, 4rem);
    }

    .hero-bullets {
        font-size: 1rem;
    }

    .hero-actions,
    .hero-actions .btn,
    .notify-form,
    .notify-form .btn {
        width: 100%;
    }

    .phone-stage {
        min-height: 540px;
        margin-top: 8px;
    }

    .live-now h2,
    .theme-section h2,
    .future-preview h2,
    .closing-cta h2 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .section-lead {
        font-size: 0.98rem;
    }

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

    .governance-hero {
        padding: 24px;
    }

    .governance-league-card,
    .governance-proposal {
        grid-template-columns: 1fr;
    }

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

    .league-stat-strip {
        justify-content: flex-start;
    }

    .theme-section {
        grid-template-columns: 1fr;
        padding: 22px;
    }

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

    .app-card {
        min-height: 0;
    }

    .card-status-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .format-surface {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seat-strip {
        gap: 5px;
    }

    .footer-links {
        gap: 10px 14px;
    }
}

@media (max-width: 420px) {
    .site-nav a {
        padding: 9px 11px;
        font-size: 0.86rem;
    }

    .phone-stage {
        min-height: 480px;
    }

    .format-surface {
        grid-template-columns: 1fr;
    }
}
