/* ==========================================================================
   Cadence by Corvexsa — website design system

   The app's own tokens (renderer/styles.css + themes.js: "Cadence Dark" and the
   periwinkle accent), as restated in the Cadence AI design spec, so the site and
   the app read as one product. Dark first, with a real light theme: the
   visitor's system preference by default, and a toggle that remembers itself.

   Type is the app's: Segoe UI on Windows, Inter elsewhere (the one webfont the
   site asks for, from Google Fonts), then the system face.

   Calm by rule (the spec): no gradient washes, no glow blobs, no left-border
   cards, no red. Accent fills always carry dark text; white fails on them.
   ========================================================================== */

/* The dark token set is declared for the root AND for .stay-dark, so the
   drawings of the app (the Cadence AI preview, the clip tiles) stay dark the
   way the app does even when the page is in the light theme. */
:root,
.stay-dark {
  color-scheme: dark;

  --bg-0: #0a0a0e;
  --bg-1: #101016;
  --bg-2: #16161e;
  --bg-3: #1c1c26;
  --bg-4: #23232f;
  --bg-5: #2b2b38;

  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-0: #f2f2f6;
  --text-1: #c9cbe0;
  --text-2: #9394a8;              /* the lowest text a reader must read */
  --text-3: #6b6c7d;              /* decorative only: fails contrast for real information */
  --text-quiet: #9394a8;

  --accent: #7c8cff;
  --accent-hover: #8e9cff;
  --accent-ink: #0b0b12;          /* text on an accent fill */
  --accent-text: #b7bdf9;         /* the accent used as text */
  --accent-text-hover: #d7dbff;
  --accent-glow: rgba(124, 140, 255, 0.35);
  --accent-wash: rgba(124, 140, 255, 0.12);
  --accent-wash-2: rgba(124, 140, 255, 0.16);
  --accent-line: rgba(124, 140, 255, 0.3);
  --bubble: #1f2137;              /* the user's message bubble: accent 14% over bg-1 */

  --good: #5fd99a;
  --good-ink: #a9e6c6;
  --good-tint: rgba(95, 217, 154, 0.14);
  --warn: #f0b95c;
  --warn-ink: #f1d3a1;
  --warn-tint: rgba(240, 185, 92, 0.14);
  --bad-ink: #f6b0b2;
  --bad-tint: rgba(242, 104, 107, 0.12);

  --shadow-pop: 0 32px 80px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(10, 10, 14, 0.86);
}

:root {
  --radius-xs: 4px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 160ms;

  --font: 'Segoe UI', 'Inter', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-display: var(--font);
  --mono: 'Cascadia Code', 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;

  --nav-h: 64px;
  --shell: 1288px;               /* 1200 px of content at 1440, as the designs are drawn */
  --gutter: clamp(16px, 4vw, 44px);
}

/* Light: the app's Light theme, with the accent darkened wherever it is text. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) {
    color-scheme: light;
    --bg-0: #e9e9f0;
    --bg-1: #f4f4f8;
    --bg-2: #ececf2;
    --bg-3: #e1e1ea;
    --bg-4: #d5d5e1;
    --bg-5: #c6c6d4;
    --border: rgba(20, 20, 40, 0.14);
    --border-soft: rgba(20, 20, 40, 0.08);
    --border-strong: rgba(20, 20, 40, 0.24);
    --text-0: #16161e;
    --text-1: #2b2b3a;
    --text-2: #565768;
    --text-3: #7f8093;
    --text-quiet: #565768;
    --accent-hover: #6b7bf5;
    --accent-text: #3d4bb8;
    --accent-text-hover: #2c3899;
    --accent-wash: rgba(124, 140, 255, 0.14);
    --accent-wash-2: rgba(124, 140, 255, 0.2);
    --accent-line: rgba(61, 75, 184, 0.34);
    --bubble: #e3e5f9;
    --good-ink: #1e7a4d;
    --good-tint: rgba(30, 122, 77, 0.12);
    --warn-ink: #8a5a0c;
    --warn-tint: rgba(138, 90, 12, 0.12);
    --bad-ink: #a3262a;
    --bad-tint: rgba(163, 38, 42, 0.1);
    --shadow-pop: 0 24px 60px rgba(20, 20, 60, 0.18), 0 2px 6px rgba(20, 20, 60, 0.08);
    --nav-bg: rgba(233, 233, 240, 0.9);
  }
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg-0: #e9e9f0;
  --bg-1: #f4f4f8;
  --bg-2: #ececf2;
  --bg-3: #e1e1ea;
  --bg-4: #d5d5e1;
  --bg-5: #c6c6d4;
  --border: rgba(20, 20, 40, 0.14);
  --border-soft: rgba(20, 20, 40, 0.08);
  --border-strong: rgba(20, 20, 40, 0.24);
  --text-0: #16161e;
  --text-1: #2b2b3a;
  --text-2: #565768;
  --text-3: #7f8093;
  --text-quiet: #565768;
  --accent-hover: #6b7bf5;
  --accent-text: #3d4bb8;
  --accent-text-hover: #2c3899;
  --accent-wash: rgba(124, 140, 255, 0.14);
  --accent-wash-2: rgba(124, 140, 255, 0.2);
  --accent-line: rgba(61, 75, 184, 0.34);
  --bubble: #e3e5f9;
  --good-ink: #1e7a4d;
  --good-tint: rgba(30, 122, 77, 0.12);
  --warn-ink: #8a5a0c;
  --warn-tint: rgba(138, 90, 12, 0.12);
  --bad-ink: #a3262a;
  --bad-tint: rgba(163, 38, 42, 0.1);
  --shadow-pop: 0 24px 60px rgba(20, 20, 60, 0.18), 0 2px 6px rgba(20, 20, 60, 0.08);
  --nav-bg: rgba(233, 233, 240, 0.9);
}

/* ---------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }

/* A component that sets display must never un-hide a [hidden] state. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-width: 320px;
}

::selection { background: var(--accent-glow); color: var(--text-0); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: var(--accent-text);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
a:hover { color: var(--accent-text-hover); text-decoration: underline; }

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

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

/* ---------------------------------------------------------------- type */

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--text-0);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.45rem + 2.5vw, 3.25rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.3rem + 0.75vw, 1.75rem); line-height: 1.28; font-weight: 700; letter-spacing: -0.014em; }
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: 1rem; line-height: 1.4; font-weight: 600; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--text-0); font-weight: 600; }
em { font-style: italic; }

code, kbd, pre, samp { font-family: var(--mono); }

code:not(pre code) {
  background: var(--bg-3);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-s);
  padding: 0.1em 0.42em;
  font-size: 0.86em;
  color: var(--text-0);
  overflow-wrap: anywhere;
}

pre {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-1);
  margin: 0 0 1.2em;
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

kbd {
  display: inline-block;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: var(--radius-xs);
  padding: 1px 7px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-0);
  white-space: nowrap;
}

* { scrollbar-width: thin; scrollbar-color: var(--bg-5) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-5); border-radius: 999px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-corner { background: transparent; }

/* A page kicker: small, accent, sentence case ("For parents", "Safety"). */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 600;
  color: var(--accent-text);
  margin: 0 0 12px;
}
.eyebrow svg { flex: none; }
.eyebrow .frame { font-family: var(--mono); font-weight: 500; color: var(--text-quiet); }

/* The small uppercase label the app uses for section heads. */
.label-caps {
  font-size: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-2);
}

.lede {
  font-size: 1.125rem;
  line-height: 1.56;
  color: var(--text-1);
  max-width: 62ch;
  text-wrap: pretty;
}
.muted { color: var(--text-quiet); }
.small { font-size: 0.875rem; }
.tiny { font-size: 0.8125rem; }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}

/* ---------------------------------------------------------------- layout */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.shell-narrow { max-width: 900px; }

.section { padding-top: clamp(56px, 6.5vw, 96px); }
.section-tight { padding-top: clamp(36px, 4vw, 48px); }

.section-head { max-width: 70ch; margin-bottom: 24px; }
.section-head .lede, .section-head .section-sub { margin-top: 10px; }
.section-sub { font-size: 0.9375rem; line-height: 1.55; color: var(--text-2); margin: 0; max-width: 62ch; }
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-head-row .section-head { margin-bottom: 0; }
.section-aside { margin: 0; max-width: 46ch; font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -70px;
  z-index: 400;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-m);
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; color: var(--accent-ink); text-decoration: none; }

/* ---------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border-soft);
}
.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner { height: 100%; display: flex; align-items: center; gap: 12px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-0);
  margin-right: auto;
  flex-shrink: 0;
  min-width: 0;
}
.brand:hover { color: var(--text-0); text-decoration: none; }
.brand-mark { color: var(--accent); flex: none; }
.brand-name { font-size: 1.125rem; line-height: 24px; font-weight: 700; letter-spacing: -0.012em; }
.brand-sub { font-size: 0.78125rem; line-height: 16px; color: var(--text-2); padding-top: 3px; white-space: nowrap; }

.nav-main { flex: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-1);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text-0); background: var(--bg-2); text-decoration: none; }
.nav-links a[aria-current='page'],
.nav-links a.active { color: var(--text-0); background: var(--bg-3); font-weight: 600; }
.nav-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent-wash-2);
  color: var(--accent-text);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--text-1);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-btn:hover { border-color: var(--border-strong); background: var(--bg-2); color: var(--text-0); }
.theme-toggle .sun { display: none; }
:root[data-theme='light'] .theme-toggle .sun { display: block; }
:root[data-theme='light'] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .theme-toggle .sun { display: block; }
  :root:not([data-theme='dark']) .theme-toggle .moon { display: none; }
}

.nav-download svg { color: var(--accent-text); }
.nav-toggle { display: none; }

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  z-index: 101;
  pointer-events: none;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-m);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1.25;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  color: var(--text-0);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn svg { flex-shrink: 0; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }

.btn-ghost { background: var(--bg-3); border-color: var(--border); color: var(--text-0); }
.btn-ghost:hover { background: var(--bg-4); border-color: var(--border-strong); color: var(--text-0); }
.btn-ghost .ink, .btn-ghost svg.ink { color: var(--accent-text); }

.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.875rem; }
.btn-lg { min-height: 48px; padding: 0 22px 0 18px; font-size: 0.9375rem; }
.btn-block { width: 100%; }

.btn .btn-sub { font-weight: 500; color: inherit; opacity: 0.8; font-size: 0.9em; }

/* "Opening soon": a real state, drawn as a quiet accent button that is not a
   link and cannot be pressed. */
.btn-soon,
.btn.is-disabled,
.btn[aria-disabled='true'] {
  background: var(--accent-wash);
  border-color: var(--accent-line);
  color: var(--accent-text);
  cursor: default;
}
.btn-soon:hover,
.btn[aria-disabled='true']:hover { background: var(--accent-wash); border-color: var(--accent-line); color: var(--accent-text); }

/* A text link with an arrow ("Read the parent FAQ →"). */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-text);
}
.link-arrow svg { flex: none; }

/* "Ask a parent" under every paid button. */
.ask-parent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
}
.ask-parent:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- chips, pills */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 9px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.71875rem;
  line-height: 1;
  font-weight: 600;
  color: var(--text-1);
  white-space: nowrap;
}
.chip-accent { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.chip-good { background: var(--good-tint); border-color: transparent; color: var(--good-ink); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); flex-shrink: 0; }

/* "Coming soon": everything Cadence AI carries it until it ships. */
.pill-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px 0 10px;
  margin: 0;
  border-radius: 999px;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
  font-size: 0.78125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.pill-soon svg { flex: none; }
.pill-soon.sm { height: 22px; padding: 0 9px; font-size: 0.71875rem; }
.pill-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px 0 10px;
  margin: 0;
  border-radius: 999px;
  background: var(--good-tint);
  color: var(--good-ink);
  font-size: 0.78125rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.tag-soon {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-2);
  white-space: nowrap;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-done { color: var(--good-ink); border-color: var(--good-tint); }
.pill-next { color: var(--text-2); }
.pill-release { color: var(--accent-text); border-color: var(--accent-line); }

/* The user's words, drawn as the app draws them. */
.bubble {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  border-radius: 16px 16px 6px 16px;
  background: var(--bubble);
  color: var(--text-0);
  font-size: 0.8125rem;
  line-height: 1.4;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- hero */

.hero { padding-top: clamp(28px, 4vw, 48px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 680px);
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}
.hero-copy { min-width: 0; }
/* 50 px, not 52: "Cadence animates it." in Segoe UI Bold must fit the 480 px column on one line. */
.hero h1 { margin-top: 20px; font-size: clamp(2.125rem, 1.45rem + 2.5vw, 3.125rem); }
.hero h1 .h1-line { display: block; }
@media (min-width: 600px) { .hero h1 .h1-line { white-space: nowrap; } }
.hero h1 .accent { color: var(--accent-text); }
.hero .lede { margin-top: 20px; max-width: 460px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 0.8125rem;
  line-height: 20px;
  color: var(--text-2);
}
.trust-row li { display: flex; align-items: center; gap: 6px; }
.trust-row svg { color: var(--good-ink); flex: none; }
.hero-note { margin: 14px 0 0; font-size: 0.8125rem; color: var(--text-2); }

.ai-preview { margin: 0; min-width: 0; }
.ai-preview figcaption {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-2);
}
.ai-preview figcaption .pill-soon { margin-top: -2px; }

/* ---------------------------------------------------------------- the Cadence AI panel, drawn */

.ai-mock {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  color: var(--text-1);
  font-size: 12px;
  line-height: 16px;
  user-select: none;
}
.ai-mock svg { display: block; flex: none; }
.mk-titlebar {
  display: flex;
  align-items: center;
  height: 36px;
  padding-left: 14px;
  background: #0d0d12;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mk-app { margin-left: 8px; font-weight: 600; color: var(--text-1); }
.mk-sep { width: 1px; height: 14px; margin: 0 10px; background: rgba(255, 255, 255, 0.1); }
.mk-file { color: var(--text-2); white-space: nowrap; }
.mk-grow { flex: 1; min-width: 8px; }
.mk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-1);
  font-size: 11.5px;
  white-space: nowrap;
}
.mk-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--good); flex: none; }
.mk-win { display: flex; margin-left: 10px; color: var(--text-3); }
.mk-win span { width: 40px; height: 36px; display: flex; align-items: center; justify-content: center; }

.mk-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 394px; }
.mk-view { position: relative; overflow: hidden; background: #0d0d13; min-height: 300px; }
.mk-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.mk-tools {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: var(--radius-m);
  background: rgba(16, 16, 22, 0.88);
  border: 1px solid var(--border);
}
.mk-tools span { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-s); color: var(--text-2); }
.mk-tools span.on { background: var(--bg-4); color: var(--text-0); }
.mk-playing {
  position: absolute;
  top: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px 0 8px;
  border-radius: 999px;
  background: var(--accent-wash-2);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 500;
}

.mk-panel { display: flex; flex-direction: column; background: var(--bg-1); border-left: 1px solid var(--border); min-width: 0; }
.mk-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 6px 0 10px;
  border-bottom: 1px solid var(--border-soft);
}
.mk-seg {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 26px;
  padding: 2px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.mk-seg span { display: flex; align-items: center; gap: 5px; height: 20px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; color: var(--text-2); }
.mk-seg span.on { background: var(--accent); color: var(--accent-ink); font-weight: 600; padding-left: 7px; }
.mk-icons { display: flex; gap: 2px; color: var(--text-2); }
.mk-icons span { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.mk-status { display: flex; align-items: center; justify-content: space-between; height: 26px; padding: 0 10px; font-size: 11px; color: var(--text-2); }
.mk-status > span:first-child { display: flex; align-items: center; gap: 6px; }
.mk-status .mk-dot { width: 5px; height: 5px; }
.mk-status .mk-chip { height: 20px; font-size: 11px; padding: 0 8px; }
.mk-convo { flex: 1; min-height: 0; padding: 6px 12px 10px; display: flex; flex-direction: column; gap: 10px; }
.mk-user { align-self: flex-end; margin: 0; padding: 8px 12px; border-radius: 16px 16px 6px 16px; background: var(--bubble); color: var(--text-0); font-size: 13px; line-height: 20px; white-space: nowrap; }
.mk-who { display: flex; align-items: center; gap: 6px; height: 18px; font-weight: 600; color: var(--text-0); }
.mk-card { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-l); }
.mk-title { margin: 0; font-size: 13px; line-height: 19px; font-weight: 600; color: var(--text-0); }
.mk-meta { margin: 2px 0 0; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mk-plan { display: flex; align-items: center; gap: 3px; color: var(--text-2); }
.mk-plan span { height: 24px; display: flex; align-items: center; padding: 0 8px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--border); color: var(--text-1); font-size: 11.5px; white-space: nowrap; }
.mk-plan span.cur { border-color: rgba(124, 140, 255, 0.55); color: var(--accent-text); }
.mk-good { align-self: flex-start; display: flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--good-tint); color: var(--good-ink); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.mk-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.mk-send { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-m); background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.mk-undo { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 6px; color: var(--text-2); white-space: nowrap; }
.mk-composer { padding: 8px 12px 9px; border-top: 1px solid var(--border-soft); }
.mk-box { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 12px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-l); }
.mk-box > span:first-child { flex: 1; min-width: 0; color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; }
.mk-sendbtn { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); flex: none; }
.mk-under { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-2); font-variant-numeric: tabular-nums; }

.mk-timeline { display: flex; flex-direction: column; gap: 4px; padding: 6px 12px 7px; background: var(--bg-1); border-top: 1px solid var(--border); }
.mk-trow { display: flex; align-items: center; gap: 8px; height: 20px; }
.mk-pause { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-s); background: var(--bg-4); color: var(--text-0); }
.mk-frame { color: var(--text-0); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-frame span { color: var(--text-2); }
.mk-loop { display: flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px 0 6px; border-radius: var(--radius-s); background: var(--bg-3); border: 1px solid var(--border); font-size: 11px; }
.mk-lane-label { width: 44px; flex: none; font-size: 11px; color: var(--text-2); }
.mk-lane { position: relative; flex: 1; min-width: 0; height: 20px; display: flex; gap: 2px; }
.mk-lane span { min-width: 0; display: flex; align-items: center; padding: 0 8px; border-radius: var(--radius-s); background: rgba(114, 200, 180, 0.14); border: 1px solid rgba(114, 200, 180, 0.28); color: #a6dccf; font-size: 11px; white-space: nowrap; overflow: hidden; }
.mk-head { position: absolute; left: 33.3%; top: -3px; bottom: -3px; width: 2px; border-radius: 1px; background: var(--accent); }

/* ---------------------------------------------------------------- how Cadence AI will work */

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.how-step {
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 17px 20px 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}
.how-num {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-text);
  font-size: 0.78125rem;
  line-height: 24px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.how-step > div { flex: 1; min-width: 0; }
.how-step h3 { font-size: 0.9375rem; line-height: 24px; }
.how-step p { margin: 0; font-size: 0.8125rem; line-height: 1.4; color: var(--text-2); }
.how-demo { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 30px; }
.how-demo .bubble { padding: 5px 12px; font-size: 0.8125rem; }
.how-chip { height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--border); color: var(--text-1); font-size: 0.75rem; white-space: nowrap; }
.how-arrow { display: inline-flex; color: var(--text-2); }
.how-ok { width: 26px; height: 26px; margin-left: 6px; border-radius: 999px; background: var(--good-tint); color: var(--good-ink); display: inline-flex; align-items: center; justify-content: center; }
.how-sent { height: 30px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--good-tint); color: var(--good-ink); font-size: 0.78125rem; font-weight: 600; white-space: nowrap; }
.how-demo .muted { font-size: 0.78125rem; margin-left: 6px; }

/* "Get notified": how anyone hears about a new version, with no sign-up. */
.notify {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 20px 22px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}
.notify-icon {
  flex: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-m);
  background: var(--accent-wash);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.notify h3 { font-size: 1rem; margin-bottom: 4px; }
.notify p { font-size: 0.9375rem; color: var(--text-1); margin-bottom: 0.5em; max-width: 78ch; }
.notify .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.notify p.muted { color: var(--text-2); font-size: 0.8125rem; }

/* ---------------------------------------------------------------- the preview gallery */

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.clip-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.clip-art { position: relative; background: #16161e; border-bottom: 1px solid var(--border-soft); }
.clip-art svg { width: 100%; height: auto; aspect-ratio: 283 / 106; }
.clip-len {
  position: absolute;
  top: 8px; left: 8px;
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 7px;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.55);
  color: #c9cbe0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.clip-body { padding: 10px 14px 13px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.clip-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.clip-head h3 { font-size: 0.90625rem; line-height: 20px; white-space: nowrap; }
.clip-check { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; line-height: 16px; font-weight: 500; color: var(--good-ink); text-align: right; }
.clip-check svg { flex: none; }
.clip-body .bubble { align-self: flex-start; font-size: 0.78125rem; padding: 5px 11px; }

/* ---------------------------------------------------------------- safety facts */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.fact { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.fact-icon {
  flex: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-m);
  background: var(--accent-wash);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fact h3 { font-size: 0.9375rem; line-height: 20px; }
.fact p { margin: 4px 0 0; font-size: 0.8125rem; line-height: 1.46; color: var(--text-2); }
.facts-foot { margin: 20px 0 0; font-size: 0.875rem; color: var(--text-2); max-width: 90ch; }

/* The parents page draws the four facts as cards. */
.facts-cards { gap: 24px; }
.facts-cards .fact {
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}
.facts-cards .fact-head { display: flex; align-items: center; gap: 12px; min-height: 32px; }
.facts-cards .fact-icon { width: 32px; height: 32px; background: var(--good-tint); color: var(--good-ink); }
.facts-cards .fact p { margin: 0; font-size: 0.84375rem; line-height: 1.48; color: var(--text-1); }

/* ---------------------------------------------------------------- the pricing strip (home) */

.price-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 136px;
  padding: 24px 28px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
}
.ps-col { flex: 1; min-width: 0; }
.ps-col h3 { font-size: 0.875rem; line-height: 20px; color: var(--text-1); }
.ps-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ps-price { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.ps-price b { font-size: 2rem; line-height: 40px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-0); font-variant-numeric: tabular-nums; }
.ps-price span { font-size: 0.875rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ps-col > p:last-child { margin: 4px 0 0; font-size: 0.84375rem; line-height: 1.5; color: var(--text-1); }
.ps-rule { flex: none; width: 1px; align-self: stretch; margin: 4px 0; background: var(--border); }
.ps-why { width: 272px; flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ps-why p { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--text-1); }
.ps-foot { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: 0.875rem; line-height: 1.45; color: var(--good-ink); }
.ps-foot svg { flex: none; margin-top: 2px; }

/* ---------------------------------------------------------------- the animator: shot + features */

.shot {
  margin: 0 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-1);
}
.shot-stage { background: #101016; }
.shot-stage img { width: 100%; height: auto; }
.shot figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--text-2);
  border-top: 1px solid var(--border-soft);
}
.shot figcaption b { color: var(--text-1); font-weight: 600; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.feature {
  min-width: 0;
  padding: 22px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.card-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-m);
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  color: var(--accent-text);
  margin-bottom: 14px;
}
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 0.90625rem; line-height: 1.55; }
.feature .keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------------------------------------------------------------- grids, cards, panels */

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(288px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }

.card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 22px;
  min-width: 0;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 0.93rem; line-height: 1.6; }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.split > * { min-width: 0; }

.steps { list-style: none; margin: 22px 0 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 0 0 20px 42px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 1px;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-wash);
  color: var(--accent-text);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.steps li:last-child { padding-bottom: 0; }
.steps strong { color: var(--text-0); display: block; margin-bottom: 3px; font-weight: 600; }
.steps span { color: var(--text-2); font-size: 0.93rem; }

.checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: 0.9rem; color: var(--text-1); }
.checks li svg { color: var(--accent-text); margin-top: 3px; }
.checks strong { color: var(--text-0); font-weight: 600; }

.panel {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 28px);
  min-width: 0;
}
.panel-accent { border-color: var(--accent-line); }
.panel h2 { font-size: 1.25rem; margin-bottom: 8px; }
.panel h3 { font-size: 1rem; margin: 18px 0 6px; }
.panel > p { color: var(--text-1); }

.kv { display: grid; gap: 0; margin: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); font-size: 0.9rem; }
.kv > div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; color: var(--text-0); font-weight: 600; text-align: right; overflow-wrap: anywhere; }

/* A note: a whole bordered box with a tinted icon — never a coloured left edge. */
.note {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--text-1);
}
.note svg { color: var(--accent-text); margin-top: 2px; }
.note strong { color: var(--text-0); }
.note-warn { background: var(--warn-tint); border-color: transparent; }
.note-warn svg { color: var(--warn-ink); }
.note-good { background: var(--good-tint); border-color: transparent; }
.note-good svg { color: var(--good-ink); }
.note-bad { background: var(--bad-tint); border-color: transparent; }
.note-bad svg { color: var(--bad-ink); }

/* The "not open yet" line on the plan pages. */
.status-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-m);
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--text-1);
  font-size: 0.90625rem;
  line-height: 1.5;
}
.status-note svg { flex: none; color: var(--accent-text); margin-top: 1px; }
.status-note p { margin: 0; }

/* ---------------------------------------------------------------- tables */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  background: var(--bg-1);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
thead th {
  background: var(--bg-2);
  color: var(--text-0);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--text-1); background: transparent; text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
td { color: var(--text-2); }
.col-us { color: var(--text-0); background: var(--accent-wash); }
thead .col-us { color: var(--accent-text); }
.table-note { font-size: 0.875rem; color: var(--text-2); margin-top: 12px; }

/* ---------------------------------------------------------------- download */

.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.dl-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dl-card.featured { border-color: var(--accent-line); }
.dl-card h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.125rem; }
.dl-card > p { margin-top: 10px; color: var(--text-2); font-size: 0.92rem; }
.dl-card .btn { margin-top: 18px; width: 100%; }
.dl-card .kv { margin-top: 16px; }
.dl-card pre { margin-top: 18px; }

.hash { margin-top: 14px; border-top: 1px solid var(--border-soft); padding-top: 12px; }
.hash summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-2);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hash summary:hover { color: var(--text-0); }
.hash summary::-webkit-details-marker { display: none; }
.hash summary::before { content: '▸'; font-size: 0.7rem; transition: transform var(--dur) var(--ease); }
.hash[open] summary::before { transform: rotate(90deg); }
.hash code {
  display: block;
  margin-top: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--text-1);
  padding: 10px 12px;
}

/* The SmartScreen dialog, drawn in HTML so it can be read, not screenshotted.
   Colours follow the real dialog: Microsoft's blue panel, white type, a grey
   button. It is a mock-up, and the surrounding copy says so. */
.smartscreen {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: center;
  margin-top: 20px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 28px);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.ss-window {
  background: #f3f3f3;
  color: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.25);
  font-family: 'Segoe UI', 'Segoe UI Variable Text', system-ui, sans-serif;
  font-size: 0.9rem;
  min-width: 0;
  margin: 0;
}
.ss-panel { background: #0b5fb6; color: #fff; padding: 26px 28px 24px; }
.ss-panel h4 { font-weight: 400; font-size: 1.55rem; letter-spacing: 0; color: #fff; margin: 0 0 12px; line-height: 1.25; }
.ss-panel p { font-size: 0.86rem; line-height: 1.5; margin: 0 0 12px; color: #fff; }
.ss-panel details { font-size: 0.86rem; }
.ss-panel summary { cursor: pointer; text-decoration: underline; list-style: none; display: inline; color: #fff; }
.ss-panel summary::-webkit-details-marker { display: none; }
.ss-panel details[open] summary { display: none; }
.ss-app { margin: 10px 0 0; font-size: 0.86rem; line-height: 1.6; }
.ss-app b { font-weight: 600; color: #fff; }
.ss-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 20px; background: #0b5fb6; }
.ss-btn { display: inline-block; background: #d8d8d8; color: #1a1a1a; border: 1px solid #b7b7b7; padding: 7px 26px; font-size: 0.86rem; border-radius: 3px; }
.ss-btn.primary { background: #e6e6e6; }
.ss-actions .ss-run { display: none; }
.ss-panel details[open] ~ .ss-actions .ss-run { display: inline-block; }
.ss-window figcaption { padding: 10px 14px; background: var(--bg-2); color: var(--text-2); font-size: 0.8125rem; }
.ss-explain h3 { margin-bottom: 10px; }
.ss-explain p { font-size: 0.93rem; color: var(--text-1); }
.ss-explain ol { padding-left: 20px; margin: 12px 0 0; color: var(--text-1); font-size: 0.93rem; }
.ss-explain li { margin-bottom: 6px; }
.ss-explain li::marker { color: var(--accent-text); font-weight: 700; }

/* ---------------------------------------------------------------- safety page */

.proof-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.proof-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proof-card .letter {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proof-card h2, .proof-card h3 { font-size: 1.125rem; margin: 0; }
.proof-card p, .proof-card li { color: var(--text-1); font-size: 0.92rem; }
.proof-card ul { margin: 0; padding-left: 18px; }
.proof-card li { margin-bottom: 5px; }
.proof-card .src {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.8125rem;
  color: var(--text-2);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.proof-card .src a { font-family: var(--mono); }
.proof-card.wide { grid-column: 1 / -1; }

.verify { display: grid; gap: 14px; }
.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  padding: clamp(24px, 4vw, 40px) 20px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-l);
  background: var(--bg-2);
  color: var(--text-1);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-wash); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.dropzone svg { color: var(--accent-text); }
.dropzone b { color: var(--text-0); font-weight: 600; }
.dropzone small { color: var(--text-2); font-size: 0.8125rem; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.verify-result { display: none; }
.verify-result.show { display: grid; }
.verify-result code { display: block; margin-top: 8px; font-size: 0.72rem; overflow-wrap: anywhere; color: var(--text-1); }

.hostlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hostlist li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; font-size: 0.9rem; color: var(--text-1); }
.hostlist code { white-space: nowrap; }
.hostlist .when { color: var(--text-2); font-size: 0.8125rem; display: block; }

/* ---------------------------------------------------------------- faq */

.faq { display: grid; gap: 10px; max-width: 60rem; }
.faq details { background: var(--bg-1); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; }
.faq details[open] { background: var(--bg-2); }
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text-0);
  font-size: 0.975rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-2);
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent-text); }
.faq .answer { padding: 0 20px 18px; color: var(--text-1); font-size: 0.93rem; }
.faq .answer p { margin-bottom: 0.7em; }

/* ---------------------------------------------------------------- changelog */

.log { list-style: none; margin: 0; padding: 0; }
.log-day { margin: 0 0 26px; }
.log-day h2 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-2);
  margin: 0 0 10px;
  text-transform: uppercase;
}
.log-day ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; background: var(--bg-1); }
.log-day li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 11px 16px; border-bottom: 1px solid var(--border-soft); font-size: 0.93rem; color: var(--text-1); }
.log-day li:last-child { border-bottom: 0; }
.log-day li a.sha { font-family: var(--mono); font-size: 0.76rem; color: var(--text-2); }
.log-day li .pill { margin-left: 8px; vertical-align: middle; }

/* ---------------------------------------------------------------- forms */

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.875rem; font-weight: 600; color: var(--text-1); }
.field .hint { font-size: 0.8125rem; color: var(--text-2); }
.input {
  width: 100%;
  min-height: 44px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  color: var(--text-0);
  font: inherit;
  padding: 10px 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input:disabled { opacity: 0.55; cursor: not-allowed; }
.input.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.status { display: none; }
.status.show { display: grid; }
.keybox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-m);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: var(--text-0);
  overflow-wrap: anywhere;
}
.keybox + .keybox { margin-top: 10px; }
.keybox .btn { margin-left: auto; flex-shrink: 0; }
.plan-badge { display: inline-flex; margin: 0 0 12px; }

/* ---------------------------------------------------------------- inner pages */

.page-hero { padding: clamp(32px, 5vw, 56px) 0 clamp(20px, 3vw, 28px); }
.page-hero h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }
.page-hero .lede { margin-top: 14px; }
.prose { max-width: 72ch; }
.prose h2 { margin: clamp(30px, 4vw, 44px) 0 12px; }
.prose p, .prose li { color: var(--text-1); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 7px; }

.lines { list-style: none; padding: 0; margin: 0; counter-reset: line; display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; background: var(--bg-1); }
.lines li { counter-increment: line; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 18px 14px 0; border-bottom: 1px solid var(--border-soft); color: var(--text-1); font-size: 0.97rem; }
.lines li:last-child { border-bottom: 0; }
.lines li::before { content: counter(line, decimal-leading-zero); font-family: var(--mono); color: var(--text-2); font-size: 0.78rem; text-align: right; padding-top: 4px; }
.lines .line-tag { display: inline-flex; margin: 0 6px 0 0; vertical-align: 1px; }

/* ---------------------------------------------------------------- pricing page */

.pricing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: clamp(24px, 3.5vw, 32px);
}
.pricing-head h1 { font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2rem); line-height: 1.25; letter-spacing: -0.016em; font-weight: 600; }
.tagline { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0 0; font-size: 0.9375rem; line-height: 1.45; }
.tagline svg { flex: none; color: var(--accent-text); margin-top: 1px; }

/* Yearly / Monthly: native radios, so it works with the keyboard for free and,
   through :has(), without JavaScript in any current browser. */
.billing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-3);
  min-width: 0;
}
.billing legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.billing input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.billing label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--text-1);
  font-size: 0.84375rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.billing input:checked + label { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.billing input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing .save { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--good-tint); color: var(--good-ink); font-size: 0.71875rem; font-weight: 600; }
.billing input:checked + label .save { background: rgba(11, 11, 18, 0.86); color: #a9e6c6; }

.pricing-page:has(#billMonthly:checked) .when-yearly { display: none; }
.pricing-page:not(:has(#billMonthly:checked)) .when-monthly { display: none; }
/* Browsers without :has() keep the yearly prices, which carry the monthly
   price in the line under them. */
@supports not selector(:has(a)) {
  .when-monthly { display: none; }
  .billing { display: none; }
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border-radius: var(--radius-l);
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.plan-pro { background: var(--bubble); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 24px; }
.plan-top h2 { font-size: 1.125rem; line-height: 24px; font-weight: 600; letter-spacing: 0; }
.plan-blurb { margin: 2px 0 0; font-size: 0.84375rem; line-height: 20px; color: var(--text-1); }
.plan-price { margin: 16px 0 0; display: flex; align-items: baseline; gap: 6px; min-height: 40px; }
.plan-price > span { display: flex; align-items: baseline; gap: 6px; }
.plan-price b { font-size: 2.5rem; line-height: 40px; font-weight: 700; letter-spacing: -0.025em; color: var(--text-0); font-variant-numeric: tabular-nums; }
.plan-price small { font-size: 0.875rem; color: var(--text-2); }
.plan-alt { margin: 0; font-size: 0.8125rem; line-height: 20px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.plan-cta { margin-top: 20px; }
.plan-cta .btn { width: 100%; }
.plan-sub { margin-top: 8px; display: flex; justify-content: center; font-size: 0.78125rem; color: var(--text-2); min-height: 20px; }
.plan-rule { margin-top: 16px; height: 1px; background: var(--border-soft); }
.plan-list-title { margin: 16px 0 0; font-size: 0.75rem; line-height: 16px; font-weight: 600; color: var(--text-2); }
.plan-list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84375rem; line-height: 20px; color: var(--text-1); }
.plan-list li svg { flex: none; color: var(--accent-text); margin-top: 2px; }
.plan-list .tag-soon { margin-left: 2px; }

.founders {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
  padding: 18px 24px;
  border-radius: var(--radius-l);
  background: var(--bg-2);
  border: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.founders-icon { width: 44px; height: 44px; flex: none; border-radius: var(--radius-m); background: var(--accent-wash); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
.founders-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.founders-main h2 { font-size: 1rem; line-height: 22px; font-weight: 600; letter-spacing: 0; }
.founders-main p { margin: 0; font-size: 0.84375rem; line-height: 20px; color: var(--text-1); }
.founders-main .founders-old { display: flex; align-items: flex-start; gap: 6px; color: var(--good-ink); font-size: 0.8125rem; line-height: 18px; }
.founders-main .founders-old svg { flex: none; margin-top: 2px; }
.founders-count { width: 200px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.founders-count[hidden] { display: none; }
.founders-count .row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.founders-count b { font-size: 0.875rem; color: var(--text-0); font-variant-numeric: tabular-nums; }
.founders-count span { font-size: 0.75rem; color: var(--text-2); }
.meter { height: 6px; border-radius: 999px; background: var(--bg-4); overflow: hidden; }
.meter > i { display: block; height: 6px; border-radius: 999px; background: var(--accent); }
.founders-cta { width: 176px; flex: none; display: flex; flex-direction: column; gap: 6px; }
.founders-cta .btn { min-height: 40px; width: 100%; font-size: 0.84375rem; }

.pricing-lower { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 480px); justify-content: space-between; gap: 40px; margin-top: 28px; }

.compare-plans .c-label { width: 47%; }
.compare-plans .c-plan { width: 17.66%; }
.compare-plans table { min-width: 0; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 0.84375rem; }
.compare-plans th, .compare-plans td { padding: 0; height: 33px; vertical-align: middle; border-bottom: 1px solid var(--border-soft); }
.compare-plans thead th { height: 36px; background: none; border-bottom-color: var(--border); text-transform: none; letter-spacing: 0; font-size: 0.84375rem; text-align: center; }
.compare-plans thead th:first-child { text-align: left; }
.compare-plans thead th:first-child span { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.compare-plans tbody th { font-weight: 400; color: var(--text-1); font-size: 0.84375rem; padding-right: 12px; }
.compare-plans td { text-align: center; color: var(--text-1); }
.compare-plans td svg { margin: 0 auto; }
.compare-plans .col-pro { background: var(--accent-wash); }
.compare-plans thead .col-pro { color: var(--accent-text); border-radius: 10px 10px 0 0; }
.compare-plans tr:last-child .col-pro { border-radius: 0 0 10px 10px; }
.compare-plans tr.group th { height: 40px; padding-top: 12px; vertical-align: bottom; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); border-bottom-color: var(--border); }
.compare-plans .strong { font-weight: 600; color: var(--text-0); }
.compare-plans .no { color: var(--text-2); }
.compare-note { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 0.75rem; line-height: 1.45; color: var(--text-2); }

.plan-faq-head { display: flex; align-items: center; justify-content: space-between; height: 36px; border-bottom: 1px solid var(--border); }
.plan-faq-head h2 { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); }
.plan-faq-head a { display: inline-flex; align-items: center; gap: 2px; font-size: 0.78125rem; font-weight: 500; }
.qa { padding: 11px 0; border-bottom: 1px solid var(--border-soft); }
.qa:last-child { border-bottom: 0; }
.qa h3 { font-size: 0.90625rem; line-height: 20px; }
.qa p { margin: 4px 0 0; font-size: 0.8125rem; line-height: 1.46; color: var(--text-1); }

/* ---------------------------------------------------------------- parents page */

.parents-top {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 600px);
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  padding-top: clamp(28px, 4vw, 40px);
}
.parents-top h1 { font-size: clamp(1.875rem, 1.4rem + 1.5vw, 2.25rem); line-height: 1.22; font-weight: 600; letter-spacing: -0.017em; margin-top: 14px; }
.parents-top .lede { margin-top: 16px; font-size: 1.0625rem; line-height: 1.65; }
.glance { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.glance li { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 10px; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--border); font-size: 0.8125rem; font-weight: 500; color: var(--text-1); }
.glance svg { flex: none; color: var(--accent-text); }

.ai-explain { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-l); background: var(--bg-1); border: 1px solid var(--border); min-width: 0; }
.ai-explain-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 28px; }
.ai-explain-head .tile { width: 28px; height: 28px; flex: none; border-radius: var(--radius-s); background: var(--accent-wash); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.ai-explain-head h2 { font-size: 0.9375rem; line-height: 20px; font-weight: 600; letter-spacing: 0; }
.ai-explain > p { margin: 8px 0 0; font-size: 0.875rem; line-height: 1.57; color: var(--text-1); }
.ai-explain .ask { margin-top: 16px; display: flex; justify-content: flex-end; }
.ai-explain .ask .bubble { font-size: 0.875rem; padding: 8px 14px; white-space: normal; }
.ai-explain .result { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ai-explain .result > svg { align-self: flex-start; margin-top: 2px; color: var(--accent); }
.frames { display: flex; gap: 6px; flex: none; }
.frame-tile { position: relative; width: 72px; height: 88px; flex: none; border-radius: var(--radius-m); background: #16161e; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.frame-tile svg { position: absolute; left: 0; top: 0; }
.frame-tile span { position: absolute; left: 5px; top: 5px; padding: 1px 5px; border-radius: var(--radius-xs); background: rgba(0, 0, 0, 0.55); color: #c9cbe0; font-size: 11px; line-height: 14px; font-variant-numeric: tabular-nums; }
.result-text { margin-left: 6px; min-width: 150px; flex: 1; display: flex; flex-direction: column; }
.result-text .t { margin: 0; font-size: 0.90625rem; line-height: 20px; font-weight: 600; color: var(--text-0); }
.result-text .m { margin: 4px 0 0; font-size: 0.78125rem; line-height: 16px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.result-text .ok { margin: 10px 0 0; align-self: flex-start; display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--good-tint); color: var(--good-ink); font-size: 0.78125rem; font-weight: 500; }
.preview-note { margin: 14px 0 0; font-size: 0.78125rem; color: var(--text-2); }

.parents-safe h2 { font-size: 1.375rem; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.parents-safe > p { margin: 4px 0 20px; font-size: 0.875rem; color: var(--text-2); }

.parents-lower { display: grid; grid-template-columns: minmax(0, 564px) minmax(0, 600px); justify-content: space-between; gap: 36px; margin-top: 40px; align-items: start; }
.cost-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-l); background: var(--bg-2); border: 1px solid var(--border); min-width: 0; }
.cost-card h2, .request-card h2 { font-size: 1.25rem; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.cost-card .status-note { margin-top: 12px; }
.cost-rows { margin-top: 12px; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.cost-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 50px; padding: 6px 0; }
.cost-row + .cost-row { border-top: 1px solid var(--border-soft); }
.cost-row > div { display: flex; flex-direction: column; min-width: 0; }
.cost-row > div:last-child { align-items: flex-end; text-align: right; flex: none; }
.cost-row b { font-size: 0.875rem; line-height: 20px; font-weight: 600; color: var(--text-0); font-variant-numeric: tabular-nums; }
.cost-row span { font-size: 0.78125rem; line-height: 16px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cost-rules { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cost-rules li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84375rem; line-height: 20px; color: var(--text-1); }
.cost-rules svg { flex: none; color: var(--accent-text); margin-top: 2px; }

.request-card { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius-l); background: var(--bubble); border: 1px solid var(--accent); box-shadow: 0 0 0 1px var(--accent); min-width: 0; scroll-margin-top: calc(var(--nav-h) + 20px); }
.request-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; }
.request-card .from { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--accent-wash-2); color: var(--accent-text); font-size: 0.75rem; font-weight: 600; }
.request-card .intro { margin: 4px 0 0; font-size: 0.875rem; line-height: 20px; color: var(--text-1); }
.request-plans { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.request-plans li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 14px; border-radius: var(--radius-m); border: 1px solid var(--border); background: transparent; }
.request-plans li.is-asked { background: var(--bg-2); border-color: var(--accent); }
.request-plans .name { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 0.875rem; line-height: 20px; font-weight: 600; color: var(--text-0); }
.request-plans .price { display: flex; align-items: baseline; gap: 2px; font-size: 0.875rem; font-weight: 600; color: var(--text-0); font-variant-numeric: tabular-nums; white-space: nowrap; }
.request-plans .price small { font-size: 0.78125rem; font-weight: 400; color: var(--text-2); }
.request-plans .asked { display: none; }
.request-plans li.is-asked .asked { display: inline-flex; }
.request-card .plan-cta { margin-top: 12px; }
.calm {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--good-tint);
  color: var(--text-1);
  font-size: 0.875rem;
  line-height: 1.5;
}
.calm svg { flex: none; color: var(--good-ink); margin-top: 1px; }
.calm strong { color: var(--text-0); }
.request-card .after { margin: 10px 0 0; font-size: 0.8125rem; line-height: 20px; color: var(--text-1); }
.request-foot { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--border-soft); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.request-foot p { margin: 0; flex: 1; min-width: 220px; display: flex; align-items: flex-start; gap: 8px; font-size: 0.78125rem; line-height: 18px; color: var(--text-2); }
.request-foot p svg { flex: none; margin-top: 1px; }
.request-foot .code { color: var(--text-1); font-weight: 600; font-family: var(--mono); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.request-foot a { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 0.78125rem; font-weight: 500; }

.parents-contact { display: flex; align-items: flex-start; gap: 8px; margin: 32px 0 0; font-size: 0.875rem; color: var(--text-1); }
.parents-contact svg { flex: none; color: var(--accent-text); margin-top: 2px; }

/* ---------------------------------------------------------------- docs layout */

.docs-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; padding: 36px 0 0; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; padding-right: 8px; }
.toc-label { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2); margin: 0 0 10px; font-weight: 600; }
.toc ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 1px; }
.toc a { display: block; color: var(--text-1); font-size: 0.875rem; padding: 6px 12px; border-radius: var(--radius-s); transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.toc a:hover { color: var(--text-0); background: var(--bg-2); text-decoration: none; }
.toc a.active { color: var(--accent-text); background: var(--accent-wash); font-weight: 600; }

.doc-body { min-width: 0; max-width: 78ch; padding-bottom: 40px; }
.doc-body > section { padding-top: 8px; margin-bottom: 52px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc-body h2 { margin-bottom: 12px; }
.doc-body h3 { margin: 28px 0 10px; }
.doc-body p, .doc-body li { color: var(--text-1); }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 0 0 1.1em; }
.doc-body li { margin-bottom: 7px; }
.doc-body li::marker { color: var(--text-2); }
.doc-body strong { color: var(--text-0); font-weight: 600; }
.doc-body .panel + h3 { margin-top: 32px; }
.doc-body .note { margin: 16px 0; }
.doc-hero { padding: 36px 0 4px; }
.doc-hero h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem); }
.doc-hero .lede { margin-top: 12px; }

.keys-search { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 9px 14px; margin-bottom: 18px; }
.keys-search svg { color: var(--text-2); flex-shrink: 0; }
.keys-search input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text-0); font: inherit; font-size: 0.92rem; outline: none; }
.keys-search input::placeholder { color: var(--text-2); }
.keys-group { margin-bottom: 26px; }
.keys-group h3 { font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px; font-weight: 600; }
.keys-list { display: grid; gap: 1px; background: var(--border-soft); border: 1px solid var(--border); border-radius: var(--radius-m); overflow: hidden; }
.keys-list > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--bg-1); padding: 9px 15px; font-size: 0.9rem; }
.keys-list span { color: var(--text-1); }
.keys-list .kbds { display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.keys-empty { padding: 22px; text-align: center; color: var(--text-2); font-size: 0.9rem; }

/* ---------------------------------------------------------------- footer */

.footer { border-top: 1px solid var(--border-soft); margin-top: clamp(64px, 8vw, 96px); padding: 24px 0 28px; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }
.footer .brand { margin-right: 0; gap: 8px; }
.footer .brand-name { font-size: 0.9375rem; line-height: 20px; }
.footer .brand-sub { font-size: 0.75rem; padding-top: 2px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; max-width: 900px; }
.footer-nav a { font-size: 0.8125rem; line-height: 20px; color: var(--text-1); }
.footer-nav a:hover { color: var(--text-0); }
.footer-nav a[aria-current='page'] { color: var(--text-0); font-weight: 600; }
.footer-base { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border-soft); display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-size: 0.78125rem; line-height: 18px; color: var(--text-2); }
.footer-base p { margin: 0; }

/* ---------------------------------------------------------------- command palette */

.cmdk {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  padding: clamp(60px, 14vh, 140px) 16px 16px;
  justify-content: center;
  align-items: flex-start;
  background: rgba(5, 5, 8, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cmdk.open { display: flex; }
.cmdk-box { width: 100%; max-width: 560px; background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: var(--radius-l); box-shadow: var(--shadow-pop); overflow: hidden; }
.cmdk-input { display: flex; align-items: center; gap: 11px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cmdk-input svg { color: var(--text-2); flex-shrink: 0; }
.cmdk-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text-0); font: inherit; font-size: 1rem; }
.cmdk-input input::placeholder { color: var(--text-2); }
.cmdk-results { max-height: min(52vh, 400px); overflow-y: auto; padding: 8px; margin: 0; list-style: none; }
.cmdk-results li { margin: 0; }
.cmdk-results a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: var(--radius-s); color: var(--text-1); font-size: 0.92rem; }
.cmdk-results a:hover { text-decoration: none; }
.cmdk-results a small { color: var(--text-2); font-size: 0.78rem; margin-left: auto; white-space: nowrap; }
.cmdk-results li.sel a, .cmdk-results a:hover { background: var(--bg-4); color: var(--text-0); }
.cmdk-foot { border-top: 1px solid var(--border); padding: 9px 16px; display: flex; gap: 16px; font-size: 0.76rem; color: var(--text-2); flex-wrap: wrap; }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }
.cmdk-empty { padding: 26px; text-align: center; color: var(--text-2); font-size: 0.9rem; }

/* ---------------------------------------------------------------- toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  z-index: 350;
  background: var(--bg-3);
  border: 1px solid var(--border-strong);
  color: var(--text-0);
  border-radius: var(--radius-m);
  padding: 12px 16px;
  font-size: 0.9rem;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  max-width: min(92vw, 520px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

/* ---------------------------------------------------------------- reveal (calm: a short fade) */

.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero .lede { max-width: 60ch; }
  .ai-preview { max-width: 820px; }
  .gallery, .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-lower, .parents-top, .parents-lower { grid-template-columns: minmax(0, 1fr); }
  .parents-top { align-items: start; }
  .price-strip { flex-wrap: wrap; }
  .ps-why { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .ps-why p { flex: 1; min-width: 240px; }
  .ps-rule:last-of-type { display: none; }
}

@media (max-width: 1000px) {
  .how-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; }
  .founders { flex-wrap: wrap; }
  .founders-main { flex-basis: calc(100% - 68px); }
  .founders-count, .founders-cta { width: auto; flex: 1 1 200px; }
  .smartscreen { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .toc { position: static; max-height: none; overflow: visible; border: 1px solid var(--border); border-radius: var(--radius-l); background: var(--bg-1); padding: 16px 14px 6px; margin-bottom: 28px; }
  .toc ul { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); display: grid; gap: 2px; }
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-0);
    border-bottom: 1px solid var(--border);
    padding: 10px var(--gutter) 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { height: 44px; padding: 0 12px; font-size: 1rem; border-radius: var(--radius-m); }
  .nav-toggle { display: inline-flex; }
  .nav-search { display: none; }
}

@media (max-width: 720px) {
  .mk-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .mk-view, .mk-timeline, .mk-win, .mk-file, .mk-sep { display: none; }
  .mk-panel { border-left: 0; }
  .mk-titlebar { padding-right: 10px; }
  .ai-preview figcaption { flex-direction: column; gap: 8px; }
  .price-strip { flex-direction: column; align-items: stretch; gap: 18px; padding: 20px; }
  .ps-rule { width: auto; height: 1px; margin: 0; align-self: stretch; }
  .ps-rule:last-of-type { display: block; }
  .ps-why { flex-direction: column; align-items: flex-start; }
  .ps-why p { min-width: 0; }
  .pricing-lower { gap: 28px; }
}

@media (max-width: 640px) {
  .gallery, .facts, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-cta .btn { width: 100%; }
  .section-head-row > .btn { width: 100%; }
  .notify { flex-direction: column; gap: 12px; padding: 18px; }
  .notify .actions .btn { width: 100%; }
  .card, .feature, .proof-card, .plan, .ai-explain, .cost-card, .request-card { padding: 18px; }
  .footer-top { flex-direction: column; }
  .footer-nav ul { justify-content: flex-start; gap: 8px 18px; }
  .keys-list > div { flex-direction: column; align-items: flex-start; gap: 7px; }
  .keys-list .kbds { justify-content: flex-start; }
  .kv > div { flex-direction: column; gap: 3px; padding: 10px 0; }
  .kv dd { text-align: left; }
  .lines li { grid-template-columns: 34px 1fr; padding-right: 14px; }
  .pricing-head { align-items: stretch; }
  .billing { align-self: flex-start; }
  .compare-plans .c-label { width: 37%; }
  .compare-plans .c-plan { width: 21%; }
  .compare-plans table, .compare-plans tbody th { font-size: 0.8125rem; }
  .compare-plans td .strong { font-size: 0.78125rem; }
  .frames { gap: 4px; }
  .frame-tile { width: 60px; height: 74px; }
  .frame-tile svg { width: 60px; height: 74px; }
  .result-text { margin-left: 0; }
  .founders { padding: 18px; gap: 16px; align-items: flex-start; }
  .founders-count, .founders-cta { flex-basis: 100%; }
}

@media (max-width: 480px) {
  body { font-size: 15.5px; }
  .nav-inner { gap: 8px; }
  .brand { gap: 8px; }
  .nav-actions { gap: 6px; margin-left: 0; }
  .nav-download span { display: none; }
  .nav-download { padding: 0 11px; }
  .how-step { padding: 16px; }
  .clip-head { flex-wrap: wrap; }
}

/* Below this there is no room for the whole wordmark next to three buttons. */
@media (max-width: 370px) {
  .brand-sub { display: none; }
}

@media print {
  .nav, .progress, .cmdk, .footer, .toast { display: none !important; }
  body { background: #fff; color: #000; }
}
