/* =========================================================
   STREETPACER — LIVING INTERFACE  (experience.css)
   ========================================================= */

@import url("fonts.css");

:root {
  --bg: #06060C;
  --bg-rgb: 6, 6, 12;
  --text: #ECEAF4;
  --text-2: #9C97AB;
  --text-3: #5E5970;
  --line: rgba(255, 255, 255, 0.10);

  /* accent (Violet — Standard) */
  --accent: #7C5CFF;
  --accent-2: #9B82FF;
  --accent-3: #B7A6FF;
  --accent-rgb: 124, 92, 255;
  --on-accent: #FFFFFF;
  --cyan: var(--accent);
  --cyan-soft: var(--accent-2);

  /* overlay tints (kippen im Hell-Modus) */
  --tint-1: rgba(255, 255, 255, 0.025);
  --tint-2: rgba(255, 255, 255, 0.05);
  --tint-3: rgba(255, 255, 255, 0.085);

  --font-ui: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

/* HELL-MODUS — Blaze-Orange (data-theme="light") */
html[data-theme="light"] {
  --bg: #FBF6F2;
  --bg-rgb: 251, 246, 242;
  --text: #1A130D;
  --text-2: #5E5248;
  --text-3: #8C7E72;
  --line: rgba(20, 12, 6, 0.12);

  --accent: #FF5719;
  --accent-2: #FF7A47;
  --accent-3: #FF9D74;
  --accent-rgb: 255, 87, 25;
  --on-accent: #160600;

  --tint-1: rgba(20, 12, 6, 0.035);
  --tint-2: rgba(20, 12, 6, 0.06);
  --tint-3: rgba(20, 12, 6, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
html, body { background: var(--bg); color: var(--text); overscroll-behavior-y: none; }
body {
  font-family: var(--font-ui);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); }

::selection { background: rgba(var(--accent-rgb), 0.28); color: var(--on-accent); }

/* ---------- top bar (brand · nav · cta) ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
/* Backdrop sobald Content unter die Topbar scrollt (JS toggelt .is-scrolled) —
   behebt Text-auf-Text-Überlappung über hellen Sektionen, in beiden Themes. */
.topbar { transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease; }
.topbar.is-scrolled {
  background: rgba(var(--bg-rgb), 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.topbar__brand { display: flex; align-items: center; gap: 10px; }
.topbar__brand img { height: 32px; width: auto; display: block; opacity: 0.96; }
.topbar__nav { display: flex; gap: clamp(20px, 2.2vw, 36px); font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.04em; }
.topbar__nav a { color: var(--text-2); transition: color .2s; position: relative; }
.topbar__nav a:hover { color: var(--text); }
.topbar__nav a.is-active { color: var(--cyan); }
.topbar__nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.topbar__cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-weight: 600; font-size: 13px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--cyan); color: var(--on-accent);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 8px 26px -10px rgba(var(--accent-rgb), 0.6);
  transition: transform .2s, box-shadow .3s, background .2s;
}
.topbar__cta:hover { transform: translateY(-1px); background: var(--accent-2); }

/* ---------- theme toggle (Sonne ⇄ Mond) ---------- */
.themeToggle {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--tint-1); border: 1px solid var(--line);
  color: var(--text-2); cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.themeToggle:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.08);
  transform: translateY(-1px);
}
.themeToggle__sun, .themeToggle__moon { display: block; }
.themeToggle__moon { display: none; }
html[data-theme="light"] .themeToggle__sun { display: none; }
html[data-theme="light"] .themeToggle__moon { display: block; }
/* Topbar hat sonst keinen Abstand zwischen Toggle und CTA/Hamburger */
.themeToggle + .topbar__cta,
.themeToggle + .topbar__menu { margin-left: 10px; }
.topbar__menu { margin-left: 10px; }
.skip {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--text-2); padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--tint-1);
  transition: color .2s, border-color .2s, background .2s;
}
.skip:hover { color: var(--cyan); border-color: rgba(var(--accent-rgb), 0.4); background: rgba(var(--accent-rgb), 0.06); }

/* ---------- mobile menu button + overlay ---------- */
.topbar__menu {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  align-items: center; justify-content: center;
  background: var(--tint-2); border: 1px solid var(--line);
  cursor: pointer; flex-direction: column; gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.topbar__menu span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s ease, opacity .2s ease; }
.navmenu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(var(--bg-rgb), 0.86); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 30px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .32s ease, transform .32s ease, visibility .32s;
}
.navmenu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.navmenu__close {
  position: absolute; top: 18px; right: 18px;
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint-2); border: 1px solid var(--line); color: var(--text);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.navmenu__links { display: flex; flex-direction: column; gap: 4px; }
.navmenu__links a {
  font-family: var(--font-ui); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase;
  font-size: clamp(34px, 11vw, 52px); line-height: 1.12; color: var(--text);
  display: flex; align-items: baseline; gap: 14px;
  opacity: 0; transform: translateX(-18px); transition: opacity .4s ease, transform .4s ease, color .2s ease;
}
.navmenu.is-open .navmenu__links a { opacity: 1; transform: translateX(0); }
.navmenu.is-open .navmenu__links a:nth-child(1) { transition-delay: .06s; }
.navmenu.is-open .navmenu__links a:nth-child(2) { transition-delay: .12s; }
.navmenu.is-open .navmenu__links a:nth-child(3) { transition-delay: .18s; }
.navmenu.is-open .navmenu__links a:nth-child(4) { transition-delay: .24s; }
.navmenu__links a::before {
  content: attr(data-no); font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--text-3); transform: translateY(-0.5em);
}
.navmenu__links a.is-active { color: var(--cyan); }
.navmenu__links a:active { color: var(--cyan); }
.navmenu__foot {
  position: absolute; left: 30px; right: 30px; bottom: 34px;
  display: flex; flex-direction: column; gap: 18px;
}
.navmenu__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 22px; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 700; font-size: 16px;
  background: var(--cyan); color: var(--on-accent);
}
.navmenu__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; }

/* =========================================================
   EXPERIENCE — tall scroll section with sticky canvas stage
   ========================================================= */
.exp {
  position: relative;
  height: 560vh;            /* scroll runway */
  z-index: 1;
  pointer-events: none;     /* never block the fixed stage / its CTA */
}
.exp__stage {
  position: fixed;
  inset: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;     /* interactive children opt back in */
}
.exp__stage .stage.is-on,
.exp__stage .btn,
.exp__stage a { pointer-events: auto; }

#field {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 1;
}

/* core glow behind particles */
.exp__core {
  position: absolute; left: 50%; top: 50%;
  width: 80vmin; height: 80vmin;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.16) 0%, rgba(var(--accent-rgb), 0.05) 38%, transparent 66%);
  z-index: 0; pointer-events: none;
  filter: blur(8px);
}

/* faint telemetry grid */
.exp__grid {
  position: absolute; inset: -2px; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--tint-1) 1px, transparent 1px),
    linear-gradient(90deg, var(--tint-1) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 42%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 50%, #000 0%, #000 42%, transparent 78%);
}
.exp__vign {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 46%, transparent 52%, rgba(var(--bg-rgb), 0.55) 100%);
}
.exp__scan {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0.35;
  background: repeating-linear-gradient(to bottom, var(--tint-1) 0px, var(--tint-1) 1px, transparent 2px, transparent 4px);
  mix-blend-mode: overlay;
}

/* ---------- HUD frame (corner brackets + labels) ---------- */
.hud-frame { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.hud-frame .corner {
  position: absolute; width: 26px; height: 26px;
  border: 0 solid rgba(var(--accent-rgb), 0.5);
}
.hud-frame .tl { top: 90px; left: clamp(20px,4vw,48px); border-top-width: 1.5px; border-left-width: 1.5px; }
.hud-frame .tr { top: 90px; right: clamp(20px,4vw,48px); border-top-width: 1.5px; border-right-width: 1.5px; }
.hud-frame .bl { bottom: 70px; left: clamp(20px,4vw,48px); border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud-frame .br { bottom: 70px; right: clamp(20px,4vw,48px); border-bottom-width: 1.5px; border-right-width: 1.5px; }

.hud-label {
  position: absolute; z-index: 6;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--text-3); text-transform: uppercase; pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.hud-label .blip { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blip 2.4s ease-in-out infinite; }
@keyframes blip { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.hud-sys  { top: 92px; left: calc(clamp(20px,4vw,48px) + 40px); }
.hud-state{ top: 92px; right: calc(clamp(20px,4vw,48px) + 40px); color: var(--cyan-soft); }
.hud-foot { bottom: 72px; left: calc(clamp(20px,4vw,48px) + 40px); }
.hud-readout {
  bottom: 72px; right: calc(clamp(20px,4vw,48px) + 40px);
  gap: 22px; color: var(--text-2);
}
.hud-readout b { color: var(--text); font-weight: 600; }
.hud-readout .u { color: var(--text-3); }

/* ---------- stage copy ---------- */
.stages { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.stage {
  position: absolute;
  left: clamp(20px, 5vw, 84px);
  top: 50%;
  transform: translateY(-50%);
  max-width: min(46ch, 44vw);
  pointer-events: none;
}
.stage.is-on { pointer-events: auto; }
/* children fly in (staggered) when the shape settles, fly out together when it morphs */
.stage > * {
  opacity: 0;
  transform: translateY(46px);
  filter: blur(7px);
  transition: opacity .5s ease, transform .85s cubic-bezier(.16,.84,.28,1), filter .5s ease;
  will-change: transform, opacity;
}
.stage.is-on > * { opacity: 1; transform: translateY(0); filter: blur(0); }
/* when JS drives the copy scroll-linked, kill the class transitions so the
   per-frame inline styles apply instantly (the scrollP lerp does the smoothing) */
.js-stagetext .stage > * { transition: none; }
.stage.is-on > *:nth-child(1) { transition-delay: .04s; }
.stage.is-on > *:nth-child(2) { transition-delay: .13s; }
.stage.is-on > *:nth-child(3) { transition-delay: .24s; }
.stage.is-on > *:nth-child(4) { transition-delay: .34s; }
.stage__kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.stage__kicker::before { content: ""; width: 22px; height: 1px; background: var(--cyan); display: inline-block; }
.stage__title {
  font-weight: 800; line-height: 0.94; letter-spacing: -0.03em;
  font-size: clamp(38px, 6.4vw, 92px);
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(0,0,0,0.6);
}
.stage__title .accent {
  color: transparent;
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 55%, var(--text) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.stage__sub {
  margin-top: 22px; max-width: 38ch;
  font-family: var(--font-mono); font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.7; color: var(--text-2); letter-spacing: 0.01em;
}
.stage__sub b { color: var(--text); font-weight: 500; }

/* final stage CTA — anchored below the particle wordmark */
.stage--final { left: 50%; top: auto; bottom: 10%; transform: translateX(-50%); text-align: center; max-width: min(92vw, 720px); }
.stage--final .stage__sub { margin: 0 auto; max-width: 46ch; }
.cta-row { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  cursor: pointer; transition: transform .2s, box-shadow .3s, background .2s, color .2s;
}
.btn--primary { background: var(--cyan); color: var(--on-accent); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.45), 0 12px 40px -10px rgba(var(--accent-rgb), 0.7); }
.btn--primary:hover { transform: translateY(-2px); background: var(--accent-2); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.7), 0 18px 54px -10px rgba(var(--accent-rgb), 0.85); }
.btn--ghost { background: var(--tint-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--tint-3); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }

/* ---------- scroll hint ---------- */
.scrollhint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; color: var(--text-3);
  transition: opacity .5s ease;
}
.scrollhint__line { width: 1px; height: 38px; background: linear-gradient(var(--cyan), transparent); position: relative; overflow: hidden; }
.scrollhint__line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 12px; background: var(--accent-2); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: translateY(-12px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(38px); opacity: 0; } }

/* progress bar */
.scrollprog {
  position: fixed; left: 0; bottom: 0; height: 2px; width: 100%; z-index: 41;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7); pointer-events: none;
}

/* =========================================================
   AFTER — landing into the real site
   ========================================================= */
.outro {
  position: relative; z-index: 10; background: var(--bg);
  padding: clamp(80px, 14vh, 160px) clamp(20px, 6vw, 80px) 90px;
  border-top: 1px solid var(--line);
}
.outro__inner { max-width: 1100px; margin: 0 auto; }
.outro__kicker {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; color: var(--cyan);
  text-transform: uppercase; margin-bottom: 20px;
}
.outro__title { font-weight: 800; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; }
.outro__grid {
  margin-top: 64px; display: grid; gap: 18px;
  grid-template-columns: repeat(3, 1fr);
}
.ocard {
  border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px;
  background: linear-gradient(180deg, var(--tint-1), rgba(255,255,255,0));
  transition: border-color .25s, transform .25s, background .25s;
}
.ocard:hover { border-color: rgba(var(--accent-rgb), 0.35); transform: translateY(-4px); background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.06), rgba(255,255,255,0)); }
.ocard__no { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--text-3); margin-bottom: 18px; }
.ocard h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.ocard p { font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.ocard a { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--cyan); }
.ocard a svg { width: 14px; height: 14px; }

.outro__foot {
  margin-top: 70px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-3);
}
.outro__foot a:hover { color: var(--cyan); }
.outro__links { display: flex; gap: 20px; flex-wrap: wrap; }
.outro__links a { color: var(--text-3); transition: color .2s; }

/* outro CTA block + section heads reused from main.css */
.outro .section__head { max-width: none; margin-left: 0; }
.outro__cta { margin-top: 90px; padding: clamp(32px, 5vw, 56px); border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.07), rgba(255,255,255,0)); }
.outro__ctaTitle { font-weight: 800; font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1.02; }
.outro__ctaSub { color: var(--text-2); margin: 14px 0 26px; font-size: 15px; max-width: 52ch; }

/* ---------- legal pages (Impressum / Datenschutz / AGB) ---------- */
.legal { max-width: 800px; }
.legal__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 48px; }
.legal h2 {
  font-weight: 800; font-size: clamp(20px, 2.4vw, 27px); letter-spacing: -0.02em; color: var(--text);
  margin: 52px 0 16px; padding-top: 28px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.legal h2 .legal__no { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--cyan); letter-spacing: 0.05em; }
.legal h3 { font-weight: 700; font-size: 16px; color: var(--text); margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.78; color: var(--text-2); }
.legal p { margin-bottom: 14px; }
.legal b { color: var(--text); font-weight: 600; }
.legal ul { padding-left: 22px; margin: 10px 0 18px; }
.legal li { margin-bottom: 7px; }
.legal li::marker { color: var(--cyan); }
.legal a { color: var(--cyan); }
.legal a:hover { text-decoration: underline; }
.legal__card {
  border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px; margin: 4px 0 8px;
  background: linear-gradient(180deg, var(--tint-1), rgba(255,255,255,0));
  font-style: normal;
}
.legal__card b { color: var(--cyan-soft); }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.legal thead th { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); background: var(--tint-1); }
.legal td { color: var(--text-2); }
.legal td:first-child { color: var(--text); font-weight: 500; }
.legal__badge { display: inline-block; font-family: var(--font-mono); font-size: 11px; vertical-align: middle; color: var(--cyan); border: 1px solid rgba(var(--accent-rgb), 0.4); border-radius: 999px; padding: 3px 11px; margin-left: 10px; letter-spacing: 0.12em; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 760px) {
  .topbar { padding: 14px 18px; }
  .topbar__nav { display: none; }
  .topbar__cta { display: none; }
  .topbar__menu { display: flex; }
  .topbar__brand img { height: 27px; }

  /* darken the lower third so copy stays readable over the particles */
  .exp__vign {
    background:
      radial-gradient(circle at 50% 42%, transparent 50%, rgba(var(--bg-rgb), 0.5) 100%),
      linear-gradient(to top, rgba(var(--bg-rgb), 0.94) 0%, rgba(var(--bg-rgb), 0.7) 20%, rgba(var(--bg-rgb), 0) 44%);
  }

  .stage { left: 22px; right: 22px; max-width: none; top: auto; bottom: 16%; transform: none; }
  .stage.is-on { transform: none; }
  .stage__kicker { margin-bottom: 12px; font-size: 10.5px; }
  .stage__title { font-size: clamp(36px, 13vw, 60px); }
  .stage__sub { font-size: 13.5px; line-height: 1.65; margin-top: 16px; max-width: none; }

  .stage--final { left: 22px; right: 22px; bottom: 13%; top: auto; transform: none; text-align: left; max-width: none; }
  .stage--final.is-on { transform: none; }
  .stage--final .stage__sub { margin: 16px 0 0; max-width: none; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 11px; margin-top: 26px; }
  .cta-row .btn { width: 100%; justify-content: center; padding: 16px 22px; }

  /* declutter the HUD — keep only state (top) + speed/lap (bottom) */
  .hud-sys, .hud-foot { display: none; }
  .hud-frame .tl, .hud-frame .tr { top: 70px; }
  .hud-frame .bl, .hud-frame .br { bottom: 56px; }
  .hud-state { top: 72px; right: 18px; font-size: 10px; }
  .hud-readout { bottom: 58px; right: 18px; gap: 16px; font-size: 10px; }

  .outro { padding: 80px 20px 70px; }
  .outro__grid { grid-template-columns: 1fr; }
  .outro__foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .scrollhint { display: none; }
}

/* features detail grid — responsive (overrides any inline 3-col) */
.outro .features__grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .outro .features__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .outro .features__grid { grid-template-columns: 1fr; } }

/* pricing comparison table scrolls instead of squashing on small screens */
@media (max-width: 560px) {
  .compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare__table { min-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .scrollhint__line::after, .hud-frame .blip { animation: none; }
  /* keep the in/out logic, just remove the motion — only the active stage shows,
     never all four stacked on top of each other (the Windows overlap bug) */
  .stage > * { transition: none; }
  .stage:not(.is-on) > * { opacity: 0; }
  .stage.is-on > * { opacity: 1; transform: none; filter: none; }
}
