/*
 * Eureka Apps. One stylesheet, no scripts.
 * Order: fonts, tokens, base, primitives, header, home sections, footer,
 * secondary routes, dark theme, breakpoints, motion.
 * Quoted url() values that start with assets/ are fingerprinted and rewritten
 * by scripts/build.mjs.
 */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-latin.34b93c0d18b5.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/geist-mono-latin.7ebe4755b031.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --canvas: #fbfcfe;
  --surface: #ffffff;
  --surface-tint: #f2f5fa;
  --ink: #0a1628;
  --ink-soft: #4b5a70;
  --ink-faint: #5d6b80;
  --line: #e3e9f2;
  --line-strong: #cbd5e3;
  --accent: #075fd8;
  --button: #0a1628;
  --button-hover: #1d2c44;
  --button-ink: #fbfcfe;
  --focus: #075fd8;
  --glow-1: #1a6bff;
  --glow-2: #22c3f6;
  --glow-3: #ffb25c;
  --night: #0b1524;
  --night-ink: #ffffff;
  --night-soft: #c9d6e8;
  --night-line: rgb(255 255 255 / 0.16);
  /* Image panels: hero stage, featured app card, closing band, bento art.
     Pale in light theme to match the light artwork, night in dark theme. */
  --panel: #edf2fb;
  --panel-ink: var(--ink);
  --panel-soft: var(--ink-soft);
  --panel-line: var(--line-strong);
  --panel-focus: var(--focus);
  --panel-button: var(--button);
  --panel-button-hover: var(--button-hover);
  --panel-button-ink: var(--button-ink);
  --panel-ghost-line: var(--line-strong);
  --panel-ghost-hover: rgb(10 22 40 / 0.05);
  --panel-grain: 0.16;
  --tile: #ecf1fa;
  --available: #1f9d61;
  --danger-soft: #fff2cf;
  --danger-ink: #5b3b00;
  --card-shadow: 0 1px 2px rgb(10 22 40 / 0.04), 0 12px 32px -12px rgb(10 22 40 / 0.1);
  --header-fill: rgb(251 252 254 / 0.78);
  --gutter: 40px;
  --frame-pad: 20px;
  --section-space: 144px;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Layer order: content, sticky header (10), keyboard skip link (20). */
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* { box-sizing: border-box; }
html { background: var(--canvas); scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  min-height: 100dvh;
}
main { display: block; overflow-x: clip; position: relative; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: var(--accent); text-decoration-thickness: 0.06em; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 0.12em; }
a:focus-visible, button:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.08; }
h1, h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); text-wrap: balance; }
h3, h4 { font-size: clamp(1.375rem, 1.8vw, 1.75rem); letter-spacing: -0.02em; line-height: 1.2; }
.shell { margin-inline: auto; width: min(100% - 2 * var(--gutter), 1200px); }
.skip-link {
  background: var(--ink);
  border-radius: 10px;
  color: var(--canvas);
  font-weight: 600;
  left: 12px;
  padding: 0.8rem 1rem;
  position: fixed;
  top: 12px;
  transform: translateY(-220%);
  z-index: 20;
}
.skip-link:focus { transform: translateY(0); }
.review-banner {
  background: var(--danger-soft);
  color: var(--danger-ink);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  text-align: center;
}

/* Primitives: mono labels, two-tone headings, buttons, chips. */
.eyebrow, .legal-date, .app-meta, .facts, .footer-title, .app-group-title,
.app-preview figcaption, .chip {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.eyebrow, .legal-date { color: var(--ink-faint); margin-bottom: 20px; }
.tone-soft { color: var(--ink-soft); }
.lead { color: var(--ink-soft); font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); letter-spacing: -0.01em; line-height: 1.5; }
.button, .support-contact > a {
  align-items: center;
  background: var(--button);
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--button-ink);
  display: inline-flex;
  font-size: 0.9375rem;
  font-weight: 550;
  gap: 12px;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  text-decoration: none;
  transition: background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
  white-space: nowrap;
}
.button:hover, .support-contact > a:hover { background: var(--button-hover); }
.button:active, .support-contact > a:active { transform: translateY(1px); }
.button span, .text-link span, .app-link span { display: inline-block; transition: transform 200ms ease; }
.button:hover span, .text-link:hover span { transform: translateX(3px); }
.button:hover .arrow-down, .app-card:hover .app-feature-arrow { transform: translateY(3px); }
.button-small { font-size: 0.875rem; min-height: 44px; padding: 8px 16px; }
.button-secondary { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.button-secondary:hover { background: var(--surface-tint); border-color: var(--ink-faint); }
.button-light { background: var(--panel-button); color: var(--panel-button-ink); }
.button-light:hover { background: var(--panel-button-hover); }
.button-ghost { background: transparent; border-color: var(--panel-ghost-line); color: var(--panel-ink); }
.button-ghost:hover { background: var(--panel-ghost-hover); border-color: var(--panel-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  display: inline-flex;
  gap: 8px;
  padding: 6px 12px;
  white-space: nowrap;
}
.chip-dot { background: var(--glow-3); border-radius: 50%; flex: none; height: 6px; width: 6px; }
.chip-available .chip-dot { background: var(--available); }
.chip-night { border-color: var(--panel-line); color: var(--panel-soft); }
.text-link { align-items: center; display: inline-flex; font-size: 0.9375rem; font-weight: 500; gap: 12px; min-height: 44px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* Floating header. */
.site-header { margin-top: 12px; position: sticky; top: 12px; z-index: 10; }
.header-bar {
  align-items: center;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  gap: 8px;
  min-height: 60px;
  padding: 7px 8px 7px 14px;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-bar {
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    backdrop-filter: blur(16px) saturate(1.4);
    background: var(--header-fill);
  }
}
.brand { align-items: center; color: var(--ink); display: inline-flex; font-weight: 550; gap: 10px; letter-spacing: -0.02em; min-height: 44px; text-decoration: none; white-space: nowrap; }
.brand-mark { aspect-ratio: 1; background: #030812; border-radius: 8px; display: block; flex-shrink: 0; overflow: hidden; position: relative; width: 32px; }
.brand-mark img { left: -45.59%; max-width: none; position: absolute; top: -29.41%; width: 188.24%; }
.brand-name { font-size: 1rem; }
.primary-nav { align-items: center; display: flex; gap: 4px; margin-left: auto; }
.primary-nav a {
  align-items: center;
  border-radius: 10px;
  color: var(--ink-soft);
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 500;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding-inline: 12px;
  text-decoration: none;
  transition: color 200ms ease;
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; }
.header-cta { margin-left: 8px; }

/* Home: visible frame and section rhythm. */
.home main::before {
  border-inline: 1px solid var(--line);
  content: "";
  display: none;
  inset-block: 0;
  left: 50%;
  pointer-events: none;
  position: absolute;
  transform: translateX(-50%);
  width: calc(min(100% - 2 * var(--gutter), 1200px) + 2 * var(--frame-pad));
}
.section { padding-block: calc(var(--section-space) / 2); position: relative; }
.section::before, .facts-band::before, .facts-band::after {
  border-top: 1px solid var(--line);
  content: "";
  inset-inline: calc(-1 * var(--frame-pad));
  position: absolute;
  top: 0;
}
.facts-band + .section::before { display: none; }
.section-head { margin-bottom: 56px; max-width: 880px; }

/* Hero. */
.hero { align-items: center; display: grid; gap: 24px; grid-template-columns: repeat(12, minmax(0, 1fr)); padding-block: 44px 56px; }
.hero-copy { grid-column: span 7; }
.hero h1 { font-size: clamp(2.75rem, 5.9vw, 5.25rem); letter-spacing: -0.045em; line-height: 1; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 28px; max-width: 34em; }
.hero .actions { margin-top: 32px; }
.stage {
  --focus: #9bc8ff;
  background: var(--panel);
  border-radius: 32px;
  grid-column: span 5;
  isolation: isolate;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}
.stage::after, .closing::after {
  background-image: url("/assets/grain.5ce7cab34992.png");
  background-size: 128px;
  content: "";
  inset: 0;
  opacity: var(--panel-grain);
  pointer-events: none;
  position: absolute;
  z-index: 3;
}
.stage-art { height: 100%; inset: 0; object-fit: cover; object-position: 50% 45%; position: absolute; width: 100%; }
.light-field {
  background:
    radial-gradient(38% 34% at 72% 24%, rgb(26 107 255 / 0.85), transparent 72%),
    radial-gradient(30% 30% at 84% 74%, rgb(34 195 246 / 0.6), transparent 70%),
    radial-gradient(16% 16% at 58% 56%, rgb(255 178 92 / 0.55), transparent 72%),
    conic-gradient(from 210deg at 66% 46%, transparent 0 36%, rgb(26 107 255 / 0.03) 41%, rgb(26 107 255 / 0.12) 47%, rgb(26 107 255 / 0.26) 54%, rgb(26 107 255 / 0.3) 58%, rgb(34 195 246 / 0.18) 66%, rgb(34 195 246 / 0.06) 73%, transparent 81%);
  inset: -18%;
  mix-blend-mode: screen;
  opacity: 0.6;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}
.phone {
  --phone-width: 248px;
  aspect-ratio: 1290 / 2796;
  background: #05080f;
  border: 10px solid #05080f;
  border-radius: calc(var(--phone-width) * 0.13);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.16), 0 28px 60px -20px rgb(0 0 0 / 0.7);
  display: block;
  overflow: hidden;
  position: relative;
  width: var(--phone-width);
}
/* The pale fill is the app's own canvas, so a screen that has not loaded yet
   is a blank screen, not a black slab. */
.phone img { background: #f4f6fb; height: 100%; object-fit: cover; object-position: top; width: 100%; }
.phone-island { background: #05080f; border-radius: 999px; height: 3.4%; left: 50%; position: absolute; top: 2.2%; transform: translateX(-50%); width: 30%; z-index: 1; }
.stage-phones .phone { left: 50%; position: absolute; top: 9%; z-index: 2; }
.stage-phones .phone-front { --phone-width: 280px; transform: translateX(-56%) rotate(-6deg); }
.stage-phones .phone-back { --phone-width: 280px; transform: translateX(-12%) rotate(8deg) scale(0.85); z-index: 1; }

/* Facts line. */
.facts-band { position: relative; }
.facts-band::after { bottom: 0; top: auto; }
.facts { color: var(--ink-faint); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; padding: 0; }
.facts li { padding: 22px 20px; text-align: center; }
.facts li + li { border-left: 1px solid var(--line); }

/* Portfolio. */
.app-card { border-radius: 24px; overflow: hidden; position: relative; }
.app-link::after { content: ""; inset: 0; position: absolute; z-index: 4; }
.app-meta { color: var(--ink-faint); }
.app-icon { border: 1px solid rgb(255 255 255 / 0.12); border-radius: 22%; flex: none; height: 44px; width: 44px; }
.app-feature {
  --focus: var(--panel-focus);
  background: var(--panel);
  color: var(--panel-ink);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 480px;
}
.app-copy { align-items: flex-start; display: flex; flex-direction: column; min-width: 0; padding: 48px; }
.app-feature .app-icon { height: 64px; margin-bottom: 24px; width: 64px; }
.app-feature .app-meta { color: var(--panel-soft); margin-top: 20px; }
.app-feature h3 { font-size: clamp(2.5rem, 4.4vw, 4rem); letter-spacing: -0.04em; line-height: 1.02; margin-block: 14px 16px; overflow-wrap: anywhere; }
.app-feature .app-goal { color: var(--panel-ink); font-size: 1.1875rem; line-height: 1.5; max-width: 30ch; }
.app-feature .app-link { align-items: center; color: inherit; display: inline-flex; font-size: 0.9375rem; font-weight: 550; gap: 12px; margin-top: auto; min-height: 44px; padding-top: 24px; text-underline-offset: 4px; }
.app-feature:hover .app-link span { transform: translateY(3px); }
.app-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: auto; padding-top: 32px; }
.app-actions .app-link { margin-top: 0; padding-top: 0; }
/* The card is one stretched link; the store button sits above it. */
.app-store-link { position: relative; z-index: 5; }
.app-artwork { overflow: hidden; position: relative; }
.app-artwork img { height: 100%; object-fit: cover; object-position: 58% 65%; transition: transform 600ms ease; width: 100%; }
.app-feature .app-artwork > img, .app-feature .app-artwork > picture > img { inset: 0; object-position: 100% 55%; position: absolute; }
.app-feature .app-artwork::before { background: linear-gradient(90deg, var(--panel), transparent); content: ""; inset: 0 auto 0 0; position: absolute; width: 28%; z-index: 1; }
.app-card:hover .app-artwork > img, .app-card:hover .app-artwork > picture > img { transform: scale(1.03); }
.app-screens { align-items: flex-end; bottom: -64px; display: flex; gap: 0; position: absolute; right: 32px; z-index: 2; }
.app-screens .phone { --phone-width: 200px; border-width: 8px; margin-left: -56px; }
.app-screens .phone:nth-child(2) { margin-bottom: 24px; }
.app-screens .phone:nth-child(3) { margin-bottom: 48px; }
.app-screens .phone:first-child { margin-left: 0; }
.app-artwork-screens::before { display: none; }
.app-artwork-screens .light-field { inset: -30% -10% -30% 0; opacity: 0.45; }
.app-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
.app-group { margin-top: 56px; }
.app-group-title { border-bottom: 1px solid var(--line); color: var(--ink-faint); padding-bottom: 14px; }
.app-compact {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  container-type: inline-size;
  transition: border-color 200ms ease, transform 200ms ease;
}
.app-compact:hover { border-color: var(--ink-faint); transform: translateY(-2px); }
.app-compact .app-artwork { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--app-a), var(--app-b) 60%, var(--app-c)); }
.app-body { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.app-heading { align-items: center; display: flex; gap: 12px; }
.app-heading h3, .app-heading h4 { flex: 1; font-size: 1.375rem; min-width: 0; overflow-wrap: anywhere; }
.app-heading .app-link { color: var(--ink); text-decoration: none; }
.app-heading .app-link:hover { text-decoration: underline; }
.app-compact .app-goal { color: var(--ink-soft); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.app-compact .app-meta { border-top: 1px solid var(--line); margin-top: auto; padding-top: 14px; }
@container (min-width: 720px) {
  .app-compact .app-artwork { aspect-ratio: auto; float: left; height: 100%; min-height: 260px; width: 44%; }
  .app-compact .app-body { margin-left: 44%; min-height: 260px; padding: 32px; }
}
.theme-dmv { --app-a: #1a6bff; --app-b: #22c3f6; --app-c: #ffb25c; }

/* Inside the first app: bento grid. */
.bento { display: grid; gap: 24px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento-card {
  background: var(--surface-tint);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  grid-column: span 4;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  padding: 32px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.bento-card:hover { border-color: var(--ink-faint); transform: translateY(-2px); }
.bento-card h3 { margin-bottom: 12px; }
.bento-card p { color: var(--ink-soft); max-width: 46ch; }
.bento-card p + p { margin-top: 12px; }
.bento-practice { grid-column: span 7; min-height: 440px; }
.bento-signs { grid-column: span 5; }
.app-preview { align-items: flex-end; display: flex; gap: 20px; justify-content: space-between; margin-bottom: -32px; min-width: 0; }
.app-preview figcaption { color: var(--ink-faint); flex: none; order: -1; padding-bottom: 32px; white-space: nowrap; }
.practice-preview { display: block; height: auto; margin-inline: auto 0; width: min(100%, 360px); }
.bento-art { background: var(--tile); border-radius: 18px; flex: 1 0 auto; min-height: 200px; overflow: hidden; position: relative; }
.bento-art img { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); aspect-ratio: 1; height: 100%; inset: 0; margin: auto; mask-image: radial-gradient(closest-side, #000 72%, transparent); max-height: 320px; object-fit: contain; position: absolute; width: auto; }
.bento-shot img { -webkit-mask-image: none; aspect-ratio: auto; border-radius: 14px 14px 0 0; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -24px rgb(10 22 40 / 0.4); height: calc(100% - 20px); inset: 20px 20px 0; margin: 0; mask-image: none; max-height: none; object-fit: cover; object-position: top; width: calc(100% - 40px); }
.bento-shot { min-height: 260px; }
.bento .language-pair { font-size: clamp(2.25rem, 3.6vw, 3.25rem); letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 16px; }
.language-pair [lang] { display: block; }
.language-slash { color: var(--ink-faint); }
.bento-privacy a { color: var(--accent); }
.dmv-notes { align-items: center; border-block: 1px solid var(--line); display: flex; gap: 24px 48px; justify-content: space-between; margin-top: 24px; padding-block: 20px; }
.dmv-notes p { color: var(--ink-soft); max-width: 70ch; }
.dmv-notes .text-link { flex: none; }

/* Approach. */
.approach .section-head { margin-bottom: 24px; }
.approach-note { max-width: 60ch; }
.approach-kinds { display: grid; gap: 32px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin-top: 56px; padding: 0; }
.approach-kinds li { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.approach-kinds h3 { margin-bottom: 8px; }
.approach-kinds p { color: var(--ink-soft); max-width: 34ch; }

/* Closing band. */
.app-feature, .stage { border: 1px solid var(--line); }
/* Full width and night in both themes: the page's one dark moment. Its
   background is the dark ribbon render's own edge colour. */
.closing {
  --panel: #020817;
  --panel-ink: var(--night-ink);
  --panel-soft: var(--night-soft);
  --panel-line: var(--night-line);
  --panel-focus: #9bc8ff;
  --panel-button: #ffffff;
  --panel-button-hover: #dfe9f7;
  --panel-button-ink: var(--night);
  --panel-ghost-line: rgb(255 255 255 / 0.32);
  --panel-ghost-hover: rgb(255 255 255 / 0.1);
  --panel-grain: 0.5;
  --focus: var(--panel-focus);
  background: var(--panel);
  border-block: 1px solid var(--line);
  color: var(--panel-ink);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}
.closing-art {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
  height: 100%;
  inset: 0 0 0 auto;
  mask-image: linear-gradient(90deg, transparent, #000 55%);
  object-fit: cover;
  object-position: 78% 55%;
  opacity: 0.85;
  position: absolute;
  width: 68%;
}
.closing .light-field { inset: 10% -12% -30% 36%; }
.closing-copy { padding-block: 112px; position: relative; z-index: 4; }
.closing h2 { margin-block: 24px 36px; max-width: 12em; }
/* Between 640 and 767 px the ribbon runs behind the second button, so it
   carries its own night fill instead of relying on what is behind it. */
.closing .button-ghost { background: rgb(2 8 23 / 0.78); }
.closing .button-ghost:hover { background: rgb(24 36 60 / 0.9); }

/* Footer. */
.site-footer { background: var(--surface-tint); overflow: hidden; padding-top: 80px; }
.footer-grid { display: grid; gap: 48px 24px; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); padding-bottom: 64px; }
.footer-about p { color: var(--ink-soft); font-size: 0.9375rem; margin-top: 12px; }
.footer-nav { display: grid; gap: 32px 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer-title { color: var(--ink-faint); margin-bottom: 8px; padding-block: 12px; }
.footer-column ul { list-style: none; padding: 0; }
.footer-column a, .footer-meta a { align-items: center; color: var(--ink); display: inline-flex; font-size: 0.9375rem; min-height: 44px; min-width: 44px; text-decoration: none; }
.footer-column a:hover, .footer-meta a:hover { text-decoration: underline; }
.footer-meta { align-items: center; border-block: 1px solid var(--line); color: var(--ink-soft); display: flex; flex-wrap: wrap; font-size: 0.875rem; gap: 4px 24px; justify-content: space-between; min-height: 64px; }
.footer-wordmark {
  color: var(--line);
  font-size: clamp(6rem, 22vw, 20rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.8;
  margin-bottom: -0.11em;
  margin-top: 32px;
  pointer-events: none;
  text-align: center;
  user-select: none;
  white-space: nowrap;
}
.footer-wordmark::before { content: "Eureka"; }

/* Secondary routes. Their main HTML is approval-bound; this is CSS only. */
.legal-hero, .support-hero, .not-found { isolation: isolate; position: relative; }
.legal-hero::before, .support-hero::before, .not-found::before {
  background:
    radial-gradient(40% 40% at 60% 40%, var(--glow-1), transparent 70%),
    radial-gradient(32% 32% at 78% 62%, var(--glow-2), transparent 70%),
    radial-gradient(18% 18% at 46% 66%, var(--glow-3), transparent 70%);
  content: "";
  height: 520px;
  opacity: 0.08;
  pointer-events: none;
  position: absolute;
  right: -120px;
  top: -140px;
  width: 720px;
  z-index: -1;
}
.legal-hero, .support-hero { padding-block: 88px 64px; }
.legal-hero h1, .support-hero h1 { margin-bottom: 24px; max-width: 18ch; }
.legal-hero > p:not(.legal-date), .support-hero > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.125rem; max-width: 62ch; }
.legal-content { padding-bottom: 104px; }
.legal-content section { border-top: 1px solid var(--line); display: grid; gap: 16px 72px; grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr); padding-block: 36px; }
.legal-content h2 { font-size: 1.375rem; letter-spacing: -0.02em; line-height: 1.3; }
.legal-content p, .legal-content ul { color: var(--ink-soft); grid-column: 2; margin: 0; max-width: 67ch; overflow-wrap: anywhere; }
.legal-content ul { padding-left: 22px; }
.legal-content li + li { margin-top: 10px; }
.review-required { background: var(--danger-soft); border-radius: 4px; box-decoration-break: clone; color: var(--danger-ink); font-weight: 600; padding: 0.12rem 0.28rem; }
.support-contact { align-items: center; display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 28px; }
.support-contact p { color: var(--ink-soft); font-size: 0.8125rem; }
.support-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 24px; }
.support-grid article { background: var(--surface-tint); border: 1px solid var(--line); border-radius: 24px; padding: 32px; }
.support-grid h2 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.support-grid p { color: var(--ink-soft); overflow-wrap: anywhere; }
.support-note { border: 1px solid var(--line-strong); border-radius: 24px; margin-bottom: 104px; padding: 32px; }
.support-note h2 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 14px; }
.support-note p { color: var(--ink-soft); max-width: 65ch; }
.not-found { min-height: 68dvh; padding-block: 120px; }
.not-found::before { height: 620px; opacity: 0.16; right: -60px; top: -80px; width: 860px; }
.not-found h1 { margin-bottom: 24px; max-width: 15ch; }
.not-found > p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.0625rem; margin-bottom: 32px; }

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #070d18;
    --surface: #0d1626;
    --surface-tint: #111d30;
    --ink: #eef3fb;
    --ink-soft: #a3b2c7;
    --ink-faint: #8494ab;
    --line: #1f2c40;
    --line-strong: #32435c;
    --accent: #82b9ff;
    --button: #eef3fb;
    --button-hover: #ffffff;
    --button-ink: #070d18;
    --focus: #9bc8ff;
    --danger-soft: #302810;
    --danger-ink: #f2d386;
    --card-shadow: none;
    --header-fill: rgb(7 13 24 / 0.78);
    --panel: var(--night);
    --panel-ink: var(--night-ink);
    --panel-soft: var(--night-soft);
    --panel-line: var(--night-line);
    --panel-focus: #9bc8ff;
    --panel-button: #ffffff;
    --panel-button-hover: #dfe9f7;
    --panel-button-ink: var(--night);
    --panel-ghost-line: rgb(255 255 255 / 0.32);
    --panel-ghost-hover: rgb(255 255 255 / 0.1);
    --panel-grain: 0.5;
    --tile: #0d1729;
  }
  .legal-hero::before, .support-hero::before { opacity: 0.14; }
  .not-found::before { opacity: 0.24; }
}

@media (min-width: 768px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-grid > :last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 1100px) {
  .home main::before { display: block; }
  .app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .app-grid > :last-child:nth-child(3n + 1) { grid-column: span 3; }
  .app-grid > :last-child:nth-child(3n + 2) { grid-column: span 2; }
}
@media (min-width: 1360px) {
  :root { --frame-pad: 40px; }
}
@media (max-width: 1099px) {
  :root { --gutter: 24px; --frame-pad: 0px; --section-space: 104px; }
  .bento-card { padding: 28px; }
  .app-preview { margin-bottom: -28px; }
  .app-copy { padding: 36px; }
  .closing-copy { padding-block: 88px; }
}
@media (max-width: 1023px) {
  .hero { padding-block: 36px 48px; }
  .hero-copy, .stage { grid-column: 1 / -1; }
  .stage { aspect-ratio: 16 / 10; min-height: 0; }
  .app-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bento-practice, .bento-signs { grid-column: span 12; }
  .bento-practice { min-height: 0; }
  .bento-card { grid-column: span 6; }
  .bento-privacy { grid-column: span 12; }
}
@media (max-width: 899px) {
  .legal-content section { gap: 16px 32px; grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .approach-kinds { grid-template-columns: minmax(0, 1fr); }
  .dmv-notes { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 767px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 16px 12px; }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .app-feature { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-feature .app-artwork { aspect-ratio: 16 / 10; }
  .app-feature .app-artwork::before { background: linear-gradient(180deg, var(--panel), transparent); height: 28%; inset: 0 0 auto; width: auto; }
  .app-feature .app-artwork-screens { aspect-ratio: auto; height: 300px; }
  .app-screens { right: 16px; }
  .app-screens .phone { --phone-width: 132px; border-width: 6px; margin-left: -40px; }
}
@media (max-width: 639px) {
  :root { --gutter: 20px; --section-space: 80px; }
  html { scroll-padding-top: 88px; }
  .primary-nav .nav-wide, .header-cta { display: none; }
  .header-bar { padding-inline: 10px 4px; }
  .brand { gap: 8px; }
  .brand-mark { width: 28px; }
  .brand-name { font-size: 0.9375rem; }
  .primary-nav { gap: 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-block: 28px 40px; }
  .hero h1 { font-size: clamp(2.25rem, 11.2vw, 2.75rem); }
  .hero .lead { margin-top: 20px; }
  .hero .actions { margin-top: 24px; }
  .stage { aspect-ratio: 4 / 5; border-radius: 24px; }
  .stage-phones .phone-front, .stage-phones .phone-back { --phone-width: 216px; border-width: 8px; }
  .app-card, .bento-card, .support-grid article, .support-note { border-radius: 20px; }
  .app-copy { padding: 24px; }
  .app-feature h3 { font-size: 2.5rem; }
  .app-feature .app-goal { font-size: 1.0625rem; }
  .bento { gap: 16px; }
  .bento-card { gap: 24px; grid-column: span 12; padding: 24px; }
  .app-preview { align-items: stretch; flex-direction: column; gap: 12px; margin-bottom: -24px; }
  .app-preview figcaption { padding-bottom: 0; }
  .practice-preview { margin-inline: auto; width: min(100%, 320px); }
  .bento-art { min-height: 180px; }
  .bento-shot { min-height: 240px; }
  .approach-kinds { margin-top: 40px; }
  .closing-copy { padding-block: 64px; }
  .closing-art { opacity: 0.38; width: 100%; }
  .site-footer { padding-top: 56px; }
  .footer-grid { padding-bottom: 40px; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-hero, .support-hero { padding-block: 56px 40px; }
  .legal-hero > p:not(.legal-date), .support-hero > p:not(.eyebrow) { font-size: 1rem; }
  .legal-content { padding-bottom: 56px; }
  .legal-content section { display: block; padding-block: 28px; }
  .legal-content h2 { margin-bottom: 18px; }
  .legal-content p + p, .legal-content ul + p, .legal-content p + ul { margin-top: 16px; }
  .support-grid { gap: 16px; grid-template-columns: minmax(0, 1fr); }
  .support-grid article, .support-note { padding: 24px; }
  .support-note { margin-bottom: 64px; }
  .not-found { padding-block: 72px; }
}
@media (max-width: 359px) {
  .header-bar { gap: 2px; padding-left: 8px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 0.875rem; }
  .primary-nav a { font-size: 0.8125rem; padding-inline: 8px; }
  .actions .button { width: 100%; }
}

/* Motion. Everything here is decorative; content never depends on it.
   The light field is soft gradients moved by transform only; a blur() filter
   on it cost about 500 ms of main-thread paint, so none is used. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .light-field { animation: light-drift 28s ease-in-out infinite alternate; }
  @supports (animation-timeline: view()) {
    .section-head, .app-card, .bento-card, .approach-kinds, .approach-note, .closing-copy {
      animation: reveal linear both;
      animation-range: entry 0% entry 40%;
      animation-timeline: view();
    }
    .stage-phones .phone-front {
      animation: phone-rise linear both;
      animation-range: exit 0% exit 100%;
      animation-timeline: view();
    }
  }
}
@keyframes light-drift {
  from { transform: translate3d(-3%, 2%, 0) rotate(-6deg) scale(1); }
  to { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); }
}
@keyframes reveal {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes phone-rise {
  to { translate: 0 -40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
