/* LeaderLab landing page styles. Palette and rules: docs/STYLE.md */

:root {
  --bg: #0a0e1a;
  --surface: #121829;
  --surface-2: #171f35;
  --border: #232c45;
  --text: #e9ecf5;
  --muted: #8a93ad;

  --gold: #f2b53a;
  --red: #e2433b;
  --blue: #3b7bff;
  --green: #3ecf7a;

  --r-common: #8a93ad;
  --r-rare: #3b7bff;
  --r-epic: #f2b53a;
  --r-legend: #a970ff;

  --display: "Oswald", "Bebas Neue", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --topbar-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 50% -80px, rgba(242, 181, 58, 0.16), transparent 70%),
    radial-gradient(700px 420px at 85% 180px, rgba(59, 123, 255, 0.10), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* safety net: nothing should overflow, the reel scrolls in its own box */
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.accent { color: var(--gold); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus: always visible for keyboard users */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: #1a1204; padding: 8px 14px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font: 600 12px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.meta { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.meta--gold { color: var(--gold); }

.section { padding: 56px 0 8px; }
.section-label {
  display: flex; align-items: center; gap: 14px;
  font: 600 13px/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.sub-label {
  font: 600 12px/1 var(--display); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin: 26px 0 12px;
}

.chip {
  display: inline-flex; align-items: center; gap: 4px;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  background: rgba(18, 24, 41, 0.8);
}
.chip--tag {
  border-radius: 5px; padding: 3px 6px; font: 600 10px/1 var(--display); letter-spacing: 0.16em;
  color: var(--gold); border-color: rgba(242, 181, 58, 0.55); background: transparent;
}

.badge {
  display: inline-block; vertical-align: middle;
  font: 700 9.5px/1 var(--body); letter-spacing: 0.1em; padding: 3px 6px; border-radius: 4px;
}
.badge--new { background: rgba(62, 207, 122, 0.16); color: var(--green); border: 1px solid rgba(62, 207, 122, 0.45); }
.badge--soon { background: rgba(242, 181, 58, 0.12); color: var(--gold); border: 1px solid rgba(242, 181, 58, 0.4); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 10px; cursor: pointer;
  font: 600 16px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn--primary {
  background: linear-gradient(180deg, #ffd06a, var(--gold) 55%, #d99a1e);
  color: #1d1405;
  box-shadow: 0 6px 24px rgba(242, 181, 58, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(242, 181, 58, 0.4), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn--ghost { border-color: var(--border); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
}
.icon-btn:hover { border-color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--topbar-h);
  background: rgba(10, 14, 26, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand__word { font: 700 26px/1 var(--display); letter-spacing: 0.08em; }
.brand__crest svg { width: 30px; height: 30px; }

.menu { position: relative; }
.menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: max-content; min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.menu__panel a {
  display: block; padding: 11px 12px; border-radius: 8px; text-decoration: none;
  font: 600 14px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
}
.menu__panel a:hover { background: var(--surface-2); color: var(--gold); }
.menu__panel a.menu__play { white-space: nowrap; color: var(--gold); border-bottom: 1px solid var(--border); border-radius: 8px 8px 0 0; margin-bottom: 4px; }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(226, 67, 59, 0.08), rgba(59, 123, 255, 0.08));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex-shrink: 0; }
.ticker__list li {
  white-space: nowrap; padding: 10px 22px; font-size: 13px; font-weight: 500; color: var(--muted);
  border-right: 1px solid var(--border);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 24px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero__title {
  font: 700 clamp(44px, 7.4vw, 84px)/0.98 var(--display); text-transform: uppercase; letter-spacing: 0.01em;
  text-shadow: 0 4px 40px rgba(242, 181, 58, 0.15);
}
.hero__pitch { margin-top: 18px; font-size: 18px; color: #c5cbe0; max-width: 34em; }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip--proof { color: var(--text); }
.chip--proof strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.chip--gold { color: var(--gold); border-color: rgba(242, 181, 58, 0.35); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.leader-row {
  margin-top: 26px; display: grid; align-items: center; gap: 12px;
  grid-template-columns: auto auto 1fr auto; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px;
  max-width: 520px;
}
.leader-row:hover { border-color: rgba(242, 181, 58, 0.5); }
.leader-row__label {
  font: 600 11px/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  border-right: 1px solid var(--border); padding-right: 12px;
}
.leader-row__rank { font: 700 18px/1 var(--display); color: var(--gold); }
.leader-row__user { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-row__build { grid-column: 3; grid-row: 2; font-size: 12px; color: var(--muted); margin-top: -8px; }
.leader-row__ovr {
  grid-column: 4; grid-row: 1 / span 2; font: 700 28px/1 var(--display); color: var(--r-legend);
  text-shadow: 0 0 18px rgba(169, 112, 255, 0.5);
}

/* Hero mock build */
.build-preview {
  position: relative; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid rgba(242, 181, 58, 0.45); border-radius: 18px; padding: 20px;
  box-shadow: 0 0 0 1px rgba(242, 181, 58, 0.08), 0 0 40px rgba(242, 181, 58, 0.14), 0 30px 60px rgba(0, 0, 0, 0.45);
}
.build-preview::before, .build-preview::after {
  content: ""; position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold); opacity: 0.8;
}
.build-preview::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.build-preview::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.build-preview__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.build-preview__name { font: 700 24px/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.04em; margin: 4px 0; }
.ovr-ring {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) 0 84%, var(--border) 84% 100%);
}
.ovr-ring span {
  width: 56px; height: 56px; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  font: 700 28px/1 var(--display); color: var(--gold);
}
.mini-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-slots li {
  background: var(--bg); border: 1px solid var(--border); border-top: 2px solid var(--blue);
  border-radius: 8px; padding: 7px 8px; text-align: center; min-width: 0;
}
.mini-slots li:nth-child(3n+2) { border-top-color: var(--red); }
.mini-slots li:nth-child(3n) { border-top-color: var(--gold); }
.mini-slots span { display: block; font: 600 10px/1.1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.mini-slots b { display: block; font: 700 22px/1.15 var(--display); color: var(--gold); }
.mini-slots em { display: block; font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.build-preview__comp { margin-top: 14px; text-align: center; font: 500 12px/1.3 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.build-preview__comp strong { color: var(--text); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: none; }
.step {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px;
}
.step__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; font-size: 22px;
  background: var(--bg); border: 1px solid rgba(242, 181, 58, 0.4); box-shadow: 0 0 18px rgba(242, 181, 58, 0.15);
}
.step__num { position: absolute; top: 16px; right: 18px; font: 700 14px/1 var(--display); color: var(--border); letter-spacing: 0.1em; }
.step h3 { margin: 14px 0 6px; font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: 0.06em; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 18px;
}
.tab {
  display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--surface); cursor: pointer;
  font: 600 14px/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: var(--text); border-color: var(--muted); }
.tab[aria-selected="true"] {
  color: #1d1405; border-color: var(--gold);
  background: linear-gradient(180deg, #ffd06a, var(--gold));
  box-shadow: 0 4px 20px rgba(242, 181, 58, 0.3);
}
.tab[aria-selected="true"] .badge { background: rgba(0, 0, 0, 0.18); color: #1d1405; border-color: rgba(0, 0, 0, 0.25); }

.panel {
  background: linear-gradient(180deg, rgba(23, 31, 53, 0.9), rgba(18, 24, 41, 0.9));
  border: 1px solid var(--border); border-radius: 18px; padding: 24px;
}
.panel:focus-visible { outline-offset: 4px; }
.panel__intro {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-bottom: 20px; border-bottom: 1px solid var(--border);
}
.panel__title { font: 700 clamp(28px, 4.4vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: 0.03em; }
.panel__pitch { margin-top: 10px; color: #c5cbe0; max-width: 42em; }
.panel__intro .btn { flex-shrink: 0; }
.panel__grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; }
.panel__main { min-width: 0; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Trait slots */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  border: 1px dashed #34405f; border-radius: 10px; background: rgba(10, 14, 26, 0.6);
  font: 600 13px/1.1 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
  min-width: 0;
}
.slot::before {
  content: "+"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--muted); font: 600 14px/1 var(--body);
}
.slot--key { border-style: solid; border-color: rgba(242, 181, 58, 0.5); color: var(--gold); }
.slot--key::before { color: var(--gold); }

/* Format list (Election / Daily) */
.format { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: fmt; }
.format li {
  counter-increment: fmt; position: relative; padding: 14px 14px 14px 50px; border-radius: 12px;
  background: rgba(10, 14, 26, 0.6); border: 1px solid var(--border); font-size: 14px; color: #c5cbe0;
}
.format li::before {
  content: counter(fmt); position: absolute; left: 14px; top: 13px; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; background: rgba(242, 181, 58, 0.14); color: var(--gold); font: 700 13px/1 var(--display);
}
.format b { color: var(--text); }

/* Card reel: the only thing allowed to scroll sideways */
.reel {
  display: flex; gap: 12px; overflow-x: auto; padding: 10px 4px 14px; margin: 0 -4px;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.reel:focus-visible { outline-offset: 0; }
.card {
  --rar: var(--r-common);
  flex: 1 0 106px; max-width: 150px; scroll-snap-align: start; position: relative; text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--bg));
  border: 1.5px solid var(--rar); border-radius: 12px; padding: 12px 10px 12px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 0 18px color-mix(in srgb, var(--rar) 35%, transparent);
}
.card--rare { --rar: var(--r-rare); }
.card--epic { --rar: var(--r-epic); }
.card--legend { --rar: var(--r-legend); }
.card--legend { background: linear-gradient(180deg, rgba(169, 112, 255, 0.18), var(--bg) 70%); }
.card__rarity {
  position: absolute; top: 8px; left: 8px; font: 700 8.5px/1 var(--body); letter-spacing: 0.12em;
  color: var(--rar); text-transform: uppercase;
}
.card__avatar {
  width: 72px; height: 72px; margin: 8px auto 8px; border-radius: 50%; position: relative; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--rar) 35%, var(--surface-2)), var(--bg));
  border: 1px solid color-mix(in srgb, var(--rar) 55%, transparent);
}
.card__avatar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.card__initials {
  position: absolute; inset: 0; display: grid; place-items: center; padding-top: 14px;
  font: 700 17px/1 var(--display); letter-spacing: 0.06em; color: var(--text); text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
/* AI-generated portraits: same shared treatment as the play page (site/play/play.css). */
.card__avatar .portrait {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
  filter: saturate(0.72) sepia(0.16) contrast(1.05) brightness(0.97);
  opacity: 0; transition: opacity 0.25s ease;
}
.card__avatar.has-portrait .portrait { opacity: 1; }
.card__avatar.has-portrait::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, transparent 52%, rgba(10, 14, 26, 0.55) 100%),
    linear-gradient(180deg, rgba(242, 181, 58, 0.12), rgba(35, 44, 69, 0.28));
  box-shadow: inset 0 0 0 1px rgba(242, 181, 58, 0.14);
}
.card__name { font: 600 14px/1.15 var(--display); letter-spacing: 0.04em; text-transform: uppercase; min-height: 2.3em; display: grid; place-items: center; }
.card__ovr { font: 700 40px/1 var(--display); color: var(--rar); margin: 4px 0 2px; text-shadow: 0 0 16px color-mix(in srgb, var(--rar) 45%, transparent); }
.card--common .card__ovr { color: var(--text); text-shadow: none; }
.card__meta { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.card__yrs { font-size: 11px; font-weight: 600; color: var(--gold); margin-bottom: 2px; }

/* Sim log */
.sim-log { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: rgba(10, 14, 26, 0.6); }
.sim-log li {
  position: relative; padding: 11px 14px 11px 86px; font-size: 14px; border-left: 3px solid var(--blue);
}
.sim-log li + li { border-top: 1px solid var(--border); }
.sim-log li:nth-child(2) { border-left-color: var(--red); }
.sim-log__yr { position: absolute; left: 14px; top: 13px; width: 64px; font: 700 13px/1 var(--display); color: var(--gold); letter-spacing: 0.08em; }
.sim-log__big { background: rgba(242, 181, 58, 0.08); border-left-color: var(--gold) !important; font-weight: 600; }
.up { color: var(--green); }
.down { color: var(--red); }

/* Verdict ladder */
.ladder { display: grid; gap: 6px; }
.ladder__row {
  --c: var(--muted);
  position: relative; padding: 10px 12px 10px 16px; border-radius: 8px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 18%, transparent), rgba(10, 14, 26, 0.5));
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  font: 600 14px/1.1 var(--display); letter-spacing: 0.1em; text-transform: uppercase;
}
.ladder__row::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 0 3px 3px 0; background: var(--c); }
.ladder__row.t1 { --c: var(--r-legend); box-shadow: 0 0 16px rgba(169, 112, 255, 0.25); }
.ladder__row.t2 { --c: var(--gold); }
.ladder__row.t3 { --c: #d7c05a; }
.ladder__row.t4 { --c: var(--blue); }
.ladder__row.t5 { --c: #7f8cb0; }
.ladder__row.t6 { --c: #b07a55; }
.ladder__row.t7 { --c: #e0703b; }
.ladder__row.t8 { --c: var(--red); }

.rarity-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.rarity-key li { display: flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot--common { background: var(--r-common); }
.dot--rare { background: var(--r-rare); }
.dot--epic { background: var(--r-epic); }
.dot--legend { background: var(--r-legend); }

/* ---------- Mode tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tile {
  position: relative; width: 100%; height: 100%; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
a.tile { text-decoration: none; color: inherit; } /* the playable US tile is a real link */
.tile:hover { border-color: rgba(242, 181, 58, 0.55); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.tile--hot { border-color: rgba(242, 181, 58, 0.5); box-shadow: 0 0 24px rgba(242, 181, 58, 0.12); }
.tile__icon {
  width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 21px;
  background: var(--bg); border: 1px solid var(--border); margin-bottom: 6px;
}
.tile--hot .tile__icon { border-color: rgba(242, 181, 58, 0.5); box-shadow: 0 0 16px rgba(242, 181, 58, 0.2); }
.tile__title { font: 700 17px/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.tile__desc { font-size: 12.5px; color: var(--muted); }
.tile__desc .badge { margin-right: 4px; }
.tile__arrow { position: absolute; top: 14px; right: 16px; color: var(--muted); transition: transform 0.15s ease, color 0.15s ease; }
.tile:hover .tile__arrow { transform: translateX(3px); color: var(--gold); }

/* ---------- About / FAQ ---------- */
.prose-wrap { margin-top: 56px; padding: 56px 0; border-top: 1px solid var(--border); background: rgba(5, 8, 16, 0.5); }
.prose { max-width: 780px; }
.prose h2 { font: 700 22px/1.2 var(--display); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.prose h2#faq { margin-top: 32px; color: var(--blue); font-size: 16px; letter-spacing: 0.14em; }
.prose h3 { font-size: 15px; font-weight: 700; margin: 20px 0 4px; }
.prose p { color: #c5cbe0; font-size: 15px; margin-bottom: 12px; }
.prose p strong { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; font-size: 13px; }
.footer__head { font-weight: 700; margin-bottom: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.footer__links a { color: #8fb3ff; text-decoration: none; }
.footer__links a:hover { text-decoration: underline; }
.footer__disclaimer { margin-top: 22px; color: var(--muted); max-width: 60em; }
.footer__copy { margin-top: 8px; color: #5d6683; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translateX(-50%);
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid rgba(242, 181, 58, 0.55); color: var(--text);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(242, 181, 58, 0.15);
  font-size: 14px; font-weight: 500; animation: toast-in 0.2s ease;
}
.toast strong { color: var(--gold); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Bottom nav (mobile only) ---------- */
.bottom-nav { display: none; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .build-preview { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .panel__grid { grid-template-columns: 1fr; gap: 0; }
}

@media (max-width: 719.98px) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .container { padding: 0 16px; }
  .hero { padding-top: 36px; }
  .hero__pitch { font-size: 16px; }
  .panel { padding: 18px 14px; border-radius: 14px; }
  .panel__intro { flex-direction: column; align-items: stretch; }
  .panel__intro .btn { width: 100%; }
  .tabs { justify-content: flex-start; }
  .tab { padding: 0 12px; font-size: 13px; letter-spacing: 0.08em; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .format { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

  .bottom-nav {
    display: flex; position: fixed; z-index: 60; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(18, 24, 41, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border); border-radius: 16px; padding: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  }
  .bottom-nav__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px;
    border-radius: 10px; text-decoration: none; color: var(--muted);
    font: 600 11px/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase;
  }
  .bottom-nav__item span { font-size: 18px; line-height: 1; }
  .bottom-nav__item[aria-current="true"] { color: var(--gold); background: rgba(242, 181, 58, 0.1); }
}

@media (max-width: 440px) {
  .steps { grid-template-columns: 1fr; }
  .brand__word { font-size: 22px; }
  .mini-slots { gap: 6px; }
  .leader-row { grid-template-columns: auto 1fr auto; }
  .leader-row__label { grid-column: 1 / -1; border-right: 0; padding-right: 0; }
  .leader-row__rank { grid-row: 2; }
  .leader-row__user { grid-row: 2; }
  .leader-row__build { grid-column: 2; grid-row: 3; }
  .leader-row__ovr { grid-column: 3; grid-row: 2 / span 2; }
  .cta-row .btn { flex: 1 1 100%; }
  .tile { padding: 14px 12px; }
  .tile__title { font-size: 15px; }
}

/* Motion: stop the ticker and all transitions for users who ask */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .ticker { overflow-x: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; }
}
