: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: space-between;
  gap: 24px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 17, 34, 0.72);
  backdrop-filter: blur(16px);
  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;
  flex-wrap: wrap;
}

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

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

.nav-play {
  color: #7ee0b8;
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-play:hover,
.nav-play:focus-visible {
  color: #b8f5d4;
}

.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__device-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  padding-top: 8px;
}

.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--hero {
  max-width: min(300px, 86vw);
  transform: rotate(-4deg);
  transform-origin: center 70%;
}

.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);
}

.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;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  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--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;
}

.section--gallery {
  overflow: hidden;
}

.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: static;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
  }

  .topbar__nav {
    justify-content: center;
    gap: 12px;
  }

  .hero {
    padding: 24px;
  }
}

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

  .topbar__nav {
    gap: 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;
  }

  .phone-frame--hero {
    transform: rotate(-2deg);
  }

}

/* 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);
}
