:root {
  --bg: #1a1a2e;
  --bg-deep: #0f1222;
  --surface: rgba(22, 33, 62, 0.84);
  --surface-strong: rgba(14, 22, 44, 0.92);
  --primary: #0f3460;
  --accent: #e94560;
  --accent-soft: rgba(233, 69, 96, 0.14);
  --text: #f5f7ff;
  --muted: #b9c2da;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --red: #e53935;
  --green: #43a047;
  --yellow: #fdd835;
  --blue: #1e88e5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  background:
    linear-gradient(rgba(10, 14, 30, 0.76), rgba(10, 14, 30, 0.9)),
    url("assets/background.webp"),
    radial-gradient(circle at top left, rgba(66, 165, 245, 0.16), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(233, 69, 96, 0.18), transparent 26%),
    radial-gradient(circle at bottom right, rgba(67, 160, 71, 0.12), transparent 30%),
    linear-gradient(180deg, #16182f 0%, var(--bg) 55%, var(--bg-deep) 100%);
  background-size: cover, cover, auto, auto, auto, auto;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 95%);
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 17, 34, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand,
.topbar__nav a,
.button {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
}

.brand__logo {
  display: block;
  width: clamp(120px, 16vw, 170px);
  height: auto;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.topbar__nav a {
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 600;
  padding: 8px 4px;
  transition: color 160ms ease;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  color: var(--text);
}

.topbar__actions {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.store-badges--center {
  margin-inline: auto;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.store-badge img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px) scale(1.02);
}

.store-badge--nav img {
  width: auto;
  height: 32px;
}

.store-badge--play img {
  height: 64px;
  width: auto;
  max-width: min(100%, 280px);
  aspect-ratio: 646 / 250;
}

.store-badge--instagram img {
  width: 48px;
  height: 48px;
}

.hero__actions.store-badges {
  margin: 28px 0 8px;
  gap: 16px;
  align-items: center;
}

.hero__actions .store-badge--play img {
  height: 68px;
}

.instagram-heading .store-badge {
  margin-top: 8px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease, opacity 180ms ease;
}

.topbar.is-nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.is-nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

.hero,
.section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 24, 50, 0.9), rgba(14, 17, 34, 0.78));
  box-shadow: var(--shadow);
}

.hero {
  padding: 36px 32px 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.hero--centered {
  display: block;
  text-align: center;
}

.hero__inner {
  max-width: 720px;
  margin-inline: auto;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -140px -100px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 69, 96, 0.22), transparent 65%);
  pointer-events: none;
}

.hero__logo {
  display: block;
  width: min(200px, 48vw);
  height: auto;
  margin: 0 auto 20px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hero--centered h1 {
  max-width: 22ch;
  margin-inline: auto;
  font-size: clamp(1.75rem, 4.2vw, 2.85rem);
}

.hero__actions--center {
  justify-content: center;
  margin: 28px 0 8px;
}

.phone-frame {
  --phone-surface: linear-gradient(165deg, #0b1524 0%, #152238 45%, #1e3d66 100%);
  position: relative;
  width: 100%;
  max-width: 280px;
  margin-inline: auto;
  padding: 10px 10px 12px;
  border-radius: 36px;
  background: var(--phone-surface);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

/* Full-bleed shots (hero): direct child img */
.phone-frame > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 26px;
}

/* Focus crops: zoom to the part of the screen the section talks about */
.shot-crop {
  overflow: hidden;
  border-radius: 24px;
  width: 100%;
  position: relative;
}

.shot-crop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--crop-x, 50%) var(--crop-y, 50%);
}

/* 01 — center of the Ludo board (not the logo) */
.shot-crop--focus-board {
  aspect-ratio: 1 / 1;
  --crop-x: 50%;
  --crop-y: 54%;
}

.shot-crop--focus-board img {
  object-position: 50% 54%;
  transform: scale(1.14);
}

/* 02 — Yellow corner: roll beat + hand on panel */
.shot-crop--focus-yellow-hud {
  aspect-ratio: 3 / 4;
  --crop-x: 86%;
  --crop-y: 86%;
}

.shot-crop--focus-yellow-hud img {
  object-position: 86% 82%;
  transform: scale(1.22);
}

/* 03 — Blue bottom-left corner: die + saved slots */
.shot-crop--focus-blue-hud {
  aspect-ratio: 4 / 5;
  --crop-x: 22%;
  --crop-y: 84%;
}

.shot-crop--focus-blue-hud img {
  object-position: 22% 80%;
  transform: scale(1.2);
}

/* Gallery: green top-right corner — die + save slots */
.shot-crop--focus-green-hud {
  aspect-ratio: 3 / 4;
  --crop-x: 84%;
  --crop-y: 28%;
}

.shot-crop--focus-green-hud img {
  object-position: 82% 30%;
  transform: scale(1.2);
}

/* Settings sheet: gold modal, bias slightly down for AI + custom sounds rows */
.shot-crop--focus-settings {
  aspect-ratio: 10 / 16;
  --crop-x: 50%;
  --crop-y: 52%;
}

.shot-crop--focus-settings img {
  object-position: 50% 52%;
  transform: scale(1.08);
}

/* Menu / modal screens: center the gold-framed panel */
.shot-crop--focus-ui-modal {
  aspect-ratio: 10 / 16;
  --crop-x: 50%;
  --crop-y: 48%;
}

.shot-crop--focus-ui-modal img {
  object-position: 50% 46%;
  transform: scale(1.06);
}

/* Lobby: room code sits high inside the gold frame */
.shot-crop--focus-ui-lobby {
  aspect-ratio: 10 / 16;
  --crop-x: 50%;
  --crop-y: 36%;
}

.shot-crop--focus-ui-lobby img {
  object-position: 50% 36%;
  transform: scale(1.07);
}

/* Main menu: 2×2 mode tiles + Online row */
.shot-crop--focus-mode-grid {
  aspect-ratio: 10 / 16;
  --crop-x: 50%;
  --crop-y: 58%;
}

.shot-crop--focus-mode-grid img {
  object-position: 50% 56%;
  transform: scale(1.1);
}

.phone-frame--large {
  max-width: min(320px, 100%);
}

.phone-frame--carousel {
  max-width: 240px;
}

.phone-frame--story {
  max-width: min(252px, 78vw);
}

.phone-frame--modes {
  max-width: min(268px, 82vw);
}

.phone-frame--rim {
  border-width: 2px;
  border-style: solid;
}

.phone-frame--rim-green {
  border-color: rgba(67, 160, 71, 0.55);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 32px rgba(67, 160, 71, 0.2);
}

.phone-frame--rim-gold {
  border-color: rgba(253, 216, 53, 0.45);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 28px rgba(253, 216, 53, 0.18);
}

.phone-frame--rim-coral {
  border-color: rgba(233, 69, 96, 0.5);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 30px rgba(233, 69, 96, 0.22);
}

.phone-frame--rim-blue {
  border-color: rgba(66, 165, 245, 0.5);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 30px rgba(66, 165, 245, 0.22);
}

.phone-frame--rim-purple {
  border-color: rgba(171, 71, 188, 0.5);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 30px rgba(171, 71, 188, 0.22);
}

.phone-frame--rim-cyan {
  border-color: rgba(38, 198, 218, 0.5);
  box-shadow:
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 28px 56px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 30px rgba(38, 198, 218, 0.22);
}

.storyboard-tilt--a {
  transform: rotate(2.5deg);
}

.storyboard-tilt--b {
  transform: rotate(-3deg);
}

.storyboard-tilt--c {
  transform: rotate(0deg) translateY(6px);
}

.carousel-tilt--1 {
  transform: rotate(-2.5deg);
}

.carousel-tilt--2 {
  transform: rotate(3deg);
}

.carousel-tilt--3 {
  transform: rotate(-1.5deg);
}

.section--menus {
  overflow: hidden;
}

.section-heading--center a {
  color: #ffd6de;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-heading--center a:hover,
.section-heading--center a:focus-visible {
  color: var(--text);
}

.carousel-card__copy a {
  color: #ffd6de;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.carousel-card__copy a:hover,
.carousel-card__copy a:focus-visible {
  color: var(--text);
}

.carousel--ui .carousel__track {
  animation-duration: 42s;
}

.eyebrow,
.section-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #ffd6de;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.eyebrow__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(233, 69, 96, 0.15);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Fredoka", "Inter", sans-serif;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  margin-bottom: 14px;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.hero__lede,
.section-heading p,
.mode-card p,
.footer p,
.storyboard__text {
  color: var(--muted);
  line-height: 1.72;
}

.hero__lede {
  max-width: 38ch;
  margin-inline: auto;
  font-size: 1.04rem;
}

.eyebrow--center {
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible,
.mode-card:hover {
  transform: translateY(-3px);
}

.button--xl {
  min-height: 64px;
  padding: 0 32px;
  font-size: 1.08rem;
}

.button--xl svg {
  flex-shrink: 0;
}

.button--play.button--xl:hover,
.button--play.button--xl:focus-visible {
  transform: translateY(-3px) scale(1.02);
}

.button--primary {
  color: var(--text);
  background: linear-gradient(135deg, var(--accent), #ff6b84);
  box-shadow: 0 18px 30px rgba(233, 69, 96, 0.25);
}

.button--secondary {
  color: var(--text);
  border: 1px solid rgba(66, 165, 245, 0.35);
  background: linear-gradient(180deg, rgba(15, 52, 96, 0.75), rgba(9, 22, 48, 0.82));
}

.button--play {
  color: #0d1f17;
  border: none;
  overflow: hidden;
  background: linear-gradient(180deg, #5ef5a8 0%, #18a86a 45%, #0c6e42 100%);
  /* No 1px border — it often shows as a hairline on the bottom curve of pills */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 16px 32px rgba(15, 157, 88, 0.35);
}

.button--play:hover,
.button--play:focus-visible {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 20px 40px rgba(15, 157, 88, 0.45);
}

.button--instagram {
  color: var(--text);
  border: none;
  background: linear-gradient(125deg, #405de6 0%, #833ab4 22%, #e1306c 52%, #f77737 78%, #fcaf45 100%);
  box-shadow: 0 16px 32px rgba(225, 48, 108, 0.28);
}

.button--instagram:hover,
.button--instagram:focus-visible {
  box-shadow: 0 20px 40px rgba(225, 48, 108, 0.38);
}

.mode-card {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.section {
  margin-top: 28px;
  padding: 32px;
  border-radius: var(--radius-lg);
}

.section--play-cta {
  background:
    radial-gradient(circle at 30% 60%, rgba(233, 69, 96, 0.12), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(66, 165, 245, 0.1), transparent 35%),
    linear-gradient(180deg, rgba(20, 24, 50, 0.9), rgba(14, 17, 34, 0.78));
}

.section--instagram {
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(131, 58, 180, 0.14), transparent 42%),
    radial-gradient(circle at 85% 70%, rgba(245, 133, 36, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(20, 24, 50, 0.9), rgba(14, 17, 34, 0.78));
}

.instagram-heading .button {
  margin-top: 8px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-heading--center {
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 32px;
  text-align: center;
}

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

.storyboard {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

.storyboard__step {
  text-align: center;
}

.storyboard__step .phone-frame {
  margin-bottom: 4px;
}

.storyboard__number {
  margin: 14px 0 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffd6de;
}

.storyboard__step h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.mode-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section--modes {
  background:
    radial-gradient(circle at 12% 45%, rgba(126, 87, 194, 0.12), transparent 40%),
    radial-gradient(circle at 88% 55%, rgba(30, 136, 229, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(20, 24, 50, 0.9), rgba(14, 17, 34, 0.78));
}

.modes-split {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: start;
}

.modes-showcase {
  text-align: center;
}

.modes-showcase__caption {
  margin: 14px 0 0;
  max-width: 280px;
  margin-inline: auto;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.mode-grid--with-visual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mode-card--online {
  grid-column: 1 / -1;
}

.mode-card__accent {
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 10px;
  border-radius: 999px;
}

.mode-card--ai .mode-card__accent {
  background: linear-gradient(90deg, #5c6bc0, #9575cd);
}

.mode-card--friends .mode-card__accent {
  background: linear-gradient(90deg, #f57c00, #ffb74d);
}

.mode-card--team .mode-card__accent {
  background: linear-gradient(90deg, #c62828, #ef5350);
}

.mode-card--room .mode-card__accent {
  background: linear-gradient(90deg, #2e7d32, #66bb6a);
}

.mode-card--online .mode-card__accent {
  background: linear-gradient(90deg, #1565c0, #42a5f5);
}

.section--sounds {
  background:
    radial-gradient(circle at 20% 50%, rgba(233, 69, 96, 0.14), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(66, 165, 245, 0.12), transparent 35%),
    linear-gradient(180deg, rgba(20, 24, 50, 0.9), rgba(14, 17, 34, 0.78));
}

.sounds-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}

.sounds-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

.sounds-list li {
  display: grid;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease;
}

.sounds-list li:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.sounds-list li strong {
  color: var(--text);
  font-size: 1.05rem;
}

.sounds-list li span {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.sounds-visual {
  display: grid;
  place-items: center;
}

.sounds-visual--duo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 3vw, 28px);
  padding: 8px 0;
}

.sounds-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  transition: transform 250ms ease;
}

.sounds-shot figcaption {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.sounds-shot--front {
  transform: rotate(-3deg) translateY(8px);
  z-index: 2;
}

.sounds-shot--back {
  transform: rotate(3deg);
  z-index: 1;
}

.sounds-shot--front:hover,
.sounds-shot--back:hover {
  transform: rotate(0) translateY(-4px);
}

.phone-frame--sounds {
  max-width: min(220px, 100%);
}

@media (max-width: 520px) {
  .sounds-visual--duo {
    gap: 10px;
  }

  .phone-frame--sounds {
    max-width: min(160px, 42vw);
  }

  .sounds-shot figcaption {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }
}

.section--gallery {
  overflow: hidden;
}

/* Auto-scrolling horizontal marquee that loops seamlessly. JS duplicates the
   cards into the same track so half the track is original, half is a clone.
   Animating translateX from 0 to -50% lands us right where we started. */
.gallery-marquee {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  /* Soft fade on the edges so cards drift in/out instead of clipping hard */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}

.gallery-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: max-content;
  will-change: transform;
}

/* Animation only kicks in after JS has cloned the cards into the track,
   so the loop is seamless from the very first frame. */
.gallery-track.is-marquee-ready {
  animation: gallery-scroll 42s linear infinite;
}

.gallery-marquee:hover .gallery-track.is-marquee-ready,
.gallery-marquee:focus-within .gallery-track.is-marquee-ready {
  animation-play-state: paused;
}

@keyframes gallery-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.gallery-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0 16px;
  padding: 8px 0;
  width: 200px;
  text-align: center;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-card .phone-frame {
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.gallery-card:nth-child(6n + 1) .phone-frame { transform: rotate(-3deg); }
.gallery-card:nth-child(6n + 2) .phone-frame { transform: rotate(2deg) translateY(8px); }
.gallery-card:nth-child(6n + 3) .phone-frame { transform: rotate(-2deg) translateY(4px); }
.gallery-card:nth-child(6n + 4) .phone-frame { transform: rotate(3deg); }
.gallery-card:nth-child(6n + 5) .phone-frame { transform: rotate(-2.5deg) translateY(6px); }
.gallery-card:nth-child(6n + 6) .phone-frame { transform: rotate(2.5deg) translateY(4px); }

.gallery-card:hover .phone-frame,
.gallery-card:focus-within .phone-frame {
  transform: rotate(0) translateY(-8px) scale(1.03);
}

.phone-frame--gallery {
  max-width: min(200px, 100%);
}

.gallery-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 200px;
}

.gallery-card figcaption strong {
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
}

.gallery-card figcaption span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.66);
}

/* Subtle accent color per card so the row feels like a group, not a stack.
   Uses 6n+ so the cloned set keeps the same colors as the originals. */
.gallery-card:nth-child(6n + 1) figcaption strong { color: #fdd835; }
.gallery-card:nth-child(6n + 2) figcaption strong { color: #5fb4ff; }
.gallery-card:nth-child(6n + 3) figcaption strong { color: #ff6b84; }
.gallery-card:nth-child(6n + 4) figcaption strong { color: #5ef5a8; }
.gallery-card:nth-child(6n + 5) figcaption strong { color: #4ee0ee; }
.gallery-card:nth-child(6n + 6) figcaption strong { color: #d28bff; }

@media (max-width: 520px) {
  .gallery-card {
    width: 180px;
    margin: 0 12px;
  }

  .phone-frame--gallery {
    max-width: 180px;
  }

  .gallery-track {
    /* Slightly faster on small screens so the loop feels lively, not sluggish */
    animation-duration: 32s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-marquee {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
            mask-image: none;
  }

  .gallery-track {
    animation: none;
    transform: none;
  }

  .gallery-card {
    scroll-snap-align: center;
  }
}

.carousel {
  position: relative;
  margin-bottom: 24px;
}

.carousel__track {
  display: flex;
  gap: 20px;
  animation: carousel-scroll 40s linear infinite;
  width: max-content;
}

.carousel__track:hover {
  animation-play-state: paused;
}

.carousel__slide {
  flex: 0 0 300px;
}

.carousel__slide--wide-shot {
  flex: 0 0 340px;
}

.carousel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  height: 100%;
}

.carousel-card__copy {
  text-align: center;
  padding: 0 6px;
  max-width: 280px;
}

.carousel-card__eyebrow {
  margin: 0 0 6px;
  color: #ffd6de;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.carousel-card__copy h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.carousel-card__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.mode-card__dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-bottom: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.mode-card__dot--red {
  background: var(--red);
}

.mode-card__dot--green {
  background: var(--green);
}

.mode-card__dot--yellow {
  background: var(--yellow);
}

.mode-card__dot--blue {
  background: var(--blue);
}

.notify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.play-cta__actions {
  margin: 22px 0 0;
}

.notify-highlights {
  display: grid;
  gap: 14px;
}

.notify-point {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.notify-point:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.notify-point span {
  color: var(--muted);
  line-height: 1.72;
}

.footer {
  padding: 32px 8px 0;
  text-align: center;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 18px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--text);
  background: rgba(233, 69, 96, 0.12);
}

.social-link--play:hover,
.social-link--play:focus-visible {
  border-color: rgba(94, 245, 168, 0.55);
  color: #7ee0b8;
  background: rgba(15, 157, 88, 0.18);
}

.footer__tagline {
  color: var(--muted);
  line-height: 1.72;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mode-card:hover,
.button:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

@media (max-width: 1024px) {
  .notify-grid,
  .sounds-grid {
    grid-template-columns: 1fr;
  }

  .storyboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modes-split {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .modes-split .mode-grid--with-visual {
    width: 100%;
    max-width: 640px;
    justify-self: stretch;
  }

  .hero {
    padding: 30px;
  }
}

@media (max-width: 860px) {
  .topbar {
    position: sticky;
    top: 10px;
    border-radius: 18px;
    padding: 10px 12px;
    gap: 10px;
  }

  .topbar__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    margin-left: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(10, 14, 30, 0.98);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: min(65vh, 460px);
    overflow-y: auto;
  }

  .topbar.is-nav-open .topbar__nav {
    display: flex;
  }

  .topbar__nav a {
    padding: 12px 10px;
    border-radius: 10px;
  }

  .topbar__nav a:hover,
  .topbar__nav a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
  }

  .topbar__actions {
    margin-left: auto;
  }

  .store-badge--nav img {
    height: 28px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero {
    padding: 24px;
  }
}

@media (max-width: 720px) {
  body {
    background-attachment: scroll;
  }

  body::before {
    display: none;
  }

  .site-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 12px;
  }

  .topbar {
    top: 8px;
    padding: 10px;
  }

  .hero,
  .section {
    padding: 20px;
  }

  .hero__logo {
    width: clamp(150px, 40vw, 200px);
    margin-bottom: 16px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 7vw, 2.6rem);
  }

  .storyboard {
    grid-template-columns: 1fr;
  }

  .mode-grid {
    grid-template-columns: 1fr;
  }

  .carousel__slide {
    flex: 0 0 260px;
  }

  .storyboard-tilt--a,
  .storyboard-tilt--b,
  .carousel-tilt--1,
  .carousel-tilt--2,
  .carousel-tilt--3 {
    transform: none;
  }

  .storyboard-tilt--c {
    transform: none;
  }

  .button {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }
}

/* === Conversion sections (hero, emotional, feature, flow, sounds, proof, final CTA) === */

/* Hero — pulsing eyebrow, bigger headline */
.eyebrow--pulse .eyebrow__dot {
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 6px rgba(233, 69, 96, 0.15);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(233, 69, 96, 0.04);
  }
}

.hero__headline {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero--centered .hero__headline {
  max-width: 16ch;
  margin-inline: auto;
}

.hero__lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--text);
  max-width: 32ch;
  margin-inline: auto;
}

.hero__lede strong {
  color: var(--accent);
}

/* Hero manifesto — strategy / revenge / chaos under the headline */
.hero__manifesto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 6px 18px;
  margin: 6px auto 18px;
  padding: 0;
  max-width: 38ch;
  font-family: "Fredoka", "Inter", sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--muted);
}

.hero__manifesto-line {
  white-space: nowrap;
}

.hero__manifesto strong {
  font-weight: 800;
  color: var(--text);
}

.hero__manifesto-line:nth-child(1) strong { color: #5ef5a8; }
.hero__manifesto-line:nth-child(2) strong { color: #ff6b84; }
.hero__manifesto-line:nth-child(3) strong { color: #fdd835; }

/* Feature section (Save Your Dice, custom sounds reuses sounds-grid) */
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px 48px;
  align-items: center;
}

.feature-copy h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
}

.feature-copy h2 span {
  font-size: 1em;
  line-height: 1;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.feature-list li {
  position: relative;
  padding: 14px 18px 14px 50px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  line-height: 1.55;
  transition: border-color 180ms ease, transform 180ms ease;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ef5a8, #18a86a);
  color: #0d1f17;
  font-weight: 800;
  font-size: 0.9rem;
}

.feature-list li:hover {
  border-color: var(--line-strong);
  transform: translateX(2px);
}

.feature-list li strong {
  color: var(--text);
  font-weight: 700;
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.feature-visual .phone-frame {
  max-width: 280px;
}

/* Feature visual duo — pairs the in-game save with the start-of-match toggle */
.feature-visual--duo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(14px, 3vw, 28px);
  padding: 8px 0;
}

.feature-shot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
  transition: transform 250ms ease;
}

.feature-shot figcaption {
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.feature-shot--front {
  transform: rotate(-3deg) translateY(8px);
  z-index: 2;
}

.feature-shot--back {
  transform: rotate(3deg);
  z-index: 1;
}

.feature-shot--front:hover,
.feature-shot--back:hover {
  transform: rotate(0) translateY(-4px);
}

.phone-frame--feature {
  max-width: min(220px, 100%);
}

/* Crew flow — Create room → Share code → Pick teams */
.section--crew {
  background:
    radial-gradient(circle at 20% 30%, rgba(66, 165, 245, 0.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(253, 216, 53, 0.10), transparent 45%),
    linear-gradient(180deg, rgba(20, 24, 50, 0.9), rgba(14, 17, 34, 0.78));
}

.crew-flow {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 24px;
  align-items: start;
}

.crew-flow--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin-inline: auto;
  gap: 32px 48px;
}

.crew-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  position: relative;
}

.crew-step__number {
  font-family: "Fredoka", "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.phone-frame--crew {
  max-width: min(220px, 100%);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crew-step:hover .phone-frame--crew,
.crew-step:focus-within .phone-frame--crew {
  transform: translateY(-6px) scale(1.02);
}

.crew-step__copy {
  max-width: 240px;
}

.crew-step__copy h3 {
  font-size: 1.15rem;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.crew-step:nth-child(1) .crew-step__copy h3 { color: #ff6b84; }
.crew-step:nth-child(2) .crew-step__copy h3 { color: #5fb4ff; }

.crew-step__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Team Up mode — 2-column callout */
.section--team {
  background:
    radial-gradient(circle at 20% 30%, rgba(66, 165, 245, 0.12), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(233, 69, 96, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(20, 24, 50, 0.9), rgba(14, 17, 34, 0.78));
}

.team-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px 48px;
  align-items: center;
}

.team-copy h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: clamp(1.85rem, 3.6vw, 2.4rem);
  margin: 8px 0 16px;
  letter-spacing: -0.01em;
}

.team-copy > p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
  max-width: 50ch;
}

.team-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.team-list li {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
  transition: transform 180ms ease, border-color 180ms ease;
}

.team-list li:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.team-list li strong {
  color: var(--text);
  font-weight: 700;
  margin-right: 6px;
}

.team-visual {
  display: flex;
  justify-content: center;
}

.phone-frame--team {
  max-width: min(280px, 100%);
  transform: rotate(-2deg);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-frame--team:hover {
  transform: rotate(0) translateY(-6px) scale(1.02);
}

/* Sounds section heading icon (reuses .sounds-grid) */
.sounds-copy h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Gameplay flow — Save → Plan → Strike → Win */
.section--flow {
  background:
    radial-gradient(circle at 50% 0%, rgba(233, 69, 96, 0.08), transparent 50%),
    linear-gradient(180deg, rgba(20, 24, 50, 0.9), rgba(14, 17, 34, 0.78));
}

.flow-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.flow-step__icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.flow-step h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Mid CTA section */
.section--cta-mid {
  background:
    radial-gradient(circle at 50% 50%, rgba(15, 157, 88, 0.18), transparent 60%),
    linear-gradient(180deg, rgba(15, 33, 28, 0.92), rgba(10, 22, 18, 0.88));
  text-align: center;
  padding: 48px 32px;
}

.cta-mid h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.cta-mid p {
  color: var(--muted);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.section--cta-gallery {
  margin-top: 18px;
}

.section--why {
  background:
    radial-gradient(circle at 20% 15%, rgba(94, 245, 168, 0.14), transparent 38%),
    radial-gradient(circle at 85% 75%, rgba(66, 165, 245, 0.09), transparent 40%),
    linear-gradient(180deg, rgba(20, 24, 50, 0.9), rgba(14, 17, 34, 0.78));
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.why-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  padding: 24px 22px;
}

.why-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

/* Social proof */
.section--proof {
  background: linear-gradient(180deg, rgba(20, 24, 50, 0.9), rgba(14, 17, 34, 0.78));
}

.proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.proof__item {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.proof__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(94, 245, 168, 0.18), rgba(15, 157, 88, 0.12));
  border: 1px solid rgba(94, 245, 168, 0.32);
  color: #5ef5a8;
  font-size: 1.6rem;
  font-weight: 800;
}

.proof__item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.proof__item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Final CTA */
.final-cta {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.final-cta h2 {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  margin-bottom: 12px;
}

.final-cta p {
  color: var(--muted);
  margin-bottom: 26px;
  font-size: 1.05rem;
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
  text-decoration: none;
  background: transparent;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.sticky-cta img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(calc(100vw - 32px), 220px);
  aspect-ratio: 646 / 250;
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

@media (max-width: 720px) {
  .sticky-cta {
    display: inline-flex;
  }

  body {
    padding-bottom: 84px;
  }
}

/* Responsive overrides for new sections */
@media (max-width: 980px) {
  .crew-flow,
  .crew-flow--two {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 380px;
    margin-inline: auto;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .team-copy h2 {
    justify-content: center;
  }

  .team-copy > p {
    margin-inline: auto;
  }

  .team-list li {
    text-align: left;
  }

  .phone-frame--team {
    max-width: min(220px, 60vw);
  }
}

@media (max-width: 860px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .feature-visual--duo {
    gap: 10px;
  }

  .phone-frame--feature {
    max-width: min(160px, 42vw);
  }

  .feature-shot figcaption {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
  }

  .phone-frame--crew {
    max-width: min(220px, 70vw);
  }
}

@media (max-width: 720px) {
  .store-badges {
    gap: 12px;
    max-width: 100%;
  }

  .store-badge--play img {
    height: 56px;
    max-width: min(100%, calc(100vw - 120px));
  }

  .hero__actions .store-badge--play img {
    height: 60px;
  }

  .store-badge--instagram img {
    width: 44px;
    height: 44px;
  }

  .hero__manifesto {
    gap: 4px 14px;
    margin: 4px auto 16px;
    font-size: clamp(1rem, 4.4vw, 1.2rem);
  }

  .flow-step {
    padding: 22px 16px;
  }

  .flow-step__icon {
    font-size: 2rem;
  }

  .flow-step h3 {
    font-size: 1.1rem;
  }

  .feature-list li {
    padding: 12px 14px 12px 46px;
    font-size: 0.95rem;
  }

  .section--cta-mid {
    padding: 36px 24px;
  }

  .cta-mid p {
    font-size: 1rem;
  }

  .button--xl {
    min-height: 60px;
    padding: 0 24px;
    font-size: 1.02rem;
    width: 100%;
  }
}

/* Legal pages */
.section--legal {
  margin-top: 12px;
  padding: 28px 28px 36px;
}

.legal-doc {
  max-width: 46rem;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.legal-doc h1 {
  margin: 0 0 12px;
  font-family: "Fredoka", "Inter", system-ui, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal-doc h2 {
  margin: 2rem 0 0.65rem;
  font-family: "Fredoka", "Inter", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.legal-doc h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--muted);
}

.legal-doc p {
  margin: 0.65rem 0;
  color: var(--muted);
}

.legal-doc p strong,
.legal-doc li strong {
  color: var(--text);
}

.legal-doc__meta {
  font-size: 0.95rem;
}

.legal-doc ul {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.35rem;
  color: var(--muted);
}

.legal-doc li {
  margin: 0.4rem 0;
}

.legal-doc a {
  color: #7eb8ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-doc a:hover,
.legal-doc a:focus-visible {
  color: #b8d4ff;
}

.legal-doc code {
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.legal-doc__footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.legal-doc__footer a {
  font-weight: 600;
  text-decoration: none;
}

.legal-doc__footer a:hover,
.legal-doc__footer a:focus-visible {
  text-decoration: underline;
}

.footer__tagline a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__tagline a:hover,
.footer__tagline a:focus-visible {
  color: var(--text);
}
