/* ============================================================================
   Apex Lines — design system
   ----------------------------------------------------------------------------
   Brand is fixed by the app (Sources/ApexLines/Theme/Theme.swift): ink
   surfaces, one hot accent — the racing line red — and amber strictly for
   apexes / personal bests. The site's point of view: this product SOLVES the
   racing line from geometry, so the page reads like an instrument panel over
   real track data. Space Grotesk carries voice; JetBrains Mono is reserved
   for measured values + telemetry labels (never body), so every number reads
   like a readout. All track art is the app's actual geometry (OSM, ODbL).
   ========================================================================== */

:root {
  /* surfaces (ink → asphalt) */
  --bg:        #0D0E12;   /* page — Brand.ink */
  --bg-soft:   #111318;   /* alternating band */
  --surface:   #171A1F;   /* card — Brand.inkRaised */
  --surface-2: #21242B;   /* raised / chip */
  --asphalt:   #26292E;   /* track ribbon fill */

  /* brand + semantic */
  --red:        #FA3B33;              /* the racing line */
  --red-soft:   rgba(250, 59, 51, 0.14);
  --red-line:   rgba(250, 59, 51, 0.32);
  --amber:      #FFC729;              /* apex · personal best */
  --amber-soft: rgba(255, 199, 41, 0.14);

  /* ink */
  --ink:        #F2F5F7;
  --ink-muted:  rgba(242, 245, 247, 0.66);
  --ink-faint:  rgba(242, 245, 247, 0.42);
  --line:       rgba(255, 255, 255, 0.09);
  --line-soft:  rgba(255, 255, 255, 0.05);

  /* radius */
  --radius-sm: 12px;
  --radius:    18px;
  --radius-lg: 26px;

  /* type */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Accessibility: skip link + focus + reduced motion ---------------------- */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--red); color: #fff; font-weight: 700;
  padding: 10px 16px; border-radius: 10px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* Shared type helpers ---------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--red-line);
}
.eyebrow.plain::before { display: none; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.red { color: var(--red); }
.amber { color: var(--amber); }

/* ============================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 15px 0;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .row { display: flex; align-items: center; justify-content: space-between; }

.brand-lockup {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-lockup .red { color: var(--red); }
.brand-mark { width: 28px; height: 28px; flex: none; border-radius: 7px; }

.site-header nav { display: flex; align-items: center; gap: 26px; }
.site-header nav a {
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--ink); }
.site-header nav a.nav-cta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--red);
  border: 1px solid var(--red-line);
  padding: 8px 16px;
  border-radius: 999px;
}
.site-header nav a.nav-cta:hover { background: var(--red-soft); color: var(--red); }

/* ============================================================================
   Buttons
   ========================================================================== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red);
  color: #fff;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  border: 1px solid var(--red);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(250,59,51,0.28); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink);
  padding: 15px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  transition: border-color 0.16s ease, color 0.16s ease;
}
.btn-ghost:hover { border-color: var(--red-line); color: var(--red); }

.ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

.badge-app-store { display: inline-block; height: 54px; }
.badge-app-store svg { height: 100%; width: auto; }

/* ============================================================================
   HERO — the solved line over real geometry
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0 clamp(56px, 8vw, 92px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 76% 38%, rgba(250,59,51,0.09), transparent 46%),
    radial-gradient(circle at 10% 6%, rgba(255,199,41,0.05), transparent 42%);
  pointer-events: none;
}
.hero .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 6.4vw, 78px);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.035em;
  margin: 22px 0 22px;
}
.hero h1 .red { color: var(--red); }

.hero .subhead {
  font-size: clamp(17px, 1.55vw, 19.5px);
  color: var(--ink-muted);
  margin-bottom: 32px;
  max-width: 520px;
}
.hero .ctas { margin-bottom: 26px; }

.hero-trust {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  display: flex; gap: 18px; flex-wrap: wrap;
}
.hero-trust b { color: var(--red); font-weight: 700; }

/* --- Track panel (the signature element) --------------------------------- */
.track-panel {
  position: relative;
  background: linear-gradient(180deg, var(--surface) 0%, #101216 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 26px 20px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.55);
  width: 100%;
  max-width: 480px;
  justify-self: center;
}
.track-panel .panel-head {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.track-panel .panel-head .solved {
  display: inline-flex; align-items: center; gap: 7px; color: var(--red);
}
.track-panel .panel-head .solved::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(250,59,51,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(250,59,51,0); }
  100% { box-shadow: 0 0 0 0 rgba(250,59,51,0); }
}

.hero-map { padding: 18px 6px 8px; }
.hero-map svg { width: 100%; height: auto; overflow: visible; }

/* The computed line draws itself in, then a lap pulse circulates. Both are
   pure CSS via pathLength=1000 set on the SVG paths. */
.hero-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: draw-line 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
  filter: drop-shadow(0 0 6px rgba(250, 59, 51, 0.5));
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.hero-chase {
  stroke-dasharray: 16 984;
  stroke-dashoffset: 1000;
  opacity: 0;
  animation:
    lap 9s linear 3s infinite,
    chase-in 0.6s ease 3s forwards;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.55));
}
@keyframes lap { to { stroke-dashoffset: 0; } }
@keyframes chase-in { to { opacity: 0.95; } }

.hero-apex { opacity: 0; animation: apex-in 0.5s ease forwards; }
.hero-apex:nth-of-type(odd)  { animation-delay: 2.2s; }
.hero-apex:nth-of-type(even) { animation-delay: 2.5s; }
@keyframes apex-in { to { opacity: 1; } }

.hero-corner {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  fill: var(--ink-faint);
  text-anchor: middle;
}

.panel-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 16px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.panel-stats .stat { background: var(--surface); padding: 13px 10px; text-align: center; }
.panel-stats .stat .n {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 20px; font-weight: 700; color: var(--ink);
}
.panel-stats .stat .n .unit { font-size: 12px; color: var(--ink-faint); }
.panel-stats .stat .k {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 4px;
}

/* ============================================================================
   Section scaffolding
   ========================================================================== */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.soft { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.section-title {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 16px 0 16px;
}
.section-sub { font-size: 17.5px; color: var(--ink-muted); }

/* Value props — solved, not sketched ------------------------------------- */
.props-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.prop-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.prop-card:hover { border-color: var(--red-line); transform: translateY(-3px); }
.prop-card .tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
}
.prop-card h3 { font-size: 20px; font-weight: 700; margin: 14px 0 9px; letter-spacing: -0.01em; }
.prop-card p { color: var(--ink-muted); font-size: 15px; }

/* Feature rows ------------------------------------------------------------ */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.feature-grid.reverse .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-list { list-style: none; margin-top: 26px; }
.feature-list li {
  padding: 13px 0;
  color: var(--ink-muted);
  font-size: 15.5px;
  border-bottom: 1px solid var(--line-soft);
  display: flex; gap: 13px; align-items: flex-start;
}
.feature-list li::before {
  content: "";
  flex: none; margin-top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
}
.feature-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-faint);
}
.feature-note .pro { color: var(--amber); }

/* Instrument cards used as feature media ---------------------------------- */
.instrument {
  background: linear-gradient(180deg, var(--surface) 0%, #101216 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 420px;
}
.instrument .head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}
.instrument .head .live { color: var(--red); }

/* Fly HUD mock */
.hud-speed { display: flex; align-items: baseline; gap: 10px; }
.hud-speed .v {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -0.02em;
}
.hud-speed .u { font-family: var(--font-mono); font-size: 16px; color: var(--ink-muted); }
.hud-state {
  display: inline-flex; margin-top: 14px; padding: 7px 14px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 999px;
  background: var(--amber-soft); color: var(--amber);
  border: 1px solid rgba(255,199,41,0.3);
}
.hud-next {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em;
  color: var(--ink-muted); text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.hud-next b { color: var(--ink); font-weight: 700; }
.hud-limits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.hud-limits .lim {
  background: var(--surface-2); border-radius: var(--radius-sm);
  padding: 10px 8px; text-align: center;
}
.hud-limits .lim .n { font-family: var(--font-mono); font-size: 16px; font-weight: 700; }
.hud-limits .lim .k {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 3px;
}

/* Corner-guide diagram */
.corner-diagram svg { width: 100%; height: auto; border-radius: var(--radius); }
.corner-diagram .marker-label {
  font-family: var(--font-mono);
  font-size: 30px; letter-spacing: 0.12em;
  fill: var(--ink-muted);
}
.corner-diagram .marker-label.apex-label { fill: var(--amber); }

/* Notebook mock */
.nb-day {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 16px; margin-bottom: 4px;
}
.nb-chip {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--amber-soft); color: var(--amber);
  border: 1px solid rgba(255,199,41,0.3);
  padding: 4px 10px; border-radius: 999px;
}
.nb-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.nb-spark { margin: 6px 0 14px; }
.nb-spark svg { width: 100%; height: auto; }
.nb-laps { list-style: none; }
.nb-laps li {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 14px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink-muted);
}
.nb-laps li + li { margin-top: 4px; }
.nb-laps .t { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.nb-laps li.pb { background: var(--amber-soft); border: 1px solid rgba(255,199,41,0.25); }
.nb-laps li.pb .t { color: var(--amber); }
.nb-laps .pb-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--amber); }
.nb-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.nb-meta span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-muted);
  background: var(--surface-2); border-radius: 999px; padding: 6px 12px;
}

/* ============================================================================
   Track gallery
   ========================================================================== */
.tracks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.track-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.track-card:hover { border-color: var(--red-line); transform: translateY(-3px); }
.track-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: 14px; }
.track-card h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.005em; line-height: 1.25; }
.track-card .meta {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 6px;
}
.tracks-fine {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-faint);
  margin-top: 28px; text-align: center;
}

/* ============================================================================
   Platforms strip
   ========================================================================== */
.platforms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.platform-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.platform-card .tag {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
}
.platform-card h3 { font-size: 22px; font-weight: 700; margin: 12px 0 10px; letter-spacing: -0.01em; }
.platform-card p { color: var(--ink-muted); font-size: 15px; }
.platforms-fine { font-size: 14px; color: var(--ink-faint); margin: 30px auto 0; max-width: 660px; text-align: center; }

/* ============================================================================
   Pricing
   ========================================================================== */
.price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--red);
  background: linear-gradient(160deg, rgba(250,59,51,0.09), var(--surface) 55%);
}
.price-card .tier {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-muted);
}
.price-card.featured .tier { color: var(--red); }
.price-card .price {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 40px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 4px;
}
.price-card .price .unit { font-size: 15px; color: var(--ink-muted); font-weight: 500; font-family: var(--font-display); }
.price-card .badge {
  position: absolute; top: -11px; right: 18px;
  background: var(--red); color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;
  padding: 6px 12px; border-radius: 999px;
}
.price-card ul { list-style: none; margin-top: 18px; }
.price-card li {
  padding: 8px 0;
  color: var(--ink-muted); font-size: 14.5px;
  display: flex; gap: 11px; align-items: flex-start;
}
.price-card li::before {
  content: "";
  flex: none; margin-top: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red);
}
.price-card.free li::before { background: var(--ink-faint); }
.pricing-fine { font-size: 13px; color: var(--ink-faint); margin: 34px auto 0; max-width: 660px; text-align: center; }

/* ============================================================================
   FAQ — <details>, no JS
   ========================================================================== */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line-soft);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 34px 20px 0;
  font-size: 16.5px; font-weight: 600;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 20px;
  color: var(--red);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-muted); font-size: 15px; padding: 0 0 20px; max-width: 680px; }
.faq details p + p { margin-top: -8px; }
.faq a { color: var(--red); text-decoration: underline; text-decoration-color: var(--red-line); }

/* ============================================================================
   Long-form prose (privacy, terms, support)
   ========================================================================== */
.prose { flex: 1; padding: clamp(52px,7vw,80px) 0 88px; position: relative; }
.prose::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 320px;
  background: radial-gradient(circle at 15% 0%, rgba(250,59,51,0.06), transparent 60%);
  pointer-events: none;
}
.prose .container { max-width: 760px; position: relative; }
.prose .doc-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); display: inline-block; margin-bottom: 16px;
}
.prose h1 { font-size: clamp(32px,4.5vw,46px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 12px; }
.prose .updated { font-family: var(--font-mono); color: var(--ink-faint); font-size: 13px; margin-bottom: 44px; }
.prose h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.012em; margin: 44px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 17px; font-weight: 700; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-muted); font-size: 16px; margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--red); text-decoration: underline; text-decoration-color: var(--red-line); }
.prose .lead { font-size: 18px; color: var(--ink-muted); margin-bottom: 32px; }
.prose .callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius); padding: 20px 24px; margin: 24px 0;
}
.prose .callout p:last-child { margin-bottom: 0; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px; margin-top: 8px; text-align: center;
}
.contact-card .email { font-size: clamp(22px,3vw,30px); font-weight: 700; letter-spacing: -0.01em; }
.contact-card .email a { color: var(--red); text-decoration: none; }
.contact-card .hint { color: var(--ink-faint); font-size: 14px; margin-top: 10px; }

/* ============================================================================
   404
   ========================================================================== */
.lost { flex: 1; display: flex; align-items: center; text-align: center; padding: 80px 0; }
.lost .container { max-width: 620px; }
.lost .code {
  font-family: var(--font-mono); font-size: clamp(70px, 12vw, 120px);
  font-weight: 700; color: var(--red); line-height: 1;
}
.lost h1 { font-size: clamp(24px, 4vw, 34px); font-weight: 700; margin: 18px 0 12px; letter-spacing: -0.02em; }
.lost p { color: var(--ink-muted); margin-bottom: 30px; }

/* ============================================================================
   Footer
   ========================================================================== */
.footer {
  padding: clamp(56px,7vw,72px) 0 36px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 36px; }
.footer .brand { font-size: 21px; font-weight: 700; margin-bottom: 10px; display: inline-flex; align-items: center; gap: 9px; }
.footer .brand .red { color: var(--red); }
.footer .brand .brand-mark { width: 24px; height: 24px; border-radius: 6px; }
.footer p { color: var(--ink-faint); font-size: 14px; max-width: 320px; }
.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 16px;
}
.footer-links a { display: block; padding: 6px 0; color: var(--ink-muted); font-size: 14px; }
.footer-links a:hover { color: var(--red); }
.footer-legal {
  padding-top: 28px; border-top: 1px solid var(--line-soft);
  color: var(--ink-faint); font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-legal .mono { font-family: var(--font-mono); }

/* ============================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .track-panel { order: -1; max-width: 440px; }
  .feature-grid, .feature-grid.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid.reverse .feature-media { order: 0; }
  .props-grid, .price-row { grid-template-columns: 1fr; }
  .platforms-grid { grid-template-columns: 1fr; }
  .tracks-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .site-header nav { gap: 12px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .brand-lockup { font-size: 18px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .track-panel { padding: 18px 16px 14px; }
  .panel-stats .stat { padding: 11px 6px; }
  .panel-stats .stat .n { font-size: 16px; }
  .panel-stats .stat .k { font-size: 9px; letter-spacing: 0.08em; }
  .tracks-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .track-card { padding: 14px 14px 12px; }
  .track-card h3 { font-size: 13px; }
  .track-card .meta { font-size: 9px; }
  .footer-grid { grid-template-columns: 1fr; }
}
