/* ═══════════════ Trivia Rumble — landing page ═══════════════ */
/* Tokens come from tokens.css. Layout implements the Landing + LandingMobile boards. */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 700px at 85% -10%, oklch(0.30 0.06 25 / 0.55), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, oklch(0.28 0.05 255 / 0.45), transparent 60%);
  color: var(--ink);
  min-height: 100dvh;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
main { max-width: 1440px; margin: 0 auto; }
section { padding: 0 72px; }
h1, h2 { font-weight: 900; text-transform: uppercase; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); }

/* ─────────── shared bits ─────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 800; letter-spacing: 0.01em; border: 0; cursor: pointer;
  border-radius: var(--r-ctl); padding: 14px 24px; font-size: 1.05rem;
  color: var(--gold-ink); background: var(--gold); box-shadow: 0 4px 0 var(--gold-edge);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px) scale(0.99); box-shadow: 0 1px 0 var(--gold-edge); }
.btn-secondary { background: var(--teal); color: oklch(0.16 0.04 200); box-shadow: 0 4px 0 var(--teal-edge); }
.btn-secondary:active { box-shadow: 0 1px 0 var(--teal-edge); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); font-weight: 700; }
.btn-ghost:active { transform: scale(0.98); box-shadow: inset 0 0 0 2px var(--line); }
.btn-hero { padding: 18px 36px; font-size: 1.3rem; }
.btn-mini { padding: 9px 18px; font-size: 0.9rem; border-radius: 12px; box-shadow: 0 3px 0 var(--gold-edge); }

.card {
  background: var(--bg-raise); border-radius: var(--r-panel);
  box-shadow: inset 0 0 0 2px var(--line);
}

.badge {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-size: 0.95rem; color: oklch(0.98 0.01 85); animation: badge-bob 2.6s var(--ease) infinite;
}
.badges { display: flex; gap: 10px; }
.badges .badge:nth-child(2) { animation-delay: 0.2s; }
.badges .badge:nth-child(3) { animation-delay: 0.4s; }
.badges .badge:nth-child(4) { animation-delay: 0.6s; }
@keyframes badge-bob { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
.b-coral { background: var(--coral); box-shadow: 0 4px 0 var(--coral-edge); }
.b-amber { background: var(--amber); box-shadow: 0 4px 0 var(--amber-edge); color: oklch(0.22 0.05 75); }
.b-teal  { background: var(--teal);  box-shadow: 0 4px 0 var(--teal-edge); color: oklch(0.16 0.04 200); }
.b-blue  { background: var(--blue);  box-shadow: 0 4px 0 var(--blue-edge); }
.badges-small .badge { width: 36px; height: 36px; border-radius: 12px; }

/* ─────────── nav ─────────── */
.nav {
  max-width: 1440px; margin: 0 auto; padding: 24px 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand-tiles { display: flex; gap: 5px; }
.brand-tiles i {
  width: 22px; height: 22px; border-radius: 7px;
}
.brand-tiles .t-coral { background: var(--coral); box-shadow: 0 2px 0 var(--coral-edge); }
.brand-tiles .t-amber { background: var(--amber); box-shadow: 0 2px 0 var(--amber-edge); }
.brand-tiles .t-teal  { background: var(--teal);  box-shadow: 0 2px 0 var(--teal-edge); }
.brand-tiles .t-blue  { background: var(--blue);  box-shadow: 0 2px 0 var(--blue-edge); }
.brand-name { font-weight: 900; font-size: 1.35rem; text-transform: uppercase; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-weight: 700; font-size: 1rem; color: var(--ink-dim); transition: color 0.2s; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.btn-nav { padding: 10px 20px; font-size: 0.95rem; }

/* ─────────── hero ─────────── */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px;
  padding-top: 72px; padding-bottom: 96px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.hero .badges .badge:nth-child(1) { transform: rotate(-4deg); }
.hero .badges .badge:nth-child(2) { transform: rotate(3deg) translateY(-6px); }
.hero .badges .badge:nth-child(3) { transform: rotate(-2deg); }
.hero .badges .badge:nth-child(4) { transform: rotate(4deg) translateY(-4px); }
h1 { font-size: clamp(3rem, 6vw, 5.25rem); line-height: 0.94; }
.hero-sub { font-size: clamp(1.05rem, 1.8vw, 1.375rem); font-weight: 500; color: var(--ink-dim); line-height: 1.5; max-width: 48ch; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.join-inline {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-sink); border: 2px solid var(--line); border-radius: var(--r-ctl);
  padding: 6px 6px 6px 12px;
}
.join-code {
  font: inherit; font-weight: 900; font-size: 1.2rem; letter-spacing: 0.28em;
  background: transparent; border: 0; outline: none; color: var(--ink);
  width: 6.5ch; text-transform: uppercase; text-align: center;
}
.join-code::placeholder { color: oklch(0.5 0.02 60); }
.join-inline:focus-within { border-color: var(--gold); }
.btn-join { padding: 10px 18px; font-size: 0.95rem; border-radius: 11px; color: var(--ink-dim); }
.hero-fine { font-weight: 600; font-size: 0.875rem; color: var(--ink-dim); }

/* phone mock */
.hero-mock-wrap { display: flex; justify-content: center; }
.phone-mock {
  width: 340px; background: var(--bg); border-radius: 40px;
  box-shadow: inset 0 0 0 3px var(--line), 0 30px 60px oklch(0.1 0.02 40 / 0.5);
  padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; transform: rotate(3deg);
}
.mock-head { display: flex; align-items: center; justify-content: space-between; }
.mock-progress { font-weight: 800; font-size: 0.8rem; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.mock-chip { background: var(--bg-raise); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 0.7rem; box-shadow: inset 0 0 0 2px var(--line); }
.mock-timer { font-weight: 900; font-size: 1.05rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.mock-track { height: 8px; background: var(--bg-sink); border-radius: 999px; overflow: hidden; }
.mock-bar { height: 100%; width: 60%; border-radius: 999px; background: var(--gold); }
.mock-q { font-size: 1.2rem; font-weight: 800; line-height: 1.25; min-height: 72px; display: flex; align-items: center; }
.mock-answers { display: flex; flex-direction: column; gap: 9px; }
.mock-a {
  border-radius: 14px; padding: 13px 12px; display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 0.875rem; color: oklch(0.98 0.01 85);
}
.mock-a .a-shape { width: 18px; text-align: center; font-size: 0.7rem; opacity: 0.9; }
.a-coral { background: var(--coral); box-shadow: 0 4px 0 var(--coral-edge); }
.a-amber { background: var(--amber); box-shadow: 0 4px 0 var(--amber-edge); color: oklch(0.22 0.05 75); }
.a-teal  { background: var(--teal);  box-shadow: 0 4px 0 var(--teal-edge); color: oklch(0.16 0.04 200); }
.a-blue  { background: var(--blue);  box-shadow: 0 4px 0 var(--blue-edge); }
.mock-a.is-picked { outline: 3px solid var(--ink); outline-offset: 3px; }
.mock-foot { display: flex; justify-content: space-between; align-items: center; }
.mock-locked { font-weight: 800; font-size: 0.8rem; color: var(--gold); }
.mock-count { font-weight: 600; font-size: 0.75rem; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* ─────────── steps ─────────── */
.steps { padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step { padding: 32px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.step h3 { font-weight: 900; font-size: 1.5rem; }
.step p { font-weight: 500; font-size: 1rem; color: var(--ink-dim); line-height: 1.55; }
.step-num {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-size: 1.2rem;
}
.n-coral { background: var(--coral); box-shadow: 0 4px 0 var(--coral-edge); color: oklch(0.98 0.01 85); }
.n-amber { background: var(--amber); box-shadow: 0 4px 0 var(--amber-edge); color: oklch(0.22 0.05 75); }
.n-teal  { background: var(--teal);  box-shadow: 0 4px 0 var(--teal-edge); color: oklch(0.16 0.04 200); }
.step-code {
  font-size: 2.75rem; font-weight: 900; letter-spacing: 0.18em; text-indent: 0.18em;
  color: var(--gold) !important; line-height: 1;
}

/* ─────────── feature strip ─────────── */
.features {
  margin: 0 72px 96px; padding: 36px 48px;
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.feat { display: flex; flex-direction: column; gap: 6px; color: inherit; }
.feat-big { font-weight: 900; font-size: 1.6rem; color: var(--gold); }
.feat-sub { font-weight: 600; font-size: 0.95rem; color: var(--ink-dim); }

/* ─────────── teaser ─────────── */
.teaser { padding-bottom: 96px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.teaser-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.teaser-copy p { font-size: 1.2rem; font-weight: 500; color: var(--ink-dim); line-height: 1.55; max-width: 46ch; }
.teaser-packs { display: flex; flex-direction: column; gap: 14px; }
.pack { padding: 22px 26px; display: flex; align-items: center; gap: 18px; }
.pack-1 { transform: rotate(-1deg); }
.pack-2 { transform: rotate(1deg) translateX(24px); }
.pack-3 { transform: rotate(-0.5deg) translateX(8px); }
.pack-emoji { font-size: 2.25rem; }
.pack-meta { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.pack-meta b { font-weight: 800; font-size: 1.2rem; }
.pack-meta i { font-style: normal; font-weight: 600; font-size: 0.875rem; color: var(--ink-dim); }

/* ─────────── final CTA + footer ─────────── */
.cta {
  margin: 0 72px 96px; padding: 72px;
  display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center;
}
.cta h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 0.95; }
.cta p { font-size: 1.2rem; font-weight: 500; color: var(--ink-dim); }
.footer {
  max-width: 1296px; margin: 0 auto; padding: 32px 0 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 2px solid var(--line);
}
.footer-brand { font-weight: 900; font-size: 1.05rem; text-transform: uppercase; }
.footer-links { font-weight: 600; font-size: 0.875rem; color: var(--ink-dim); }

/* ─────────── mobile (LandingMobile board) ─────────── */
@media (max-width: 900px) {
  section { padding-left: 20px; padding-right: 20px; }
  .nav { padding: 20px; }
  .nav-links { gap: 18px; }
  .nav-link.is-soon { display: none; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 32px; padding-bottom: 64px; }
  .hero-copy { align-items: center; text-align: center; }
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .btn-hero { width: 100%; }
  .join-inline { justify-content: space-between; }
  .join-code { flex: 1; }
  .hero-fine { align-self: center; }
  .phone-mock { transform: rotate(2deg) scale(0.95); }
  .steps { padding-bottom: 64px; }
  .steps-grid { grid-template-columns: 1fr; }
  .features { margin: 0 20px 64px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .teaser { grid-template-columns: 1fr; gap: 40px; padding-bottom: 64px; }
  .teaser-copy { align-items: center; text-align: center; }
  .teaser-copy p { max-width: none; }
  .pack-2, .pack-3 { transform: none; }
  .pack-1 { transform: none; }
  .cta { margin: 0 20px 64px; padding: 48px 24px; }
  .footer { margin: 0 20px; flex-direction: column; text-align: center; }
}

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