/* ==========================================================================
   JamSolve — landing page styles
   --------------------------------------------------------------------------
   1. Design tokens (edit colours / fonts / radii here)
   2. Base + utilities
   3. Header / navigation
   4. Hero + mini-jam demo
   5. Sections (story, how-to, mechanics, fever, rewards, districts,
      crew, boosters, garage, screens, benefits, faq, final cta)
   6. Footer, sticky mobile CTA, back-to-top
   7. Motion + reduced-motion
   ========================================================================== */

/* 1. Design tokens -------------------------------------------------------- */
:root {
  /* palette: glossy toy city */
  --sky-1: #8fd8ff;
  --sky-2: #3fb0ff;
  --sky-3: #2273e8;
  --navy: #13265c;
  --navy-2: #1c3478;
  --ink: #1b2240;
  --ink-soft: #4a5378;
  --cream: #fff7e8;
  --cream-2: #ffeccb;
  --sun: #ffc83d;
  --sun-dark: #e59a00;
  --cherry: #ff4d5e;
  --cherry-dark: #c92a3c;
  --mint: #34d39a;
  --mint-dark: #13a36f;
  --grape: #7c4dff;
  --grape-dark: #5326d6;
  --asphalt: #3a4157;
  --asphalt-2: #2d3346;
  --lane: #f4f1e8;
  --white: #ffffff;

  /* type */
  --font-display: "Fredoka", "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-hero: clamp(2.6rem, 1.4rem + 6vw, 5.6rem);
  --fs-h2: clamp(2rem, 1.3rem + 3.2vw, 3.6rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.45vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9rem;

  /* shape + depth */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 44px;
  --r-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(19, 38, 92, 0.14);
  --shadow-card: 0 18px 50px rgba(19, 38, 92, 0.18);
  --shadow-pop: 0 6px 0 rgba(0, 0, 0, 0.18);
  --glow-sun: 0 0 0 4px rgba(255, 200, 61, 0.35);

  /* spacing + layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 9vw, 140px);
  --header-h: 68px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t-med: 320ms;
  --t-slow: 700ms;
}

/* 2. Base ---------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 8px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: 12px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}
.section {
  position: relative;
  padding-block: var(--section-y);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: var(--white);
  color: var(--grape-dark);
  box-shadow: var(--shadow-soft);
}
.eyebrow svg {
  width: 18px;
  height: 18px;
}
.section-head {
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 64px);
  text-align: center;
}
.section-head h2 {
  font-size: var(--fs-h2);
  margin-top: 16px;
  color: var(--navy);
}
.section-head p {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
}
.hl {
  color: var(--cherry);
  position: relative;
  white-space: nowrap;
}
.hl--sun {
  color: var(--sun-dark);
}
.hl--mint {
  color: var(--mint-dark);
}
.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* buttons */
.btn {
  --btn-bg: var(--mint);
  --btn-edge: var(--mint-dark);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 26px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--btn-edge), 0 14px 26px rgba(0, 0, 0, 0.16);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out),
    filter var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 8px 0 var(--btn-edge), 0 18px 30px rgba(0, 0, 0, 0.2);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--btn-edge), 0 6px 14px rgba(0, 0, 0, 0.16);
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn--sun {
  --btn-bg: var(--sun);
  --btn-edge: var(--sun-dark);
  --btn-fg: var(--navy);
}
.btn--grape {
  --btn-bg: var(--grape);
  --btn-edge: var(--grape-dark);
}
.btn--cherry {
  --btn-bg: var(--cherry);
  --btn-edge: var(--cherry-dark);
}
.btn--ghost {
  --btn-bg: rgba(255, 255, 255, 0.92);
  --btn-edge: rgba(19, 38, 92, 0.25);
  --btn-fg: var(--navy);
}
.btn--sm {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 1rem;
}
.btn .icon {
  width: 22px;
  height: 22px;
}

/* store badges (placeholders until real store links exist) */
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 20px 10px 16px;
  border-radius: 16px;
  background: #0f1322;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 0 #000, 0 14px 26px rgba(0, 0, 0, 0.25);
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast);
}
.store-badge:hover {
  transform: translateY(-2px);
}
.store-badge:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #000;
}
.store-badge svg {
  width: 30px;
  height: 30px;
}
.store-badge small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.85;
  line-height: 1.1;
}
.store-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.1;
}
.store-note {
  margin-top: 10px;
  font-size: var(--fs-small);
  opacity: 0.85;
}

/* road divider: asphalt strip with lane dashes */
.road {
  position: relative;
  height: 64px;
  background: var(--asphalt);
  overflow: hidden;
  box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.08), inset 0 -6px 0 rgba(0, 0, 0, 0.18);
}
.road::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  background: repeating-linear-gradient(90deg, var(--lane) 0 46px, transparent 46px 92px);
  opacity: 0.85;
}
.road__car {
  position: absolute;
  top: 50%;
  height: 34px;
  width: auto;
  translate: 0 -50%;
  rotate: 90deg;
  will-change: transform;
}

/* 3. Header -------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top);
  transition: background var(--t-med), box-shadow var(--t-med), transform var(--t-med);
}
.site-header.is-scrolled {
  background: rgba(255, 247, 232, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(19, 38, 92, 0.12);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--navy);
}
.brand span b {
  color: var(--sky-3);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--navy);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__links a:hover,
.nav__links a[aria-current="true"] {
  background: rgba(63, 176, 255, 0.16);
  color: var(--sky-3);
}
.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--navy);
  position: relative;
  transition: transform var(--t-med) var(--ease-out), background var(--t-fast);
}
.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav__toggle span::before {
  top: -7px;
}
.nav__toggle span::after {
  top: 7px;
}
.nav__toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav__toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--sun), var(--cherry), var(--grape));
}

@media (max-width: 960px) {
  .nav__toggle {
    display: inline-flex;
  }
  .nav__cta .btn {
    display: none;
  }
  .nav__links {
    position: fixed;
    inset: var(--header-h) 12px auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: var(--r-lg);
    background: var(--cream);
    box-shadow: var(--shadow-card);
    transform: translateY(-12px) scale(0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out),
      visibility var(--t-med);
  }
  .nav__links.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav__links a {
    padding: 14px 16px;
    font-size: 1.1rem;
  }
}

/* 4. Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 32px) 0 0;
  overflow: hidden;
  color: var(--navy);
  background: linear-gradient(180deg, var(--sky-1) 0%, #bfe9ff 45%, var(--cream) 100%);
  isolation: isolate;
}
.hero__city {
  position: absolute;
  inset: auto 0 0;
  height: 78%;
  z-index: -2;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%);
}
.hero__city img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: 0.55;
}
.hero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(60% 50% at 22% 32%, rgba(255, 255, 255, 0.85), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(255, 247, 232, 0.92) 100%);
}
.hero__clouds span {
  position: absolute;
  z-index: -1;
  width: 120px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.7;
  filter: blur(2px);
  box-shadow: 30px -18px 0 4px #fff, 64px -4px 0 0 #fff;
  animation: drift 38s linear infinite;
}
.hero__clouds span:nth-child(1) {
  top: 16%;
  left: -12%;
}
.hero__clouds span:nth-child(2) {
  top: 30%;
  left: 60%;
  transform: scale(0.7);
  animation-duration: 52s;
  animation-delay: -20s;
}
.hero__clouds span:nth-child(3) {
  top: 8%;
  left: 35%;
  transform: scale(0.55);
  animation-duration: 64s;
  animation-delay: -40s;
}
@keyframes drift {
  from {
    translate: -20vw 0;
  }
  to {
    translate: 120vw 0;
  }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding-bottom: 96px;
}
.hero__logo {
  width: min(520px, 92%);
  margin: 0 0 8px -6px;
  filter: drop-shadow(0 14px 22px rgba(19, 38, 92, 0.25));
}
.hero h1 {
  font-size: var(--fs-hero);
  color: var(--navy);
  margin-bottom: 18px;
}
.hero h1 .word {
  display: inline-block;
}
.hero h1 .word--tap {
  color: var(--cherry);
}
.hero h1 .word--flow {
  color: var(--sky-3);
}
.hero h1 .word--unjam {
  color: var(--mint-dark);
}
.hero__lead {
  font-size: var(--fs-lead);
  max-width: 34em;
  color: var(--ink);
  font-weight: 600;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 26px 0 10px;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.hero__facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}
.hero__facts img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__mascot {
  position: absolute;
  z-index: 3;
  width: clamp(110px, 16vw, 190px);
  left: -10%;
  bottom: 4%;
  filter: drop-shadow(0 16px 18px rgba(19, 38, 92, 0.28));
}
.float {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 10px 14px rgba(19, 38, 92, 0.22));
}
.float--coin {
  width: 58px;
  right: 2%;
  top: 6%;
}
.float--star {
  width: 52px;
  left: 6%;
  top: 2%;
}
.float--spark {
  width: 34px;
  right: 14%;
  bottom: 12%;
}

/* phone mock + playable mini jam */
.phone {
  position: relative;
  z-index: 2;
  width: min(360px, 88vw);
  padding: 14px;
  border-radius: 46px;
  background: linear-gradient(160deg, #24305a, #0e1430);
  box-shadow: 0 2px 0 6px rgba(255, 255, 255, 0.5), var(--shadow-card), 0 40px 80px rgba(19, 38, 92, 0.35);
}
.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(180deg, #9ad46a, #7fc152);
}
.jam__hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 14px 8px;
}
.jam__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}
.jam__hearts {
  color: var(--cherry);
  letter-spacing: 1px;
}
.jam__flow {
  background: var(--grape);
  color: #fff;
}
.jam__board {
  --cols: 6;
  --rows: 7;
  position: relative;
  margin: 6px 14px 14px;
  aspect-ratio: 6 / 7;
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--asphalt);
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 2px, transparent 2px);
  background-size: calc(100% / var(--cols)) calc(100% / var(--rows));
  box-shadow: inset 0 0 0 5px #e8d7b0, inset 0 0 0 9px rgba(0, 0, 0, 0.12);
  touch-action: manipulation;
}
.jam__board.is-shaking {
  animation: shake 0.32s;
}
@keyframes shake {
  20% {
    transform: translateX(-5px);
  }
  40% {
    transform: translateX(5px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(2px);
  }
}
.jam-car {
  position: absolute;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.5s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.4s;
  -webkit-tap-highlight-color: transparent;
}
.jam-car:focus-visible {
  outline-offset: -2px;
}
.jam-car__img {
  position: absolute;
  left: 50%;
  top: 50%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(2px 4px 0 rgba(0, 0, 0, 0.25));
  transition: transform 0.2s var(--ease-spring);
}
.jam-car:hover .jam-car__img {
  filter: drop-shadow(2px 4px 0 rgba(0, 0, 0, 0.25)) brightness(1.08);
}
.jam-car__arrow {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.jam-car__arrow svg {
  width: 16px;
  height: 16px;
}
.jam-car.is-hint .jam-car__arrow {
  background: var(--sun);
  box-shadow: var(--glow-sun);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    transform: scale(1.18);
  }
}
.jam-car.is-gone {
  opacity: 0;
  pointer-events: none;
}
.jam__toast {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 5;
  translate: -50% -50%;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: #fff;
  background: var(--grape);
  box-shadow: 0 5px 0 var(--grape-dark);
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.35s var(--ease-spring);
}
.jam__toast.is-on {
  opacity: 1;
  transform: scale(1);
}
.jam__toast--bad {
  background: var(--cherry);
  box-shadow: 0 5px 0 var(--cherry-dark);
}
.jam__win {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  color: #fff;
  background: radial-gradient(circle at 50% 40%, rgba(124, 77, 255, 0.92), rgba(19, 38, 92, 0.95));
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.jam__win.is-on {
  opacity: 1;
  visibility: visible;
}
.jam__win img {
  width: 120px;
}
.jam__win h3 {
  font-size: 1.9rem;
  margin: 0;
}
.jam__win p {
  margin: 0;
  font-weight: 700;
}
.jam__caption {
  margin: 14px auto 0;
  max-width: 360px;
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--ink-soft);
}
.confetti {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -10px;
  width: 9px;
  height: 14px;
  border-radius: 2px;
  animation: fall 1.6s ease-in forwards;
}
@keyframes fall {
  to {
    transform: translate3d(var(--dx, 0), 520px, 0) rotate(var(--rot, 540deg));
    opacity: 0.2;
  }
}
.hero__road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: 110px;
  }
  .hero__logo {
    margin-inline: auto;
  }
  .hero__lead {
    margin-inline: auto;
  }
  .hero__actions,
  .hero__facts,
  .hero .stores {
    justify-content: center;
  }
  .hero__mascot {
    left: -2%;
    bottom: -2%;
  }
}

/* 5. Sections ------------------------------------------------------------ */

/* ticker */
.ticker {
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
}
.ticker__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  white-space: nowrap;
}
.ticker__track img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* story / what is */
.story {
  background: var(--cream);
}
.story__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.story h2 {
  font-size: var(--fs-h2);
  color: var(--navy);
}
.story__lead {
  font-size: var(--fs-lead);
  font-weight: 600;
}
.answer {
  margin: 22px 0 0;
  padding: 18px 20px;
  border-left: 6px solid var(--sun);
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.answer h3 {
  font-size: 1.1rem;
  color: var(--grape-dark);
  margin-bottom: 4px;
}
.answer p {
  margin: 0;
}
.story__art {
  position: relative;
}
.story__art img.art-main {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}
.story__badge {
  position: absolute;
  right: -10px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: var(--r-pill);
  background: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-card);
}
.story__badge img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cream-2);
  object-fit: contain;
}
.love {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(48px, 7vw, 90px);
}
.love__card {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.love__card:hover {
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: var(--shadow-card);
}
.love__card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 12px;
}
.love__card h3 {
  font-size: var(--fs-h3);
  color: var(--navy);
}
.love__card p {
  margin: 0;
  color: var(--ink-soft);
}

/* how to play */
.how {
  background: linear-gradient(180deg, #e9f6ff, #d3eeff);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.step__num {
  position: absolute;
  top: -18px;
  left: 22px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 4px 0 var(--sun-dark);
}
.step__visual {
  height: 150px;
  margin: 8px 0 14px;
  border-radius: var(--r-md);
  background: var(--asphalt);
  position: relative;
  overflow: hidden;
}
.step h3 {
  font-size: var(--fs-h3);
  color: var(--navy);
}
.step p {
  margin: 0;
  color: var(--ink-soft);
}
.mini-car {
  position: absolute;
  width: 38px;
}
.mini-arrow {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--navy);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}
.mini-arrow svg {
  width: 18px;
  height: 18px;
}
.step__visual--drive .mini-car {
  left: 44%;
  top: 30%;
  animation: driveUp 2.8s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
@keyframes driveUp {
  0% {
    transform: translateY(110px);
  }
  20%,
  45% {
    transform: translateY(0);
  }
  85%,
  100% {
    transform: translateY(-190px);
  }
}
.step__visual--flow {
  display: grid;
  place-items: center;
}
.flow-chip {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--grape);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 5px 0 var(--grape-dark);
  animation: pulse 1.4s infinite;
}

/* mechanics */
.mechanics {
  background: var(--cream);
}
.mech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mech {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transform-style: preserve-3d;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.mech:hover {
  box-shadow: var(--shadow-card);
}
.mech__icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--cream-2);
}
.mech__icon img {
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}
.mech h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  color: var(--navy);
}
.mech p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
  background: var(--sky-1);
  color: var(--navy);
}

/* fever + rush */
.fever {
  color: #fff;
  background: radial-gradient(80% 70% at 50% 0%, #3b2aa8 0%, #1d1557 60%, #120d39 100%);
  overflow: hidden;
}
.fever .section-head h2 {
  color: #fff;
}
.fever .section-head p {
  color: rgba(255, 255, 255, 0.82);
}
.fever .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: var(--sun);
  box-shadow: none;
}
.fever__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.fever__card {
  position: relative;
  padding: 28px;
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.fever__card h3 {
  font-size: var(--fs-h3);
}
.fever__card p {
  color: rgba(255, 255, 255, 0.85);
}
.chain {
  display: flex;
  gap: 6px;
  margin: 20px 0 14px;
}
.chain i {
  flex: 1;
  height: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.2s, box-shadow 0.2s;
}
.chain i.is-on {
  background: linear-gradient(90deg, var(--sun), #ff9a3d);
  box-shadow: 0 0 14px rgba(255, 200, 61, 0.7);
}
.chain-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
  color: var(--sun);
}
.fever__card.is-fever {
  box-shadow: 0 0 0 3px var(--sun), 0 0 60px rgba(255, 200, 61, 0.45);
}
.rush-lane {
  position: relative;
  height: 120px;
  margin-top: 18px;
  border-radius: var(--r-md);
  background: var(--asphalt);
  overflow: hidden;
}
.rush-lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--lane) 0 30px, transparent 30px 60px);
  opacity: 0.7;
}
.rush-lane img {
  position: absolute;
  top: 22%;
  height: 38px;
  width: auto;
  rotate: 90deg;
  animation: rush 1.6s linear infinite;
}
.rush-lane img:nth-child(2) {
  top: 58%;
  animation-delay: -0.5s;
}
.rush-lane img:nth-child(3) {
  animation-delay: -1s;
}
.rush-lane img:nth-child(4) {
  top: 58%;
  animation-delay: -1.3s;
}
@keyframes rush {
  from {
    left: -80px;
  }
  to {
    left: 110%;
  }
}

/* rewards (interactive demos) */
.rewards {
  background: linear-gradient(180deg, var(--cream) 0%, #fff1d6 100%);
}
.reward-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.reward {
  position: relative;
  padding: 26px;
  border-radius: var(--r-xl);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.reward h3 {
  font-size: var(--fs-h3);
  color: var(--navy);
}
.reward p {
  color: var(--ink-soft);
}
.reward__demo {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.demo-label {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--cream-2);
  color: var(--sun-dark);
}
/* garage meter */
.meter-car {
  position: relative;
  width: 200px;
  height: 100px;
}
.meter-car__shape {
  position: absolute;
  inset: 0;
}
.meter-car__shape img {
  position: absolute;
  width: 100px;
  height: 190px;
  left: 50px;
  top: -45px;
  object-fit: contain;
  rotate: 90deg;
}
.meter-car__shape--dark img {
  filter: brightness(0) invert(0.25) sepia(0.3) hue-rotate(180deg);
  opacity: 0.85;
}
.meter-car__shape--fill {
  clip-path: inset(0 calc(100% - var(--fill, 0%)) 0 0);
  transition: clip-path 0.6s var(--ease-out);
}
.meter {
  flex: 1;
  min-width: 180px;
}
.meter__bar {
  height: 14px;
  border-radius: 8px;
  background: #e7ecf6;
  overflow: hidden;
}
.meter__bar span {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  border-radius: 8px;
  background: linear-gradient(90deg, var(--mint), #7ef0c1);
  transition: width 0.6s var(--ease-out);
}
.meter__label {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--navy);
}
.reward.is-unlocked {
  box-shadow: 0 0 0 3px var(--sun), var(--shadow-card);
}
/* multiplier needle */
.needle {
  position: relative;
  width: 100%;
  margin: 18px 0 14px;
}
.needle__segs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border-radius: 14px;
}
.needle__segs span {
  padding: 12px 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  background: var(--grape);
}
.needle__segs span:nth-child(even) {
  background: #9c6bff;
}
.needle__segs span.is-best {
  background: var(--sun);
  color: #6b4300;
}
.needle__pin {
  position: absolute;
  top: -14px;
  left: 0;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 16px solid var(--navy);
  translate: -12px 0;
  will-change: left;
}
.needle__result {
  min-height: 1.6em;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--mint-dark);
}
/* gift chest */
.chest {
  position: relative;
  width: 150px;
  height: 130px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.chest img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.2s, transform 0.4s var(--ease-spring);
}
.chest .chest--open {
  opacity: 0;
}
.chest.is-open .chest--open {
  opacity: 1;
  transform: scale(1.08);
}
.chest.is-open .chest--closed {
  opacity: 0;
}
.chest:not(.is-open) {
  animation: wobble 2.2s infinite;
}
@keyframes wobble {
  0%,
  70%,
  100% {
    transform: rotate(0);
  }
  75% {
    transform: rotate(-7deg);
  }
  82% {
    transform: rotate(6deg);
  }
  90% {
    transform: rotate(-3deg);
  }
}
.coin-burst {
  position: absolute;
  width: 26px;
  pointer-events: none;
  animation: burst 0.9s var(--ease-out) forwards;
}
@keyframes burst {
  from {
    transform: translate(0, 0) scale(0.4);
    opacity: 1;
  }
  to {
    transform: translate(var(--bx), var(--by)) scale(1);
    opacity: 0;
  }
}
.timer {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
}
/* streak */
.streak {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.streak__flame {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #ff8a3d, var(--cherry));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  box-shadow: 0 5px 0 var(--cherry-dark);
}
.streak__flame svg {
  width: 24px;
  height: 24px;
}
.streak img {
  width: 64px;
}

/* districts carousel (native scroll-snap) */
.districts {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.districts .section-head h2 {
  color: #fff;
}
.districts .section-head p {
  color: rgba(255, 255, 255, 0.8);
}
.carousel {
  position: relative;
}
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(230px, 28vw, 300px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 8px var(--gutter) 26px;
  margin: 0;
  list-style: none;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar {
  display: none;
}
.carousel__track > li {
  scroll-snap-align: start;
}
.carousel__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}
.carousel__btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 5px 0 var(--sun-dark);
  transition: transform var(--t-fast);
}
.carousel__btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--sun-dark);
}
.carousel__btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.district {
  position: relative;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #22336e;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  transition: transform var(--t-med) var(--ease-out);
}
.district:hover {
  transform: translateY(-6px);
}
.district img {
  width: 100%;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  object-position: 50% 30%;
}
.district__info {
  position: absolute;
  inset: auto 0 0;
  padding: 60px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(13, 22, 56, 0.92) 55%);
}
.district__num {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--sun);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.78rem;
}
.district h3 {
  font-size: 1.45rem;
  margin: 8px 0 4px;
}
.district p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

/* crew */
.crew {
  background: linear-gradient(180deg, #fff1d6, var(--cream));
}
.crew-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.crew-card {
  position: relative;
  padding: 18px 14px 20px;
  border-radius: var(--r-lg);
  background: var(--white);
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-med) var(--ease-spring);
}
.crew-card:hover {
  transform: translateY(-8px) rotate(-1.5deg);
}
.crew-card img {
  height: 150px;
  width: auto;
  margin: 0 auto 10px;
  object-fit: contain;
}
.crew-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.crew-card q {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* boosters */
.boosters {
  background: var(--cream);
}
.booster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.booster {
  padding: 24px 18px;
  border-radius: var(--r-lg);
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-med) var(--ease-spring);
}
.booster:hover {
  transform: translateY(-6px) scale(1.02);
}
.booster img {
  width: 96px;
  height: 96px;
  margin: 0 auto 10px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.2));
}
.booster h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.booster p {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
  opacity: 0.95;
}
.booster--hint {
  background: linear-gradient(160deg, #4cb2ff, #2273e8);
}
.booster--undo {
  background: linear-gradient(160deg, #ffbe3d, #f08a00);
}
.booster--freeze {
  background: linear-gradient(160deg, #9b7bff, #5c34e0);
}
.booster--shield {
  background: linear-gradient(160deg, #3fd9a0, #11a06c);
}

/* garage */
.garage {
  background: linear-gradient(180deg, #dff3ff, #c9e9ff);
}
.garage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(64px, 19vw, 110px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.garage-grid li {
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-med) var(--ease-spring);
}
.garage-grid li:hover {
  transform: translateY(-6px) rotate(-3deg);
}
.garage-grid img {
  height: 84%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 6px rgba(19, 38, 92, 0.25));
}
.garage__note {
  margin-top: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
}

/* screenshots */
.screens {
  background: var(--cream);
  overflow: hidden;
}
.screens .carousel__track {
  grid-auto-columns: clamp(220px, 24vw, 280px);
}
.shot {
  margin: 0;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #24305a, #0e1430);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6), var(--shadow-card);
}
.shot img {
  width: 100%;
  aspect-ratio: 1320 / 2868;
  border-radius: 28px;
  object-fit: cover;
}
.shot figcaption {
  padding: 10px 6px 4px;
  text-align: center;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
}

/* benefits */
.benefits {
  background: linear-gradient(180deg, var(--cream), #fff1d6);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.benefit {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}
.benefit__icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--sky-1);
  color: var(--navy);
}
.benefit__icon svg {
  width: 28px;
  height: 28px;
}
.benefit h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--navy);
}
.benefit p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink-soft);
}

/* faq */
.faq {
  background: var(--cream);
}
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--navy);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-2);
  font-size: 1.4rem;
  transition: transform var(--t-med) var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--sun);
}
.faq details > div {
  padding: 0 22px 20px;
  color: var(--ink-soft);
}
.faq details > div p:last-child {
  margin: 0;
}

/* final cta */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, var(--sky-2), var(--sky-3));
  isolation: isolate;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/districts/blossom.webp") center 30% / cover;
  opacity: 0.18;
}
.final__icon {
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  border-radius: 32px;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.6), var(--shadow-card);
}
.final h2 {
  font-size: var(--fs-h2);
  margin-bottom: 14px;
}
.final p {
  font-size: var(--fs-lead);
  max-width: 36em;
  margin: 0 auto 26px;
  font-weight: 700;
}
.final .stores {
  justify-content: center;
}
.final__cat {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: clamp(110px, 14vw, 200px);
  z-index: -1;
}

/* 6. Footer + floating UI ----------------------------------------------- */
.site-footer {
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  background: #0e1838;
  color: rgba(255, 255, 255, 0.85);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}
.footer__brand p {
  margin-top: 12px;
  max-width: 30em;
}
.site-footer h2 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 12px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
}
.site-footer a:hover {
  color: var(--sun);
  text-decoration: underline;
}
.site-footer .brand span {
  color: #fff;
}
.footer__legal {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}
.mobile-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 14px;
  border-radius: 22px;
  background: rgba(19, 38, 92, 0.94);
  color: #fff;
  box-shadow: var(--shadow-card);
  transform: translateY(140%);
  transition: transform var(--t-med) var(--ease-out);
}
.mobile-cta.is-on {
  transform: none;
}
.mobile-cta img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.mobile-cta strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.1;
}
.mobile-cta small {
  display: block;
  opacity: 0.8;
}
.mobile-cta__text {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.to-top {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 80;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--sun);
  color: var(--navy);
  box-shadow: 0 5px 0 var(--sun-dark), var(--shadow-soft);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--t-med), transform var(--t-med), visibility var(--t-med);
}
.to-top.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* responsive grids */
@media (max-width: 1100px) {
  .crew-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 960px) {
  .story__grid,
  .fever__grid,
  .reward-grid {
    grid-template-columns: 1fr;
  }
  .love,
  .steps,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .booster-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .mobile-cta {
    display: flex;
  }
  .to-top {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .steps {
    gap: 34px;
  }
}
@media (max-width: 640px) {
  .mech-grid {
    grid-template-columns: 1fr;
  }
  .crew-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .crew-grid .crew-card:last-child {
    grid-column: 1 / -1;
  }
  .story__badge {
    right: 8px;
    bottom: -22px;
    font-size: 0.95rem;
  }
  .reward,
  .fever__card {
    padding: 22px 18px;
  }
  .demo-label {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }
}
@media (max-width: 380px) {
  .booster-grid {
    grid-template-columns: 1fr;
  }
  .store-badge {
    width: 100%;
    justify-content: center;
  }
  .phone {
    padding: 10px;
    border-radius: 38px;
  }
}

/* 7. Motion -------------------------------------------------------------- */
/* elements revealed on scroll (JS adds .is-in; without JS they are visible) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.bob {
  animation: bob 3.2s ease-in-out infinite;
}
.bob--slow {
  animation-duration: 4.6s;
}
@keyframes bob {
  50% {
    transform: translateY(-12px);
  }
}
.spin-slow {
  animation: spin 9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@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;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .ticker__track {
    animation: none;
  }
}

/* mobile CTA: keep the button on one line, truncate the tagline instead */
.mobile-cta .btn {
  flex: none;
  white-space: nowrap;
}
.mobile-cta__text > span {
  min-width: 0;
}
.mobile-cta small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .final__cat {
    display: none;
  }
}
