/* voz.so: tokens (dark by default, no toggle) */
:root {
  --bg: #121214;
  --ink: #ececec;
  --muted: #9a9aa0;
  --muted-2: #8a8a90;
  --surface: #1b1b1f;
  --surface-2: #202025;
  --border: #2a2a30;
  --accent: #4d7cff;
  --radius: 4px;
  --wrap: 1200px;
  --body: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --code: "JetBrains Mono", ui-monospace, monospace;
  --dot: "Doto", "Space Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }
code { font-family: var(--code); font-size: 0.92em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

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

/* mono label helpers */
.eyebrow, .tag, .btn, .copy, .label-accent, .meta, .num-k, .feat-k, .road-k, .nav-links a, .tab,
.demo-label, .demo-dest, .demo-note, .strip-k, .strip-v, .strip-end, .gest-k, .spec dt, .code-head,
.chips-legend, .start-links a, .counted {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  line-height: 1.4;
}

/* NAV */
.nav { padding: 22px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.wordmark, .footer-mark {
  font-family: var(--dot);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-size: 12px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* HERO: one panel, copy left, output demo right */
.hero {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 5fr 7fr;
}
.hero > * { min-width: 0; }
.hero-copy {
  padding: 36px 36px 30px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.hero-mark {
  font-family: var(--dot);
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.hero h1 {
  margin-top: 40px;
  font-size: clamp(36px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-weight: 300;
}
.tagline { margin-top: 22px; font-size: 16.5px; line-height: 1.55; color: var(--muted); max-width: 420px; }
.hero-actions { margin-top: auto; padding-top: 40px; display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--accent); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* DEMO */
.demo { padding: 24px 28px 20px; display: flex; flex-direction: column; }
.demo-in { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; }
.demo-label { color: var(--muted); padding-top: 4px; }
.demo-input {
  font-family: var(--code);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  min-height: 2.9em;
}
.demo-input::after { content: "▍"; color: var(--accent); margin-left: 1px; }
.demo-input.done::after { content: ""; }
.demo-outs {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
}
.demo-outs > * { min-width: 0; }
.demo-out {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s, transform .35s;
}
.demo-out.show { opacity: 1; transform: none; }
.demo-dest { display: flex; justify-content: space-between; align-items: center; gap: 6px; color: var(--muted); }
.tag {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  font-size: 10px;
}
.tag-accent { color: var(--accent); border-color: var(--accent); }
.demo-text {
  margin: 14px 0 0;
  font-family: var(--body);
  font-size: 14.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  min-height: 4.4em;
}
.demo-why { margin-top: auto; padding-top: 12px; font-size: 12px; line-height: 1.45; color: var(--muted-2); border-top: 1px solid var(--border); }
.demo-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.demo-steps { display: inline-flex; gap: 6px; }
.demo-steps i { width: 22px; height: 2px; background: var(--border); display: block; }
.demo-steps i.on { background: var(--accent); }
.demo-note { color: var(--muted-2); text-align: right; }

/* STRIP */
.strip {
  margin-top: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 220px;
}
.strip > * { min-width: 0; }
.strip-cell { padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.strip-title { border-right: 1px solid var(--border); }
.strip-k { color: var(--ink); font-size: 12px; }
.strip-v, .strip-end span { color: var(--muted); }
.strip-cmd { flex-direction: row; align-items: center; gap: 12px; }
.strip-cmd code {
  flex: 1; min-width: 0;
  font-family: var(--code);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.copy {
  padding: 8px 12px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  white-space: nowrap;
}
.copy:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.copy.ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.strip-end { border-left: 1px solid var(--border); }
.strip-end a { color: var(--ink); font-size: 12px; }
.strip-end a:hover { color: var(--accent); }

/* SECTIONS */
.section { padding-top: 72px; }
.eyebrow { color: var(--muted); }
h2 {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 300;
  max-width: 820px;
}
.sub { margin-top: 14px; color: var(--muted); max-width: 640px; font-size: 16px; }
.sub code { font-size: 0.85em; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-pad { padding: 24px; }
.label-accent { color: var(--accent); }
.lead { margin-top: 16px; font-size: 17px; line-height: 1.5; }
.counted { margin-top: 18px; color: var(--muted); text-transform: none; letter-spacing: 0.02em; font-size: 12px; line-height: 1.6; border-left: 1px solid var(--border); padding-left: 14px; }
.note, .after { margin-top: 24px; color: var(--muted); font-size: 15px; max-width: 820px; line-height: 1.55; }
.note code, .after code { font-size: 0.88em; color: var(--ink); }
.after b { color: var(--ink); font-weight: 500; }
.more { display: block; margin-top: 14px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }

/* TABS */
.tabs { margin-top: 30px; display: flex; gap: 32px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab { padding: 12px 0; color: var(--muted); font-size: 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel { display: none; margin-top: 24px; grid-template-columns: 2fr 3fr; gap: 8px; }
.tabpanel.on { display: grid; }
.tabpanel > * { min-width: 0; }
.tab-text { padding: 20px 28px 20px 0; }
.tab-text em { font-style: italic; }

/* CODE PANELS */
.code-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}
.code-head {
  padding: 11px 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  text-transform: none;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}
.code-head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.code {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--code);
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  color: var(--ink);
}
.code-wrap { white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: visible; }
.code .c { color: var(--muted); }
.code .p { color: var(--accent); }
.code-inline { margin-top: 20px; background: var(--surface-2); }
.code-inline .code { font-size: 12px; }

/* GRIDS */
.grid2 > *, .grid22 > *, .grid-yours > * { min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 30px; }
.grid22 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 30px; }

.num { display: flex; flex-direction: column; padding: 24px 28px 20px; }
.num-k { color: var(--ink); font-size: 12px; }
.num-k b { color: var(--accent); font-weight: 400; margin-right: 10px; }
.num > p:nth-child(2) { margin-top: 14px; font-size: 15px; line-height: 1.5; max-width: 520px; }
.num code { font-size: 0.9em; }
.meta { margin-top: auto; padding-top: 18px; color: var(--muted-2); text-transform: none; letter-spacing: 0.03em; }

/* YOURS: asymmetric 3-col grid */
.grid-yours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 30px; }
.feat-wide { grid-column: span 2; }
.feat { display: flex; flex-direction: column; }
.feat-k { color: var(--ink); font-size: 11.5px; }
.feat > p:last-child { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.feat b { color: var(--ink); font-weight: 500; }
.feat code { font-size: 0.88em; color: var(--ink); }
.feat-wide > p:last-child { font-size: 15px; }

/* TWO WAYS IN */
.way { padding: 28px; display: flex; flex-direction: column; }
.way h3 { margin-top: 18px; font-size: 24px; font-weight: 300; line-height: 1.25; }
.way h3 + p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.way a { text-decoration: underline; text-underline-offset: 3px; }
.way code { color: var(--ink); }
.gestures { margin-top: 22px; border-top: 1px solid var(--border); }
.gestures li { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.gest-k { color: var(--ink); padding-top: 3px; }
.way .meta { padding-top: 22px; }

/* SOURCES: chips */
.chips { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: baseline; gap: 10px;
  padding: 10px 14px 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); align-self: center; }
.chip-live::before { background: var(--accent); }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip small { font-family: var(--code); font-size: 11.5px; color: var(--muted); }
.chips-legend { margin-top: 16px; color: var(--muted-2); text-transform: none; letter-spacing: 0.03em; }
.chips-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.dot-live { background: var(--accent); }
.dot-once { background: var(--muted-2); }

/* ROADMAP: three columns on hairlines, no cards */
.roadmap { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border); }
.roadmap > * { min-width: 0; }
.road { padding: 24px 28px 8px 0; }
.road + .road { border-left: 1px solid var(--border); padding-left: 28px; }
.road-k { color: var(--muted); }
.road-now { color: var(--accent); }
.road ul { margin-top: 10px; }
.road li { padding: 9px 0 9px 18px; border-bottom: 1px solid var(--border); font-size: 15px; position: relative; line-height: 1.45; }
.road li::before { content: ""; position: absolute; left: 0; top: 17px; width: 5px; height: 5px; background: var(--muted); border-radius: 1px; }
.road li:last-child { border-bottom: 0; }

/* AT A GLANCE + GET STARTED */
.start { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; }
.start > * { min-width: 0; }
.spec { margin: 24px 0 0; display: grid; grid-template-columns: 96px 1fr; column-gap: 16px; border-top: 1px solid var(--border); }
.spec dt, .spec dd { padding: 11px 0; border-bottom: 1px solid var(--border); margin: 0; }
.spec dt { color: var(--muted); padding-top: 13px; }
.spec dd { font-size: 14px; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.start-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.start-links a { color: var(--ink); }
.start-req { margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.start-req code { color: var(--ink); font-size: 0.88em; }
.install { margin-top: 20px; }
.install .code { font-size: 12px; }
.copy-small { padding: 5px 10px; font-size: 10px; }
.start .after { margin-top: 20px; }

/* FOOTER */
.footer { margin-top: 72px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { padding-top: 36px; padding-bottom: 30px; display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-brand p + p { margin-top: 14px; color: var(--muted); font-size: 15px; max-width: 360px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; max-width: 420px; justify-content: flex-end; padding-top: 4px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px; padding-bottom: 26px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--muted);
}
.footer-bottom a { color: var(--ink); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; border-bottom: 1px solid var(--border); }
  .hero h1 { margin-top: 36px; }
  .strip { grid-template-columns: 1fr; }
  .strip-title, .strip-end { border: 0; }
  .strip-title { border-bottom: 1px solid var(--border); }
  .strip-end { border-top: 1px solid var(--border); flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; }
  .strip-end a { white-space: nowrap; }
  .grid-yours { grid-template-columns: 1fr 1fr; }
  .feat-wide { grid-column: span 2; }
  .start { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .nav { padding: 16px 0; }
  .hero { margin-top: 12px; }
  .hero-copy { padding: 28px 20px 24px; }
  .hero-mark { font-size: 36px; }
  .hero h1 { margin-top: 28px; font-size: 32px; }
  .tagline { font-size: 15.5px; }
  .hero-actions { padding-top: 28px; }
  .demo { padding: 20px; }
  .demo-in { grid-template-columns: 1fr; gap: 6px; }
  .demo-outs { grid-template-columns: 1fr; }
  .demo-text { min-height: 0; }
  .demo-note { text-align: left; }
  .demo-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .section { padding-top: 64px; }
  .tabs { gap: 20px; }
  .tabpanel, .grid2, .grid22, .grid-yours, .roadmap { grid-template-columns: 1fr; }
  .tab-text { padding: 4px 0 20px; }
  .feat-wide { grid-column: auto; }
  .num, .way { padding: 24px 20px; }
  .road { padding: 20px 0 8px; }
  .road + .road { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; }
  .spec { grid-template-columns: 1fr; column-gap: 0; }
  .spec dt { padding-bottom: 2px; border-bottom: 0; }
  .spec dd { padding-top: 0; }
  .footer { margin-top: 72px; }
  .footer-inner { flex-direction: column; gap: 24px; padding-top: 36px; }
  .footer-links { justify-content: flex-start; }
  .code { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
  .gestures li { grid-template-columns: 110px 1fr; }
}
