/* ezx landing v2 — enterprise / high-tech / blocky light theme.
   Sharp corners everywhere. Blue #2563eb accent. Dotted grid texture. */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-panel: #0b1220;
  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #94a3b8;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: #eff6ff;
  --border: #e2e8f0;
  --border-soft: #cbd5e1;
  --border-dash: #cbd5e1;
  --code-text: #e2e8f0;
  --code-muted: #64748b;
  --shadow-card: 0 1px 0 rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
  --grid-dot: #2563eb14;
  --container: 1200px;
  --side-pad: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }

code, pre, .mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

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

/* ── Top nav ─────────────────────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem var(--side-pad);
  max-width: var(--container);
  margin: 0 auto;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}
.topnav.scrolled { box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: 0.5px;
}
.brand:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-active { color: var(--accent); font-weight: 600; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.35rem 0.6rem;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  position: relative;
  background: var(--accent);
  color: #fff;
  padding-right: 3rem;
  box-shadow: var(--shadow-card);
}
.btn-primary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2.2rem;
  background-color: rgba(255, 255, 255, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M8.5 3.5 13 8l-4.5 4.5' fill='none' stroke='%23ffffff' stroke-width='1.8'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-primary:hover { background: var(--accent-ink); color: #fff; }

.btn-secondary {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border-soft);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

.btn-invert {
  background: #fff;
  color: var(--accent);
}
.btn-invert:hover { background: var(--bg-soft); color: var(--accent-ink); }
.btn-invert-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.btn-invert-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 5rem var(--side-pad) 4.5rem;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 85%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), transparent 85%);
}
.hero > * { position: relative; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 auto 1.25rem;
  max-width: 900px;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Pill install bar (omp-style) */
.pill-bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-panel);
  color: var(--code-text);
  border: 1px solid var(--border-soft);
  padding: 0.8rem 0.9rem 0.8rem 1.1rem;
  box-shadow: var(--shadow-card);
}
.pill-prompt {
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  font-weight: 600;
}
.pill-cmd {
  font-size: 0.9rem;
  flex: 1;
  text-align: left;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--code-text);
}

/* ── Copy button ────────────────────────────────────────────────────── */
.copy-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--code-text);
  padding: 0.3rem 0.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.5); }
.copy-btn.copied { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Section frames ────────────────────────────────────────────────── */
.section-frame {
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem var(--side-pad);
  border-top: 1px solid var(--border);
}
.section-frame.dotted {
  position: relative;
  border-top: 1px dashed var(--border-dash);
}
.section-frame.dotted::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--grid-dot) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 90%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5), transparent 90%);
}
.section-frame.dotted > * { position: relative; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-head .eyebrow { margin: 0; }

.section-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.display-title {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 2rem;
  max-width: 760px;
}

.lead { font-size: 1.1rem; color: var(--text); margin: 0 0 1rem; }
.dim { color: var(--text-dim); margin: 0 0 1rem; }
.takeaway { margin-top: 1.5rem; color: var(--text-dim); font-size: 1.05rem; }

/* ── Product catalog ──────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { border-color: var(--border-soft); box-shadow: 0 1px 0 rgba(15,23,42,0.04), 0 4px 12px rgba(15,23,42,0.08); }
.feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.feature-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0 0 1.25rem;
  flex: 1;
}
.feature-tag {
  align-self: flex-start;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--border-soft);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
}

/* ── Code examples (tabbed panel) ─────────────────────────────────── */
.code-tabs {
  border: 1px dashed var(--border-dash);
  background: var(--bg-soft);
  padding: 1.25rem;
}
.code-tab-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--bg-panel);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.code-tab-bar::-webkit-scrollbar { height: 6px; }
.code-tab-bar::-webkit-scrollbar-track { background: transparent; }
.code-tab-bar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 0;
}
.code-tab {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--code-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.code-tab:hover { color: var(--code-text); }
.code-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.code-panels { background: var(--bg-panel); }
.code-panel {
  display: none;
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
}
.code-panel.active { display: block; }
.code-panel code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--code-text);
  white-space: pre;
}
.code-panel .token-comment  { color: var(--code-muted); font-style: italic; }
.code-panel .token-keyword  { color: #93c5fd; }
.code-panel .token-string   { color: #86efac; }
.code-panel .token-function { color: #c4b5fd; }
.code-panel .token-number   { color: #fcd34d; }

/* ── How it works ─────────────────────────────────────────────────── */
.hiw-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.hiw-text {
  border: 1px dashed var(--border-dash);
  background: var(--bg-soft);
  padding: 2rem;
}
.hiw-text .lead { max-width: 640px; }
.hiw-text .dim { max-width: 640px; }

.flow-card {
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.flow-step {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 0;
}
.flow-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}
.flow-label {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}
.flow-line {
  width: 2px;
  height: 1.25rem;
  margin-left: 1.1rem;
  background: var(--accent);
}

/* ── Launch modes ────────────────────────────────────────────────── */
.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.mode-card {
  border: 1px solid var(--border);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.mode-card.accent {
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
}
.mode-card.plain {
  background: var(--bg);
  border-left: 4px solid var(--text);
}
.mode-name { margin: 0 0 0.75rem; font-size: 1.15rem; font-weight: 700; color: var(--text); }
.mode-card.accent .mode-name { color: var(--accent-ink); }
.mode-desc { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ── Install & Quickstart ─────────────────────────────────────────── */
/* Compact dark card: tab row (tabs + shared COPY, no divider line) + code. */
.install-tabs {
  border: 1px solid var(--border-soft);
  background: var(--bg-panel);
  box-shadow: var(--shadow-card);
  margin: 0 0 1.25rem;
}
.install-tabrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-panel);
}
.install-tabrow .code-tab-bar {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.35rem 0.4rem 0.3rem 0.6rem;
}
.install-tabrow .copy-btn { flex-shrink: 0; margin-right: 0.75rem; }
.install-tabs .code-panels { background: transparent; }
.install-tabs .code-panel { padding: 0.9rem 1.1rem 1.05rem; }
.install-note {
  color: var(--code-muted);
  font-size: 0.85rem;
  margin: 0.6rem 0 0;
}
.install-extra { margin-top: 0; }
.install-extra .code-block { margin: 0 0 1rem; }
.install-extra .dim { margin: 0 0 1rem; }

.code-block {
  border: 1px solid var(--border-soft);
  background: var(--bg-panel);
  color: var(--code-text);
  margin: 0 0 1.25rem;
}
.code-block .code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--code-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.code-block pre {
  margin: 0;
  padding: 1rem 1.1rem;
  white-space: pre;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.code-block pre code {
  font-size: 0.85rem;
  color: var(--code-text);
  white-space: inherit;
  display: block;
}
.code-block pre::-webkit-scrollbar { height: 6px; }
.code-block pre::-webkit-scrollbar-track { background: transparent; }
.code-block pre::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0;
}

/* ── FAQ accordion ────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-faint);
  font-size: 1.1rem;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item[open] summary { color: var(--accent); }
.faq-item p {
  margin: 0 0 1.25rem;
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 720px;
}

/* ── CTA band ─────────────────────────────────────────────────────── */
.cta-band {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding: 3.5rem var(--side-pad);
  text-align: center;
  background: var(--accent);
  color: #fff;
}
.cta-headline { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 0.5rem; font-weight: 700; }
.cta-sub { color: rgba(255, 255, 255, 0.85); margin: 0 auto 1.5rem; max-width: 520px; }
.cta-band .btn { margin: 0 0.35rem; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 2.5rem var(--side-pad);
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  border-top: 1px dashed var(--border-dash);
  margin-top: 3rem;
}
.footer p { margin: 0; }
.footer a { color: var(--text-dim); }
.footer a:hover { color: var(--accent); }

/* ── Section reveal (progressive enhancement) ─────────────────────── */
.section-frame, .cta-band, .hero {
  opacity: 1;
  transform: none;
}
body.js .section-frame,
body.js .cta-band {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
body.js .section-frame.is-in,
body.js .cta-band.is-in {
  opacity: 1;
  transform: none;
}

/* ── Docs page ─────────────────────────────────────────────────────── */
.docs-main { max-width: var(--container); margin: 0 auto; padding: 2rem var(--side-pad) 0; }
.docs-hero {
  text-align: center;
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.docs-headline {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0.75rem 0 1rem;
}
.docs-hero .hero-sub { margin-bottom: 0; }

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.docs-toc {
  position: sticky;
  top: 84px;
  border-right: 1px solid var(--border);
  padding-right: 1.5rem;
}
.toc-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin: 0 0 0.75rem;
}
.toc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 500;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease;
}
.toc-list a:hover { color: var(--text); background: var(--bg-soft); }
.toc-list a.active { color: var(--accent); background: var(--accent-soft); border-left-color: var(--accent); font-weight: 600; }
.toc-num { font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--text-faint); white-space: nowrap; }
.toc-list a.active .toc-num { color: var(--accent); }

.doc-section { scroll-margin-top: 84px; padding: 2rem 0; border-bottom: 1px solid var(--border); }
.doc-section .eyebrow { margin-bottom: 0.5rem; }
.doc-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 1.25rem; }

.doc-h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.doc-p { color: var(--text-dim); margin: 0 0 1rem; }
.doc-p code, .doc-list code, .callout code, .api-table code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.1em 0.35em;
  color: var(--text);
}
.doc-list { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--text-dim); }
.doc-list li { margin-bottom: 0.4rem; list-style: none; position: relative; padding-left: 1.1rem; }
.doc-list li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.7em;
  top: 0.35em;
}

/* API tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); margin-bottom: 1.5rem; }
.api-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--bg);
}
.api-table th, .api-table td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.api-table thead th {
  color: var(--text);
  font-weight: 600;
  background: var(--accent-soft);
}
.api-table tbody tr:last-child td { border-bottom: none; }
.api-table .mono-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text);
  white-space: nowrap;
}

/* Callouts */
.callout {
  border: 1px dashed var(--border-dash);
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  padding: 0.9rem 1.1rem;
  margin: 0 0 1.25rem;
}
.callout-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--text); }
.callout p { margin: 0; font-size: 0.92rem; color: var(--text-dim); }
.callout-warning { border-left-color: #d97706; background: #fffbeb; }
.callout-note { border-left-color: var(--text-dim); }

.docs-content .cta-band { margin-top: 3rem; }

/* ── Reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
  body.js .section-frame, body.js .cta-band { opacity: 1; transform: none; }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hiw-grid { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-toc {
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0 0 1.25rem;
    margin-bottom: 1.5rem;
  }
  .toc-list { flex-direction: row; flex-wrap: wrap; gap: 0.4rem; }
  .toc-list a { border: 1px solid var(--border); padding: 0.3rem 0.6rem; }
  .toc-list a.active { border-color: var(--accent); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    padding: 1rem var(--side-pad);
    align-items: flex-start;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-block; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 2.3rem; }
  .display-title { font-size: 1.6rem; }
  .install-tabrow .code-tab { padding: 0.55rem 0.7rem; }
  .install-tabs .code-panel { padding: 0.8rem 0.9rem 0.95rem; }
}

/* Safety net — kill any horizontal page scroll that a future change might
   cause. Uses clip (not hidden): clip does NOT create a scroll container,
   so position: sticky descendants (docs TOC) keep working against the
   viewport. hidden would compute overflow-y to auto, turning body into a
   scrollport and silently breaking sticky. The hidden line above clip is a
   fallback for browsers without clip support (pre-2021). */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100%;
}
