/* ===========================================================
   Quoll-Q — public website (quoll-q.com)

   Drawn from the player app's palette (src/theme/palette.js): the same
   tokens, the same two palettes. Dark is the app as designed; light is the
   app's light mode (white page, deep red bars, red band). The site follows
   the visitor's device setting, as the app follows Appearance.

   Mode colours carry meaning everywhere, exactly as in the app:
   Live = blue, Leg-it = purple, Squads = green, rewards = gold.
   =========================================================== */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/manrope-500.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/manrope-700.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/manrope-800.woff2') format('woff2'); }

/* ── Dark palette (the app as designed) ── */
:root {
  color-scheme: dark;
  --page: #000000;
  --surface: #0B0F17;
  --raised: #16202E;
  --raised-border: #2A3A52;
  --text: #FFFFFF;
  --text-soft: #DDE2EA;
  --text-body: #B4BCC8;
  --text-secondary: #9AA3B2;
  --text-muted: #7D8696;
  --text-faint: #4E5666;
  --hairline: rgba(255,255,255,0.09);

  --nav: #0A1020;
  --nav-border: rgba(255,255,255,0.06);
  --nav-text: #FFFFFF;
  --nav-haze: rgba(42,42,106,0.24);
  --accent: #57B8FF;          /* small accent text: blue in dark, red in light */

  --band: #0B3D84;
  --band-text: #FFFFFF;
  --band-label: #8FAEDC;
  --band-secondary: #B7CDEE;
  --band-rule: #2A5598;

  --live: #57B8FF;
  --legit: #B79BFF;
  --squad: #5BE58F;
  --route: #FF6F6F;
  --live-now: #F26B6B;
  --gold: #F5C84C;
  --danger: #E5484D;

  --on-mode: #04080F;          /* text on a filled mode-colour button */
  --focus: #FFFFFF;
  --radius: 12px;
  --radius-panel: 16px;
}

/* ── Light palette (the app's light mode) ── */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --page: #FFFFFF;
    --surface: #F4EAEA;
    --raised: #EBDDDD;
    --raised-border: #D8C3C3;
    --text: #1A0B0B;
    --text-soft: #3A2424;
    --text-body: #4A3434;
    --text-secondary: #6E5A5A;
    --text-muted: #7D6868;
    --text-faint: #B9A5A5;
    --hairline: rgba(26,11,11,0.10);

    --nav: #7A1611;
    --nav-border: rgba(0,0,0,0.18);
    --nav-text: #FFFFFF;
    --nav-haze: rgba(214,72,60,0.30);
    --accent: #C0281F;

    --band: #A3201B;
    --band-text: #FFFFFF;
    --band-label: #F9D3D0;
    --band-secondary: #FAD4D1;
    --band-rule: #C24B44;

    /* Text-safe (WCAG AA on white) versions of the app's light mode colours. */
    --live: #0A6EC2;
    --legit: #6D3FD8;
    --squad: #0F7F48;
    --route: #F04848;
    --live-now: #E53E3E;
    --gold: #8C5D00;
    --danger: #DC3438;

    --on-mode: #FFFFFF;
    --focus: #1A0B0B;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--page);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { color: var(--text); font-weight: 700; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--live); color: var(--on-mode);
  padding: 12px 20px; z-index: 300; font-weight: 700; text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { left: 16px; top: 16px; }

a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
main:focus { outline: none; }



/* ── HEADER: an open website bar ──
   Transparent over the top of the page; turns solid once the visitor scrolls
   (main.js adds .is-scrolled). Every link is always visible: no menu button. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.25s, border-color 0.25s;
}
.js .site-header:not(.is-scrolled) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-nav {
  display: flex; align-items: center; gap: 12px 36px;
  max-width: 1240px; margin: 0 auto; padding: 16px 48px;
  color: var(--text);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; margin-right: auto; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text { font-weight: 800; font-size: 20px; letter-spacing: -0.015em; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; text-decoration: none;
  font-size: 15px; font-weight: 700; color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
/* For Shops is the business doorway: gold, with a shop dot, so it is never missed. */
.nav-links a.nav-shops { color: var(--gold); gap: 8px; }
.nav-links a.nav-shops::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.nav-links a.nav-shops:hover, .nav-links a.nav-shops[aria-current="page"] { color: var(--gold); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  background: var(--live); color: var(--on-mode); text-decoration: none;
  padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 800; white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.9; }
@media (max-width: 860px) {
  /* Two rows on phones: logo + Join on top, the three links underneath. */
  .site-nav { flex-wrap: wrap; padding: 10px 16px 4px; gap: 0 12px; }
  .nav-logo img { height: 30px; }
  .nav-logo-text { font-size: 18px; }
  .nav-cta { order: 2; min-height: 40px; padding: 0 16px; font-size: 14px; }
  .nav-links { order: 3; width: 100%; justify-content: space-between; gap: 8px; padding-top: 2px; }
  .nav-links a { font-size: 14px; min-height: 42px; }
  .nav-links a[aria-current="page"] { text-underline-offset: 6px; }
}
@media (max-width: 359px) { .nav-links a { font-size: 13px; } .nav-links a.nav-shops::before { width: 6px; height: 6px; } }

/* ── LAYOUT ── */
section { position: relative; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .container { padding: 0 16px; } }
.section { padding: 100px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } }
.rule-top { border-top: 1px solid var(--hairline); }

/* The app's section label: small caps, wide tracking, trailing hairline. */
.section-label {
  font-weight: 800; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::after { content: ''; flex: 1; max-width: 160px; height: 1px; background: var(--hairline); }
.section-label.live { color: var(--live); }
.section-label.legit { color: var(--legit); }
.section-label.squad { color: var(--squad); }
.section-label.gold { color: var(--gold); }

.section-title { font-weight: 800; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.06; letter-spacing: -0.025em; margin-bottom: 18px; }
h1.section-title { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.03em; }
.accent { color: var(--live); }
.accent-legit { color: var(--legit); }
.accent-squad { color: var(--squad); }
.accent-gold { color: var(--gold); }
.section-sub { font-size: 17px; color: var(--text-secondary); max-width: 600px; line-height: 1.65; }
.section-sub a, .inline-strong { color: var(--text); font-weight: 800; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* ── Buttons ── */
.btn-primary, .btn-ghost, .waitlist-submit, .btn-band {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: var(--radius);
  font-family: inherit; font-weight: 800; font-size: 16px; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, border-color 0.2s;
}
.btn-primary { background: var(--live); color: var(--on-mode); border: 0; padding: 14px 26px; }
.btn-primary.btn-gold { background: var(--gold); color: #1A1204; }
@media (prefers-color-scheme: light) { .btn-primary.btn-gold { color: #FFFFFF; } }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.chev { font-size: 20px; line-height: 0; margin-top: -2px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--raised-border); padding: 13px 24px; }
.btn-ghost:hover { border-color: var(--text-secondary); }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
@media (max-width: 420px) { .hero-ctas > a { width: 100%; } }

.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 15px; font-weight: 800; text-decoration: none; color: var(--accent); }
.text-link.live { color: var(--live); }
.text-link.legit { color: var(--legit); }
.text-link.squad { color: var(--squad); }
.text-link.gold { color: var(--gold); margin-top: 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── HERO ── */
.hero { min-height: 92vh; display: flex; align-items: center; padding-top: 72px; overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center;
  width: 100%; max-width: 1120px; margin: 0 auto; padding: 56px 48px;
}
@media (max-width: 900px) {
  .hero { padding-top: 64px; min-height: unset; }
  .hero-inner { grid-template-columns: 1fr; padding: 36px 16px 56px; gap: 44px; }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero-badge::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.hero-headline { font-weight: 800; font-size: clamp(44px, 6.4vw, 76px); line-height: 1.0; letter-spacing: -0.035em; margin-bottom: 24px; }
.hero-sub { font-size: 18px; color: var(--text-secondary); line-height: 1.65; max-width: 500px; }
.hero-content .hero-ctas { margin-top: 32px; }

.hero-alt { display: flex; align-items: center; gap: 14px; max-width: 480px; margin-top: 36px; padding-left: 14px; border-left: 3px solid var(--gold); }
.hero-alt-label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.hero-alt-text { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.hero-alt a { margin-left: auto; color: var(--text); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; padding: 10px 0; }
.hero-alt a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 420px) { .hero-alt { flex-wrap: wrap; } .hero-alt a { margin-left: 0; } }

/* Phone screenshots: the app's own rounded frame. */
figure { margin: 0; }
.phone {
  display: block; width: 100%; max-width: 300px; margin: 0 auto;
  border-radius: 34px; overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  background: var(--page);
}
@media (prefers-color-scheme: light) { .phone { box-shadow: 0 24px 60px rgba(122,22,17,0.16); } }
.phone img { width: 100%; height: auto; display: block; }
@media (max-width: 900px) { .hero-visual .phone { max-width: 270px; } }
.screenshot-caption {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  text-align: center; color: var(--text-muted); margin: 14px 0 0;
}

/* ── Steps ── */
.steps-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 40px; border-top: 1px solid var(--hairline); }
.steps-grid.four { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
.step-card { padding: 30px 28px 30px 0; }
.step-card + .step-card { padding-left: 28px; border-left: 1px solid var(--hairline); }
@media (max-width: 860px) { .steps-grid.four { grid-template-columns: 1fr 1fr; } .steps-grid.four .step-card:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 760px) {
  .steps-grid, .steps-grid.four { grid-template-columns: 1fr; }
  .step-card, .step-card + .step-card, .steps-grid.four .step-card:nth-child(3) { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--hairline); }
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--live) 18%, transparent); color: var(--live);
  font-size: 13px; font-weight: 800; margin-bottom: 16px;
}
.step-card:nth-child(2) .step-num { background: color-mix(in srgb, var(--squad) 18%, transparent); color: var(--squad); }
.step-card:nth-child(3) .step-num { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.step-card:nth-child(4) .step-num { background: color-mix(in srgb, var(--legit) 20%, transparent); color: var(--legit); }
.step-title { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 8px; }
.step-text { font-size: 15px; color: var(--text-secondary); line-height: 1.65; }

.evidence { margin-top: 64px; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
@media (max-width: 760px) { .evidence { grid-template-columns: 1fr; gap: 28px; } }
.evidence-frame { max-width: 260px; width: 100%; margin: 0 auto; }
.evidence-text h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.evidence-text p { color: var(--text-secondary); font-size: 16px; line-height: 1.65; max-width: 460px; }

/* ── Modes ── */
.modes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
@media (max-width: 800px) { .modes-grid { grid-template-columns: 1fr; } }
.mode-card { background: var(--surface); border-radius: var(--radius-panel); padding: 36px 34px 32px; position: relative; overflow: hidden; }
@media (max-width: 420px) { .mode-card { padding: 28px 22px 26px; } }
.mode-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.mode-card.live::before { background: var(--live); }
.mode-card.legit::before { background: var(--legit); }
.mode-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.mode-tag.live { color: var(--live); }
.mode-tag.legit { color: var(--legit); }
.mode-title { font-size: 34px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; margin-bottom: 14px; }
.mode-title .sub-title { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.005em; color: var(--text-secondary); margin-top: 6px; }
.mode-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 22px; }
.mode-features { list-style: none; border-top: 1px solid var(--hairline); }
.mode-features li { position: relative; font-size: 15px; font-weight: 600; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--hairline); color: var(--text-soft); }
.mode-features li::before { content: ''; position: absolute; left: 0; top: 21px; width: 8px; height: 8px; border-radius: 50%; }
.mode-card.live .mode-features li::before { background: var(--live); }
.mode-card.legit .mode-features li::before { background: var(--legit); }

/* ── Split (Squads) ── */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } .split-visual { order: 2; } }
.feature-list { list-style: none; margin-top: 28px; border-top: 1px solid var(--hairline); }
.feature-list li { padding: 16px 0 16px 18px; border-bottom: 1px solid var(--hairline); border-left: 3px solid var(--squad); margin-bottom: -1px; }
.feature-list h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 3px; }
.feature-list p { font-size: 15px; color: var(--text-secondary); line-height: 1.55; }

/* ── Rewards ── */
.rewards-grid { display: grid; grid-template-columns: 280px 1fr; gap: 64px; margin-top: 44px; align-items: center; }
@media (max-width: 860px) { .rewards-grid { grid-template-columns: 1fr; gap: 36px; } }
.rewards-visual { max-width: 260px; width: 100%; margin: 0 auto; }
.rewards-list { list-style: none; border-top: 1px solid var(--hairline); }
.reward-row { padding: 20px 0; display: flex; gap: 18px; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--hairline); }
.reward-row-title { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 4px; }
.reward-row-text { font-size: 15px; color: var(--text-secondary); line-height: 1.6; max-width: 520px; }
.reward-tag {
  font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap; margin-top: 4px; padding: 5px 9px; border-radius: 999px;
  color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, transparent);
}
.reward-tag.live { color: var(--live); background: color-mix(in srgb, var(--live) 14%, transparent); }
.reward-tag.squad { color: var(--squad); background: color-mix(in srgb, var(--squad) 14%, transparent); }
.reward-tag.legit { color: var(--legit); background: color-mix(in srgb, var(--legit) 16%, transparent); }

/* ── The page's one band ── */
.join { padding: 0 0 100px; scroll-margin-top: 80px; }
.page-hero + .join, .detail-block + .join { padding-top: 64px; }
.band { background: var(--band); color: var(--band-text); border-radius: 22px; padding: 64px 56px; position: relative; overflow: hidden; }
.band::after {
  content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid var(--band-rule); box-shadow: 0 0 0 60px color-mix(in srgb, var(--band-rule) 18%, transparent);
  pointer-events: none; opacity: 0.6;
}
@media (max-width: 720px) { .band { padding: 40px 22px; border-radius: 18px; } }
.band > * { position: relative; z-index: 1; }
.band-tag { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-label); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.band-tag::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--band-text); }
.band-headline { font-weight: 800; font-size: clamp(34px, 5.4vw, 60px); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 18px; color: var(--band-text); }
.band-sub { font-size: 17px; color: var(--band-secondary); max-width: 540px; margin: 0 0 30px; line-height: 1.65; }
.btn-band { background: var(--band-text); color: var(--band); border: 0; padding: 14px 24px; }
.btn-band:hover { opacity: 0.9; }
.band-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.band-link { color: var(--band-text); font-weight: 800; text-decoration: none; padding: 12px 0; }
.band-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.band-note { font-size: 14px; color: var(--band-label); margin-top: 22px; }
.band a:not(.btn-band):not(.band-link) { color: var(--band-text); text-underline-offset: 3px; }
.band :focus-visible { outline-color: var(--band-text); }

.waitlist-form { display: flex; gap: 10px; max-width: 540px; flex-wrap: wrap; align-items: flex-end; }
.waitlist-field { flex: 1; min-width: 220px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--band-label); margin-bottom: 8px; display: block; }
.waitlist-input {
  width: 100%; min-height: 50px;
  background: color-mix(in srgb, #000 22%, transparent);
  border: 1px solid var(--band-label); border-radius: var(--radius);
  padding: 14px 16px; color: var(--band-text);
  font-family: inherit; font-size: 16px;
}
.waitlist-input::placeholder { color: color-mix(in srgb, var(--band-text) 60%, transparent); }
.waitlist-input:focus { border-color: var(--band-text); outline: 2px solid var(--band-text); outline-offset: 1px; }
.waitlist-input[aria-invalid="true"] { border-color: #FFD2CE; border-width: 2px; }
.waitlist-submit { background: var(--band-text); color: var(--band); border: 0; padding: 14px 22px; white-space: nowrap; min-height: 50px; }
.waitlist-submit:hover { opacity: 0.9; }
.waitlist-submit:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 520px) { .waitlist-form { flex-direction: column; align-items: stretch; } .waitlist-submit { width: 100%; } }
.waitlist-status { margin-top: 14px; font-size: 15px; font-weight: 700; max-width: 540px; min-height: 1px; }
.waitlist-status:empty { margin-top: 0; }
.waitlist-status[data-state="success"] { color: var(--band-text); }
.waitlist-status[data-state="error"] { color: #FFE1DE; }
.waitlist-status[data-state="loading"] { color: var(--band-secondary); }
.waitlist-privacy { font-size: 13px; color: var(--band-secondary); max-width: 540px; margin: 16px 0 0; line-height: 1.5; }

/* ── Shops strip ── */
.shops-strip { padding: 30px 0; border-top: 1px solid var(--hairline); }
.shops-strip-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.shops-strip p { font-size: 15px; color: var(--text-secondary); max-width: 620px; }

/* ── Sub pages ── */
.page-hero { padding: 150px 0 56px; border-bottom: 1px solid var(--hairline); }
.page-hero-tall { min-height: 80vh; border-bottom: 0; }
@media (max-width: 720px) { .page-hero { padding: 116px 0 44px; } }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump-links a { text-decoration: none; font-size: 14px; font-weight: 700; color: var(--text-soft); border: 1px solid var(--raised-border); border-radius: 999px; padding: 9px 14px; }
.jump-links a:hover { border-color: var(--text-secondary); color: var(--text); }

.detail-block { padding: 64px 0; border-bottom: 1px solid var(--hairline); scroll-margin-top: 64px; }
@media (max-width: 720px) { .detail-block { padding: 48px 0; } }
.detail-block .container { max-width: 860px; }
.detail-block h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.025em; margin-bottom: 16px; line-height: 1.08; }
.detail-block p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; margin-bottom: 16px; max-width: 700px; }
.detail-block p a:not([class]) { color: var(--text); text-underline-offset: 3px; }
.detail-list { list-style: none; margin-top: 18px; border-top: 1px solid var(--hairline); }
.detail-list li { position: relative; font-size: 16px; color: var(--text-soft); padding: 13px 0 13px 20px; border-bottom: 1px solid var(--hairline); line-height: 1.6; }
.detail-list li::before { content: ''; position: absolute; left: 0; top: 23px; width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); }
#live .detail-list li::before { background: var(--live); }
#legit .detail-list li::before { background: var(--legit); }
#rewards .detail-list li::before { background: var(--gold); }
#parties .detail-list li::before, #squads .detail-list li::before { background: var(--squad); }

.table-wrap { margin-top: 24px; border: 1px solid var(--hairline); border-radius: var(--radius-panel); overflow-x: auto; }
.compare-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.compare-table th, .compare-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--hairline); color: var(--text-soft); vertical-align: top; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { background: var(--surface); font-weight: 800; font-size: 16px; }
.compare-table .live-col { color: var(--live); }
.compare-table .legit-col { color: var(--legit); }
.compare-table tbody th { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); width: 26%; }

.card-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 24px; }
@media (max-width: 680px) { .card-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border-radius: var(--radius-panel); padding: 26px 24px; border-left: 3px solid var(--gold); }
.info-card h3 { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.info-card p { font-size: 15px; margin: 0; }

.band-gold { background: #3A2A06; }
.band-gold { --band-label: #E9CF86; --band-secondary: #F3E3B5; --band-rule: #6B5214; }
@media (prefers-color-scheme: light) { .band-gold { background: #7A5A06; --band-label: #F6E3A9; --band-secondary: #FFF2CC; --band-rule: #9C7A1E; } }
.band-gold .btn-band { color: #3A2A06; }

.faq { border-top: 1px solid var(--hairline); margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; font-size: 17px; font-weight: 800; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--text-muted); font-weight: 600; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 18px; margin: 0; }

.topic-list { list-style: none; border-top: 1px solid var(--hairline); margin-top: 18px; }
.topic-list a { display: flex; flex-direction: column; gap: 2px; padding: 16px 28px 16px 0; text-decoration: none; border-bottom: 1px solid var(--hairline); position: relative; }
.topic-list a::after { content: '›'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--text-muted); }
.topic-list a > span:first-child { font-size: 17px; font-weight: 800; }
.topic-list .topic-hint { font-size: 14px; color: var(--text-secondary); }
.topic-list a:hover > span:first-child { text-decoration: underline; text-underline-offset: 4px; }

.notice-panel { margin-top: 30px; background: var(--surface); border-radius: var(--radius-panel); padding: 26px 24px; border-left: 3px solid var(--live); max-width: 620px; }
.notice-panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.notice-panel p { color: var(--text-secondary); font-size: 16px; line-height: 1.65; }

/* Legal and long-form text */
.prose h2 { font-size: clamp(20px, 2.4vw, 24px); margin: 36px 0 10px; letter-spacing: -0.015em; }
.prose .container > h2:first-child, .prose .callout + h2 { margin-top: 28px; }
.prose ul { margin: 0 0 16px 20px; color: var(--text-secondary); }
.prose li { margin-bottom: 8px; line-height: 1.65; max-width: 680px; }
.prose li strong, .prose p strong { color: var(--text-soft); }
.callout { padding-left: 16px; border-left: 3px solid var(--live); margin-bottom: 8px; }
.callout h2 { font-size: 18px !important; margin: 0 0 6px !important; }
.callout-danger { border-left-color: var(--danger); }
.small-print { font-size: 14px !important; color: var(--text-muted) !important; margin-top: 28px; }
.legal-pending { margin: 0 auto; max-width: 860px; padding: 96px 48px 0; font-size: 14px; color: var(--text-secondary); }
.legal-pending strong { color: var(--gold); }
@media (max-width: 720px) { .legal-pending { padding: 84px 16px 0; } }
.legal-pending + .page-hero { padding-top: 32px; }

/* ── FOOTER: a conventional site footer ── */
.site-footer { background: var(--surface); border-top: 1px solid var(--hairline); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; } .footer-brand { grid-column: 1 / -1; } }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 20px; color: var(--text); min-height: 44px; }
.footer-logo img { height: 30px; width: auto; }
.footer-tag { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); max-width: 340px; }
.footer-cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 20px; padding: 0 20px; border-radius: 999px; background: var(--live); color: var(--on-mode); font-weight: 800; font-size: 15px; text-decoration: none; }
.footer-cta:hover { opacity: 0.9; }
.footer-head { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 8px; }
.footer-col ul { list-style: none; }
.footer-col a { display: inline-block; padding: 8px 0; text-decoration: none; font-size: 15px; font-weight: 600; color: var(--text-secondary); }
.footer-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hairline); }
.footer-legal p { font-size: 13px; color: var(--text-secondary); }

/* ── Reveal-on-scroll (progressive enhancement; see main.js) ── */
.js:not(.reduced-motion) .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js:not(.reduced-motion) .reveal.visible { opacity: 1; transform: none; }

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

/* Light mode: filled step numbers and plain table header keep AA contrast. */
@media (prefers-color-scheme: light) {
  .step-num, .step-card:nth-child(n) .step-num { color: #FFFFFF; background: var(--live); }
  .step-card:nth-child(2) .step-num { background: var(--squad); }
  .step-card:nth-child(3) .step-num { background: var(--gold); }
  .step-card:nth-child(4) .step-num { background: var(--legit); }
  .compare-table thead th { background: var(--page); }
  .reward-tag, .reward-tag.live, .reward-tag.squad, .reward-tag.legit { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
}

/* Long legal documents */
.legal h2 { font-size: clamp(24px, 3vw, 30px) !important; margin: 56px 0 14px !important; padding-top: 24px; border-top: 1px solid var(--hairline); scroll-margin-top: 80px; }
.legal .container > h2:first-child { margin-top: 0 !important; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 26px 0 8px; }
.legal p { font-size: 15.5px; }
.legal a { color: var(--text); text-underline-offset: 3px; overflow-wrap: anywhere; }


/* ===========================================================
   Website scale. The app's colours and type, set at the size and
   rhythm of a website: more space, bigger type, wider desktop layouts.
   =========================================================== */
.container { max-width: 1240px; }
.section { padding: 128px 0; }
@media (max-width: 720px) { .section { padding: 72px 0; } }
.section-label { font-size: 13px; letter-spacing: 0.12em; margin-bottom: 20px; }
.section-label::after { content: none; }
.section-title { font-size: clamp(36px, 5.2vw, 66px); line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 22px; text-wrap: balance; }
h1.section-title { font-size: clamp(42px, 6.6vw, 84px); }
.section-sub { font-size: clamp(17px, 1.5vw, 20px); max-width: 640px; }

/* Hero: wide two-column on desktop, two overlapping screenshots. */
.hero { min-height: 0; padding-top: 0; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--live) 22%, transparent), transparent);
  pointer-events: none;
}
.hero-inner { max-width: 1240px; grid-template-columns: 1.05fr 0.95fr; gap: 48px; padding: 168px 48px 120px; position: relative; }
.hero-headline { font-size: clamp(50px, 7.6vw, 108px); line-height: 0.96; letter-spacing: -0.045em; margin-bottom: 28px; }
.hero-sub { font-size: clamp(18px, 1.5vw, 21px); max-width: 540px; }
.hero-visual { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hero-visual .phone { max-width: 340px; position: relative; z-index: 2; transform: rotate(2.5deg); box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 0 1px var(--hairline); }
.hero-visual .phone-back { position: absolute; left: 2%; top: 9%; max-width: 270px; z-index: 1; transform: rotate(-7deg); opacity: 0.9; }
.hero-visual .screenshot-caption { margin-top: 22px; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 136px 16px 72px; gap: 48px; }
  .hero-visual { min-height: 0; padding-bottom: 28px; }
  .hero-visual .phone { max-width: 270px; transform: none; }
  .hero-visual .phone-back { display: none; }
}
@media (prefers-reduced-motion: no-preference) { .hero-visual .phone { transition: transform 0.6s ease; } }

.phone { max-width: 320px; }
.evidence { grid-template-columns: 320px 1fr; gap: 80px; margin-top: 96px; }
.evidence-frame, .rewards-visual { max-width: 300px; }
.evidence-text h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.evidence-text p { font-size: 18px; }
@media (max-width: 760px) { .evidence { grid-template-columns: 1fr; gap: 32px; margin-top: 64px; } }

.steps-grid { margin-top: 56px; }
.step-title { font-size: clamp(24px, 2.4vw, 30px); }
.step-text { font-size: 16px; }

/* Mode cards: larger, no side rail. */
.modes-grid { gap: 20px; margin-top: 56px; }
.mode-card { padding: 48px 44px 40px; border-radius: 24px; border: 1px solid var(--hairline); }
.mode-card::before { content: none; }
.mode-card.live { background: linear-gradient(160deg, color-mix(in srgb, var(--live) 14%, var(--surface)), var(--surface) 55%); }
.mode-card.legit { background: linear-gradient(160deg, color-mix(in srgb, var(--legit) 14%, var(--surface)), var(--surface) 55%); }
.mode-title { font-size: clamp(34px, 3.4vw, 46px); }
.mode-desc { font-size: 16px; }
@media (max-width: 420px) { .mode-card { padding: 32px 22px 28px; } }

.split { gap: 96px; }
.feature-list li { border-left: 0; padding-left: 0; }
.feature-list h3 { font-size: 19px; color: var(--squad); }
.feature-list p { font-size: 16px; }
.rewards-grid { grid-template-columns: 320px 1fr; gap: 96px; margin-top: 56px; }
@media (max-width: 860px) { .rewards-grid { grid-template-columns: 1fr; gap: 40px; } .split { gap: 48px; } }
.reward-row-title { font-size: 19px; }
.reward-row-text { font-size: 16px; }

.band { padding: 88px 80px; border-radius: 28px; }
@media (max-width: 720px) { .band { padding: 44px 22px; border-radius: 20px; } }
.btn-primary, .btn-ghost, .btn-band, .waitlist-submit { border-radius: 999px; }

/* Shops section on the homepage */
.shops-home { padding: 0 0 128px; }
@media (max-width: 720px) { .shops-home { padding-bottom: 72px; } }
.shops-panel {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px 64px; align-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--hairline));
  background: linear-gradient(140deg, color-mix(in srgb, var(--gold) 12%, var(--surface)), var(--surface) 60%);
  border-radius: 28px; padding: 64px 64px;
}
@media (max-width: 860px) { .shops-panel { grid-template-columns: 1fr; padding: 40px 22px; border-radius: 20px; } }
.shops-panel h2 { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 16px; text-wrap: balance; }
.shops-panel p { font-size: 17px; color: var(--text-secondary); line-height: 1.65; max-width: 520px; }
.shops-points { list-style: none; display: grid; gap: 14px; }
.shops-points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 16px; color: var(--text-soft); line-height: 1.5; }
.shops-points li::before { content: ''; width: 10px; height: 10px; margin: 7px 0 0 6px; border-radius: 50%; background: var(--gold); }
.shops-panel .hero-ctas { margin-top: 28px; }

/* Sub pages */
.page-hero { padding: 184px 0 88px; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; right: -15%; top: -40%; width: 60vw; height: 60vw;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--live) 16%, transparent), transparent);
  pointer-events: none;
}
.page-shops .page-hero::before { background: radial-gradient(closest-side, color-mix(in srgb, var(--gold) 18%, transparent), transparent); }
.page-hero .container { position: relative; }
@media (max-width: 860px) { .page-hero { padding: 140px 0 56px; } }
.legal-pending { padding-top: 140px; }
.legal-pending + .page-hero { padding-top: 32px; }
@media (max-width: 860px) { .legal-pending { padding-top: 128px; } }
.detail-block { padding: 80px 0; }
.detail-block h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -0.03em; }
.detail-block p, .detail-list li { font-size: 17px; }
.info-card { border-left: 0; border: 1px solid var(--hairline); border-radius: 20px; padding: 30px 28px; }
.info-card h3 { color: var(--gold); }
.notice-panel { border-left: 0; border: 1px solid var(--hairline); border-radius: 20px; }
.callout { border-left-width: 2px; }


/* ===========================================================
   Homepage, less templated: plain specific headlines, varied section
   shapes, no glows, no numbered steps.
   =========================================================== */
.hero::before, .page-hero::before { content: none; }
.hero-headline { font-size: clamp(48px, 7vw, 96px); }
.plain-title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; margin-bottom: 20px; text-wrap: balance; }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--text-secondary); max-width: 600px; margin-bottom: 16px; }
.lead + .text-link { margin-top: 8px; }

/* Live: the real sector map, large, beside a race-day timeline. */
.race-day { padding: 128px 0; border-top: 1px solid var(--hairline); }
.race-day-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.map-panel { margin: 0; }
.map-panel img { width: 100%; height: auto; display: block; border-radius: 24px; border: 1px solid var(--hairline); }
.map-panel figcaption { font-size: 13px; color: var(--text-secondary); margin-top: 12px; }
.race-timeline { list-style: none; margin: 28px 0 8px; border-left: 2px solid var(--hairline); }
.race-timeline li { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 0 0 22px 22px; position: relative; }
.race-timeline li::before { content: ''; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px var(--page); }
.race-timeline li:last-child { padding-bottom: 0; }
.race-timeline li:last-child::before { background: var(--gold); }
.tl-mark { font-size: 14px; font-weight: 800; color: var(--live); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl-mark.tl-gold { color: var(--gold); }
.race-timeline h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.race-timeline p { font-size: 16px; color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 900px) {
  .race-day { padding: 72px 0; }
  .race-day-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 480px) { .race-timeline li { grid-template-columns: 1fr; gap: 4px; } }

/* Leg-it: plain text beside the three real distances. */
.legit-home { padding: 112px 0; background: var(--surface); }
.legit-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.distances { list-style: none; display: grid; gap: 4px; }
.distances li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.distances li:last-child { border-bottom: 0; }
.dist { font-size: clamp(48px, 6vw, 80px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--legit); font-variant-numeric: tabular-nums; }
.dist-note { font-size: 15px; color: var(--text-secondary); }
@media (max-width: 860px) { .legit-home { padding: 72px 0; } .legit-grid { grid-template-columns: 1fr; gap: 32px; } }

.social-home { padding: 128px 0; }
.rewards-home { padding: 0 0 128px; }
.rewards-home .rewards-grid { margin-top: 0; align-items: center; }
@media (max-width: 860px) { .social-home { padding: 72px 0; } .rewards-home { padding-bottom: 72px; } }
.tier { font-weight: 800; }
.tier.gold { color: var(--gold); }
.tier.silver { color: var(--text); }
.tier.bronze { color: #C98A55; }
@media (prefers-color-scheme: light) { .tier.bronze { color: #8A5420; } }

/* Who's behind it */
.makers { padding: 0 0 112px; }
.makers-inner { border-top: 1px solid var(--hairline); padding-top: 72px; display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.makers-title { font-size: 15px; font-weight: 800; color: var(--text-muted); }
.makers-quote { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.4; font-weight: 600; letter-spacing: -0.015em; color: var(--text); max-width: 760px; text-wrap: pretty; }
@media (max-width: 860px) { .makers { padding-bottom: 72px; } .makers-inner { grid-template-columns: 1fr; gap: 16px; padding-top: 56px; } }

/* Rewards mirrors the Squads section: words left, phone right. */
@media (min-width: 861px) {
  .rewards-home .rewards-grid { grid-template-columns: 1fr 320px; }
  .rewards-home .rewards-visual { order: 2; }
}
