:root {
  --bg: #07080B;
  --raised: #12141A;
  --overlay: #1B1E26;
  --hairline: #252934;
  --strong: #343946;
  --ink: #F3F4F6;
  --ink2: #A6ACB8;
  --muted: #7F8695;
  --mark: #D4A373;
  --signal: #F5A623;
  --alert: #E56B55;
  --ok: #68C987;
  --sans: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --signal-wash: rgba(245, 166, 35, 0.12);
  --positive: var(--ok);
  --danger: var(--alert);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; max-width: 100%; }
main { flex: 1; }

a { color: var(--mark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 600; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; }
h3 { font-size: clamp(18px, 2.2vw, 22px); }
p { margin: 0 0 16px; color: var(--ink2); }

/* Sticky Glass Header */
.top-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 8, 11, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.top {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-fox { display: inline-flex; align-items: center; justify-content: center; }
.brand-fox svg { display: block; }
nav[aria-label="Primary"], .top-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
nav[aria-label="Primary"] a, .top-nav a {
  color: var(--ink2);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
/* The phone menu button. It shows only with scripts on (the "js" class); the media query below lays it out. */
.nav-toggle { display: none; }
nav[aria-label="Primary"] a:hover, .top-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}
nav a.nav-cta, .top-cta {
  background: var(--overlay);
  color: var(--ink) !important;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--strong);
  font-weight: 500;
  transition: border-color 150ms, background 150ms !important;
}
nav a.nav-cta:hover, .top-cta:hover {
  border-color: var(--mark);
  background: var(--raised);
}

/* De-Claudified Eyebrow & Badges */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mark);
  background: var(--raised);
  border: 1px solid var(--hairline);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

/* Buttons */
.btn, .button {
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 150ms, transform 150ms;
}
.btn:hover, .button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-ghost, a.link {
  background: var(--raised);
  color: var(--ink) !important;
  border: 1px solid var(--strong);
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 150ms, background 150ms;
}
.btn-ghost:hover, a.link:hover {
  border-color: var(--mark);
  background: var(--overlay);
  text-decoration: none;
}

/* Base Sections */
section {
  padding: clamp(56px, 8vw, 96px) 20px;
  max-width: 1040px;
  margin: 0 auto;
  width: 100%;
}

/* Hero Section */
.hero {
  padding-top: clamp(36px, 6vw, 64px);
  padding-bottom: clamp(64px, 10vw, 100px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
}
.hero .lede {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--ink2);
  margin: 0 0 28px;
  max-width: 48ch;
}
.cta-row, .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.meta, .hero-note {
  font-size: 13px;
  color: var(--muted);
}
.hero-note a, .meta a { color: var(--mark); }

/* Hero Phone Col & Glow */
.phone-col, .stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.phone-col::before, .stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 115, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Hero Phone Mockup */
.phone {
  text-align: left;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 19.5;
  background: var(--bg);
  border: 1.5px solid var(--strong);
  border-radius: 40px;
  padding: 20px 18px 18px;
  box-shadow: 0 28px 64px -16px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Stage Clock Top Bar */
.clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 10px;
}
.clock-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.clock b {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.05;
}
.clock span {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
}
.clock-plan {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
}

.stage-mid {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Reminder card (the Stage shows the next open reminder, as StageReminder in HomeScreen.kt) */
.next-wrap, .next {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 14px 14px;
  margin: 0;
}
.next-col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.next-label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  color: var(--ink2);
  text-transform: none;
}
.next-title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}
.ring {
  width: 24px;
  height: 24px;
  border: 2px solid var(--ink2);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 150ms, border-color 150ms;
}
.ring.checked {
  background: var(--ok);
  border-color: var(--ok);
}

/* The bottom sheet: answers and cards rise from the bottom (Sheet in HomeScreen.kt) */
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 56px;
  z-index: 1;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 10px 18px 44px;
  visibility: hidden;
  transform: translateY(40%);
  opacity: 0;
  transition: transform 260ms cubic-bezier(.2,.9,.3,1), opacity 200ms, visibility 0s 260ms;
}
.sheet.up { visibility: visible; transform: none; opacity: 1; transition: transform 260ms cubic-bezier(.2,.9,.3,1), opacity 200ms; }
.grab { display: block; width: 34px; height: 4px; border-radius: 99px; background: var(--strong); margin: 0 auto 12px; }
.ask-chip {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--overlay);
  border: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--ink2);
}
.ask-chip:empty { display: none; }
.sheet-body { font-size: 15px; line-height: 1.5; color: var(--ink); }
.sheet-body .s-title { font-size: 19px; font-weight: 600; line-height: 1.25; margin: 0 0 4px; }
.sheet-body .s-line { margin: 0 0 6px; }
.sheet-body .s-sub { color: var(--ink2); }
.sheet-body .s-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--ink2); font-weight: 500; }
.sheet-body .s-go { background: #F3F4F6; color: #07080B; border-radius: 13px; padding: 9px 16px; font-weight: 600; }
.s-rows { margin-top: 8px; }
.sheet-body .s-sub { color: var(--ink2); font-size: 14px; line-height: 1.4; margin: 0 0 10px; }
.s-opts { display: grid; gap: 8px; }
.s-opt { background: var(--overlay); border: 1px solid var(--hairline); border-radius: 14px; padding: 10px 14px; font-size: 14px; line-height: 1.3; transition: background 180ms, border-color 180ms; }
.s-opt.picked { border-color: var(--signal); background: var(--signal-wash); }
.s-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px 10px 6px; border-bottom: 1px solid var(--hairline); transition: opacity 220ms, max-height 260ms, padding 260ms; max-height: 64px; overflow: hidden; }
.s-row.gone { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; }
.s-row i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink2); flex: none; font-style: normal; }
.s-row.tick i { background: var(--ok); border-color: var(--ok); }
.undo-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding: 11px 14px; border-radius: 16px; background: var(--overlay); border: 1px solid var(--hairline); font-size: 13px; color: var(--ink); }
.undo-bar[hidden] { display: none; }
.undo-bar b { font-weight: 600; }
.phone.has-card .clock, .phone.has-card .rest { opacity: 0.3; }
.phone .clock { transition: opacity 200ms; }

/* Pills: one suggestion under the reminder (Suggestion in HomeScreen.kt) */
.pills, .chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  margin: 6px 0 0;
}
.pill {
  display: none;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  text-align: left;
  background: var(--raised);
  border: 1px solid var(--hairline);
  color: var(--ink2);
  padding: 9px 14px;
  border-radius: 22px;
  font: 13px/1.3 var(--sans);
  cursor: pointer;
  transition: border-color 150ms, color 150ms, background 150ms;
}
.pill.active { display: flex; }
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mark);
  flex-shrink: 0;
}
.pill-text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill:hover { border-color: var(--strong); color: var(--ink); background: var(--overlay); }

/* Mini Shelf: Phone, Messages, and 3 most recently used apps anchored right above Dock */
.shelf-mini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  margin-top: auto;
  padding: 8px 0 10px;
}
.shelf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--muted);
}
.shelf-disc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--overlay);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink2);
}
.shelf-disc .mono { font-style: normal; font-size: 15px; font-weight: 500; color: var(--ink2); line-height: 1; }
.shelf-disc svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink2);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.app-badge {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 26%;
  background: var(--c, #3E63DD);
  font-style: normal;
}
.app-badge::after {
  content: "";
  width: 44%;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.92);
}
.app-badge.g1::after { border-radius: 50%; }
.app-badge.g2::after { border-radius: 22%; }
.app-badge.g3::after { aspect-ratio: 2.2; border-radius: 99px; }

/* Dock: full-width bottom bar with circular keyboard/recent buttons & central fox perch */
.dock {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0 -18px -18px;
  padding: 10px 26px 14px;
  background: var(--raised);
  border-top: 1px solid var(--hairline);
  border-radius: 24px 24px 0 0;
}
.dock-round {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--overlay);
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
}
.dock-round:first-child { justify-self: start; }
.dock-round:last-child { justify-self: end; }
.dock-round .i-close { display: none; }
.phone.has-card .dock-round .i-clock { display: none; }
.phone.has-card .dock-round .i-close { display: block; }
.dock-round svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink2);
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fox-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 163, 115, 0.4);
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  justify-self: center;
  transition: border-color 150ms, transform 150ms;
}
.fox-btn [data-fox] {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}
.fox-btn [data-fox] svg {
  display: block;
  transform: translateY(-5.6%);
}
.fox-btn:hover {
  border-color: var(--mark);
}

.heard {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 62%;
  min-height: 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  pointer-events: none;
  transition: color 150ms;
}
.heard.live { color: var(--ink); }
.rest {
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: opacity 200ms ease;
}
.rest.hidden {
  opacity: 0;
  pointer-events: none;
}
.caption, .stage figcaption {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink2);
  max-width: 320px;
}

/* Canvas Puff & Fox */
.puff { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 10; }
.fox { display: block; overflow: visible; color: var(--mark); transition: color 250ms; }
.phone > .fox {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  transform-origin: 50% 100%;
  will-change: transform;
  z-index: 5;
}
.brand-fox .fox, .mini .fox, .r-fox .fox {
  position: static;
  width: 100%;
  height: 100%;
  transform: none;
}

/* Problem Section */
.problem-points, .cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 28px;
}
.problem-points > div, .cards article, .feat, .step, .quote, .tier, .plan, .faq-item {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--raised);
  padding: 24px;
}
.problem-points h3, .cards h3, .feat h3, .step h3, .tier h3, .plan h3 {
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ink);
}
.problem-points p, .cards p, .feat p, .step p, .tier p, .plan p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: var(--ink2);
}

/* Race Section */
.race {
  --badge: #FF3B30;
}
.race .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 48px);
  margin-top: 28px;
}
.race .side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cphone {
  position: relative;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 9 / 19.5;
  border: 1.5px solid var(--strong);
  border-radius: 36px;
  overflow: hidden;
  container-type: inline-size;
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.7);
  background: var(--bg);
}
.grid-phone {
  background: linear-gradient(160deg, #1C1E2C, #251B2E 55%, #2B1D1A);
}
.status { position: absolute; top: 3.5cqw; left: 8cqw; font-size: 4.2cqw; color: #fff; font-weight: 600; }
.search { position: absolute; top: 14cqw; left: 7cqw; right: 7cqw; height: 9cqw; border-radius: 99px; background: rgba(255,255,255,0.18); }
.apps { position: absolute; top: 30cqw; left: 6cqw; right: 6cqw; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 7cqw; column-gap: 4cqw; }
.dock-row { position: absolute; bottom: 6cqw; left: 6cqw; right: 6cqw; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 4cqw; padding: 3cqw; border-radius: 7cqw; background: rgba(255,255,255,0.14); }
.app { position: relative; display: grid; justify-items: center; gap: 1.6cqw; }
.app i { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 26%; background: var(--c, #3E63DD); }
.app i::after { content: ""; width: 42%; aspect-ratio: 1; background: rgba(255,255,255,0.92); }
.app.g1 i::after { border-radius: 50%; }
.app.g2 i::after { border-radius: 22%; }
.app.g3 i::after { aspect-ratio: 2.2; border-radius: 99px; }
.app em { font-style: normal; font-size: 3.1cqw; color: rgba(255,255,255,0.92); white-space: nowrap; }
.dock-row .app em { display: none; }
.badge { position: absolute; top: -1.6cqw; right: -1.6cqw; z-index: 1; min-width: 5.4cqw; height: 5.4cqw; padding: 0 1.3cqw; border-radius: 99px; background: var(--badge); color: #fff; font: 600 3.3cqw/5.4cqw var(--sans); text-align: center; box-shadow: 0 0 0 0.6cqw rgba(0,0,0,0.25); }
.c1{--c:#E5484D} .c2{--c:#3E63DD} .c3{--c:#30A46C} .c4{--c:#F76B15} .c5{--c:#0090FF} .c6{--c:#D6409F} .c7{--c:#12A594} .c8{--c:#8E4EC6} .c9{--c:#FFB224} .c10{--c:#E54666}

/* Race Stage Phone — Matches Hero Stage Phone */
.race-stage {
  display: flex;
  flex-direction: column;
  padding: 0;
}
.stage-clock {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 5.5cqw 5.5cqw 2.5cqw;
}
.stage-clock-left {
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
}
.stage-clock b {
  font-size: 7.2cqw;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.05;
}
.stage-clock span {
  font-family: var(--sans);
  font-size: 3.8cqw;
  font-weight: 500;
  color: var(--muted);
}
.stage-plan-pill {
  font-family: var(--sans);
  font-size: 3.8cqw;
  font-weight: 500;
  color: var(--ink);
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 1.6cqw 3.8cqw;
}
.stage-next {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 5cqw;
  padding: 4cqw;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 3.4cqw;
  width: 100%;
}
.stage-next-col { display: flex; flex-direction: column; gap: 1cqw; min-width: 0; }
.stage-next small {
  display: inline-flex;
  align-items: center;
  gap: 2.2cqw;
  font-family: var(--sans);
  font-size: 3.5cqw;
  font-weight: 400;
  color: var(--ink2);
  text-transform: none;
}
.stage-next-row {
  display: flex;
  align-items: center;
  gap: 3.4cqw;
}
.stage-ring {
  width: 7.2cqw;
  height: 7.2cqw;
  border-radius: 50%;
  border: 1.8px solid var(--ink2);
  flex-shrink: 0;
}
.stage-next span {
  font-size: 5.6cqw;
  font-weight: 500;
  color: var(--ink);
}
.stage-pill {
  display: flex;
  align-items: center;
  gap: 2.4cqw;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3cqw 4.2cqw;
  font-size: 4cqw;
  color: var(--ink2);
  align-self: center;
  max-width: 100%;
}
.stage-pill-dot {
  width: 2cqw;
  height: 2cqw;
  border-radius: 50%;
  background: var(--mark);
  flex-shrink: 0;
}
.stage-pill-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stage-pill-next {
  font-size: 3.4cqw;
  font-weight: 500;
  color: var(--muted);
  background: var(--overlay);
  border-radius: 3.2cqw;
  padding: 0.9cqw 2.2cqw;
}
.race-shelf {
  width: 100%;
  gap: 1.8cqw;
  padding: 2.5cqw 0 3.2cqw;
}
.race-shelf .shelf-item {
  font-size: 3.4cqw;
  gap: 1.5cqw;
}
.race-shelf .shelf-disc {
  width: 12.5cqw;
  height: 12.5cqw;
}
.race-shelf .shelf-disc svg {
  width: 5.6cqw;
  height: 5.6cqw;
}
.race-shelf .shelf-disc .mono { font-size: 5cqw; }
.r-dock {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin: 0;
  padding: 3.2cqw 8cqw 4.2cqw;
  background: var(--raised);
  border-top: 1px solid var(--hairline);
  border-radius: 7.5cqw 7.5cqw 0 0;
}
.r-dock .dock-round {
  width: 12.5cqw;
  height: 12.5cqw;
}
.r-dock .dock-round svg {
  width: 5.6cqw;
  height: 5.6cqw;
}
.r-fox-slot {
  width: 21cqw;
  height: 21cqw;
  border-radius: 50%;
  background: var(--overlay);
  border: 1.5px solid rgba(212, 163, 115, 0.4);
  justify-self: center;
}

.meter {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--raised);
  max-width: 290px;
}
.watch {
  font-family: var(--sans);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
  transition: color 200ms;
}
.watch small { font-size: 12px; color: var(--muted); margin-left: 2px; }
.watch.run { color: var(--signal); }
.watch.done { color: var(--ink); }
.watch.won { color: var(--ok); }
.pull {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  text-transform: none;
}
.pull b { color: var(--ink2); font-weight: 600; font-variant-numeric: tabular-nums; }
.pull.hot b { color: var(--alert); }
.pull.bump b { display: inline-block; animation: bump 260ms cubic-bezier(.3,1.6,.6,1); }
@keyframes bump { 0% { transform: scale(1.45); } 100% { transform: scale(1); } }
.side figcaption h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--mark);
  font-weight: 600;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px 9px;
}
.r-steps {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}
.r-steps li { transition: color 200ms; }
.r-steps li.on { color: var(--ink); font-weight: 500; }
.detour {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  transition: color 200ms;
}
.detour.on { color: var(--ink2); }
.race-result {
  margin-top: 24px;
  min-height: 1.5em;
  font-size: 18px;
  color: var(--ink2);
  opacity: 0;
  transition: opacity 400ms;
}
.race-result.on { opacity: 1; }
.race-result strong { color: var(--ink); font-weight: 600; }
.race-note {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.race-note strong { color: var(--ink); }

/* Interactive Race Overlays */
.drawer { position: absolute; inset: 0; z-index: 2; background: #0E1017; transform: translateY(100%); transition: transform 420ms cubic-bezier(.2,1,.3,1); }
.drawer.up { transform: translateY(0); }
.d-search { margin: 12cqw 6cqw 4cqw; height: 10cqw; border-radius: 99px; background: rgba(255,255,255,0.08); display: flex; align-items: center; padding: 0 4cqw; font-size: 4cqw; color: var(--ink); }
.d-search.focus { background: rgba(255,255,255,0.14); box-shadow: 0 0 0 0.5cqw rgba(212, 163, 115, 0.5); }
.caret { display: none; width: 0.5cqw; height: 4.5cqw; background: var(--signal); margin-left: 0.5cqw; }
.d-search.focus .caret { display: inline-block; animation: caret 800ms infinite; }
@keyframes caret { 50% { opacity: 0; } }
.d-list { padding: 0 6cqw 30cqw; overflow: hidden; height: calc(100% - 26cqw); }
.d-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 6cqw; column-gap: 3cqw; transition: transform 700ms ease; }
.d-grid.found .app:not([data-target]) { display: none; }
.d-grid [data-target].hit i { box-shadow: 0 0 0 1cqw rgba(255,255,255,0.5); }
.kbd { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; background: #181B24; padding: 2cqw 1cqw 4cqw; display: grid; gap: 1.5cqw; transform: translateY(100%); transition: transform 260ms ease; }
.kbd.up { transform: translateY(0); }
.k-row { display: flex; justify-content: center; gap: 1cqw; }
.k-row span { width: 8.5cqw; height: 11cqw; background: #282C38; border-radius: 1.5cqw; display: grid; place-items: center; font-size: 4cqw; color: var(--ink); transition: background 120ms; }
.k-row span.hit { background: var(--mark); color: #07080B; }
.notif { position: absolute; top: 3cqw; left: 4cqw; right: 4cqw; z-index: 4; background: #1C1F2B; border: 1px solid var(--strong); border-radius: 4cqw; padding: 2.5cqw 3.5cqw; display: flex; align-items: center; gap: 2.5cqw; font-size: 3.5cqw; color: var(--ink); transform: translateY(-130%); transition: transform 300ms ease; }
.notif.on { transform: translateY(0); }
.n-icon { flex: none; width: 6.5cqw; height: 6.5cqw; border-radius: 26%; background: var(--c, #0090FF); }
.opened { position: absolute; inset: 0; z-index: 5; background: var(--c, #3E63DD); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3.5cqw; clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%)); transition: clip-path 420ms cubic-bezier(.3,.7,.3,1); pointer-events: none; }
.opened.on { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); pointer-events: auto; }
.opened b { font-size: 6cqw; font-weight: 600; }
.o-icon { width: 22cqw; aspect-ratio: 1; border-radius: 26%; background: rgba(255,255,255,0.22); display: grid; place-items: center; }
.o-icon::after { content: ""; width: 42%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.o-bar { width: 52cqw; height: 3cqw; border-radius: 99px; background: rgba(255,255,255,0.25); }
.o-bar.short { width: 34cqw; }
.touch { position: absolute; z-index: 6; width: 9cqw; height: 9cqw; margin: -4.5cqw 0 0 -4.5cqw; border-radius: 50%; background: rgba(255,255,255,0.45); box-shadow: 0 0 0 1.2cqw rgba(255,255,255,0.14); pointer-events: none; opacity: 0; transform: scale(0.6); transition: opacity 150ms, transform 150ms; }
.touch.on { opacity: 1; transform: scale(1); }
.touch.swipe { transition: top 360ms ease, opacity 150ms, transform 150ms; }
.r-rest { flex: 1; width: 100%; padding: 0 5.5cqw; display: flex; flex-direction: column; transition: opacity 250ms; }
.r-rest .stage-mid { width: 100%; gap: 3.2cqw; }
.r-rest.hidden { opacity: 0; pointer-events: none; }
.r-fox { position: absolute; z-index: 2; left: 50%; bottom: 6.6cqw; width: 17.5cqw; line-height: 0; transform: translateX(-50%); transition: transform 420ms cubic-bezier(.3,1.45,.5,1), bottom 420ms cubic-bezier(.3,1.45,.5,1), opacity 120ms; }
.r-fox svg { display: block; width: 100%; height: auto; }
.r-fox.up { bottom: 104cqw; transform: translateX(-50%) scale(2.15); }
.r-fox.gone { opacity: 0; transition: opacity 80ms; }
.r-heard { position: absolute; top: 58%; left: 6cqw; right: 6cqw; z-index: 2; text-align: center; font-size: 4.5cqw; line-height: 1.3; color: var(--muted); }
.r-heard.live { color: var(--ink); }
.race.snap * { transition: none !important; }

/* Features Grid */
.feat-grid, .grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 28px;
}

/* Plain pages: privacy, account deletion */
.prose { max-width: 680px; margin: 0 auto; padding: 48px 20px 80px; }
.prose h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 24px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--ink2); line-height: 1.6; }
.prose p + p { margin-top: 12px; }
.draft { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--mark); background: var(--raised); border: 1px solid var(--mark); border-radius: 10px; padding: 10px 14px; margin-bottom: 28px; }

/* The paid tools: the guide (steppanel), the wait (WaitActivity) and Guardrails. 1 dp is 0.243cqw. */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 32px; justify-items: center; }
.tool { margin: 0; display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 290px; }
.tool figcaption h3 { margin: 0 0 6px; font-size: 18px; }
.tool figcaption p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.g-screen { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 3.4cqw; padding: 7cqw 4.9cqw 4.9cqw; }
.g-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 3cqw; }
.g-title { font-size: 5.6cqw; font-weight: 600; line-height: 1.2; color: var(--ink); }
.g-chip { flex: none; font-size: 3.6cqw; font-weight: 500; color: var(--ink2); background: var(--raised); border: 1px solid var(--hairline); border-radius: 2.9cqw; padding: 2.2cqw 3.4cqw; }
.g-card { display: flex; flex-direction: column; gap: 2.4cqw; padding: 5cqw; background: var(--raised); border: 1px solid var(--hairline); border-radius: 4.4cqw; }
.g-card p { margin: 0; font-size: 4.1cqw; line-height: 1.5; color: var(--ink); }
.g-card p b { font-weight: 600; }
.g-step { font-size: 3.4cqw; font-weight: 500; color: var(--ink2); }
.g-name { font-size: 4.9cqw; font-weight: 500; color: var(--ink); line-height: 1.25; }
.g-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 3.4cqw; }
.g-go { display: block; text-align: center; background: #F3F4F6; color: #07080B; font-size: 4.1cqw; font-weight: 500; border-radius: 3.4cqw; padding: 3.6cqw 0; }
.g-links { display: flex; justify-content: space-between; font-size: 3.4cqw; font-weight: 500; color: var(--ink2); padding: 0 2cqw; }
.g-ask { display: flex; align-items: center; gap: 2.4cqw; }
.g-field { flex: 1; font-size: 4cqw; color: var(--muted); background: var(--raised); border: 1px solid var(--hairline); border-radius: 3.4cqw; padding: 3.6cqw 3.4cqw; }
.g-send { flex: none; width: 11.5cqw; height: 11.5cqw; border-radius: 50%; background: var(--overlay); display: grid; place-items: center; }
.g-send svg { width: 5cqw; height: 5cqw; stroke: var(--muted); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gr-card { gap: 2cqw; }
.gr-when { font-size: 3.6cqw; color: var(--ink2); }
.gr-items { color: var(--ink2) !important; font-size: 3.6cqw !important; line-height: 1.55 !important; }
.gr-actions { display: flex; align-items: center; gap: 5cqw; margin-top: 1.5cqw; }
.gr-add { padding: 2.8cqw 7cqw; font-size: 3.8cqw; }
.gr-skip { font-size: 3.8cqw; font-weight: 500; color: var(--ink2); }
.w-screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6cqw; padding: 0 7cqw 12cqw; text-align: center; }
.w-title { margin: 0; font-size: 5.6cqw; line-height: 1.3; color: var(--ink); }
.w-ring { position: relative; width: 62cqw; height: 62cqw; display: grid; place-items: center; }
.w-ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.w-track { fill: none; stroke: var(--overlay); stroke-width: 4; }
.w-arc { fill: none; stroke: var(--mark); stroke-width: 4; stroke-dasharray: 100; stroke-dashoffset: 99; animation: w-sweep 9s linear infinite; }
@keyframes w-sweep { to { stroke-dashoffset: 0; } }
.w-fox { width: 18cqw; height: 18cqw; line-height: 0; }
.w-fox .fox { width: 100%; height: 100%; }
.w-note { margin: 0; font-size: 4.1cqw; line-height: 1.45; color: var(--ink2); }
.w-cancel { font-size: 4.4cqw; font-weight: 600; color: var(--ink2); }
@media (prefers-reduced-motion: reduce) { .w-arc { animation: none; stroke-dashoffset: 55; } }

/* Steps Section */
.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps h3::before { content: counter(step) ". "; color: var(--mark); }
/* A step, drawn as a small Stage: the same layout as the app (HomeScreen.kt) */
.mini { position: relative; width: min(100%, 170px); aspect-ratio: 9 / 15; margin-bottom: 18px; border: 1.5px solid var(--strong); border-radius: 22px; background: var(--bg); overflow: hidden; container-type: inline-size; }
.mini-clock { position: absolute; top: 6cqw; left: 8cqw; display: flex; flex-direction: column; gap: 0.6cqw; }
.mini-clock b { font-size: 9cqw; font-weight: 300; color: var(--ink); line-height: 1.05; }
.mini-clock span { font-size: 5cqw; font-weight: 500; color: var(--muted); }
.mini-foxbox { position: absolute; left: 50%; top: 36%; width: 30cqw; height: 30cqw; transform: translate(-50%, -50%); z-index: 3; }
.mini-foxbox.docked { top: calc(100% - 13.5cqw); width: 14cqw; height: 14cqw; }
.mini-line { position: absolute; left: 8cqw; right: 8cqw; top: calc(36% + 19cqw); margin: 0; text-align: center; font-size: 5.4cqw; line-height: 1.3; color: var(--muted); }
[data-mini="listening"] .mini-line { color: var(--ink); }
.mini.has-card .mini-line { visibility: hidden; }
.mini-dock { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 3cqw 9cqw 5cqw; background: var(--raised); border-top: 1px solid var(--hairline); border-radius: 9cqw 9cqw 0 0; }
.mini-dock .dock-round { width: 12cqw; height: 12cqw; }
.mini-dock .dock-round svg { width: 5.4cqw; height: 5.4cqw; }
.mini.has-card .dock-round .i-clock { display: none; }
.mini.has-card .dock-round .i-close { display: block; }
.mini-slot { width: 19cqw; height: 19cqw; border-radius: 50%; background: var(--overlay); border: 1px solid rgba(212, 163, 115, 0.4); justify-self: center; }
.mini-sheet { position: absolute; left: 0; right: 0; bottom: 20cqw; z-index: 1; padding: 3cqw 6cqw 12cqw; background: var(--raised); border: 1px solid var(--hairline); border-bottom: 0; border-radius: 9cqw 9cqw 0 0; visibility: hidden; opacity: 0; transform: translateY(30%); transition: transform 260ms cubic-bezier(.2,.9,.3,1), opacity 200ms, visibility 0s 260ms; }
.mini-sheet.up { visibility: visible; opacity: 1; transform: none; transition: transform 260ms cubic-bezier(.2,.9,.3,1), opacity 200ms; }
.mini-sheet .grab { width: 11cqw; height: 1.4cqw; margin-bottom: 3.5cqw; }
.mini-sheet .ask-chip { font-size: 4.6cqw; padding: 1.6cqw 3.4cqw; margin-bottom: 3.5cqw; border-radius: 5cqw; }
.mini-sheet p { margin: 0; font-size: 6cqw; line-height: 1.4; color: var(--ink); }

/* Compare Section Table */
.table-wrap { overflow-x: auto; margin-top: 28px; border: 1px solid var(--hairline); border-radius: 18px; background: var(--raised); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
tr:last-child th, tr:last-child td { border-bottom: none; }
thead th { color: var(--muted); font-weight: 600; font-size: 13px; font-family: var(--sans); text-transform: none; letter-spacing: normal; }
tbody th { font-weight: 500; color: var(--ink); }
td { color: var(--ink2); }
.us { color: var(--ink); background: rgba(212, 163, 115, 0.08); font-weight: 500; }
thead .us { color: var(--mark); font-weight: 600; }

/* Pricing Section */
.plans {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 860px;
  margin-top: 32px;
}
.tier, .plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 28px;
}
.tier-featured, .plan-main {
  border-color: var(--mark);
  background: linear-gradient(180deg, rgba(212, 163, 115, 0.08), var(--raised) 55%);
}
.amount {
  font-size: 38px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.amount small { font-size: 16px; font-weight: 400; color: var(--muted); }
.per { font-size: 13px; color: var(--muted); margin: 0; }
.plan-lede { font-size: 15px; color: var(--ink); margin: 6px 0 10px; font-weight: 500; }
.plan-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.plan-list li {
  padding-left: 20px;
  position: relative;
  color: var(--ink2);
}
.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 600;
}
.save {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--mark);
  border: 1px solid var(--mark);
  border-radius: 999px;
  padding: 3px 9px;
  text-transform: none;
}
.fine {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 860px;
  margin-top: 24px;
}

/* Beta Form (Two-Step Waitlist) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.beta-lede {
  max-width: 580px;
}
.beta-form {
  max-width: 580px;
  margin-top: 24px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 28px;
}
.waitlist-step {
  display: grid;
  gap: 20px;
}
.waitlist-step[hidden] {
  display: none !important;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.beta-form input[type="email"], .beta-form input[type="text"] {
  background: var(--bg);
  border: 1px solid var(--strong);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
  width: 100%;
  transition: border-color 150ms;
}
.beta-form input[type="email"]:focus, .beta-form input[type="text"]:focus {
  outline: 2px solid var(--mark);
  border-color: var(--mark);
}
.choice-group {
  border: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.choice-group legend {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 8px;
}
.choice-group legend small {
  font-weight: 400;
  color: var(--muted);
  font-size: 12.5px;
}
.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--overlay);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink2);
  cursor: pointer;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.choice-pill:hover {
  border-color: var(--strong);
  color: var(--ink);
}
.choice-pill:has(input:checked) {
  border-color: var(--mark);
  background: rgba(212, 163, 115, 0.14);
  color: var(--ink);
}
.choice-pill input {
  accent-color: var(--mark);
  margin: 0;
}
.choice-stack {
  display: grid;
  gap: 8px;
}
.choice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--overlay);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  color: var(--ink2);
  cursor: pointer;
  transition: border-color 150ms, background 150ms, color 150ms;
}
.choice-row:hover {
  border-color: var(--strong);
  color: var(--ink);
}
.choice-row:has(input:checked) {
  border-color: var(--mark);
  background: rgba(212, 163, 115, 0.14);
  color: var(--ink);
}
.choice-row input {
  accent-color: var(--mark);
  margin: 0;
}
.waitlist-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}
.waitlist-hint {
  font-size: 12.5px;
  color: var(--muted);
}
.waitlist-error {
  margin: 0;
  font-size: 13px;
  color: var(--alert);
}
.waitlist-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--overlay);
  border: 1px solid rgba(104, 201, 135, 0.35);
  border-radius: 14px;
  padding: 16px;
}
.waitlist-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(104, 201, 135, 0.18);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.waitlist-banner strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}
.waitlist-banner p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink2);
  line-height: 1.45;
}
.iphone-box, #iphone {
  margin-top: 28px;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 22px;
  max-width: 580px;
}
.iphone-box h3 { margin: 0 0 6px; font-size: 17px; }
.iphone-box p { font-size: 14px; margin: 0 0 14px; }

/* FAQ Section */
.faq-groups {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 32px;
}
.faq-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-group h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--mark);
  margin: 0 0 4px;
  text-transform: none;
}
.faq-group details {
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color 150ms;
}
.faq-group details[open] { border-color: var(--strong); }
.faq-group summary {
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}
.faq-group details p {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink2);
}

/* Founder Note */
.founder blockquote {
  margin: 24px 0 0;
  background: var(--raised);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--mark);
  border-radius: 18px;
  padding: 28px 24px;
  max-width: 680px;
}
.founder blockquote p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--mark);
}

/* Footer */
.foot {
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  background: var(--raised);
  padding: 32px 20px;
}
.foot-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.foot-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.foot-links a { color: var(--ink2); }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 768px) {
  .top {
    padding: 10px 14px;
    gap: 8px;
  }
  .brand {
    font-size: 16px;
    gap: 7px;
  }
  nav[aria-label="Primary"], .top-nav {
    gap: 10px;
    font-size: 12.5px;
  }
  nav a.nav-cta, .top-cta {
    padding: 6px 11px;
    font-size: 12.5px;
    white-space: nowrap;
  }

  /* The phone menu: the section links fold behind a button (menu.js). */
  .js .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 12px;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    transition: transform 200ms ease;
  }
  .menu-open .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
  .js .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 16px 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--hairline);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  }
  .menu-open .nav-links {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }
  /* The dim layer under the open panel. A tap on it closes the menu (menu.js). */
  .js .nav-links::after {
    content: "";
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(4, 5, 7, 0.6);
  }
  .js .nav-links a {
    padding: 14px 4px;
    font-size: 17px;
    color: var(--ink);
    border-bottom: 1px solid var(--hairline);
  }
  .js .nav-links a:last-child { border-bottom: 0; }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    align-items: center;
  }
  .cta-row {
    justify-content: center;
  }

  /* Keep all comparison sections side-by-side on mobile */
  .race .pair,
  .race .side {
    gap: 10px;
    min-width: 0;
  }
  .cphone {
    border-radius: 22px;
  }
  .meter {
    padding: 7px 10px;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .watch {
    font-size: 16px;
  }
  .watch small {
    font-size: 10px;
  }
  .pull {
    font-size: 10.5px;
  }
  .side figcaption h3 {
    font-size: 14px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .count {
    font-size: 10px;
    padding: 1px 6px;
  }
  .r-steps {
    font-size: 11.5px;
    padding-left: 15px;
    gap: 4px;
  }
  .detour {
    font-size: 11px;
    margin-top: 6px;
  }

  /* Atlas (Free vs Fennoc) side-by-side on mobile */
  .t-row {
    padding: 5px 6px;
    font-size: 10px;
    gap: 5px;
    border-radius: 7px;
  }
  .t-row .c-ring {
    width: 10px;
    height: 10px;
  }
  .t-day {
    font-size: 8.5px;
    padding: 1px 4px;
  }

  /* Comparison Table side-by-side on mobile */
  table {
    min-width: 0;
    font-size: 11px;
  }
  th, td {
    padding: 9px 6px;
  }
  thead th {
    font-size: 10.5px;
  }

  /* Pricing Comparison (Free vs Fennoc) side-by-side on mobile */
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tier, .plan {
    padding: 14px 12px;
    border-radius: 16px;
    gap: 8px;
    min-width: 0;
  }
  .tier h3, .plan h3 {
    font-size: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
  }
  .save {
    font-size: 9.5px;
    padding: 2px 6px;
  }
  .amount {
    font-size: 24px;
  }
  .amount small {
    font-size: 12px;
  }
  .per {
    font-size: 11px;
    line-height: 1.35;
  }
  .plan-lede {
    font-size: 12px;
    line-height: 1.38;
    margin: 2px 0 6px;
  }
  .plan-list {
    font-size: 11.5px;
    gap: 6px;
    margin-bottom: 12px;
  }
  .plan-list li {
    padding-left: 14px;
    line-height: 1.35;
  }
  .plans .btn {
    padding: 10px 8px;
    font-size: 12px;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links, .nav-toggle-bar { transition: none !important; }
}
