/* ─── QuizRace landing page ────────────────────────────────────────────────
   Styles for index.html only; the sub-pages keep styles.css. Everything is
   prefixed lp-, except the qr-video / qr-qa hooks enhance.js builds on.     */

:root {
  --ink: #fff;
  --ink-soft: #ddd0ef;
  --ink-mute: #a992c8;
  --bg-0: #13041f;
  --bg-1: #22073a;
  --bed: #1c0a31;
  --brand: #6f23a8;
  --brand-strong: #481370;
  --brand-accent: #c469e3;
  --coin: #ffc700;
  --neon: #7df9ff;

  /* The four answer-tile colours from the game, plus the pink of its
     gradient; the morphing shapes and their static fallbacks share these. */
  --c-blue: #1f7ae0;
  --c-green: #19b85a;
  --c-yellow: #ffb400;
  --c-red: #ff4d6a;
  --c-pink: #e0479e;
  --c-gold: #ffc700;
  --c-silver: #c3cde2;
  --c-bronze: #e08a4f;

  --display: "Bangers", Impact, system-ui, sans-serif;
  --sans: "Lato", system-ui, sans-serif;
  --radius: 22px;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

[hidden] {
  display: none !important;
}

body.lp {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* A still backdrop behind a page that scrolls a dotted floor over it, so the
   track reads as laid across the ground while the sky stays put. */
body.lp::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1100px 760px at 12% -4%, rgb(196 105 227 / 0.3), transparent 62%),
    radial-gradient(900px 700px at 96% 38%, rgb(31 122 224 / 0.22), transparent 62%),
    radial-gradient(900px 600px at 30% 110%, rgb(224 71 158 / 0.22), transparent 60%),
    linear-gradient(180deg, #2b0a4a 0%, #1a0530 55%, #13041f 100%);
}

.lp h1,
.lp h2,
.lp h3 {
  margin: 0;
  font-weight: 900;
}

.lp img {
  max-width: 100%;
}

.lp a {
  color: inherit;
}

.lp-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.lp-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--bg-1) !important;
  font-weight: 900;
}

.lp-skip:focus {
  top: 12px;
}

.lp :focus-visible {
  outline: 3px solid var(--coin);
  outline-offset: 3px;
}

.lp-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  font: 900 16px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.25s var(--bounce),
    box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.lp-btn:active {
  transform: translateY(2px);
}

/* A chunky arcade key: the solid shadow is the key's side, and pressing it
   sinks the face into that side. */
.lp-btn--primary {
  background: var(--coin);
  color: #2b0a4a !important;
  box-shadow:
    0 6px 0 #b98700,
    0 16px 34px -8px rgb(255 199 0 / 0.55);
}

.lp-btn--primary:hover {
  box-shadow:
    0 8px 0 #b98700,
    0 22px 40px -8px rgb(255 199 0 / 0.6);
}

.lp-btn--primary:active {
  box-shadow:
    0 2px 0 #b98700,
    0 8px 20px -8px rgb(255 199 0 / 0.5);
}

.lp-btn--light {
  background: #fff;
  color: #390e59 !important;
  box-shadow: 0 4px 0 #c9b3e6;
}

.lp-btn--ghost {
  background: rgb(255 255 255 / 0.1);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2);
}

.lp-btn--ghost:hover {
  background: rgb(255 255 255 / 0.18);
}

.lp-btn--lg {
  padding: 18px 30px;
  border-radius: 18px;
  font-size: 18px;
}

/* ─── Join bar, notice, header ──────────────────────────────────────────── */
.lp-joinbar {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  background: #0d0216;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft) !important;
  text-decoration: none;
}

.lp-joinbar__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--coin);
  color: #2b0a4a;
  font-weight: 900;
  transition: transform 0.25s var(--bounce);
}

.lp-joinbar:hover .lp-joinbar__pill {
  transform: scale(1.08) rotate(-2deg);
}

.lp-notice {
  position: relative;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  padding: 12px 20px;
  background: var(--c-green);
  color: #fff;
  font-size: 15px;
}

.lp-notice p {
  margin: 0;
}

.lp-notice a {
  font-weight: 900;
}

.lp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(19 4 31 / 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

.lp-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.lp-logo {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.3s var(--bounce);
}

.lp-logo:hover {
  transform: rotate(-4deg) scale(1.06);
}

.lp-logo img {
  display: block;
  width: auto;
}

.lp-nav__panel {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lp-nav__links {
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-nav__links a,
.lp-nav__login {
  display: block;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-soft);
  transition:
    color 0.15s,
    background 0.15s;
}

.lp-nav__links a:hover,
.lp-nav__login:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.08);
}

.lp-nav__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-nav__toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  border: 0;
  border-radius: 12px;
  background: rgb(255 255 255 / 0.1);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.lp-nav__toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s var(--bounce);
}

.nav-open .lp-nav__toggle span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-open .lp-nav__toggle span:nth-child(2) {
  transform: scaleX(0);
}

.nav-open .lp-nav__toggle span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ─── Decoration layers ─────────────────────────────────────────────────── */
/* Track (0) < morphing shapes (1) < cart (2) < content (3): the shapes sit
   behind the visuals they back, and everything readable sits on top. */
.lp-main {
  position: relative;
  overflow-x: clip;
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 1.2px, transparent 1.6px);
  background-size: 34px 34px;
}

.lp-track {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.lp-track path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-track .t-glow {
  stroke: rgb(125 249 255 / 0.09);
  stroke-width: 76px;
}

.lp-track .t-glow2 {
  stroke: rgb(196 105 227 / 0.16);
  stroke-width: 44px;
}

.lp-track .t-bed {
  stroke: var(--bed);
  stroke-width: 32px;
}

.lp-track .t-rail {
  stroke: rgb(125 249 255 / 0.5);
  stroke-width: 26px;
}

.lp-track .t-litglow {
  stroke: rgb(255 199 0 / 0.28);
  stroke-width: 58px;
}

.lp-track .t-lit {
  stroke: #fff4c2;
  stroke-width: 26px;
}

/* Painting the bed back over the middle of the rail stroke leaves just its two
   edges showing: a pair of rails from a single path. */
.lp-track .t-cut {
  stroke: var(--bed);
  stroke-width: 18px;
}

.lp-track .t-ties {
  stroke: rgb(255 255 255 / 0.2);
  stroke-width: 16px;
  stroke-dasharray: 3 12;
  stroke-linecap: butt;
}

.lp-track .t-post {
  fill: #fff;
}

.lp-track .t-post-glow {
  fill: rgb(125 249 255 / 0.22);
}

.lp-track .t-post-glow--pink {
  fill: rgb(224 71 158 / 0.3);
}

.lp-track .t-gate line {
  stroke: rgb(255 255 255 / 0.55);
  stroke-width: 5px;
  stroke-linecap: round;
  transition: stroke 0.3s;
}

.lp-track .t-gate circle {
  fill: var(--neon);
  transition: fill 0.3s;
}

.lp-track .t-gate.is-hit line {
  stroke: var(--coin);
}

.lp-track .t-gate.is-hit circle {
  fill: var(--coin);
}

.lp-track .t-label {
  font: 400 22px var(--display);
  letter-spacing: 3px;
  fill: #fff;
  text-anchor: middle;
}

/* Page-sized rather than fixed: the browser scrolls it with the content, so a
   shape pinned to a slot never trails the scroll by a frame. */
.lp-morph {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.lp-cart {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 80px;
  height: 80px;
  margin: -40px 0 0 -40px;
  pointer-events: none;
  will-change: transform;
}

.lp-track-on .lp-cart {
  display: block;
}

.lp-cart svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgb(255 199 0 / 0.45));
}

.lp-cart__trail path {
  stroke: #fff;
  stroke-width: 3px;
  stroke-linecap: round;
}

.lp-cart__trail {
  opacity: 0;
}

.lp-pop {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  font: 400 34px/1 var(--display);
  letter-spacing: 1px;
  color: var(--coin);
  text-shadow:
    0 3px 0 #9c2a0a,
    0 0 24px rgb(255 199 0 / 0.6);
  white-space: nowrap;
  animation: lp-pop-up 1.2s ease-out forwards;
}

@keyframes lp-pop-up {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -90%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -240%) scale(0.9);
  }
}

.lp-hud {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 16px 8px;
  border-radius: 14px;
  background: rgb(19 4 31 / 0.75);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px) scale(0.9);
  transition:
    opacity 0.3s,
    transform 0.45s var(--bounce);
}

.lp-hud.is-on {
  opacity: 1;
  transform: none;
}

.lp-hud__label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.lp-hud__value {
  min-width: 4ch;
  font: 400 28px/1 var(--display);
  letter-spacing: 1px;
  color: var(--coin);
  font-variant-numeric: tabular-nums;
}

.lp-hud.is-bump .lp-hud__value {
  animation: lp-bump 0.4s var(--bounce);
}

@keyframes lp-bump {
  40% {
    transform: scale(1.3);
  }
}

/* ─── Morph slots ───────────────────────────────────────────────────────── */
/* Each slot is where a shape lands in that section. Without the morph (no JS,
   reduced motion) the slot paints the shape itself; with it, the slot is just
   a transparent target and home.js draws the shape behind it. */
.lp-slot {
  --c: var(--c-blue);
  display: block;
  background: var(--c);
  border-radius: 50%;
}

.lp-slot[data-shape^="squircle"] {
  border-radius: 26%;
}

.lp-slot[data-shape^="star"] {
  border-radius: 0;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

[data-color="blue"] {
  --c: var(--c-blue);
}
[data-color="green"] {
  --c: var(--c-green);
}
[data-color="yellow"] {
  --c: var(--c-yellow);
}
[data-color="red"] {
  --c: var(--c-red);
}
[data-color="pink"] {
  --c: var(--c-pink);
}
[data-color="gold"] {
  --c: var(--c-gold);
}
[data-color="silver"] {
  --c: var(--c-silver);
}
[data-color="bronze"] {
  --c: var(--c-bronze);
}

.lp-morph-on .lp-slot {
  background: transparent;
  clip-path: none;
}

/* Slots that carry a label keep a faint socket, so the label never floats on
   nothing while its shape is off travelling. */
.lp-morph-on .lp-slot:not(:empty) {
  background: color-mix(in srgb, var(--c) 24%, transparent);
}

.lp-morph-on .lp-slot[data-shape^="star"]:not(:empty) {
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}

/* ─── Sections ──────────────────────────────────────────────────────────── */
.lp-section {
  position: relative;
  z-index: 3;
  padding: clamp(96px, 15vh, 170px) 0;
}

.lp-heading {
  max-width: 760px;
  margin-bottom: clamp(48px, 7vh, 72px);
}

.lp-heading--center {
  margin-inline: auto;
  text-align: center;
}

.lp h2 {
  font: 400 clamp(46px, 6.6vw, 92px) / 0.95 var(--display);
  letter-spacing: 1.5px;
  text-shadow: 0 5px 0 rgb(0 0 0 / 0.28);
}

.lp-kicker {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--coin);
}

.lp-body {
  margin: 20px 0 0;
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--ink-soft);
}

.lp-heading--center .lp-body {
  margin-inline: auto;
  max-width: 600px;
}

.lp-shot {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.12),
    0 34px 70px -24px rgb(0 0 0 / 0.7);
  transition: transform 0.5s var(--bounce);
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.lp-hero {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  min-height: calc(100svh - 110px);
  padding: 64px 0 230px;
  box-sizing: border-box;
  text-align: center;
}

.lp-hero__stack {
  position: relative;
}

.lp-hero .lp-slot {
  position: absolute;
}

.lp-hero__s0 {
  left: 5%;
  top: 12%;
  width: 150px;
  height: 150px;
}

.lp-hero__s1 {
  right: 9%;
  top: 14%;
  width: 96px;
  height: 96px;
}

.lp-hero__s2 {
  right: 13%;
  bottom: 30%;
  width: 124px;
  height: 124px;
}

.lp-hero__s3 {
  left: 12%;
  bottom: 34%;
  width: 72px;
  height: 72px;
}

.lp-hero__s4 {
  right: -100px;
  top: 40%;
  width: 250px;
  height: 250px;
}

.lp-hero__title {
  font: 400 clamp(76px, 13.5vw, 196px) / 0.86 var(--display) !important;
  letter-spacing: 2px;
  transform: rotate(-3deg);
  text-shadow:
    0 5px 0 #0d6adb,
    0 10px 0 #0a4596,
    0 30px 50px rgb(0 0 0 / 0.45);
  animation: lp-slam 0.9s var(--bounce) both;
}

.lp-hero__word {
  display: inline-block;
  color: var(--coin);
  text-shadow:
    0 5px 0 #e2551b,
    0 10px 0 #9c2a0a,
    0 30px 50px rgb(0 0 0 / 0.45);
  animation: lp-wiggle 5s ease-in-out 1.4s infinite;
}

@keyframes lp-slam {
  from {
    opacity: 0;
    transform: rotate(-3deg) scale(1.6) translateY(-30px);
  }
}

@keyframes lp-wiggle {
  0%,
  86%,
  100% {
    transform: none;
  }
  90% {
    transform: rotate(-4deg) scale(1.06);
  }
  94% {
    transform: rotate(3deg) scale(1.04);
  }
}

.lp-lead {
  max-width: 640px;
  margin: 34px auto 0;
  font-size: clamp(19px, 2vw, 23px);
  color: var(--ink-soft);
  animation: lp-rise 0.7s ease-out 0.25s both;
}

@keyframes lp-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.lp-prompt {
  display: flex;
  gap: 8px;
  max-width: 700px;
  margin: 36px auto 0;
  padding: 8px;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 8px 0 rgb(0 0 0 / 0.22),
    0 30px 70px -10px rgb(0 0 0 / 0.5),
    0 0 0 0 rgb(255 199 0 / 0);
  transition:
    transform 0.35s var(--bounce),
    box-shadow 0.25s;
  animation: lp-rise 0.7s ease-out 0.4s both;
}

.lp-prompt:focus-within {
  transform: scale(1.025);
  box-shadow:
    0 8px 0 rgb(0 0 0 / 0.22),
    0 30px 70px -10px rgb(0 0 0 / 0.5),
    0 0 0 6px rgb(255 199 0 / 0.55);
}

.lp-prompt__input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  font: 700 19px var(--sans);
  color: var(--bg-1);
  outline: none;
}

.lp-prompt__input::placeholder {
  color: #8a78a3;
}

.lp .lp-prompt__input:focus-visible {
  outline: none;
}

.lp-prompt__submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--c-pink) 100%);
  color: #fff;
  font: 900 17px var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--bounce);
}

.lp-prompt__submit:hover {
  transform: scale(1.05);
}

.lp-prompt__submit:hover svg {
  transform: translateX(3px);
}

.lp-prompt__submit svg {
  transition: transform 0.25s var(--bounce);
}

.lp-microcopy {
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--ink-mute);
  animation: lp-rise 0.7s ease-out 0.5s both;
}

.lp-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  animation: lp-rise 0.7s ease-out 0.6s both;
}

.lp-chips li {
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-soft);
}

.lp-chips li::before {
  content: "✓ ";
  color: var(--coin);
}

.lp-start {
  position: absolute;
  left: 50%;
  bottom: 120px;
  width: 1px;
  height: 1px;
}

.lp-start__cue {
  position: absolute;
  top: 52px;
  left: 0;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-mute);
  animation: lp-cue 1.8s ease-in-out infinite;
}

.lp-start__cue::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  margin: 8px auto 0;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes lp-cue {
  50% {
    transform: translate(-50%, 6px);
  }
}

/* ─── How it works ──────────────────────────────────────────────────────── */
.lp-how__s3,
.lp-how__s4 {
  position: absolute;
}

.lp-how__s3 {
  top: 90px;
  right: 16%;
  width: 34px;
  height: 34px;
}

.lp-how__s4 {
  top: 210px;
  right: 7%;
  width: 60px;
  height: 60px;
}

.lp-steps {
  display: grid;
  gap: clamp(90px, 16vh, 180px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-step {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.lp-step--flip .lp-step__text {
  order: 2;
}

.lp-step__badge {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin-bottom: 22px;
  font: 400 58px/1 var(--display);
  text-shadow: 0 3px 0 rgb(0 0 0 / 0.25);
}

.lp-step h3 {
  font: 400 clamp(46px, 5.4vw, 72px) / 1 var(--display);
  letter-spacing: 1.5px;
}

.lp-step p {
  max-width: 440px;
  margin: 12px 0 0;
  font-size: clamp(18px, 1.7vw, 21px);
  color: var(--ink-soft);
}

.lp-step .lp-shot {
  transform: rotate(1.5deg);
}

.lp-step--flip .lp-shot {
  transform: rotate(-1.5deg);
}

.lp-step:hover .lp-shot {
  transform: rotate(0) scale(1.02);
}

/* ─── Demo ──────────────────────────────────────────────────────────────── */
.lp-demo__frame {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.lp-demo__frame .lp-slot {
  position: absolute;
}

.lp-demo__plate {
  inset: -20px;
}

.lp-demo__dot {
  width: 46px;
  height: 46px;
}

.lp-demo__dot--tl {
  top: -58px;
  left: -58px;
}

.lp-demo__dot--tr {
  top: -52px;
  right: -64px;
}

.lp-demo__dot--br {
  right: -70px;
  bottom: -70px;
  width: 60px;
  height: 60px;
}

.lp-demo__dot--bl {
  left: -66px;
  bottom: -46px;
}

.qr-video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8);
}

.qr-video__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.qr-video:hover .qr-video__poster {
  transform: scale(1.04);
}

.qr-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104px;
  height: 104px;
  margin: -52px 0 0 -52px;
  border-radius: 50%;
  background: var(--coin);
  box-shadow:
    0 8px 0 #b98700,
    0 0 0 0 rgb(255 199 0 / 0.5);
  animation: lp-halo 2s ease-out infinite;
  transition: transform 0.3s var(--bounce);
}

.qr-video__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -18px 0 0 -11px;
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent #2b0a4a;
}

.qr-video:hover .qr-video__play {
  transform: scale(1.12);
}

@keyframes lp-halo {
  to {
    box-shadow:
      0 8px 0 #b98700,
      0 0 0 28px rgb(255 199 0 / 0);
  }
}

.qr-video__label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.6);
  color: #fff;
  font: 800 15px var(--sans);
}

.qr-video--playing iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Speed pays ────────────────────────────────────────────────────────── */
.lp-speed__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.lp-bignum {
  margin: 30px 0 0;
  font: 400 clamp(88px, 11vw, 156px) / 0.85 var(--display);
  letter-spacing: 2px;
  color: var(--coin);
  text-shadow:
    0 5px 0 #e2551b,
    0 10px 0 #9c2a0a;
}

.lp-bignum small {
  display: block;
  margin-top: 14px;
  font: 900 14px var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-shadow: none;
}

.lp-question {
  position: relative;
  padding: 30px;
  border-radius: 30px;
  background: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14);
}

.lp-question__type {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--bg-1);
  font: 400 18px var(--display);
  letter-spacing: 1px;
}

.lp-question__prompt {
  margin: 18px 0 24px;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 900;
  line-height: 1.2;
}

.lp-question__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-question__tiles li {
  display: grid;
  place-items: center;
  height: 88px;
  font-size: 21px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.25);
}

.lp-question__win {
  position: relative;
}

.lp-question__win::after {
  content: "✓";
  position: absolute;
  top: -10px;
  right: -10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #21d764;
  box-shadow: 0 3px 0 #10863c;
  font-size: 18px;
  text-shadow: none;
}

.lp-question__timer {
  position: absolute;
  top: -44px;
  right: -30px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  font: 400 26px var(--display);
  letter-spacing: 1px;
  transform: rotate(10deg);
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.3);
}

/* ─── Features ──────────────────────────────────────────────────────────── */
.lp-feature {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}

.lp-feature + .lp-feature {
  margin-top: clamp(100px, 16vh, 170px);
}

.lp-feature--flip .lp-feature__text {
  order: 2;
}

.lp-feature h3 {
  font: 400 clamp(38px, 4.4vw, 58px) / 1 var(--display);
  letter-spacing: 1px;
}

.lp-feature p {
  margin: 16px 0 0;
  font-size: 19px;
  color: var(--ink-soft);
}

.lp-ticks {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.lp-ticks li {
  position: relative;
  padding-left: 38px;
  font-size: 18px;
  font-weight: 800;
}

.lp-ticks li::before {
  content: "✓";
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--coin);
  color: #2b0a4a;
  font-size: 14px;
}

.lp-feature__visual {
  position: relative;
}

.lp-plate {
  position: absolute;
  inset: 22px -22px -22px 22px;
}

.lp-feature--flip .lp-plate {
  inset: 22px 22px -22px -22px;
}

.lp-feature__visual:hover .lp-shot {
  transform: translate(-6px, -6px);
}

/* ─── Tracks ────────────────────────────────────────────────────────────── */
.lp-tracks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-trackcard {
  position: relative;
  transition: transform 0.4s var(--bounce);
}

.lp-trackcard:nth-child(even) {
  margin-top: 48px;
}

.lp-trackcard .lp-plate {
  inset: -12px -12px 44px;
}

.lp-trackcard img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 427;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.7);
}

.lp-trackcard h3 {
  margin-top: 26px;
  text-align: center;
  font: 400 30px / 1 var(--display);
  letter-spacing: 1px;
}

.lp-trackcard:hover {
  transform: translateY(-8px) rotate(-1.5deg);
}

/* ─── Audience ──────────────────────────────────────────────────────────── */
.lp-aud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-acard__media {
  position: relative;
}

.lp-acard__media img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.7);
  transition: transform 0.4s var(--bounce);
}

.lp-acard:hover .lp-acard__media img {
  transform: rotate(-2deg) scale(1.03);
}

.lp-acard__badge {
  position: absolute;
  top: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
}

.lp-acard h3 {
  margin-top: 28px;
  font: 400 34px / 1 var(--display);
  letter-spacing: 1px;
}

.lp-acard p {
  margin: 10px 0 16px;
  font-size: 17px;
  color: var(--ink-soft);
}

.lp-arrowlink {
  font-weight: 900;
  color: var(--coin) !important;
  text-decoration: none;
}

.lp-arrowlink::after {
  content: " →";
  display: inline-block;
  transition: transform 0.25s var(--bounce);
}

.lp-arrowlink:hover::after {
  transform: translateX(5px);
}

/* ─── Testimonials ──────────────────────────────────────────────────────── */
.lp-quotes__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-quote:nth-child(2) {
  margin-top: 36px;
}

.lp-quote blockquote {
  margin: 0;
  padding: 28px;
  border-radius: 26px 26px 26px 6px;
  background: rgb(255 255 255 / 0.08);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.lp-quote blockquote p {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.lp-quote .lp-quote__stars {
  margin-bottom: 12px;
  color: var(--coin);
  font-size: 18px;
  letter-spacing: 3px;
}

.lp-quote__who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 0 6px;
  color: var(--ink-mute);
  font-size: 15px;
}

.lp-quote__who strong {
  display: block;
  color: #fff;
  font-size: 17px;
}

.lp-quote__av {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  font: 400 30px/1 var(--display);
  color: #fff;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.25);
}

/* ─── FAQ ───────────────────────────────────────────────────────────────── */
.lp-faq__wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.lp-faq__list {
  margin: 0;
  padding: 0 0 0 44px;
  list-style: none;
}

.qr-qa {
  position: relative;
  border-bottom: 1px solid rgb(255 255 255 / 0.14);
}

.lp-faq__dot {
  position: absolute;
  top: 28px;
  left: -44px;
  width: 20px;
  height: 20px;
}

.qr-qa__q {
  position: relative;
  display: block;
  width: 100%;
  padding: 24px 48px 24px 0;
  border: 0;
  background: none;
  color: #fff;
  font: 900 clamp(18px, 1.8vw, 22px) var(--sans);
  text-align: left;
  cursor: pointer;
}

.qr-qa__pm {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  transition:
    transform 0.35s var(--bounce),
    background 0.2s;
}

.qr-qa__pm::before,
.qr-qa__pm::after {
  content: "";
  position: absolute;
  top: 14px;
  left: 8px;
  width: 14px;
  height: 2px;
  border-radius: 1px;
  background: #fff;
}

.qr-qa__pm::after {
  transform: rotate(90deg);
}

.qr-qa.open .qr-qa__pm {
  background: var(--coin);
  transform: rotate(45deg);
}

.qr-qa.open .qr-qa__pm::before,
.qr-qa.open .qr-qa__pm::after {
  background: #2b0a4a;
}

.qr-qa__a {
  display: none;
  margin: 0;
  padding: 0 48px 24px 0;
  font-size: 18px;
  color: var(--ink-soft);
}

.qr-qa.open .qr-qa__a {
  display: block;
  animation: lp-rise 0.35s ease-out;
}

/* ─── Finish line ───────────────────────────────────────────────────────── */
.lp-finish {
  padding-bottom: clamp(140px, 20vh, 220px);
}

.lp-finish__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: end;
  gap: 48px;
}

.lp-finish h2 {
  font-size: clamp(60px, 8.4vw, 126px);
}

.lp-finish h2 em {
  font-style: normal;
  color: var(--coin);
  text-shadow:
    0 5px 0 #e2551b,
    0 10px 0 #9c2a0a;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.lp-podium {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  height: 400px;
}

.lp-podium__step {
  display: grid;
  justify-items: center;
  align-content: start;
  width: min(30%, 132px);
  padding-top: 16px;
  box-sizing: border-box;
  font: 400 70px/1 var(--display);
  color: #fff;
  text-shadow: 0 4px 0 rgb(0 0 0 / 0.25);
}

.lp-podium__step--1 {
  height: 230px;
}

.lp-podium__step--2 {
  height: 160px;
}

.lp-podium__step--3 {
  height: 116px;
}

.lp-podium__star {
  position: absolute;
}

.lp-podium__star--a {
  top: 20px;
  left: 6%;
  width: 76px;
  height: 76px;
}

.lp-podium__star--b {
  top: 0;
  right: 10%;
  width: 56px;
  height: 56px;
}

.lp-podium__line {
  position: absolute;
  right: -34px;
  bottom: 24px;
  width: 1px;
  height: 1px;
}

.lp-finish.is-finished .lp-podium__step--1 {
  animation: lp-cheer 0.8s var(--bounce);
}

@keyframes lp-cheer {
  30% {
    transform: translateY(-16px) scale(1.06);
  }
}

/* ─── Footer ────────────────────────────────────────────────────────────── */
.lp-footer {
  position: relative;
  z-index: 3;
  padding: 64px 0 36px;
  background: #0d0216;
  border-top: 1px solid rgb(255 255 255 / 0.07);
  color: var(--ink-mute);
  font-size: 15px;
}

.lp-footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
}

.lp-footer__brand p {
  max-width: 280px;
  margin: 14px 0 0;
}

.lp-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp-footer__col a {
  color: var(--ink-soft);
  text-decoration: none;
}

.lp-footer__col a:hover {
  color: #fff;
}

.lp-footer__title {
  margin: 0 0 4px;
  color: #fff;
  font-weight: 900;
}

.lp-footer__copy {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.07);
  font-size: 14px;
}

.lp-footer__utility-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
}

.lp-footer__utility-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* ─── Scroll reveal (armed by home.js) ─────────────────────────────────── */
.lp-rv {
  opacity: 0;
  translate: 0 48px;
  scale: 0.96;
  transition:
    opacity 0.6s ease-out,
    translate 0.9s var(--bounce),
    scale 0.9s var(--bounce);
  transition-delay: calc(var(--rv-i, 0) * 90ms);
}

.lp-rv.is-in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

.lp-rv--fade {
  translate: none;
  scale: none;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .lp-nav__toggle {
    display: flex;
  }

  .lp-nav__panel {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 22px;
    background: rgb(19 4 31 / 0.97);
    border-bottom: 1px solid rgb(255 255 255 / 0.08);
  }

  .nav-open .lp-nav__panel {
    display: flex;
  }

  .lp-nav__links {
    flex-direction: column;
  }

  .lp-nav__right {
    flex-direction: column;
    align-items: stretch;
  }

  .lp-nav__right > * {
    text-align: center;
  }

  .lp-tracks__grid {
    grid-template-columns: 1fr 1fr;
  }

  .lp-aud,
  .lp-quotes__list {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
    gap: 56px;
  }

  .lp-quote:nth-child(2) {
    margin-top: 0;
  }

  .lp-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .lp-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .lp-step,
  .lp-feature,
  .lp-speed__grid,
  .lp-faq__wrap,
  .lp-finish__grid {
    grid-template-columns: 1fr;
  }

  .lp-step--flip .lp-step__text,
  .lp-feature--flip .lp-feature__text {
    order: 0;
  }

  .lp-step__badge {
    width: 80px;
    height: 80px;
    font-size: 46px;
  }

  .lp-question {
    margin: 30px 10px 0;
  }

  .lp-demo__dot {
    display: none;
  }

  .lp-podium {
    height: 320px;
  }

  .lp-podium__line {
    right: 50%;
    bottom: -56px;
  }
}

/* Keep in step with SMALL_WIDTH in home.js, which thins the track to match. */
@media (max-width: 699px) {
  .lp-wrap {
    padding: 0 20px;
  }

  .lp-hero {
    padding: 40px 0 200px;
  }

  .lp-hero__s0 {
    left: -20px;
    top: 2%;
    width: 80px;
    height: 80px;
  }

  .lp-hero__s1 {
    right: 4%;
    top: 3%;
    width: 50px;
    height: 50px;
  }

  .lp-hero__s2 {
    right: 6%;
    bottom: 17%;
    width: 64px;
    height: 64px;
  }

  .lp-hero__s3 {
    left: 8%;
    bottom: 19%;
    width: 42px;
    height: 42px;
  }

  .lp-hero__s4 {
    right: -70px;
    top: 44%;
    width: 120px;
    height: 120px;
  }

  .lp-prompt {
    flex-direction: column;
  }

  .lp-prompt__submit {
    justify-content: center;
    padding: 16px;
  }

  .lp-how__s3,
  .lp-how__s4 {
    display: none;
  }

  .lp-tracks__grid {
    gap: 26px 20px;
  }

  .lp-trackcard h3 {
    font-size: 24px;
  }

  .lp-question {
    padding: 22px;
  }

  .lp-question__tiles li {
    height: 70px;
    font-size: 18px;
  }

  .lp-question__timer {
    top: -40px;
    right: -14px;
    width: 80px;
    height: 80px;
    font-size: 20px;
  }

  .lp-faq__list {
    padding-left: 32px;
  }

  .lp-faq__dot {
    left: -32px;
    width: 16px;
    height: 16px;
  }

  .lp-podium__step {
    font-size: 54px;
  }

  .lp-track .t-glow {
    stroke-width: 46px;
  }

  .lp-track .t-glow2 {
    stroke-width: 28px;
  }

  .lp-track .t-bed {
    stroke-width: 20px;
  }

  .lp-track .t-rail,
  .lp-track .t-lit {
    stroke-width: 16px;
  }

  .lp-track .t-litglow {
    stroke-width: 36px;
  }

  .lp-track .t-cut {
    stroke-width: 11px;
  }

  .lp-track .t-ties {
    stroke-width: 10px;
  }

  .lp-hud {
    left: 12px;
    bottom: 12px;
    padding: 8px 12px 6px;
  }

  .lp-hud__label {
    display: none;
  }

  /* On a phone the track can't dodge the copy, so it steps back a little. */
  .lp-track {
    opacity: 0.75;
  }

  .lp-hud__value {
    font-size: 22px;
  }
}

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