/* RASKI landing. Tokens follow the app (frontend/src/style.css): night navy,
   one blue accent, sharp corners (2/4/6 px), sentence case, dark only. */
@font-face {
  font-family: Geist;
  src: url("fonts/Geist.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
/* Momo Trust Display (one weight, 400) for headings, Albert Sans for
   text; Geist only for the RASKI wordmark so it matches the app. All OFL,
   cut to Latin-1 and the weights used with fontTools. */
@font-face {
  font-family: "Momo Trust Display";
  src: url("fonts/MomoTrustDisplay.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Albert Sans";
  src: url("fonts/AlbertSans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0b1022;
  --bg-2: #10172e;
  --surface: #161f3b;
  --surface-2: #1f2a4c;
  --nav-bg: #0b1022e6;
  --line: #243055;
  --line-strong: #3a4878;
  --text: #eef1fb;
  --muted: #a9b3d1;
  --dim: #8590b4;
  --accent: #4a6bff;
  --accent-hover: #6383ff;
  --blue-text: #a9beff;
  --mint: #5ee0b8;
  --cyan: #8fd3ff;
  --violet: #b2a4ff;
  --r-sm: 2px;
  --r: 4px;
  --r-lg: 6px;
  --shadow: 0 30px 60px -30px #000a, 0 0 0 1px var(--line);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: 64px;
  --content: 1240px;
  --page-x: max(var(--gutter), calc((100% - var(--content)) / 2));
  --header-h: 68px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Albert Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; font-family: "Momo Trust Display", "Albert Sans", system-ui, sans-serif; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.skip-link { position: absolute; left: 16px; top: -64px; z-index: 60; padding: 8px 12px; border-radius: var(--r); background: var(--text); color: var(--bg); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header-h);
  display: flex; align-items: center; gap: 40px; padding: 0 var(--page-x);
  background: var(--nav-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}
.has-hero .site-header:not(.scrolled) { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { font-family: Geist, system-ui, sans-serif; font-size: 24px; line-height: 1; font-weight: 900; letter-spacing: -0.07em; white-space: nowrap; }
.brand > span {
  margin-left: 2px;
  background: linear-gradient(95deg, var(--mint), var(--cyan) 48%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.desktop-nav { display: flex; gap: 32px; margin-left: auto; font-size: 14px; font-weight: 550; color: var(--muted); }
.desktop-nav a { transition: color 200ms var(--ease); }
.desktop-nav a:hover { color: var(--text); }
.menu-button, .mobile-menu { display: none; }
/* Pages without the main navigation keep their one button on the right. */
.site-header > .brand + .button { margin-left: auto; }

/* ---- Buttons ------------------------------------------------------------ */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 12px 24px; border: 1px solid var(--accent); border-radius: var(--r);
  background: var(--accent); color: #fff; font-size: 15px; line-height: 1.2; font-weight: 650;
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:active { transform: translateY(1px); }
.button-small { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.button-ghost { background: #0b102266; border-color: #eef1fb59; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.button-ghost:hover { background: #eef1fb1a; border-color: var(--text); }
.text-link { display: inline-flex; gap: 8px; font-weight: 600; color: var(--muted); }
.text-link:hover { color: var(--text); }
.inline-link { color: var(--text); text-decoration: underline 1px var(--line-strong); text-underline-offset: 4px; }
.inline-link:hover { text-decoration-color: var(--text); }

/* ---- Glossary terms (FTP): a button in the text, popover beside it ----- */
.term {
  padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer;
  text-decoration: underline dotted 1.5px var(--blue-text); text-underline-offset: 4px;
}
.term:hover, .term[aria-expanded="true"] { text-decoration-style: solid; }
.term-pop {
  position: absolute; inset: auto; margin: 0; width: min(320px, calc(100vw - 32px));
  display: none; gap: 10px; padding: 16px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); color: var(--muted); font-size: 14px; line-height: 1.55; box-shadow: var(--shadow);
}
.term-pop:popover-open { display: grid; }
.term-pop b { color: var(--text); font-weight: 650; }

/* ---- Type --------------------------------------------------------------- */
.eyebrow, .kicker {
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text);
}
/* Trademarks keep their own spelling (Concept2 naming guidance): no forced caps. */
.eyebrow-mark { font-size: 14px; line-height: 20px; letter-spacing: 0.01em; text-transform: none; }
h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1; letter-spacing: -0.01em; font-weight: 400; }
h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -0.01em; font-weight: 400; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: 0; font-weight: 400; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; padding: calc(var(--header-h) + 48px) var(--page-x) clamp(40px, 7vh, 80px);
  display: flex; align-items: flex-end;
}
.hero-media, .hero-media :is(picture, img, video) { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -1; background: #0b1022; }
.hero-media :is(img, video) { object-fit: cover; }
.hero-media video { opacity: 0; transition: opacity 800ms var(--ease); }
.hero-media video.playing { opacity: 1; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    /* The video is the hero: shade only the corner and band the copy sits on. */
    radial-gradient(ellipse 60% 75% at 0% 100%, #0b1022e0 0%, #0b102299 45%, #0b102200 100%),
    linear-gradient(0deg, #0b1022f2 0%, #0b102299 18%, #0b102200 42%),
    linear-gradient(180deg, #0b102299 0%, #0b102200 16%);
}
.hero-content { display: grid; gap: 20px; max-width: 1240px; }
/* Same voice as the scene titles, one size up. */
.hero h1 {
  font-size: clamp(44px, 7vw, 116px); line-height: 0.88; letter-spacing: -0.02em; text-transform: uppercase;
  font-style: italic; text-shadow: 0 4px 32px #0b102299;
}
.hero h1 span { color: var(--blue-text); }
.hero-lead { max-width: 540px; color: #d6dcf0; font-size: 17px; line-height: 1.55; text-shadow: 0 1px 12px #0b1022cc; }
.hero-support { display: grid; gap: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.hero-platforms {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 18px;
  margin: 0; padding: 0; list-style: none; color: var(--muted);
  font-size: 14px; font-weight: 550; line-height: 1.3;
}
.hero-platforms li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hero-platforms svg { flex: none; color: #e1e9fc; }
.pf-short { display: none; }
.hero-motion {
  position: absolute; right: var(--page-x); bottom: clamp(40px, 7vh, 80px);
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid #eef1fb4d; border-radius: var(--r); background: #0b102266; color: var(--text); cursor: pointer;
}
.hero-motion:hover { border-color: var(--text); }
.hero-motion .icon-play, .hero-motion.paused .icon-pause { display: none; }
.hero-motion.paused .icon-play { display: block; }

/* ---- Scenes: the game sells itself -------------------------------------
   Each section is an edge-to-edge capture with a big game-style title that
   bites into its lower edge, like a console store page. No cards, no frames. */
.scene { position: relative; padding-bottom: clamp(72px, 9vw, 128px); }
.scene-shot { position: relative; }
.scene-shot img { width: 100%; height: min(56.25vw, 92svh); object-fit: cover; }
/* Real gameplay with the real HUD over the still; fades in once it plays. */
.scene-shot video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 600ms var(--ease);
}
.scene-shot video.playing { opacity: 1; }
.scene-shot::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(0deg, var(--bg) 0%, #0b102200 100%); pointer-events: none;
}
.scene-copy {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end;
  padding: 0 var(--page-x);
}
.scene-shot + .scene-copy { margin-top: calc(-1 * clamp(56px, 7vw, 110px)); }
.scene-tag {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px;
  font-size: 13px; line-height: 1; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-text);
}
.scene-tag span {
  display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px;
  border-radius: var(--r-sm); background: var(--accent); color: #fff; letter-spacing: 0.04em;
}
.scene-title {
  font-size: clamp(44px, 6.6vw, 108px); line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase;
  font-style: italic; text-shadow: 0 2px 18px #0b102280;
}
.scene-text { display: grid; gap: 14px; padding-bottom: 0.4em; color: var(--muted); font-size: 17px; line-height: 1.6; }
.scene-strip {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px;
  margin-top: clamp(48px, 6vw, 88px);
}
.scene-strip-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.scene-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---- Something new to chase: the app's poster carousel ----------------- */
/* Ported from frontend/src/ui/HeroCarousel.tsx + hero.css (DOM cards, no WebGL). */
.chase {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(80px, 10vw, 140px) var(--page-x); overflow: hidden;
  background: radial-gradient(60% 70% at 72% 50%, #1f2f5c 0%, #10172e00 70%), var(--bg-2); border-top: 1px solid var(--line);
}
.chase-intro { display: grid; align-content: center; gap: 20px; min-width: 0; }
.chase-intro .scene-title { font-size: clamp(44px, 5.4vw, 88px); margin-bottom: clamp(8px, 2vw, 28px); }
.chase-copy { display: grid; gap: 12px; min-height: 11em; align-content: start; animation: chase-copy-in 260ms var(--ease) both; }
.chase-label {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-text);
}
.chase-label::before { content: ""; width: 16px; height: 2px; background: var(--accent); transform: skewX(-24deg); }
.chase-label span { padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: var(--r-sm); color: var(--muted); font-size: 11px; letter-spacing: 0.1em; }
.chase-copy h3 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; font-style: italic; text-wrap: balance; }
.chase-copy > p:last-child { max-width: 46ch; color: var(--muted); font-size: 17px; line-height: 1.6; }

.chase-carousel { position: relative; min-width: 0; height: clamp(380px, 44vw, 560px); display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; gap: 12px; }
.chase-stage {
  position: relative; width: 100%; height: 100%; min-height: 0; container-type: size;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.chase-card {
  --move: 420ms; --card-ease: cubic-bezier(0.2, 0.8, 0.2, 1); --paper: #0b1222;
  position: absolute; left: 50%; top: 50%; display: block; appearance: none;
  width: min(330px, 40cqw, calc(80cqh - 16px)); aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: var(--r-sm);
  background: none; color: #fff; font: inherit; text-align: left; cursor: pointer; container-type: inline-size;
  transform: translate(-50%, -50%); transition: transform var(--move) var(--card-ease), opacity calc(var(--move) / 2) var(--card-ease);
  -webkit-tap-highlight-color: transparent;
}
.chase-card:first-child { z-index: 1; }
.chase-stage.is-settling .chase-card { --move: 320ms; }
.chase-card.is-jumping { transition: opacity calc(var(--move) / 2) var(--card-ease); }
.chase-card.is-jumping .chase-shade, .chase-stage.is-dragging .chase-card, .chase-stage.is-dragging .chase-shade { transition: none; }
.chase-stage.is-dragging { cursor: grabbing; }
.chase-card:focus-visible { outline: none; }
.chase-card:focus-visible .chase-face { box-shadow: 0 0 0 3px var(--mint); }
.chase-card.is-active::after { content: ""; position: absolute; inset: -6px; border: 1px solid #ffffff38; border-radius: inherit; pointer-events: none; }
.chase-face {
  position: absolute; inset: 0; overflow: hidden; contain: paint; border-radius: inherit;
  background: var(--paper); box-shadow: 0 0 0 1px #ffffff1f inset, 0 30px 50px -24px #000c;
}
.chase-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.chase-top, .chase-bottom { position: absolute; left: 6cqi; right: 6cqi; display: flex; }
.chase-top { top: 5.4cqi; justify-content: space-between; align-items: baseline; font: 800 max(9px, 4.4cqi) / 1 Geist, sans-serif; letter-spacing: 0.02em; }
.chase-top b i { margin-left: 3px; font-style: normal; color: var(--accent-hover); }
.chase-top span { font-size: max(9px, 4cqi); font-variant-numeric: tabular-nums; opacity: 0.85; }
.chase-bottom {
  bottom: 0; left: 0; right: 0; padding: 22cqi 6cqi 6cqi; flex-direction: column; gap: 1.4cqi;
  background: linear-gradient(#0b122200, var(--paper) 62%);
}
.chase-bottom::before { content: ""; width: 12.6cqi; height: max(3px, 1.3cqi); margin-bottom: 2.6cqi; background: var(--accent-hover); transform: skewX(-24deg); opacity: 0; transition: opacity 200ms; }
.chase-card.is-active .chase-bottom::before { opacity: 1; }
.chase-bottom strong { font: 900 11.4cqi / 0.95 Geist, sans-serif; letter-spacing: -0.035em; text-transform: uppercase; }
.chase-bottom small { font: 600 max(9px, 4cqi) / 1.3 Geist, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.chase-shade { position: absolute; inset: 0; background: #03060d; opacity: 0; transition: opacity var(--move) var(--card-ease); pointer-events: none; }

.chase-controls { display: flex; align-items: center; gap: 10px; }
.chase-arrow {
  appearance: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: transparent; color: var(--text); cursor: pointer;
  transition: background 200ms var(--ease);
}
.chase-arrow:hover { background: #ffffff14; }
.chase-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.chase-pips { display: flex; gap: 6px; margin: 0 6px; padding: 0; list-style: none; }
.chase-pips li { width: 6px; height: 6px; border-radius: 2px; background: #ffffff30; transition: transform 300ms var(--ease), background 200ms var(--ease); }
.chase-pips li.is-active { transform: scaleX(2.4); margin-inline: 4px; background: var(--accent-hover); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes chase-copy-in { from { opacity: 0; transform: translateY(6px); } }

/* ---- App screens ---------------------------------------------------------- */
.app {
  display: grid; gap: clamp(40px, 5vw, 64px);
  padding: clamp(80px, 10vw, 140px) var(--page-x); border-top: 1px solid var(--line);
  background: radial-gradient(50% 60% at 50% 100%, #1f2f5c 0%, #10172e00 70%), var(--bg);
}
.app-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(32px, 5vw, 80px); align-items: end; }
.app-intro .scene-title { font-size: clamp(44px, 5.4vw, 88px); }
.app-lead { color: var(--muted); font-size: 17px; line-height: 1.6; padding-bottom: 0.4em; }
.app-shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.app-shot { display: grid; gap: 20px; align-content: start; justify-items: center; }
.app-phone {
  width: min(100%, 300px); padding: 8px; border-radius: 6px;
  background: #050811; border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -20px #000000b0, 0 0 0 1px #ffffff0d inset;
}
.app-phone img { display: block; width: 100%; height: auto; border-radius: 4px; }
.app-shot:nth-child(even) { transform: translateY(clamp(16px, 3vw, 40px)); }
.app-shot figcaption { max-width: 300px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.app-shot figcaption b { display: block; margin-bottom: 4px; color: var(--text, #fff); font-size: 17px; font-weight: 700; }
@media (max-width: 1080px) {
  .app-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(40px, 6vw, 64px); }
}
@media (max-width: 880px) {
  .app-intro { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  /* A swipeable row of phones, one and a bit in view. */
  .app-shots {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(-1 * var(--page-x)); padding: 0 var(--page-x) 8px; scroll-padding: 0 var(--page-x);
  }
  .app-shots::-webkit-scrollbar { display: none; }
  .app-shot { flex: 0 0 72vw; scroll-snap-align: start; justify-items: start; }
  .app-shot:nth-child(even) { transform: none; }
}

/* ---- Beta --------------------------------------------------------------- */
.beta { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 14vw, 176px) var(--page-x); text-align: center; }
.beta-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.beta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #0b1022f2, #0b102280 50%, #0b1022e6); }
.beta-content { max-width: 640px; margin-inline: auto; display: grid; gap: 20px; justify-items: center; }
.beta-content > p:not(.kicker) { color: #d6dcf0; font-size: 18px; }
.beta h2, .faq-head h2 { font-size: clamp(44px, 6.4vw, 104px); line-height: 0.9; text-transform: uppercase; font-style: italic; }
.beta-content small { max-width: 480px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---- FAQ ---------------------------------------------------------------- */
.faq { padding: clamp(80px, 11vw, 144px) var(--page-x); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px 88px; align-items: start; }
.faq-head { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 32px); }
.faq-head > p:not(.kicker) { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+" / ""; color: var(--blue-text); font-size: 22px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−" / ""; }
.faq-list details p { max-width: 64ch; padding: 0 32px 20px 0; color: var(--muted); }

/* ---- Footer ------------------------------------------------------------- */
footer {
  position: relative; z-index: 1;
  padding: 32px var(--page-x) 40px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
footer .brand { font-size: 20px; color: var(--text); }
footer > div { display: flex; justify-content: flex-end; gap: 24px; }
footer a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; max-width: 72ch; font-size: 12px; line-height: 18px; }

/* ---- Other pages: contour backdrop, legal text, 404 ---------------------- */
.terrain-background {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh;
  pointer-events: none; contain: strict; opacity: .3;
  --terrain-color: #19263d; --terrain-major-color: #22385c;
}
.terrain-background canvas { display: block; width: 100%; height: 100%; }
main { position: relative; z-index: 1; }
.legal { max-width: calc(720px + 2 * var(--page-x)); padding: calc(var(--header-h) + 72px) var(--page-x) 96px; display: grid; gap: 48px; }
.legal > .kicker { margin-bottom: -32px; }
.legal-lead { color: var(--muted); font-size: 18px; line-height: 28px; }
.legal-updated { margin-top: -32px; color: var(--dim); font-size: 14px; line-height: 20px; }
.legal section { display: grid; gap: 16px; }
.legal h2 { font-size: 32px; line-height: 40px; letter-spacing: -0.015em; }
.legal section p, .legal dd { color: var(--muted); }
.legal-summary { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.legal-summary ul, .legal-bullets { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: var(--muted); }
.legal-summary b, .legal section p b { color: var(--text); font-weight: 600; }
.legal-list { display: grid; margin: 0; }
.legal-list dt { font-weight: 600; }
.legal-list dd { margin: 4px 0 0; display: grid; gap: 12px; }
.legal-list dd + dt { margin-top: 20px; }
.not-found { min-height: 100dvh; padding: 96px var(--page-x); display: grid; align-content: center; justify-items: start; gap: 24px; }
.not-found p:not(.kicker) { max-width: 540px; color: var(--muted); font-size: 18px; line-height: 28px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---- Tablet ------------------------------------------------------------- */
@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  .desktop-nav, .menu-ready .header-cta { display: none; }
  .header-cta { margin-left: auto; }
  .menu-ready .menu-button {
    display: block; position: relative; width: 44px; height: 44px; margin-left: auto;
    border: 1px solid var(--line-strong); border-radius: var(--r); background: #0b102280; cursor: pointer;
  }
  .menu-button span { position: absolute; left: 13px; top: calc(50% - 1px); width: 16px; height: 2px; background: var(--text); transition: transform 400ms var(--ease); }
  .menu-button span:first-child { transform: translateY(-4px); }
  .menu-button span:last-child { transform: translateY(4px); }
  .menu-button[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .mobile-menu {
    position: fixed; inset: 0; z-index: 30;
    display: flex; flex-direction: column; justify-content: safe center; align-items: flex-start; gap: 20px;
    overflow-y: auto; overscroll-behavior: contain; padding: 96px var(--page-x) 48px;
    background: #0b1022f2; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    visibility: hidden; opacity: 0; transition: opacity 400ms var(--ease), visibility 0s 400ms;
  }
  .mobile-menu.open { visibility: visible; opacity: 1; transition: opacity 400ms var(--ease); }
  .mobile-menu > a:not(.button) { font-size: 30px; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; }
  .mobile-menu > .button { margin-top: 16px; }
  .has-hero.menu-open .site-header { background: transparent; border-color: transparent; }
}

@media (max-width: 880px) {
  :root { --gutter: 28px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-head { position: static; }
  .scene-copy { grid-template-columns: minmax(0, 1fr); }
  .scene-strip-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chase { grid-template-columns: minmax(0, 1fr); }
  .chase-copy { min-height: 0; }
  /* Title, then the cards, then the copy that follows them. */
  .chase-intro { display: contents; }
  .chase-intro .scene-title { margin-bottom: 0; }
  .chase-copy { order: 2; }
}

/* ---- Phone -------------------------------------------------------------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 60px; }
  body { font-size: 15px; }
  /* Portrait phones: the hero is the whole first screen. */
  .hero { min-height: 100svh; padding-bottom: 32px; }
  .hero-media::after {
    background: linear-gradient(0deg, #0b1022 0%, #0b1022cc 30%, #0b102200 56%), linear-gradient(180deg, #0b102299 0%, #0b102200 18%);
  }
  .hero-lead { font-size: 16px; }
  /* One row of platforms down to 320 px: short labels on screen, the full
     names still read out. */
  .hero-platforms { flex-wrap: nowrap; gap: 0 clamp(10px, 3.6vw, 18px); font-size: clamp(13px, 3.8vw, 14px); }
  .hero-platforms li { gap: 5px; }
  .pf-short { display: inline; }
  .pf-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-actions .button { flex: 1 1 auto; }
  .hero-motion { top: calc(var(--header-h) + 12px); bottom: auto; }
  .scene-text, .beta-content > p:not(.kicker) { font-size: 16px; }
  .scene-copy { gap: 14px; }
  .scene-shot + .scene-copy { margin-top: -34px; }
  /* A swipeable row of shots, peeking at the next one. */
  .scene-strip, .scene-strip-4 {
    display: flex; gap: 8px; padding: 0 var(--page-x);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .scene-strip::-webkit-scrollbar { display: none; }
  .scene-strip img { flex: 0 0 84%; scroll-snap-align: center; border-radius: var(--r-sm); }
  .beta::before { background: #0b1022cc; }
  .chase { gap: 20px; }
  .chase-carousel { height: clamp(320px, 92vw, 420px); }
  .chase-card { width: min(250px, 56cqw, calc(80cqh - 16px)); }
  .chase-copy > p:last-child { font-size: 16px; }
  .mobile-menu > .button { align-self: stretch; }
  footer { grid-template-columns: minmax(0, 1fr); }
  footer > div { justify-content: flex-start; flex-wrap: wrap; }
  .legal { gap: 40px; }
  .legal h2 { font-size: 24px; line-height: 32px; }
  .legal-summary { padding: 24px 20px; }
}
