/* ═══════════════════════════════════════════════════════════════════════════
 * RUN Events, shared styles
 * Tokens lifted from venus/client design system (Figma styleguide).
 * Used by the hub (/index.html) and every event detail page
 * (/events/<slug>/index.html). No per-page CSS.
 * ═══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Inter';
  src: url('/shared/fonts/Inter-Variable.ttf') format('truetype-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face { font-family:'Work Sans'; src:url('/shared/fonts/WorkSans-Medium.ttf')   format('truetype'); font-weight:500; font-display:swap; }
@font-face { font-family:'Work Sans'; src:url('/shared/fonts/WorkSans-SemiBold.ttf') format('truetype'); font-weight:600; font-display:swap; }
@font-face { font-family:'Work Sans'; src:url('/shared/fonts/WorkSans-Bold.ttf')     format('truetype'); font-weight:700; font-display:swap; }
@font-face { font-family:'Unbounded'; src:url('/shared/fonts/Unbounded-Bold.ttf')    format('truetype'); font-weight:700; font-display:swap; }
@font-face { font-family:'Space Mono'; src:url('/shared/fonts/SpaceMono-Regular.ttf') format('truetype'); font-weight:400; font-display:swap; }

:root {
  /* Gray scale */
  --gray-0:#FCFCFB; --gray-1:#F3F2F0; --gray-2:#E6E5E2; --gray-3:#D6D7D9;
  --gray-4:#BFC2C7; --gray-5:#9FA3A9; --gray-6:#7F848B; --gray-7:#5F646C;
  --gray-8:#43484F; --gray-9:#2A2E33; --gray-10:#15181B; --gray-11:#0D0F12; --gray-12:#07080A;

  /* Brand accents */
  --orbit-blue:#17CDFF;
  --launch-yellow:#FFD23F;
  --flux-green:#2FE6B8;
  --crash-red:#FF5A5A;

  /* Semantic */
  --bg: var(--gray-12);
  --bg-elevated: var(--gray-10);
  --bg-overlay: var(--gray-11);
  --text: var(--gray-0);
  --text-secondary: var(--gray-2);
  --text-muted: var(--gray-6);
  --text-dim: var(--gray-4);
  --border: var(--gray-9);
  --accent: var(--orbit-blue);

  /* Type */
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body:  'Work Sans', 'Inter', sans-serif;
  --font-display: 'Unbounded', 'Work Sans', sans-serif;
  --font-mono:  'Space Mono', ui-monospace, SFMono-Regular, monospace;

  /* Radii / spacing / shadow */
  --r-sm:6px; --r-md:8px; --r-lg:12px; --r-xl:16px; --r-2xl:20px; --r-pill:9999px;
  --shadow-floating: 0 24px 48px rgba(0,0,0,.5);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }

/* ─── Layout shell ───────────────────────────────────────────────────────── */
.shell { max-width: 1440px; margin: 0 auto; padding: 0 32px 80px; }
.shell--detail { max-width: 1280px; }

/* ─── Brand mark ─────────────────────────────────────────────────────────── */
.brand {
  display: inline-flex; align-items: baseline; gap: 1px; line-height: 1;
  font-family: var(--font-sans); font-weight: 700; font-size: 22px;
  letter-spacing: -.02em; color: var(--text);
}
.brand .cursor { color: var(--accent); font-weight: 500; animation: brandBlink 1s steps(2) infinite; }
@keyframes brandBlink { 0%,50%{opacity:1} 50.01%,100%{opacity:0} }

/* ─── Top bar (per-page header) ──────────────────────────────────────────── */
/* Sticky so the Subscribe CTA is always one tap away as the user scrolls. */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.topbar.is-stuck {
  border-bottom-color: var(--border);
  background: rgba(7,8,10,.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.topbar-right { display: flex; gap: 10px; align-items: center; }

/* ─── Editorial header (hub) ─────────────────────────────────────────────── */
.hero-head { padding: 28px 0 40px; }
.hero-head-main { min-width: 0; }

/* Above-the-fold capture card, money loud, field always visible. */
.hero-capture {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 24px;
  box-shadow: var(--shadow-floating);
}
.hero-capture-money { margin-bottom: 14px; }
.hero-capture-money .money { font-size: clamp(40px, 6vw, 56px); }
.hero-capture-h { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.hero-capture-hook { margin: 6px 0 16px; font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.hero-capture-hook strong { color: var(--text); font-weight: 600; }
.kicker {
  color: var(--accent);
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.kicker::before { content:''; width: 24px; height: 1px; background: currentColor; }

.headline {
  margin: 0;
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(40px, 7vw, 72px);
  line-height: .95; letter-spacing: -.035em; color: var(--text);
}
.headline-mute { color: var(--text-muted); }
.lede {
  margin: 20px 0 0; color: var(--text-dim); font-size: 17px;
  max-width: 560px; line-height: 1.5;
}
.lede strong { color: var(--text-secondary); font-weight: 600; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform 150ms ease, background 200ms ease, border-color 200ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orbit-blue); color: var(--gray-12); font-weight: 600; }
.btn--primary:hover { filter: brightness(1.06); }
.btn--secondary { background: transparent; color: var(--orbit-blue); border-color: rgba(23,205,255,.45); }
.btn--secondary:hover { background: rgba(23,205,255,.08); border-color: var(--orbit-blue); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--gray-7); }
.btn--quiet { background: rgba(255,255,255,.04); color: var(--text); }
.btn--discord { background: #5865F2; color: #fff; border-color: transparent; }
.btn--discord:hover { background: #5865F2; filter: brightness(1.08); }
.btn--lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn svg { flex-shrink: 0; }

/* ─── Pill family (chips + type badge, one shape, semantic variants) ──── */
.chip, .type-badge {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 12px; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-weight: 600; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.chip--glow .chip-dot { box-shadow: 0 0 8px currentColor; animation: chipPulse 1.6s ease-in-out infinite; }
@keyframes chipPulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }

/* Neutral pill, event type label, "ended" status. */
.type-badge,
.chip--upcoming,
.chip--ended {
  color: var(--gray-1);
  background: rgba(7,8,10,.78);
  border-color: rgba(255,255,255,.12);
}

/* Colored status variants, strong, on-brand fills with light text. */
.chip--live        { color: #FFD0D0; background: rgba(140,30,30,.92);  border-color: rgba(255,90,90,.55); }
.chip--submissions { color: #C6FBE6; background: rgba(20,90,72,.92);   border-color: rgba(47,230,184,.55); }
.chip--voting      { color: #FFEFA8; background: rgba(110,80,15,.92);  border-color: rgba(255,210,63,.55); }
.chip--featured    { color: #FFEFA8; background: rgba(110,80,15,.92);  border-color: rgba(255,210,63,.55); }

/* Kit requirement, solid bright yellow, dark text. Loudest chip on the page. */
.chip--kit {
  color: var(--gray-12); background: var(--launch-yellow);
  border-color: var(--launch-yellow); font-weight: 700;
  box-shadow: 0 0 16px rgba(255,210,63,.35);
}

/* ─── Featured hero card ─────────────────────────────────────────────────── */
.featured {
  position: relative; border-radius: var(--r-2xl); overflow: hidden;
  background: var(--bg-elevated); border: 1px solid var(--border);
  cursor: pointer; min-height: 460px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  text-decoration: none; color: inherit;
}
.featured:hover { text-decoration: none; }
.featured-img {
  position: relative; overflow: hidden; min-height: 360px;
  background:
    radial-gradient(800px 500px at 20% 20%, rgba(110,231,255,.22), transparent 60%),
    radial-gradient(700px 500px at 80% 80%, rgba(167,139,250,.18), transparent 55%),
    linear-gradient(160deg, #0E1218 0%, #1A1F26 60%, #0A0C10 100%);
}
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-img::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,8,10,0) 30%, rgba(7,8,10,.85) 100%),
    linear-gradient(180deg, rgba(7,8,10,.15) 0%, rgba(7,8,10,.6) 100%);
}
.featured-img-chips {
  position: absolute; top: 20px; left: 20px; z-index: 1;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.featured-body {
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.featured-title {
  margin: 16px 0 12px;
  font-family: var(--font-sans); font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; line-height: .98; letter-spacing: -.03em; color: var(--text);
}
.featured-tagline { margin: 0; color: var(--text-dim); font-size: 16px; line-height: 1.45; max-width: 460px; }
.featured-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.featured-stats {
  display: flex; gap: 28px; padding-top: 16px;
  border-top: 1px solid var(--border); flex-wrap: wrap; align-items: center;
}
.featured-money .money { font-size: 46px; }
.money--card { font-size: 44px; }

.stat-label {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .14em; font-family: var(--font-body); font-weight: 600;
}
.stat-value { margin-top: 4px; font-size: 18px; color: var(--text); font-weight: 600; }

/* ─── Countdown ──────────────────────────────────────────────────────────── */
.countdown-label {
  font-size: 11px; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: .18em; margin-bottom: 8px;
  font-family: var(--font-body); font-weight: 600;
}
.countdown-row { display: flex; gap: 6px; align-items: flex-end; }
.countdown-row.is-large { gap: 12px; }
.countdown-unit { min-width: 48px; text-align: center; }
.countdown-unit.is-large { min-width: 78px; }
.countdown-num {
  font-family: var(--font-mono); font-size: 32px; font-weight: 400;
  color: var(--text); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.countdown-unit.is-large .countdown-num { font-size: 56px; }
.countdown-sub {
  margin-top: 4px; font-size: 9px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .12em;
  font-family: var(--font-body); font-weight: 600;
}
.countdown-unit.is-large .countdown-sub { font-size: 11px; margin-top: 8px; }
.countdown-sep {
  color: var(--gray-8); font-size: 19px; font-family: var(--font-mono);
  line-height: 1; margin-bottom: 10px;
}
.countdown-row.is-large .countdown-sep { font-size: 34px; margin-bottom: 18px; }

/* ─── Kit warning panel ──────────────────────────────────────────────────── */
.kit-warning {
  margin-top: 24px;
  padding: 18px 22px;
  background: rgba(255,210,63,.06);
  border: 1px solid rgba(255,210,63,.25);
  border-radius: var(--r-lg);
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center;
}
.kit-warning-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,210,63,.18); color: var(--launch-yellow);
  display: inline-flex; align-items: center; justify-content: center;
}
.kit-warning-kicker {
  color: var(--launch-yellow); font-family: var(--font-mono); font-size: 11px;
  font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.kit-warning-title { margin: 6px 0 0; color: var(--text); font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.kit-warning-body { margin: 8px 0 0; color: var(--text); font-size: 14px; line-height: 1.5; }
/* Lead variant, sits at the top of the page, louder + top-aligned. */
.kit-warning--lead {
  margin-top: 28px; align-items: start; padding: 22px 24px;
  background: rgba(255,210,63,.10); border-color: rgba(255,210,63,.4);
}

/* ─── While-you-wait cards ───────────────────────────────────────────────── */
.meantime-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.meantime-card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--r-lg);
  background: var(--bg-elevated); border: 1px solid var(--border);
}
.meantime-card-title { margin: 0; font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.meantime-card-body { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.55; }
.meantime-card-cta { margin-top: auto; padding-top: 6px; display: flex; flex-direction: column; gap: 6px; }
a.meantime-card { text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
a.meantime-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
@media (max-width: 700px) { .meantime-grid { grid-template-columns: 1fr; } }

/* Wide card spanning the full grid, with icon bullets (one per generation API). */
.meantime-card--wide { grid-column: 1 / -1; }
.meantime-bullets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.meantime-bullet {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--bg-overlay); border: 1px solid var(--border);
  text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.meantime-bullet:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-1px); }
.meantime-bullet-ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; border-radius: var(--r-md);
  color: var(--accent); background: color-mix(in srgb, currentColor 12%, transparent);
}
.meantime-bullet-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meantime-bullet-label { font-size: 14px; font-weight: 700; color: var(--text); }
.meantime-bullet-sub { font-size: 12.5px; color: var(--text-muted); line-height: 1.35; }
@media (max-width: 900px) { .meantime-bullets { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .meantime-bullets { grid-template-columns: 1fr; } }

/* ─── Section heading ────────────────────────────────────────────────────── */
.section { margin-top: 64px; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.section-title { margin: 0; font-family: var(--font-sans); font-size: 32px;
  font-weight: 600; color: var(--text); letter-spacing: -.02em; }
.section-count {
  font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: .04em;
}
.section-empty { padding: 32px 4px; color: var(--text-muted); font-size: 14px; }

/* ─── Card grid ──────────────────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.card {
  background: var(--bg-elevated); border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform 200ms ease, border-color 200ms ease;
  text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-2px); border-color: var(--gray-7); text-decoration: none; }
/* Unannounced "???" teaser card: present but not interactive. */
.card--soon { cursor: default; }
.card--soon:hover { transform: none; border-color: var(--border); }
.card--soon .card-title { color: var(--text-muted); letter-spacing: .08em; }
.card-soon-lock {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.card-soon-lock svg { display: block; }
.card-img {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-11);
  background:
    radial-gradient(500px 320px at 30% 30%, rgba(110,231,255,.22), transparent 60%),
    radial-gradient(450px 320px at 70% 80%, rgba(255,210,63,.16), transparent 60%),
    linear-gradient(160deg, #10141A 0%, #1B2028 60%, #0A0C10 100%);
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,8,10,.05) 0%, rgba(7,8,10,.55) 100%);
}
.card-chips {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
}
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-title {
  margin: 0; font-family: var(--font-sans); font-size: 22px; font-weight: 600;
  color: var(--text); line-height: 1.15; letter-spacing: -.01em;
}
.card-tagline { margin: 8px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.4; }
.card-foot {
  margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.card-foot-value {
  margin-top: 4px; font-size: 16px; color: var(--text);
  font-family: var(--font-mono); font-weight: 400; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.card-foot-prize .card-foot-value { font-family: var(--font-sans); font-weight: 600; }

/* ─── Subscribe popover ──────────────────────────────────────────────────── */
.subscribe-wrap { position: relative; }
.popover {
  position: absolute; top: calc(100% + 8px); right: 0; width: 340px;
  background: var(--bg-overlay); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 18px; z-index: 20; box-shadow: var(--shadow-floating);
}
.popover[hidden] { display: none; }
.popover-kicker {
  color: var(--accent); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 10px;
  display: inline-flex; align-items: center; gap: 8px;
}
.popover-kicker::before { content:''; width: 18px; height: 1px; background: currentColor; }
.popover-h { font-size: 15px; color: var(--text); font-weight: 600; margin: 0 0 6px; }
.popover-p { font-size: 13px; color: var(--text-muted); line-height: 1.45; margin: 0 0 14px; }
.popover-input {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-md); color: var(--text);
  /* 16px keeps iOS from auto-zooming (and shifting the page) on focus. */
  font-family: var(--font-sans); font-size: 16px; outline: none;
  transition: border-color 150ms;
}
.popover-input:focus { border-color: var(--accent); }
.popover-input.is-error { border-color: var(--crash-red); }
.popover-error { margin-top: 6px; font-size: 12px; color: var(--crash-red); }
.consent { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; cursor: pointer; }
.consent-box { width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; accent-color: var(--accent); cursor: pointer; }
.consent-label { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.consent.is-error .consent-label { color: var(--crash-red); }
.popover-actions { display: flex; gap: 8px; margin-top: 14px; }
.popover-foot { margin-top: 12px; font-size: 11px; color: var(--text-muted); }
.popover-success-kicker {
  color: var(--flux-green); font-size: 11px; font-family: var(--font-mono);
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 8px;
}
.popover-success-email { font-size: 14px; color: var(--text); font-weight: 600; line-height: 1.35; }

/* ─── Inline subscribe (the high-conversion capture) ─────────────────────── */
.isub { width: 100%; }
.isub-row { display: flex; gap: 10px; align-items: stretch; }
.isub-input {
  flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px;
  background: var(--bg-elevated); border: 1px solid var(--gray-8);
  border-radius: var(--r-md); color: var(--text);
  font-family: var(--font-sans); font-size: 16px; outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.isub-input::placeholder { color: var(--gray-6); }
.isub-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(23,205,255,.16); }
.isub-input.is-error { border-color: var(--crash-red); }
.isub-row .btn { flex: 0 0 auto; }
.isub-consent { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; cursor: pointer; max-width: 460px; }
.isub-consent .consent-label { font-size: 12px; color: var(--text-muted); line-height: 1.45; }
.isub-consent.is-error .consent-label { color: var(--crash-red); }
.isub-error { margin-top: 8px; font-size: 13px; color: var(--crash-red); min-height: 0; }
.isub-error:empty { margin-top: 0; }
.isub-foot { margin-top: 12px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.isub-foot a { color: var(--text-secondary); font-weight: 600; }

/* "or" divider, email + Discord as equal options. */
.or-divider {
  display: flex; align-items: center; gap: 12px; margin: 16px 0;
  color: var(--text-muted); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; font-family: var(--font-body); font-weight: 600;
}
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.isub-done {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; border-radius: var(--r-lg);
  background: rgba(47,230,184,.08); border: 1px solid rgba(47,230,184,.32);
}
.isub-form[hidden], .isub-done[hidden] { display: none; }
.isub-done-check {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--flux-green); color: var(--gray-12);
  display: inline-flex; align-items: center; justify-content: center;
}
.isub-done-h { font-size: 16px; font-weight: 600; color: var(--text); }
.isub-done-email { margin-top: 4px; font-size: 14px; color: var(--text-muted); }
.isub-done-email b { color: var(--text-secondary); font-weight: 600; }
.isub-unsub {
  background: none; border: none; padding: 0; margin-left: 4px;
  color: var(--text-muted); font-family: var(--font-body); font-size: 13px;
  text-decoration: underline; cursor: pointer;
}
.isub-unsub:hover { color: var(--text); }

@media (max-width: 560px) {
  .isub-row { flex-direction: column; }
  .isub-row .btn { width: 100%; }
}

/* ─── Money, the prize value, blown up and repeated ─────────────────────── */
/* A big, tabular, gradient-free number. The single loudest fact on the page. */
.money {
  font-family: var(--font-sans); font-weight: 800;
  letter-spacing: -.04em; line-height: .9;
  color: var(--launch-yellow);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: baseline; gap: .12em;
}
.money-sub {
  font-family: var(--font-body); font-weight: 600; font-size: .34em;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}
/* Inline "prize pill", a compact money badge for tight spots (cards, bars). */
.money-pill {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px; border-radius: var(--r-pill);
  background: rgba(255,210,63,.12); border: 1px solid rgba(255,210,63,.4);
  color: var(--launch-yellow); font-weight: 800; font-size: 14px;
  letter-spacing: -.01em; white-space: nowrap;
}
.money-pill .money-pill-label {
  color: var(--launch-yellow); opacity: .7; font-family: var(--font-mono);
  font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.foot {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

.detail-legal { margin: 28px 0 0; text-align: center; font-size: 13px; color: var(--text-muted); }
.detail-legal a { color: var(--text-dim); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
 * DETAIL PAGE
 * ═══════════════════════════════════════════════════════════════════════════ */

.detail-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 0; }
.back-link {
  background: transparent; border: none; color: var(--text-dim); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-family: var(--font-body); font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-md);
}
.back-link:hover { color: var(--text); background: rgba(255,255,255,.04); text-decoration: none; }

.detail-hero {
  position: relative; border-radius: var(--r-2xl); overflow: hidden;
  margin-top: 24px;
  aspect-ratio: 21 / 9; max-height: 480px;
  background:
    radial-gradient(900px 540px at 20% 30%, rgba(110,231,255,.18), transparent 60%),
    linear-gradient(160deg, #0E1218 0%, #1A1F26 60%, #06080B 100%);
}
.detail-hero img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
/* Subtle bottom fade so the rounded corner doesn't pop hard against page bg. */
.detail-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(180deg, transparent 0%, rgba(7,8,10,.6) 100%);
  pointer-events: none;
}

/* Title block lives BELOW the image now, keeps it readable regardless of
   what's in the artwork. */
.detail-hero-body {
  margin-top: 28px;
  display: flex; flex-direction: column;
}
.detail-hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.detail-hero-title {
  margin: 0; font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(48px, 8vw, 80px);
  color: var(--text); letter-spacing: -.04em; line-height: .92; max-width: 900px;
}
.detail-hero-tagline {
  margin: 18px 0 0; color: var(--text-secondary); font-size: 19px;
  line-height: 1.5; max-width: 680px;
}

.actionbar {
  margin-top: 24px; padding: 28px;
  background: var(--bg-overlay); border: 1px solid var(--border); border-radius: var(--r-xl);
  display: grid; grid-template-columns: minmax(0,1fr) minmax(340px, 420px); gap: 36px; align-items: center;
}
.actionbar-info { min-width: 0; }
.actionbar-money { margin-top: 18px; }
.actionbar-money .money { font-size: clamp(36px, 5vw, 48px); }
.actionbar-status-h { font-size: 40px; color: var(--text); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; }
.actionbar-status-sub { margin-top: 8px; color: var(--text-muted); }
.actionbar-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actionbar-cta { min-width: 0; }
.actionbar-cta-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.actionbar-cta-h { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }

/* Icon-only button (share) */
.icon-btn {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--border); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: rgba(255,255,255,.06); border-color: var(--gray-7); }
.icon-btn.is-copied { border-color: var(--flux-green); color: var(--flux-green); }

@media (max-width: 1024px) {
  .actionbar { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── AI tools value-prop band ───────────────────────────────────────────── */
/* Detail hero, two-column: info left, banner right (balanced). */
.hero2 {
  margin-top: 24px;
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: 44px; align-items: stretch;
}
.hero2-info { min-width: 0; display: flex; flex-direction: column; }
.hero2 .detail-hero-chips { margin-bottom: 18px; }
.hero2 .detail-hero-title { font-size: clamp(40px, 5vw, 60px); }
.hero2 .detail-hero-tagline { margin-top: 14px; font-size: 18px; }
.hero2-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; }
.hero2-money .money { font-size: clamp(40px, 6vw, 52px); }
.hero2-stat-pre {
  font-family: var(--font-mono); font-weight: 600; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 7px;
}
.hero2-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero2-art {
  border-radius: var(--r-2xl); overflow: hidden; min-height: 340px;
  background:
    radial-gradient(700px 460px at 25% 25%, rgba(110,231,255,.18), transparent 60%),
    linear-gradient(160deg, #0E1218 0%, #1A1F26 60%, #06080B 100%);
}
.hero2-art img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .hero2 { grid-template-columns: 1fr; gap: 24px; }
  .hero2-art { min-height: 0; aspect-ratio: 16/9; }
}

.build-band {
  margin-top: 64px; padding: 40px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(700px 400px at 12% 0%, rgba(23,205,255,.12), transparent 60%),
    linear-gradient(180deg, rgba(23,205,255,.05), transparent 70%), var(--bg-elevated);
  border: 1px solid rgba(23,205,255,.28);
}
.build-band .kicker { color: var(--accent); }
.build-band-h {
  margin: 14px 0 0; font-size: clamp(28px, 4vw, 40px); font-weight: 700;
  color: var(--text); letter-spacing: -.02em; line-height: 1.05;
}
.build-band-p { margin: 14px 0 0; color: var(--text-dim); font-size: 16px; line-height: 1.55; max-width: 52ch; }
.build-band-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 44px; align-items: center; }
.build-band-main { min-width: 0; }
.build-band-visual { min-width: 0; }
@media (max-width: 860px) {
  .build-band-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* Faux terminal, visualises the AI build flow (describe → build → ship). */
.term {
  background: #0A0C10; border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow-floating); font-family: var(--font-mono);
}
.term-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.term-dots { display: flex; gap: 6px; }
.term-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.term-title { color: var(--text-muted); font-size: 12px; }
.term-body { padding: 18px; font-size: 13.5px; line-height: 2; color: var(--text-secondary); }
.term-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term-prompt { color: var(--flux-green); margin-right: 8px; }
.term-ai { color: var(--orbit-blue); margin-right: 8px; font-weight: 700; }
.term-dim { color: var(--text-muted); }
.term-ok { color: var(--launch-yellow); }
.term-caret { color: var(--orbit-blue); margin-left: 2px; animation: brandBlink 1s steps(2) infinite; }
.build-band-code { display: inline-block; margin-top: 18px; }
.build-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.build-band-docs { color: var(--accent); font-weight: 600; font-size: 14px; margin-left: 4px; }
.build-band-assets {
  margin: 22px 0 0; display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-lg);
  background: rgba(255,210,63,.08); border: 1px solid rgba(255,210,63,.35);
  font-size: 15px; color: var(--text-secondary);
}
.build-band-assets-ico {
  flex: none; width: 32px; height: 32px; border-radius: var(--r-sm);
  background: rgba(255,210,63,.16); color: var(--launch-yellow);
  display: inline-flex; align-items: center; justify-content: center;
}
.build-band-assets a { color: var(--launch-yellow); font-weight: 700; }
.build-band-points {
  margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px;
  padding-top: 32px; border-top: 1px solid rgba(23,205,255,.18);
}
.build-point { display: flex; gap: 14px; }
.build-point-ico {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-md);
  background: rgba(23,205,255,.12); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.build-point-h { font-size: 15px; font-weight: 700; color: var(--text); }
.build-point-p { margin-top: 4px; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.build-point-p a { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) {
  .build-band { padding: 28px; }
  .build-band-points { grid-template-columns: 1fr; gap: 18px; }
}

/* Money blown up inside section titles (Prizes header). */
.subsection-title .money { font-size: clamp(44px, 7vw, 68px); }

.body-grid {
  margin-top: 64px;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 64px;
}
.body-prose { color: var(--text-secondary); font-size: 17px; line-height: 1.65; max-width: 64ch; }
.body-prose p + p { margin-top: 16px; }
.facts {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; height: fit-content;
}
.fact-row { padding: 14px 0; border-bottom: 1px solid var(--border); }
.fact-row:first-child { padding-top: 0; }
.fact-row:last-child { padding-bottom: 0; border-bottom: none; }
.fact-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.fact-value { margin-top: 4px; font-size: 16px; color: var(--text); font-weight: 500; }

.subsection-kicker {
  color: var(--accent); font-size: 11px; font-family: var(--font-mono);
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px;
  display: inline-flex; align-items: center; gap: 10px;
}
.subsection-kicker::before { content:''; width: 24px; height: 1px; background: currentColor; }
.subsection-title { margin: 0; font-size: 36px; font-weight: 600; color: var(--text); letter-spacing: -.02em; }
.subsection-intro { margin: 14px 0 0; color: var(--text-dim); font-size: 16px; line-height: 1.55; max-width: 64ch; }
.subsection { margin-top: 64px; }
.subsection-head { margin-bottom: 24px; }

/* ─── How to enter ───────────────────────────────────────────────────────── */
.enter-steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.enter-step {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.enter-step-n {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.enter-step-n::before { content:''; width: 24px; height: 1px; background: var(--accent); }
.enter-step-title {
  margin: 0; font-family: var(--font-sans); font-size: 22px; font-weight: 600;
  color: var(--text); letter-spacing: -.015em; line-height: 1.2;
}
.enter-step-text {
  margin: 0; color: var(--text-dim); font-size: 15px; line-height: 1.55;
}
.enter-step-ctas {
  margin-top: 4px;
  display: flex; flex-direction: column; gap: 14px;
}
.enter-cta-block { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.enter-cta-block .btn { width: 100%; }
.enter-cta-code {
  display: flex; flex-direction: column; gap: 6px;
}
.enter-code {
  display: block; padding: 12px 14px;
  background: var(--bg-overlay); border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
  letter-spacing: 0;
  user-select: all; -webkit-user-select: all;
}
.enter-cta-hint {
  font-size: 12px; color: var(--text-muted); line-height: 1.4;
}
.enter-asset {
  margin-top: 4px;
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border-radius: var(--r-md);
  background: var(--bg-overlay); border: 1px solid var(--border);
  text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.enter-asset:hover { border-color: var(--accent); transform: translateY(-1px); text-decoration: none; }
.enter-asset-img {
  width: 72px; height: 72px; flex: none;
  border-radius: var(--r-sm); object-fit: cover; display: block;
}
.enter-asset-text { display: flex; flex-direction: column; gap: 4px; }
.enter-asset-label { color: var(--accent); font-weight: 600; font-size: 14px; }

@media (max-width: 900px) {
  .enter-steps { grid-template-columns: 1fr; }
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.prize-card {
  padding: 22px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 120px;
}
.prize-card--big {
  background: linear-gradient(180deg, rgba(23,205,255,.12), rgba(23,205,255,.03));
  border-color: rgba(23,205,255,.35);
  box-shadow: 0 0 24px rgba(23,205,255,.08) inset;
}
.prize-rank {
  font-size: 11px; color: var(--text-muted);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .18em; font-weight: 600;
}
.prize-card--big .prize-rank { color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.prize-value { font-size: 22px; color: var(--text); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; margin-top: auto; }
.prize-card--big .prize-value { font-size: 28px; }
.prize-note { margin: 16px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.rules-list { list-style: none; padding: 0; margin: 0; }
.rules-list li {
  padding: 14px 0; color: var(--text-secondary); font-size: 16px; line-height: 1.5;
  border-bottom: 1px solid var(--border); display: flex; gap: 14px;
}
.rules-list li:last-child { border-bottom: none; }
.rules-list li::before {
  content: '→'; color: var(--accent); font-family: var(--font-mono); flex-shrink: 0;
}

.schedule { display: flex; flex-direction: column; }
.schedule-row {
  display: grid; grid-template-columns: 180px 1fr; gap: 32px;
  padding: 20px 0; border-top: 1px solid var(--border);
  transition: opacity 200ms ease;
}
.schedule-row:last-child { border-bottom: 1px solid var(--border); }
.schedule-when { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); letter-spacing: -.01em; }
.schedule-label-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.schedule-label { font-size: 17px; color: var(--text); font-weight: 600; }
.schedule-detail { margin-top: 4px; font-size: 14px; color: var(--text-muted); }

/* Past, dim, completed. */
.schedule-row.is-past { opacity: 0.45; }
.schedule-row.is-past .schedule-label { color: var(--text-dim); font-weight: 500; }
.schedule-row.is-past .schedule-when  { color: var(--gray-7); }

/* Current, accent rail + slight tint. */
.schedule-row.is-current {
  position: relative;
  padding-left: 20px;
  background: linear-gradient(90deg, rgba(23,205,255,.07), transparent 60%);
  border-top-color: rgba(23,205,255,.25);
}
.schedule-row.is-current + .schedule-row { border-top-color: rgba(23,205,255,.25); }
.schedule-row.is-current::before {
  content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px;
  background: var(--accent); border-radius: 3px;
  box-shadow: 0 0 12px rgba(23,205,255,.55);
}
.schedule-row.is-current .schedule-when  { color: var(--accent); }
.schedule-row.is-current .schedule-label { color: var(--text); }

/* Status pill on schedule rows. */
.schedule-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 10px; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 600; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
}
.schedule-pill--now {
  color: var(--accent); background: rgba(23,205,255,.12);
  box-shadow: 0 0 12px rgba(23,205,255,.35);
}
.schedule-pill--now .chip-dot { background: var(--accent); animation: chipPulse 1.6s ease-in-out infinite; box-shadow: 0 0 8px var(--accent); }
.schedule-pill--done {
  color: var(--gray-6); background: rgba(127,132,139,.10);
}

.cta-strip {
  margin-top: 80px; padding: 48px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-xl);
  text-align: center;
}
.cta-strip-money { margin-bottom: 18px; }
.cta-strip-money .money { font-size: clamp(56px, 9vw, 88px); }
.cta-strip-h { margin: 0; font-size: 32px; color: var(--text); font-weight: 700; letter-spacing: -.02em; }
.cta-strip-p { margin: 12px auto 0; color: var(--text-muted); max-width: 520px; }
.cta-strip-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-strip-form { max-width: 480px; margin: 28px auto 0; text-align: left; }
.cta-strip-form .isub-consent, .cta-strip-form .isub-foot { text-align: left; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .shell { padding: 0 20px 64px; }
  .featured { grid-template-columns: 1fr; }
  .featured-img { aspect-ratio: 16/9; min-height: 0; }
  .featured-body { padding: 28px; }
  .detail-hero-body { padding: 48px 28px 32px; }
  .actionbar { grid-template-columns: 1fr; gap: 20px; }
  .body-grid { grid-template-columns: 1fr; gap: 32px; }
  .schedule-row { grid-template-columns: 1fr; gap: 4px; }
  .prize-card--big { grid-column: span 1; }
  .countdown-unit.is-large { min-width: 56px; }
  .countdown-unit.is-large .countdown-num { font-size: 36px; }
  /* Open the popover from the button's left edge, capped to the viewport so it
     never opens off-screen or gets crushed to the button's width. */
  .popover { left: 0; right: auto; width: min(360px, calc(100vw - 40px)); }
}
@media (max-width: 500px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .topbar-right { width: 100%; justify-content: flex-end; }
  /* Shrink the large countdown so it never crowds a phone's width. */
  .countdown-row.is-large { gap: 6px; }
  .countdown-unit.is-large { min-width: 46px; }
  .countdown-unit.is-large .countdown-num { font-size: 30px; }
  .countdown-row.is-large .countdown-sep { font-size: 22px; margin-bottom: 12px; }
  .hero2-money .money, .cta-strip-money .money { font-size: 40px; }
}

/* ─── App nav (run.game-style hamburger + drawer) ────────────────────────────
 * Visual parity with the venus WebSidebar; rows deep-link out to run.game. */
.topbar-left { display: flex; align-items: center; gap: 10px; }

.nav-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; flex: none;
  background: transparent; border: 0; border-radius: var(--r-md);
  color: var(--text); cursor: pointer;
  transition: background .15s ease;
}
.nav-burger:hover { background: rgba(255, 255, 255, .06); }
.nav-burger svg { display: block; width: 24px; height: 24px; }

.app-drawer-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.app-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.app-drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 200;
  display: flex; flex-direction: column;
  width: 280px; max-width: 86vw;
  padding: 0 8px 16px;
  background: rgba(13, 15, 18, .97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow-floating);
  transform: translateX(-100%);
  transition: transform .25s ease;
}
.app-drawer.is-open { transform: none; }

.app-drawer-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 12px 12px;
}
.app-drawer-head .brand-logo { display: block; height: 22px; width: auto; }

.app-drawer-nav { flex: 1; overflow-y: auto; padding: 8px 4px; }
.app-drawer-foot { padding: 0 4px; }

.app-drawer-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px; margin-bottom: 2px;
  border-radius: var(--r-lg);
  color: var(--text-muted); font-size: 16px; font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.app-drawer-row:hover {
  color: var(--text); background: rgba(255, 255, 255, .04);
  text-decoration: none;
}
.app-drawer-row svg { flex: none; display: block; width: 24px; height: 24px; }
.app-drawer-row--cta { background: var(--accent); color: var(--gray-12); }
.app-drawer-row--cta:hover { background: var(--accent); color: var(--gray-12); opacity: .9; }

.app-drawer-divider { height: 1px; background: var(--border); margin: 12px 8px; }
/* ═══════════════════════════════════════════════════════════════════════════
 * IDLE HANDS, active-state additions
 * Live-jam momentum band (.ongoing-grid, reuses .meantime-card) + the
 * detailed FAQ accordion (.faq*). Self-contained; safe to lift out.
 * ═══════════════════════════════════════════════════════════════════════════ */

/* Live-jam momentum cards, 3-up that collapses to one column. */
.ongoing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .ongoing-grid { grid-template-columns: 1fr; } }

/* ─── FAQ accordion ──────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color .15s ease;
}
.faq-item:hover { border-color: var(--gray-8); }
.faq-item[open] { border-color: rgba(23,205,255,.4); }
.faq-q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  font-family: var(--font-sans); font-size: 18px; font-weight: 600;
  color: var(--text); letter-spacing: -.01em; line-height: 1.3;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { background: rgba(255,255,255,.02); }
.faq-q-ico { flex: none; color: var(--text-muted); display: inline-flex; transition: transform .2s ease, color .2s ease; }
.faq-item[open] .faq-q-ico { transform: rotate(180deg); color: var(--accent); }

.faq-a { padding: 0 24px 26px; }
.faq-p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: var(--text-dim); }
.faq-p:last-child { margin-bottom: 0; }

.faq-steps {
  margin: 14px 0 0; padding: 0; list-style: none;
  counter-reset: faq;
  display: flex; flex-direction: column; gap: 20px;
}
.faq-step { position: relative; padding-left: 46px; counter-increment: faq; }
.faq-step::before {
  content: counter(faq);
  position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(23,205,255,.12); border: 1px solid rgba(23,205,255,.4);
  color: var(--accent);
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.faq-step-text { font-size: 15px; line-height: 1.6; color: var(--text-secondary); padding-top: 3px; }
.faq-code {
  display: block; margin-top: 12px;
  white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5;
}
.faq-code-note { margin-top: 8px; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.faq-step-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.faq-link { font-weight: 600; font-size: 14px; color: var(--accent); }
.faq-link:hover { opacity: .8; }

.faq-note {
  margin-top: 20px; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md);
  background: rgba(255,210,63,.08); border: 1px solid rgba(255,210,63,.3);
  font-size: 14px; line-height: 1.55; color: var(--text-secondary);
}
.faq-note-ico { flex: none; color: var(--launch-yellow); display: inline-flex; }
.faq-note-ico svg { width: 18px; height: 18px; }
.faq-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ─── Click-to-copy command chips ────────────────────────────────────────── */
.code-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; user-select: none; -webkit-user-select: none;
  padding-right: 12px;
  transition: border-color .15s ease, background .15s ease;
}
.code-copy:hover { border-color: var(--accent); background: rgba(23,205,255,.05); }
.code-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.code-copy-text { overflow-wrap: anywhere; white-space: pre-wrap; }
.code-copy-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; color: var(--text-muted); transition: color .15s ease; }
.code-copy:hover .code-copy-btn { color: var(--accent); }
.code-copy-btn svg { display: block; }
.code-copy-btn svg:nth-of-type(2) { display: none; }            /* check hidden at rest */
.code-copy-ok { display: none; font-family: var(--font-body); font-size: 12px; font-weight: 600; }
.code-copy.is-copied { border-color: rgba(47,230,184,.5); background: rgba(47,230,184,.07); }
.code-copy.is-copied .code-copy-btn { color: var(--flux-green); }
.code-copy.is-copied .code-copy-btn svg:nth-of-type(1) { display: none; }   /* hide copy icon */
.code-copy.is-copied .code-copy-btn svg:nth-of-type(2) { display: block; }  /* show check */
.code-copy.is-copied .code-copy-ok { display: inline; }

/* ─── FAQ inline screenshots ─────────────────────────────────────────────── */
.faq-shot { margin: 14px 0 0; max-width: 560px; }
.faq-shot img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--gray-12);
}
.faq-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--text-muted); line-height: 1.45; }

/* ─── FAQ tabs (Studio vs Cursor/Claude Code) ────────────────────────────── */
.faq-tabs {
  display: inline-flex; gap: 4px; flex-wrap: wrap;
  padding: 5px; margin-bottom: 4px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--r-pill);
}
.faq-tab {
  appearance: none; border: 0; cursor: pointer;
  height: 40px; padding: 0 22px; border-radius: var(--r-pill);
  background: transparent; color: var(--text-muted);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  transition: background .15s ease, color .15s ease;
}
.faq-tab:hover { color: var(--text); }
.faq-tab.is-active { background: var(--orbit-blue); color: var(--gray-12); }
.faq-panel[hidden] { display: none; }
.faq-panel-tagline { margin: 16px 0 18px; color: var(--text-dim); font-size: 15px; line-height: 1.55; }
.faq-common { margin-top: 44px; }
.faq-common-title { margin: 0 0 16px; font-size: 20px; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
@media (max-width: 560px) {
  .faq-tabs { display: flex; width: 100%; }
  .faq-tab { flex: 1; padding: 0 12px; }
}

/* ─── Detailed-guide trigger + modal ─────────────────────────────────────── */
.guide-cta {
  margin-top: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  padding: 22px 26px; border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 8% 0%, rgba(23,205,255,.10), transparent 60%),
    var(--bg-elevated);
  border: 1px solid rgba(23,205,255,.28);
}
.guide-cta-text { min-width: 0; }
.guide-cta-h { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.guide-cta-p { margin-top: 4px; font-size: 14px; color: var(--text-dim); line-height: 1.5; max-width: 62ch; }
.guide-cta .btn { flex: none; }

.guide-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 24px; }
.guide-modal[hidden] { display: none; }
.guide-modal-backdrop {
  position: absolute; inset: 0; background: rgba(3,4,6,.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: guideFade .2s ease;
}
@keyframes guideFade { from { opacity: 0; } to { opacity: 1; } }
.guide-modal-dialog {
  position: relative; z-index: 1;
  width: min(900px, 100%); max-height: min(88vh, 940px);
  display: flex; flex-direction: column;
  background: var(--bg-overlay); border: 1px solid var(--border);
  border-radius: var(--r-2xl); box-shadow: var(--shadow-floating);
  overflow: hidden; animation: guideRise .22s ease;
}
@keyframes guideRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.guide-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 16px; }
.guide-modal-title { margin: 6px 0 0; font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.guide-modal-close {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--border); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.guide-modal-close:hover { background: rgba(255,255,255,.06); border-color: var(--gray-7); }
.guide-modal-tabs {
  display: inline-flex; gap: 4px; flex-wrap: wrap; align-self: flex-start;
  margin: 0 24px; padding: 5px;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--r-pill);
}
.guide-modal-body { padding: 20px 24px 28px; overflow-y: auto; }
.guide-modal-body .faq-panel-tagline { margin-top: 4px; }
@media (max-width: 560px) {
  .guide-cta { gap: 16px; padding: 20px; }
  .guide-cta .btn { width: 100%; }
  .guide-modal { padding: 0; }
  .guide-modal-dialog { width: 100%; max-height: 100vh; height: 100%; border-radius: 0; border: 0; }
  .guide-modal-tabs { display: flex; margin: 0 16px; }
  .guide-modal-tabs .faq-tab { flex: 1; padding: 0 10px; }
  .guide-modal-head { padding: 18px 16px 12px; }
  .guide-modal-body { padding: 16px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
 * State machine: preview switcher + deep-link affordances
 * ═══════════════════════════════════════════════════════════════════════════ */

/* FAQ per-item copy-link (appears on hover; flips to a check when copied). */
.faq-q-tools { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.faq-q-link {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 28px; height: 28px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); opacity: 0;
  transition: opacity .15s ease, color .15s ease, background .15s ease;
}
.faq-item:hover .faq-q-link, .faq-q-link:focus-visible { opacity: 1; }
.faq-q-link:hover { color: var(--accent); background: rgba(255,255,255,.05); }
.faq-q-link svg { display: block; }
.faq-q-link svg:nth-of-type(2) { display: none; }
.faq-q-link.is-copied { color: var(--flux-green); opacity: 1; }
.faq-q-link.is-copied svg:nth-of-type(1) { display: none; }
.faq-q-link.is-copied svg:nth-of-type(2) { display: block; }

/* Guide modal: copy-link button next to the close button. */
.guide-modal-head-tools { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.guide-modal-link {
  height: 40px; padding: 0 14px; border-radius: var(--r-md);
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; border: 1px solid var(--border); color: var(--text-muted);
  font-family: var(--font-body); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.guide-modal-link:hover { color: var(--text); border-color: var(--gray-7); background: rgba(255,255,255,.04); }
.guide-modal-link svg { display: block; }
.guide-modal-link svg:nth-of-type(2) { display: none; }
.guide-modal-link .code-copy-ok { display: none; }
.guide-modal-link.is-copied { color: var(--flux-green); border-color: rgba(47,230,184,.5); }
.guide-modal-link.is-copied svg:nth-of-type(1) { display: none; }
.guide-modal-link.is-copied svg:nth-of-type(2) { display: block; }
.guide-modal-link.is-copied .code-copy-ok { display: inline; }

/* The ?state= preview switcher (only present when previewing). */
.preview-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 400;
  display: flex; align-items: center; gap: 14px;
  padding: 8px 10px 8px 16px; border-radius: var(--r-pill);
  background: var(--bg-overlay); border: 1px solid var(--border); box-shadow: var(--shadow-floating);
}
.preview-bar-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.preview-bar-btns { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-elevated); border-radius: var(--r-pill); }
.preview-bar-btn {
  appearance: none; border: 0; cursor: pointer;
  height: 30px; padding: 0 14px; border-radius: var(--r-pill);
  background: transparent; color: var(--text-muted);
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  transition: background .15s ease, color .15s ease;
}
.preview-bar-btn:hover { color: var(--text); }
.preview-bar-btn.is-active { background: var(--orbit-blue); color: var(--gray-12); }
.preview-bar-exit { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.preview-bar-exit:hover { color: var(--text); }
@media (max-width: 560px) {
  .preview-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; gap: 8px; padding: 8px 10px; }
  .preview-bar-label { display: none; }
}
