/* Lapsly Meets landing. Tokens follow packages/design (the app's own palette and type). */

@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/assets/fonts/Archivo-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo Tab"; src: url("/assets/fonts/ArchivoTab-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo Display"; src: url("/assets/fonts/ArchivoDisplay-BlackItalic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  --navy-950: #030c16;
  --navy-900: #06172a;
  --navy-850: #0a2036;
  --navy-800: #0d2742;
  --navy-700: #143657;
  --blue: #0b63d6;
  --blue-500: #0a76e2;
  --aqua: #1fb3e3;
  --aqua-400: #4ccaf0;
  --aqua-300: #8fdcf5;
  --aqua-100: #e3f6fd;
  --coral: #ff5a47;
  --coral-400: #ff7d6c;
  --lane: #ffcf33;
  --gold: #f0bd45;
  --silver: #bfcad5;
  --bronze: #cf8a55;
  --paper: #f2f5f8;
  --card: #ffffff;
  --ink: #06172a;
  --ink-2: #45586b;
  --ink-3: #7b8b9b;
  --line: rgba(6, 23, 42, 0.09);
  --display: "Archivo Display", "Archivo", system-ui, sans-serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --tab: "Archivo Tab", "Archivo", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--aqua-400); outline-offset: 3px; border-radius: 8px; }
.time { font-family: var(--tab); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-500); }
.eyebrow--aqua { color: var(--aqua-400); }
.eyebrow--live { color: var(--aqua-300); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 90, 71, 0.6); animation: ping 1.8s var(--ease) infinite; flex: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 71, 0.55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 90, 71, 0); } }
.h2 { font: 900 italic clamp(36px, 5.4vw, 68px)/0.95 var(--display); letter-spacing: -0.01em; word-spacing: 0.08em; text-transform: uppercase; text-wrap: balance; }
.section-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(36px, 6vw, 72px); }
.section-head__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 620px; }
.section-head--light .section-head__lead { color: rgba(227, 242, 252, 0.72); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none; border: 1px solid transparent; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s; white-space: nowrap; }
.btn__icon { width: 22px; height: 22px; }
.btn--white { background: #fff; color: var(--navy-900); box-shadow: 0 14px 40px rgba(31, 179, 227, 0.35); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(31, 179, 227, 0.5); }
.btn--ghost { color: rgba(240, 248, 255, 0.78); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); cursor: default; }
.btn--aqua { background: var(--aqua); color: var(--navy-950); }
.btn--aqua:hover { background: var(--aqua-400); }
.btn--small { height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s; }
.top.is-scrolled { background: rgba(6, 23, 42, 0.78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.top__inner { height: 100%; width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; display: flex; align-items: center; gap: 28px; }
.top__brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.top__brand img { height: 34px; width: auto; }
.top__product { font: 900 italic 15px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--aqua-300); padding: 5px 8px 4px; border: 1px solid rgba(143, 220, 245, 0.35); border-radius: 7px; }
.top__nav { display: flex; gap: 26px; margin-left: auto; }
.top__nav a { color: rgba(236, 246, 255, 0.82); text-decoration: none; font-weight: 600; font-size: 15px; transition: color 0.2s; }
.top__nav a:hover { color: #fff; }
@media (max-width: 820px) { .top__nav { display: none; } .top .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(760px, 100svh); color: #fff; overflow: hidden; isolation: isolate; padding-top: calc(var(--header) + clamp(28px, 6vh, 64px)); padding-bottom: 140px; }
.pool { position: absolute; inset: 0; z-index: -1; background: var(--navy-900); }
.pool__floor, .pool__caustics { position: absolute; inset: 0; width: 100%; height: 100%; }
.pool__ropes { animation: ropes 7s ease-in-out infinite alternate; }
@keyframes ropes { to { transform: translateX(-11px); } }
.pool__caustics path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.pool__caustics--a { opacity: 0.11; animation: drift-a 14s ease-in-out infinite alternate; }
.pool__caustics--b { opacity: 0.08; animation: drift-b 18s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(-2%, -1%, 0) scale(1.06); } to { transform: translate3d(2%, 1.5%, 0) scale(1.1); } }
@keyframes drift-b { from { transform: translate3d(2%, 1%, 0) scale(1.12) skewX(-3deg); } to { transform: translate3d(-2%, -1.5%, 0) scale(1.06) skewX(2deg); } }
.pool__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 12, 22, 0.78) 0%, rgba(3, 12, 22, 0.35) 46%, rgba(3, 12, 22, 0) 70%), linear-gradient(180deg, rgba(3, 12, 22, 0.5), rgba(3, 12, 22, 0) 30%); }

.hero__inner { width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero__copy { display: grid; gap: 28px; align-content: center; }
.hero__title { font: 900 italic clamp(48px, 5.7vw, 92px)/0.98 var(--display); text-transform: uppercase; letter-spacing: -0.015em; word-spacing: 0.1em; }
.hero__title .line { display: block; opacity: 0; transform: translateY(0.4em) skewY(4deg); animation: rise 0.9s var(--ease) forwards; }
.hero__title .line:nth-child(2) { animation-delay: 0.12s; }
.hero__title .line:nth-child(3) { animation-delay: 0.24s; }
.line--accent { background: linear-gradient(100deg, var(--aqua-300) 0%, var(--aqua) 40%, #ffffff 60%, var(--aqua-400) 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 0.9s var(--ease) 0.24s forwards, shimmer 5s linear 1.4s infinite !important; padding-right: 0.08em; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
.hero__lead { font-size: clamp(18px, 1.55vw, 21px); color: rgba(227, 242, 252, 0.8); max-width: 540px; opacity: 0; animation: rise 0.9s var(--ease) 0.4s forwards; transform: translateY(14px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: rise 0.9s var(--ease) 0.52s forwards; transform: translateY(14px); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; color: rgba(227, 242, 252, 0.7); font-weight: 600; font-size: 15px; opacity: 0; animation: rise 0.9s var(--ease) 0.64s forwards; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: rgba(31, 179, 227, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238fdcf5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }

.hero__stage { position: relative; height: clamp(560px, 64vw, 720px); perspective: 1600px; }
.hero__stage > * { --px: 0px; --py: 0px; }
.phone { position: relative; background: #05080c; border-radius: 15% / 7%; padding: 2.6%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.1) inset, 0 40px 80px -20px rgba(0, 0, 0, 0.55), 0 18px 36px -18px rgba(0, 0, 0, 0.45); }
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset; pointer-events: none; }
.screen { position: relative; border-radius: 12.4% / 5.8%; overflow: hidden; background: #0a1a2b; }
.screen img { width: 100%; aspect-ratio: 760 / 1652; object-fit: cover; }
.hero .phone--front { position: absolute; width: min(340px, 74%); left: 6%; top: 2%; transform: translate3d(var(--px), var(--py), 0) rotate(-4deg); animation: phone-in 1.2s var(--ease) 0.2s both; z-index: 2; }
.hero .phone--back { position: absolute; width: min(300px, 62%); right: 0; top: 13%; transform: translate3d(var(--px), var(--py), 0) rotate(7deg); filter: saturate(1.05); opacity: 0.95; animation: phone-in-back 1.3s var(--ease) 0.35s both; z-index: 1; }
@keyframes phone-in { from { opacity: 0; transform: translate3d(0, 80px, 0) rotate(-10deg) scale(0.94); } }
@keyframes phone-in-back { from { opacity: 0; transform: translate3d(60px, 90px, 0) rotate(14deg) scale(0.92); } }

.float { position: absolute; z-index: 3; display: grid; gap: 6px; padding: 14px 16px; border-radius: 18px; color: var(--ink); background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: 0 24px 50px -16px rgba(3, 12, 22, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.6) inset; transform: translate3d(var(--px), var(--py), 0); }
.float > * { animation: bob 6s ease-in-out infinite; }
.float--live { left: -6%; top: 54%; min-width: 280px; animation: pop 0.8s var(--ease) 0.9s both; }
.float--pb { right: -2%; top: 4%; display: flex; align-items: center; gap: 12px; animation: pop 0.8s var(--ease) 1.1s both; }
.float--follow { right: 6%; bottom: 6%; display: flex; align-items: center; gap: 12px; animation: pop 0.8s var(--ease) 1.3s both; }
.float--pb > *, .float--pb { --bob-delay: -2s; }
@keyframes pop { from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.9); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.float__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.float__meta { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.float__title { font-weight: 700; font-size: 15px; }
.float__result { display: flex; align-items: center; gap: 10px; }
.float__name { font-weight: 700; font-size: 15px; }
.float__result .float__name { flex: 1; }
.float__result .time { font-size: 20px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.badge .dot { width: 7px; height: 7px; }
.badge--live { background: #ffe7e3; color: #e8402f; }
.badge--pb { background: var(--lane); color: var(--navy-900); font-family: var(--tab); letter-spacing: 0.02em; font-size: 14px; height: 30px; padding: 0 12px; border-radius: 9px; }
.medal { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 14px/1 var(--tab); color: var(--navy-900); border: 2px solid rgba(255, 255, 255, 0.6); }
.medal--gold { background: var(--gold); }
.star { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--lane); color: var(--navy-900); font-size: 20px; }

.hero__wave { position: absolute; left: -6%; bottom: -2px; width: 112%; height: 120px; }
.hero__wave .w1 { fill: rgba(242, 245, 248, 0.32); animation: wave 9s ease-in-out infinite alternate; }
.hero__wave .w2 { fill: var(--paper); animation: wave 7s ease-in-out infinite alternate-reverse; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 6px; background: var(--paper); }
@keyframes wave { from { transform: translateX(-2.5%); } to { transform: translateX(2.5%); } }

@media (max-width: 900px) {
  .hero { padding-bottom: 110px; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .pool__shade { background: linear-gradient(180deg, rgba(3, 12, 22, 0.75), rgba(3, 12, 22, 0.25) 60%, rgba(3, 12, 22, 0.1)); }
  .hero__stage { height: clamp(460px, 128vw, 640px); max-width: 520px; width: 100%; margin-inline: auto; }
  .hero .phone--front { width: 60%; left: 8%; }
  .hero .phone--back { width: 50%; right: 2%; }
  .float--live { left: -2%; top: 58%; min-width: 0; width: 72%; }
  .float--pb { right: 0; top: 0; }
  .float--follow { right: 2%; bottom: 4%; }
}
@media (max-width: 480px) {
  .btn { height: 52px; padding: 0 20px; font-size: 16px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .float { padding: 10px 12px; border-radius: 14px; }
  .float__title, .float__name { font-size: 13px; }
  .float__result .time { font-size: 17px; }
  .float--pb .badge--pb { font-size: 12px; height: 26px; padding: 0 8px; }
  .star { width: 30px; height: 30px; font-size: 16px; }
}

/* ---------- stats ---------- */
.stats { padding: clamp(40px, 7vw, 80px) 0 0; overflow: hidden; }
.stats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 4px; padding: 26px 24px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(6, 23, 42, 0.35); }
.stat dd { margin: 0; font: 900 italic clamp(34px, 4.2vw, 56px)/1 var(--display); letter-spacing: -0.01em; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.stat dt { font-weight: 600; color: var(--ink-2); }
.stat:nth-child(1) dd { color: var(--blue); }
@media (max-width: 820px) { .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ticker { margin-top: clamp(36px, 6vw, 64px); border-block: 1px solid var(--line); padding: 16px 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: ticker 60s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 48px; font: 900 italic 22px/1 var(--display); text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.ticker__track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- features ---------- */
.features { padding: clamp(80px, 12vw, 150px) 0 clamp(40px, 8vw, 100px); }
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); }
.step { min-height: 68vh; display: grid; align-content: center; gap: 18px; padding: 24px 0; opacity: 0.28; transition: opacity 0.5s var(--ease); }
.step.is-active { opacity: 1; }
.step__num { font: 700 15px/1 var(--tab); color: var(--blue-500); letter-spacing: 0.1em; }
.step__num::after { content: ""; display: inline-block; vertical-align: middle; width: 48px; height: 2px; margin-left: 12px; background: currentColor; opacity: 0.4; }
.step__title { font: 900 italic clamp(32px, 4.4vw, 56px)/0.95 var(--display); text-transform: uppercase; word-spacing: 0.08em; }
.step p { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 470px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.step__phone { display: none; }
.showcase__sticky { position: sticky; top: calc(var(--header) + 4vh); height: calc(100vh - var(--header) - 8vh); display: grid; place-items: center; }
.showcase__glow { position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(31, 179, 227, 0.32), rgba(11, 99, 214, 0.08) 55%, transparent 70%); filter: blur(10px); }
.phone--show { width: min(360px, 30vw, 42vh); }
.phone--show img { position: absolute; inset: 0; opacity: 0; transform: scale(1.03); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease); }
.phone--show img:first-child { position: relative; }
.phone--show img.is-on { opacity: 1; transform: none; }
.showcase__rail { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.showcase__rail li { width: 6px; height: 22px; border-radius: 3px; background: rgba(6, 23, 42, 0.14); transition: background 0.3s, height 0.3s; }
.showcase__rail li.is-on { background: var(--blue); height: 40px; }
@media (max-width: 900px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase__stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 0 0 72px; }
  .step__phone { display: block; width: min(300px, 78vw); margin: 18px auto 0; }
}

/* ---------- replay ---------- */
.replay { position: relative; padding: clamp(90px, 12vw, 150px) 0; color: #fff; background: radial-gradient(120% 70% at 85% 0%, rgba(11, 99, 214, 0.55), transparent 60%), radial-gradient(90% 60% at 0% 100%, rgba(31, 179, 227, 0.22), transparent 60%), var(--navy-950); overflow: hidden; }
.replay::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 120px); pointer-events: none; }
.race { position: relative; border-radius: 28px; padding: clamp(16px, 2.4vw, 28px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "top top" "pool board" "controls board"; gap: 18px 24px; }
.race__top { grid-area: top; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.race__event { font: 900 italic clamp(22px, 2.6vw, 32px)/1 var(--display); text-transform: uppercase; word-spacing: 0.08em; }
.race__meta { color: rgba(227, 242, 252, 0.6); font-size: 14px; margin-top: 6px; }
.race__clock { font: 900 italic clamp(44px, 6vw, 76px)/0.9 var(--display); font-variant-numeric: tabular-nums; min-width: 4.2ch; text-align: right; }
.race__pool { grid-area: pool; position: relative; border-radius: 18px; overflow: hidden; background: #0b5d86; aspect-ratio: 3 / 2; }
.race__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.race__controls { grid-area: controls; display: flex; align-items: center; gap: 14px; }
.race__play { width: 54px; height: 54px; flex: none; border-radius: 50%; border: 0; background: var(--aqua); color: var(--navy-950); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 30px rgba(31, 179, 227, 0.45); transition: transform 0.2s var(--ease); }
.race__play:hover { transform: scale(1.06); }
.race__play svg { width: 24px; height: 24px; display: none; }
.race[data-state="paused"] .i-play, .race[data-state="playing"] .i-pause, .race[data-state="ended"] .i-again { display: block; }
.race__scrub { flex: 1; accent-color: var(--aqua); height: 28px; cursor: pointer; }
.race__speeds { display: flex; gap: 6px; }
.race__speeds button { height: 36px; min-width: 46px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #fff; font: 700 14px/1 var(--tab); cursor: pointer; }
.race__speeds button[aria-pressed="true"] { background: #fff; color: var(--navy-900); }
.race__board { grid-area: board; display: grid; align-content: start; gap: 4px; }
.race__board li { display: grid; grid-template-columns: 28px 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; transition: background 0.3s, transform 0.4s var(--ease); }
.race__board li.is-lead { background: rgba(255, 255, 255, 0.07); }
.race__board .pos { font: 700 15px/1 var(--tab); color: rgba(227, 242, 252, 0.6); text-align: center; }
.race__board .pos.medal { width: 26px; height: 26px; font-size: 13px; color: var(--navy-900); }
.race__board .cap { width: 12px; height: 12px; border-radius: 50%; }
.race__board .who { min-width: 0; }
.race__board .who b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race__board .who small { display: block; font-size: 12px; color: rgba(227, 242, 252, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race__board .val { font: 700 15px/1 var(--tab); color: rgba(227, 242, 252, 0.75); }
.race__board .val.final { color: #fff; }
@media (max-width: 980px) {
  .race { grid-template-columns: 1fr; grid-template-areas: "top" "pool" "controls" "board"; }
  .race__pool { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) { .race__speeds button { min-width: 40px; } .race__controls { gap: 10px; } .race__pool { aspect-ratio: 1 / 1; } }

/* ---------- theme compare ---------- */
.theme { padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.theme__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 96px); align-items: center; }
.theme .section-head { margin: 0; }
.ticks { display: grid; gap: 12px; margin-top: 10px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.ticks li::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--aqua-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230b63d6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }
.compare { --split: 50%; position: relative; width: min(360px, 82vw); margin-inline: auto; }
.phone--compare { overflow: hidden; }
.phone--compare img { pointer-events: none; user-select: none; }
.compare__dark { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(6, 23, 42, 0.2); transform: translateX(-1px); }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2306172a' d='M9 6l-6 6 6 6zM15 6v12l6-6z'/%3E%3C/svg%3E") center/22px no-repeat; box-shadow: 0 8px 24px rgba(6, 23, 42, 0.35); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
@media (max-width: 900px) { .theme__grid { grid-template-columns: 1fr; } }

/* ---------- promises ---------- */
.promises { padding: 0 0 clamp(90px, 12vw, 150px); }
.promises__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.promise { padding: 30px 28px; border-radius: 26px; background: #fff; box-shadow: 0 1px 0 var(--line), 0 24px 50px -36px rgba(6, 23, 42, 0.4); display: grid; gap: 12px; align-content: start; }
.promise__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(140deg, var(--aqua), var(--blue)); }
.promise__icon svg { width: 26px; height: 26px; fill: #fff; }
.promise h3 { font: 900 italic 26px/1 var(--display); text-transform: uppercase; }
.promise p { color: var(--ink-2); }
@media (max-width: 860px) { .promises__grid { grid-template-columns: 1fr; } }

/* ---------- download ---------- */
.download { position: relative; color: #fff; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; isolation: isolate; }
.download__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 90% at 90% 10%, #2f8ff0 0%, transparent 60%), radial-gradient(70% 80% at 0% 100%, #0a4fb0 0%, transparent 60%), var(--blue); }
.download__bg::after { content: ""; position: absolute; inset: -20%; background: repeating-radial-gradient(circle at 50% 120%, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 46px); animation: ripples 12s linear infinite; }
@keyframes ripples { to { transform: translateY(-46px); } }
.download__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.download__copy { display: grid; gap: 24px; }
.download__logo { width: min(300px, 70%); }
.download__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px 0 18px; border-radius: 18px; background: var(--navy-950); color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.14); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.store svg { width: 30px; height: 30px; }
.store span { display: grid; line-height: 1.1; font-weight: 700; font-size: 20px; }
.store small { font-weight: 500; font-size: 12px; color: rgba(227, 242, 252, 0.7); }
.store--android { background: #fff; color: var(--navy-900); box-shadow: 0 18px 40px -12px rgba(3, 12, 22, 0.45); }
.store--android small { color: var(--ink-3); }
.store--android svg { color: #34a853; }
.store--android:hover { transform: translateY(-2px); }
.store--soon { opacity: 0.72; background: rgba(3, 12, 22, 0.35); }
.download__meta { color: rgba(240, 248, 255, 0.78); font-weight: 600; font-size: 15px; }
.install { counter-reset: s; display: grid; gap: 10px; max-width: 520px; }
.install li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; color: rgba(240, 248, 255, 0.86); }
.install li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); font: 700 13px/1 var(--tab); transform: translateY(-1px); }
.install strong { color: #fff; }
.download__qr { display: grid; justify-items: center; gap: 16px; text-align: center; color: rgba(240, 248, 255, 0.85); font-weight: 600; }
.qr { position: relative; padding: 20px; border-radius: 28px; background: #fff; box-shadow: 0 30px 60px -20px rgba(3, 12, 22, 0.5); }
.qr > img:first-child { width: 220px; height: 220px; }
.qr__icon { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%); border-radius: 14px; border: 4px solid #fff; }
@media (max-width: 860px) { .download__grid { grid-template-columns: 1fr; } .download__qr { display: none; } }

/* ---------- faq ---------- */
.faq { padding: clamp(90px, 12vw, 140px) 0; }
.faq__wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.faq .section-head { margin: 0; position: sticky; top: calc(var(--header) + 24px); }
.faq__list { display: grid; gap: 10px; }
.faq details { border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2306172a' stroke-width='2.5' stroke-linecap='round' d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-2); }
@media (max-width: 860px) { .faq__wrap { grid-template-columns: 1fr; } .faq .section-head { position: static; } }

/* ---------- footer ---------- */
.foot { background: var(--navy-950); color: rgba(227, 242, 252, 0.7); padding: 48px 0; }
.foot__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot__grid img { height: 30px; width: auto; }
.foot__small { font-size: 14px; margin-top: 10px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot__links a { text-decoration: none; font-weight: 600; }
.foot__links a:hover { color: #fff; }

/* ---------- 404 ---------- */
.notfound { background: var(--navy-900); }
.notfound .hero { display: grid; align-items: center; background: radial-gradient(90% 80% at 85% 10%, rgba(11, 99, 214, 0.7), transparent 60%), var(--navy-900); padding-bottom: 60px; }
.notfound .hero__inner { grid-template-columns: 1fr; }
.notfound .hero__copy img { height: 40px; width: auto; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
