/* Kivo website — shares the app's design tokens (see src/styles/globals.css).
   Whispr-Flow-like restraint: lots of whitespace, quiet borders, one accent. */

:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --bg: #f5f5f3;
  --surface: rgba(251, 251, 250, 0.96);
  --surface-strong: #ffffff;
  --surface-muted: rgba(0, 0, 0, 0.045);
  --text: #1c1c1e;
  --text-secondary: #656568;
  --text-tertiary: #8a8a90;
  --border: rgba(0, 0, 0, 0.11);
  --border-strong: rgba(0, 0, 0, 0.18);
  --hover: rgba(0, 0, 0, 0.055);
  --selected: rgba(0, 96, 223, 0.11);
  --accent: #0869d7;
  --accent-text: #ffffff;
  --accent-soft: rgba(8, 105, 215, 0.09);
  --danger: #c7372f;
  --success: #23824a;
  --shadow-overlay: 0 14px 38px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.13);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 28px rgba(0, 0, 0, 0.07);
  --radius-control: 7px;
  --radius-panel: 12px;
  --radius-pill: 999px;
  --max: 1080px;
  --max-narrow: 760px;
  --nav-h: 60px;
  background: var(--bg);
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1b1d;
    --surface: rgba(40, 40, 43, 0.96);
    --surface-strong: #2c2c2e;
    --surface-muted: rgba(255, 255, 255, 0.075);
    --text: #f3f3f5;
    --text-secondary: #aaaab0;
    --text-tertiary: #85858b;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);
    --hover: rgba(255, 255, 255, 0.075);
    --selected: rgba(65, 148, 255, 0.2);
    --accent: #4c9cff;
    --accent-text: #071322;
    --accent-soft: rgba(76, 156, 255, 0.14);
    --danger: #ff716b;
    --success: #54c982;
    --shadow-overlay: 0 18px 45px rgba(0, 0, 0, 0.46), 0 2px 9px rgba(0, 0, 0, 0.32);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f3;
  --surface: rgba(251, 251, 250, 0.96);
  --surface-strong: #ffffff;
  --surface-muted: rgba(0, 0, 0, 0.045);
  --text: #1c1c1e;
  --text-secondary: #656568;
  --text-tertiary: #8a8a90;
  --border: rgba(0, 0, 0, 0.11);
  --border-strong: rgba(0, 0, 0, 0.18);
  --hover: rgba(0, 0, 0, 0.055);
  --selected: rgba(0, 96, 223, 0.11);
  --accent: #0869d7;
  --accent-text: #ffffff;
  --accent-soft: rgba(8, 105, 215, 0.09);
  --danger: #c7372f;
  --success: #23824a;
  --shadow-overlay: 0 14px 38px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.13);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 28px rgba(0, 0, 0, 0.07);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1b1b1d;
  --surface: rgba(40, 40, 43, 0.96);
  --surface-strong: #2c2c2e;
  --surface-muted: rgba(255, 255, 255, 0.075);
  --text: #f3f3f5;
  --text-secondary: #aaaab0;
  --text-tertiary: #85858b;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);
  --hover: rgba(255, 255, 255, 0.075);
  --selected: rgba(65, 148, 255, 0.2);
  --accent: #4c9cff;
  --accent-text: #071322;
  --accent-soft: rgba(76, 156, 255, 0.14);
  --danger: #ff716b;
  --success: #54c982;
  --shadow-overlay: 0 18px 45px rgba(0, 0, 0, 0.46), 0 2px 9px rgba(0, 0, 0, 0.32);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
::selection { background: var(--selected); }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--max-narrow); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
.nav__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 17px; letter-spacing: -0.01em; }
.brand__mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #1c1c1e; color: #f7f7f5;
}
:root[data-theme="dark"] .brand__mark { background: #f3f3f5; color: #1c1c1e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand__mark { background: #f3f3f5; color: #1c1c1e; }
}
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav__links a {
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 14px;
  color: var(--text-secondary);
}
.nav__links a:hover { background: var(--hover); color: var(--text); }
.nav__links a[aria-current="page"] { background: var(--surface-muted); color: var(--text); font-weight: 550; }
.nav__spacer { flex: 1; }
.nav__cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--text); color: var(--bg);
  text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav__cta:hover { opacity: 0.88; }
.theme-toggle {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-strong);
  cursor: pointer;
  flex: 0 0 auto;
}
.theme-toggle:hover { background: var(--hover); }
.nav__menu-btn {
  display: none;
  width: 36px; height: 36px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-strong);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 96px 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  font-size: 13px;
  color: var(--text-secondary);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.hero h1 {
  margin: 28px auto 18px;
  max-width: 15ch;
  font-size: clamp(42px, 6.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub {
  margin: 0 auto;
  max-width: 58ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  text-wrap: balance;
}
.hero__ctas { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 100ms ease, background 120ms ease, opacity 120ms ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { opacity: 0.88; }
.btn--secondary { background: var(--surface-strong); border-color: var(--border-strong); color: var(--text); }
.btn--secondary:hover { background: var(--hover); }
.btn--accent { background: var(--accent); color: var(--accent-text); }
.btn--accent:hover { filter: brightness(1.06); }
.btn--small { min-height: 38px; padding: 0 18px; font-size: 14px; }
.btn--ghost-light { background: transparent; border-color: rgba(245, 245, 243, 0.3); color: #f5f5f3; }
.btn--ghost-light:hover { background: rgba(245, 245, 243, 0.1); }
.hero__keys { display: flex; justify-content: center; gap: 22px; margin-top: 26px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-secondary); }
.hero__keys span { display: inline-flex; align-items: center; gap: 8px; }
kbd {
  min-width: 24px; height: 24px;
  display: inline-grid; place-items: center;
  padding: 0 7px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-strong);
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* ---------- Product mock (pure CSS recreation of the app) ---------- */
.stage {
  position: relative;
  margin: 56px auto 0;
  max-width: 860px;
  padding: 48px 24px 64px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    radial-gradient(600px 220px at 50% -60px, var(--accent-soft), transparent 70%),
    var(--surface-strong);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.stage__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); font-weight: 650; }
.mock-flow {
  margin: 22px auto 0;
  width: fit-content; min-width: 220px;
  height: 52px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
  font-size: 13px;
}
.mock-flow__mic { color: var(--accent); display: grid; place-items: center; }
.waveform { height: 20px; display: flex; align-items: center; gap: 3px; color: var(--text); }
.waveform i {
  width: 3px; border-radius: 2px; background: currentColor;
  animation: wave 1.1s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.13s);
  height: 40%;
}
@keyframes wave { 0%, 100% { height: 22%; } 50% { height: 100%; } }
.mock-popup {
  margin: 18px auto 0;
  max-width: 420px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: var(--shadow-overlay);
  overflow: hidden;
}
.mock-popup__header {
  height: 38px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px; font-weight: 650; color: var(--text-secondary);
}
.mock-popup__x { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 6px; color: var(--text-tertiary); }
.mock-popup__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 8px; }
.mock-action {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 520;
}
.mock-action small { display: block; font-weight: 400; font-size: 11.5px; color: var(--text-secondary); }
.mock-action--active { background: var(--selected); }
.mock-action__icon {
  width: 28px; height: 28px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 8px; background: var(--surface-muted); color: var(--text-secondary);
}
.stage__caption { margin: 22px 0 0; font-size: 13px; color: var(--text-tertiary); }

/* ---------- Trust strip ---------- */
.trust { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 36px 0 0; padding: 0; list-style: none; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  font-size: 13.5px; color: var(--text-secondary);
}
.trust svg { color: var(--success); }

/* ---------- Sections ---------- */
.section { padding: 88px 0 8px; }
.section__eyebrow { margin: 0 0 12px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--accent); }
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.025em; line-height: 1.12;
  text-wrap: balance;
}
.section__sub { margin: 0 0 36px; max-width: 62ch; color: var(--text-secondary); font-size: 17px; }
.section--center { text-align: center; }
.section--center .section__sub { margin-left: auto; margin-right: auto; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.step {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
  padding: 26px 24px;
  text-align: left;
}
.step__num {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.step p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
.step kbd { margin: 0 1px; }

/* Feature grid (bento-ish, Whispr-like) */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-strong);
  padding: 26px 24px;
}
.card--wide { grid-column: span 2; }
.card__icon {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card ul li {
  font-size: 12.5px; padding: 4px 11px;
  border-radius: var(--radius-pill);
  background: var(--surface-muted); color: var(--text-secondary);
}

/* Privacy */
.privacy {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-strong);
  padding: clamp(28px, 5vw, 52px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
}
.privacy h2 { margin-top: 0; }
.flow-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.flow-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.flow-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.flow-table tr:last-child td { border-bottom: 0; }
.flow-table td:first-child { font-weight: 600; white-space: nowrap; }
.flow-table td:last-child { color: var(--text-secondary); }
.pill { display: inline-block; padding: 2px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 650; }
.pill--ok { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.pill--local { background: var(--surface-muted); color: var(--text-secondary); }
.checklist { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 14.5px; color: var(--text-secondary); }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { flex: 0 0 auto; margin-top: 3px; color: var(--success); }

/* Platforms */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.platform {
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface-strong); padding: 26px 24px;
}
.platform h3 { margin: 0 0 6px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.platform p { margin: 0 0 14px; font-size: 14px; color: var(--text-secondary); }
.platform code { font-size: 12.5px; }

/* Docs teaser */
.teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.teaser {
  display: block;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface-strong); padding: 28px 26px;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.teaser:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.teaser h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.teaser p { margin: 0 0 14px; font-size: 14.5px; color: var(--text-secondary); }
.teaser__go { font-size: 14px; font-weight: 600; color: var(--accent); }

/* CTA + footer */
.cta {
  margin: 96px 0 0;
  border-radius: 24px;
  background: #1c1c1e; color: #f5f5f3;
  text-align: center;
  padding: clamp(48px, 7vw, 84px) 24px;
}
:root[data-theme="dark"] .cta { background: #000; border: 1px solid var(--border); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { background: #000; border: 1px solid var(--border); }
}
.cta h2 { margin: 0 0 12px; font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.cta p { margin: 0 auto 30px; max-width: 52ch; color: rgba(245, 245, 243, 0.72); }
.cta .btn--primary { background: #f5f5f3; color: #1c1c1e; }
.cta__note { margin-top: 18px !important; font-size: 13px !important; color: rgba(245, 245, 243, 0.55) !important; }
footer { padding: 48px 0 56px; color: var(--text-tertiary); font-size: 13.5px; }
.footer__inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer__inner nav { display: flex; gap: 16px; margin-left: auto; }
.footer__inner a { color: var(--text-secondary); text-decoration: none; }
.footer__inner a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Docs layout ---------- */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; padding: 48px 0 80px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--nav-h) + 24px); max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; font-size: 14px; }
.sidebar h4 { margin: 18px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-tertiary); }
.sidebar h4:first-child { margin-top: 0; }
.sidebar a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; border-left: 2px solid transparent; }
.sidebar a:hover { background: var(--hover); color: var(--text); }
.sidebar a.active { background: var(--selected); color: var(--text); font-weight: 550; }
.prose { min-width: 0; max-width: 760px; }
.prose h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 14px; text-wrap: balance; }
.prose .lede { font-size: 18px; color: var(--text-secondary); margin: 0 0 36px; }
.prose h2 { font-size: 24px; letter-spacing: -0.02em; margin: 52px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 17px; margin: 28px 0 8px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.prose p, .prose li { font-size: 15.5px; color: var(--text-secondary); }
.prose p strong, .prose li strong { color: var(--text); }
.prose code {
  padding: 1px 6px; border-radius: 6px;
  background: var(--surface-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em; color: var(--text);
}
.prose pre {
  border: 1px solid var(--border); border-radius: var(--radius-panel);
  background: var(--surface-strong);
  padding: 16px 18px; overflow: auto; font-size: 13.5px; line-height: 1.55;
}
.prose pre code { padding: 0; background: none; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.prose th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); padding: 10px 12px; border-bottom: 1px solid var(--border); }
.prose td { padding: 11px 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); vertical-align: top; }
.prose td:first-child { color: var(--text); font-weight: 550; white-space: nowrap; }
.callout {
  border: 1px solid var(--border); border-radius: var(--radius-panel);
  background: var(--surface-strong);
  padding: 16px 18px; margin: 20px 0;
  font-size: 14.5px; color: var(--text-secondary);
}
.callout strong { color: var(--text); }
.callout--accent { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); background: var(--accent-soft); }
.copy-block { position: relative; }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  padding: 5px 12px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface-strong); cursor: pointer; color: var(--text-secondary);
}
.copy-btn:hover { color: var(--text); background: var(--hover); }
.breadcrumb { font-size: 13px; color: var(--text-tertiary); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.pager a { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; text-decoration: none; background: var(--surface-strong); }
.pager a:hover { background: var(--hover); }
.pager small { display: block; font-size: 12px; color: var(--text-tertiary); }
.pager strong { font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid, .steps { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .privacy { grid-template-columns: 1fr; }
  .platforms, .teasers { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .sidebar {
    position: static; max-height: none;
    display: flex; gap: 6px; overflow-x: auto;
    padding-bottom: 8px; margin-bottom: 8px;
  }
  .sidebar h4 { display: none; }
  .sidebar a { white-space: nowrap; border: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--surface-strong);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px; margin: 0; gap: 2px;
  }
  .nav__menu-btn { display: grid; }
  .nav__cta { display: none; }
  .hero { padding-top: 64px; }
  .section { padding-top: 64px; }
}

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