@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/Onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Tokens come straight from lib/config/theme/app_colors.dart. */
:root {
  --bg: #0B0B0C;
  --surface: #161618;
  --soft: #1B1B1D;
  --raised: #1F1F22;
  --line: #26262A;
  --line-strong: #3A3A40;
  --ink: #F2F2F0;
  --ink-2: #9C9CA3;
  --ink-3: #8A898F;
  --accent: #7AAEE8;
  --accent-on: #0B0B0C;
  --accent-soft: #1E2A38;
  --danger: #E8695A;
  --danger-soft: #241514;
  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(88px, 13vw, 184px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 12px; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.quiet { color: var(--ink-2); }

/* ── Shared type ───────────────────────────────────────────────────────── */
h1, .h2, .h2-sm, .get-h { font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
.h2 { font-size: clamp(36px, 5.6vw, 84px); line-height: 1.02; }
.h2-sm { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 34em; }

/* ── Controls, shaped like the app's ───────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  background: var(--ink); color: var(--bg);
  border-radius: 96px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .15s var(--ease), background .15s;
}
.pill:hover { background: #fff; }
.pill:active { transform: scale(.98); }
.pill-sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.pill-wide { width: 100%; }

.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface); border-radius: 14px; }
.seg button {
  min-width: 42px; min-height: 34px; padding: 0 10px;
  border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 600;
  transition: background .15s, color .15s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.tag { display: inline-block; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.tag-pro { color: var(--accent); }

/* ── Top bar ───────────────────────────────────────────────────────────── */
.bar {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.bar-end { display: flex; align-items: center; gap: 10px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  grid-template-areas: "copy demo" "rail rail";
  column-gap: clamp(24px, 5vw, 96px);
  row-gap: clamp(40px, 5vw, 64px);
  align-items: center;
  min-height: 100svh;
  padding: 92px var(--gutter) 40px;
}
.hero-copy { grid-area: copy; }
h1 { font-size: clamp(44px, calc(9.6vw - 40px), 112px); line-height: .98; letter-spacing: -.045em; }
.hero-copy .lede { margin-top: clamp(20px, 2.4vw, 32px); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: clamp(24px, 3vw, 40px); }

.demo { grid-area: demo; width: 100%; max-width: 440px; justify-self: end; }
.deck { position: relative; aspect-ratio: 1 / 1.12; touch-action: pan-y; cursor: pointer; user-select: none; -webkit-user-select: none; }
.under { position: absolute; inset: 0; border-radius: 32px; transition: transform .9s var(--ease); }
.under-a { background: var(--raised); }
.under-b { background: var(--accent); opacity: .82; }
.ready .under-a { transform: translate(-3.5%, -2%) rotate(-5.5deg); }
.ready .under-b { transform: translate(3%, -1.5%) rotate(3.5deg); }

.card { position: absolute; inset: 0; transition: transform .3s var(--ease), opacity .3s; }
.card.dragging { transition: none; }
.card-in { position: absolute; inset: 0; transform: perspective(1400px) rotateY(0); transition: transform .17s ease-in-out; }
.card-in.turning { transform: perspective(1400px) rotateY(90deg); }
.face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: clamp(20px, 2.2vw, 30px);
  background: var(--surface);
  border-radius: 32px;
  box-shadow: 0 0 0 1px #ffffff0a, 0 30px 60px -28px #000;
  overflow: hidden;
}
.back, .is-flipped .front { display: none; }
.is-flipped .back { display: flex; }
.card-meta { display: flex; gap: 8px; font-size: 15px; color: var(--ink-2); }
.card-meta span + span::before { content: "·"; margin-right: 8px; }
.card-word { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-width: 0; }
.card-word strong { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.card-word span { margin-top: 8px; color: var(--ink-2); }
.card-word i { display: inline-block; width: 3px; height: 3px; margin: 0 8px; border-radius: 50%; background: var(--ink-3); vertical-align: middle; }
.card-tap { text-align: center; font-size: 15px; color: var(--ink-3); }
.card-done p { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }

.back-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.back-head strong { font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; letter-spacing: -.03em; }
.back-head span { color: var(--ink-2); font-size: 15px; }
.back-def { margin-top: 10px; font-size: clamp(20px, 2vw, 26px); line-height: 1.18; font-weight: 700; letter-spacing: -.022em; }
.back-tr { margin-top: 8px; font-weight: 500; color: var(--accent); }
.back-sec { margin-top: clamp(12px, 1.5vw, 20px); }
.back-sec > span { display: block; margin-bottom: 4px; font-size: 14px; color: var(--ink-3); }
.back-sec p { line-height: 1.35; color: var(--ink); }
.back-sec b { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips i { font-style: normal; font-size: 14px; font-weight: 500; padding: 5px 12px; background: var(--raised); border-radius: 96px; color: #D4D4CF; }

.stamp {
  position: absolute; top: 22px; padding: 6px 14px; border-radius: 12px;
  font-weight: 700; opacity: 0; pointer-events: none; z-index: 3;
}
.stamp-l { right: 22px; background: var(--danger-soft); color: var(--danger); box-shadow: inset 0 0 0 1px #E8695A66; }
.stamp-r { left: 22px; background: var(--ink); color: var(--bg); }

.answer { margin-top: 18px; min-height: 76px; display: flex; flex-direction: column; justify-content: center; }
.answer .pill-wide { min-height: 60px; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grade {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 76px; padding: 4px; border-radius: 22px;
  background: var(--raised); text-align: center;
  transition: transform .12s var(--ease);
}
.grade:active { transform: scale(.96); }
.grade b { font-weight: 600; font-size: 16px; }
.grade span { font-size: 13px; color: var(--ink-2); }
.grade.again { background: var(--danger-soft); box-shadow: inset 0 0 0 1px #E8695A66; }
.grade.again b { color: var(--danger); }
.grade.good { background: var(--ink); color: var(--bg); }
.grade.good span { color: #55555a; }
.demo-hint { margin-top: 12px; text-align: center; font-size: 15px; min-height: 22px; }

/* The return rail: where each rated card goes. */
.rail { grid-area: rail; align-self: end; }
.rail-title { display: inline; font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.rail-empty { display: inline; margin-left: 10px; }
.rail.has-words .rail-empty { display: none; }
.rail-line {
  display: grid; grid-template-columns: 1fr 1.6fr 3fr 4.6fr;
  margin-top: 14px; border-top: 2px solid var(--line);
}
.rail-line li { position: relative; padding: 10px 8px 0 0; min-width: 0; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; }
.rail-line li::before { content: ""; position: absolute; left: 0; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.rail-tick { font-size: 15px; color: var(--ink-2); }
.rail-words { display: flex; flex-wrap: wrap; gap: 6px; min-height: 30px; }
.rail-word {
  padding: 3px 11px; border-radius: 96px; background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 500; animation: land .35s var(--ease);
}
@keyframes land { from { transform: translateY(-14px); opacity: 0; } }

/* ── Plan and stairs ───────────────────────────────────────────────────── */
.plan { padding: var(--section) var(--gutter) 0; }
.plan-head {
  display: grid; grid-template-columns: 1.15fr .85fr;
  grid-template-areas: "h result" "controls result";
  gap: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 80px);
  align-items: start;
}
.plan-head .h2 { grid-area: h; }
.plan-controls { grid-area: controls; display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.field:last-child { flex: 1 1 260px; max-width: 420px; }
.field-label { font-size: 15px; color: var(--ink-2); }
.seg-big { flex-wrap: wrap; }
.seg-big button { min-height: 42px; min-width: 50px; font-size: 15px; }

input[type="range"] {
  --fill: 28%;
  appearance: none; -webkit-appearance: none;
  width: 100%; height: 42px; margin: 0; background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 8px;
  background: linear-gradient(to right, var(--accent) var(--fill), var(--raised) var(--fill));
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--raised); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px;
  border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 5px var(--bg);
}
input[type="range"]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); border: 0; box-shadow: 0 0 0 5px var(--bg); }

.plan-result { grid-area: result; display: flex; align-items: flex-end; gap: 16px; justify-self: end; align-self: end; }
.plan-n {
  font-size: clamp(120px, 19vw, 300px); line-height: .78; font-weight: 700; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.plan-unit { display: flex; flex-direction: column; max-width: 9.5em; padding-bottom: .1em; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.2; font-weight: 600; letter-spacing: -.015em; }
.plan-unit .quiet { margin-top: 8px; font-size: 16px; font-weight: 400; letter-spacing: 0; }

/* Steps sit on one baseline and rise with the band: the name of the app, drawn. */
.stairs {
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: end;
  margin: clamp(40px, 6vw, 88px) calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter);
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.step {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
  padding: clamp(18px, 2vw, 28px);
  background: var(--bg);
  color: var(--ink-3);
  border-radius: 28px 28px 0 0;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .3s, color .3s;
}
.step[data-step="6"] { height: clamp(320px, 30vw, 420px); }
.step[data-step="7"] { height: clamp(400px, 38vw, 540px); }
.step[data-step="8"] { height: clamp(480px, 46vw, 660px); }
.step.on { background: var(--surface); color: var(--ink); box-shadow: none; }
.step + .step { margin-left: 8px; }
.step-n { font-size: clamp(88px, 11vw, 168px); line-height: .8; font-weight: 700; letter-spacing: -.05em; }
.step.on .step-n { color: var(--ink); }
.step-body h3 { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.step-count { color: inherit; opacity: .8; }
.step-words { margin: 10px 0 12px; font-size: 15px; line-height: 1.4; color: var(--ink-3); max-width: 26em; }
.step.on .step-words, .step.on .step-count { color: var(--ink-2); opacity: 1; }

/* ── Screens ───────────────────────────────────────────────────────────── */
.screens { padding: var(--section) var(--gutter) 0; }
.screens .h2 { max-width: 14em; }
.phones {
  display: grid; grid-template-columns: 1.22fr 1fr 1fr 1fr; align-items: start;
  gap: clamp(16px, 2.4vw, 36px);
  margin-top: clamp(40px, 6vw, 80px);
}
.ph-words { margin-top: clamp(48px, 9vw, 150px); }
.ph-list { margin-top: clamp(16px, 3vw, 48px); }
.ph-progress { margin-top: clamp(64px, 12vw, 200px); }
.phone { border-radius: clamp(28px, 3.2vw, 46px); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 0 0 clamp(4px, .6vw, 8px) #141416, 0 0 0 calc(clamp(4px, .6vw, 8px) + 1px) var(--line); margin: 9px; }
.ph figcaption { margin: 22px 9px 0; color: var(--ink-2); font-size: 16px; line-height: 1.35; max-width: 22em; }

/* ── Languages ─────────────────────────────────────────────────────────── */
.langs { padding: var(--section) var(--gutter) 0; }
.langs-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px clamp(24px, 5vw, 80px); align-items: end; }
.tr-table { width: 100%; margin-top: clamp(32px, 5vw, 64px); border-collapse: collapse; }
.tr-table tr { border-top: 1px solid var(--line); }
.tr-table tr:last-child { border-bottom: 1px solid var(--line); }
.tr-table th[scope="row"], .tr-table td { padding: clamp(12px, 1.6vw, 22px) 16px clamp(12px, 1.6vw, 22px) 0; text-align: left; letter-spacing: -.025em; font-size: clamp(19px, 2.9vw, 44px); line-height: 1.1; vertical-align: baseline; overflow-wrap: anywhere; }
.tr-table th[scope="row"] { font-weight: 700; width: 36%; }
.tr-table td { color: var(--ink-2); font-weight: 400; width: 32%; }

/* ── Game ──────────────────────────────────────────────────────────────── */
.game {
  display: grid; grid-template-columns: 1fr minmax(320px, 460px);
  gap: clamp(32px, 6vw, 110px); align-items: start;
  padding: var(--section) var(--gutter) 0;
}
.game-copy .lede { margin-top: 20px; }
.legend { margin-top: 32px; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.legend .tile { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; font-style: normal; flex: none; }
.game-out { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 30em; }
.game-out strong { display: block; font-size: clamp(36px, 4vw, 56px); line-height: 1.1; font-weight: 700; letter-spacing: -.035em; }
.game-out p { margin: 8px 0 18px; }
.board { display: grid; gap: 8px; max-width: min(370px, 74vw); margin-inline: auto; }
.row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.tile {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 1;
  border-radius: 14px; font-weight: 700; font-size: clamp(22px, 2.3vw, 28px);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.tile.typed { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.tile.s-right { background: var(--accent); color: var(--accent-on); box-shadow: none; }
.tile.s-moved { background: var(--ink); color: var(--bg); box-shadow: none; }
.tile.s-absent { background: var(--raised); color: var(--ink-3); box-shadow: none; }
.tile.reveal { animation: turn .42s var(--ease) both; }
@keyframes turn { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
.shake { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.game-msg { min-height: 24px; margin: 12px 0; text-align: center; font-size: 15px; }
.keys { display: grid; gap: 6px; }
.keys > div { display: flex; justify-content: center; gap: 5px; }
.key {
  flex: 1 1 0; max-width: 42px; min-width: 0; height: 50px; border-radius: 10px;
  background: var(--raised); font-weight: 500; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.key-wide { flex: 1.5 1 0; max-width: 64px; }
.key svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.key:active { transform: scale(.96); }
.key.s-right { background: var(--accent); color: var(--accent-on); }
.key.s-moved { background: var(--ink); color: var(--bg); }
.key.s-absent { background: var(--surface); color: var(--ink-3); }

/* ── Import and quiet ──────────────────────────────────────────────────── */
.own { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); padding: var(--section) var(--gutter) 0; align-items: start; }
.group { margin-top: 28px; background: var(--surface); border-radius: 24px; overflow: hidden; }
.group li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.group li + li { border-top: 1px solid var(--line); }
.group b { display: block; font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.group span:not(.tag) { color: var(--ink-2); font-size: 15px; }
.notif {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 28px; padding: 14px 16px;
  background: var(--raised); border-radius: 22px; max-width: 460px;
}
.notif .mark { margin-top: 2px; }
.notif > div { flex: 1; min-width: 0; }
.notif b { display: block; font-weight: 600; }
.notif span { color: var(--ink-2); font-size: 15px; }
.notif em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.plain { margin-top: 20px; }
.plain li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.plain li:first-child { border-top: 0; }

/* ── Get: the app icon, enlarged. A cream card on a tilted grey one. ───── */
.get { position: relative; overflow-x: clip; overflow-y: visible; padding: var(--section) var(--gutter) clamp(64px, 8vw, 120px); isolation: isolate; }
.get-shadow {
  position: absolute; z-index: -1;
  inset: calc(var(--section) + 2%) calc(var(--gutter) + 1%) clamp(52px, 6vw, 100px);
  background: #46464A; border-radius: clamp(32px, 5vw, 72px);
  transform: rotate(-2.6deg);
}
.get-card {
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px);
  padding: clamp(28px, 5.4vw, 88px);
  background: var(--ink); color: var(--bg);
  border-radius: clamp(32px, 5vw, 72px);
}
.get-main { display: flex; flex-direction: column; align-items: flex-start; }
.get-h { font-size: clamp(50px, 6.5vw, 112px); line-height: .94; letter-spacing: -.05em; }
.get-p { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.4; color: #4a4a50; max-width: 26em; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: clamp(28px, 4vw, 56px); }
.store {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 64px; padding: 8px 26px;
  background: var(--bg); color: var(--ink); border-radius: 22px;
  font-weight: 600; font-size: 18px; line-height: 1.15; text-decoration: none;
}
.store small { font-size: 13px; font-weight: 400; color: var(--ink-2); }
.compare { width: 100%; border-collapse: collapse; font-size: clamp(15px, 1.2vw, 17px); }
.compare th, .compare td { padding: 13px 0 13px 12px; text-align: left; font-weight: 400; vertical-align: middle; }
.compare thead th { font-weight: 600; }
.compare tbody tr { border-top: 1px solid #1313151f; }
.compare tbody th { padding-left: 0; font-weight: 500; }
.compare tbody td { color: #55555a; }
.compare tbody td:last-child { color: var(--bg); font-weight: 600; }
.compare td:nth-child(2), .compare th:nth-child(2) { width: 24%; }
.compare td:nth-child(3), .compare th:nth-child(3) { width: 27%; }
.tick { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: block; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.price b { display: block; font-size: clamp(30px, 3.4vw, 50px); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; }
.price span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.3; color: #55555a; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: 0 var(--gutter) 36px; font-size: 14px; }
.foot p { flex: 1 1 280px; max-width: 46em; }
.foot-link { color: var(--ink-2); text-underline-offset: 3px; }
.foot-link:hover { color: var(--ink); }

/* ── Tablet and phone ──────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "demo" "rail"; min-height: 0; padding-top: 84px; }
  h1 { font-size: min(10.6vw, 96px); }
  .demo { justify-self: center; }
}
@media (max-width: 960px) {
  .plan-head { grid-template-columns: 1fr; grid-template-areas: "h" "controls" "result"; }
  .plan-result { justify-self: start; }
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 10px; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .ph { flex: 0 0 min(66vw, 300px); margin-top: 0; scroll-snap-align: center; }
  .langs-head, .game, .own, .get-card { grid-template-columns: minmax(0, 1fr); }
  .game-play { width: 100%; max-width: 460px; margin-inline: auto; }
  .get-h { font-size: clamp(56px, 15vw, 120px); }
  .stores { margin-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand span { font-size: 18px; }
  .bar .pill { display: none; }
  .deck { aspect-ratio: 1 / 1.2; }
  .rail-line { grid-template-columns: repeat(4, 1fr); }
  .stairs { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-inline: 0; padding: 0; border-bottom: 0; }
  .step, .step[data-step] { height: auto; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 18px; border-radius: 24px; }
  .step + .step { margin-left: 0; }
  .step[data-step="7"] { margin-left: 16px; }
  .step[data-step="8"] { margin-left: 32px; }
  .step-n { font-size: 72px; flex: none; width: .62em; }
  .step-body { min-width: 0; }
  .tr-table td[lang="ru"] { display: none; }
  .tr-table th[scope="row"] { width: 48%; }
  .tr-table td { width: 52%; }
  .prices { gap: 14px; }
  .compare th, .compare td { padding-left: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
