/* ===== Murmur — Voice Reply: design tokens + landing page styles ===== */

:root {
  /* Type */
  --font-sans: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  /* Light theme — warm neutral */
  --bg: oklch(98.5% 0.004 80);
  --bg-elev: oklch(100% 0 0);
  --bg-sunken: oklch(96.5% 0.005 80);
  --line: oklch(91% 0.006 80);
  --line-strong: oklch(82% 0.008 80);
  --ink: oklch(20% 0.01 80);
  --ink-muted: oklch(45% 0.012 80);
  --ink-faint: oklch(62% 0.012 80);

  /* Accent — warm amber */
  --accent: oklch(58% 0.13 55);
  --accent-soft: oklch(94% 0.04 55);
  --accent-ink: oklch(35% 0.10 55);

  /* Status */
  --ok: oklch(62% 0.14 145);
  --warn: oklch(72% 0.14 75);
  --err: oklch(58% 0.18 25);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  /* Shadows — every shadow combines a soft blur with a hairline ring */
  --shadow-sm: 0 1px 2px oklch(20% 0.01 80 / 0.06), 0 0 0 1px oklch(20% 0.01 80 / 0.04);
  --shadow-md: 0 4px 16px oklch(20% 0.01 80 / 0.08), 0 0 0 1px oklch(20% 0.01 80 / 0.05);
  --shadow-lg: 0 24px 60px oklch(20% 0.01 80 / 0.18), 0 0 0 1px oklch(20% 0.01 80 / 0.06);
}

[data-theme="dark"] {
  --bg: oklch(18% 0.008 80);
  --bg-elev: oklch(22% 0.01 80);
  --bg-sunken: oklch(15% 0.008 80);
  --line: oklch(28% 0.012 80);
  --line-strong: oklch(38% 0.014 80);
  --ink: oklch(96% 0.005 80);
  --ink-muted: oklch(72% 0.012 80);
  --ink-faint: oklch(55% 0.012 80);
  --accent-soft: oklch(28% 0.06 55);
  --accent-ink: oklch(85% 0.10 55);
  --shadow-sm: 0 1px 2px #000a, 0 0 0 1px oklch(100% 0 0 / 0.06);
  --shadow-md: 0 4px 16px #000a, 0 0 0 1px oklch(100% 0 0 / 0.06);
  --shadow-lg: 0 24px 60px #000c, 0 0 0 1px oklch(100% 0 0 / 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===== Reusable bits ===== */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom-width: 1.5px;
  border-radius: 4px;
}

.dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--ink-faint);
  display: inline-block;
}
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.err { background: var(--err); }
.dot.live {
  background: var(--err);
  box-shadow: 0 0 0 0 oklch(58% 0.18 25 / 0.6);
  animation: pulse 1.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(58% 0.18 25 / 0.55); }
  100% { box-shadow: 0 0 0 10px oklch(58% 0.18 25 / 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  cursor: pointer;
  transition: 120ms ease;
  text-decoration: none;
}
.btn:hover { border-color: var(--line-strong); }
.btn.primary {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn.primary:hover { background: oklch(from var(--ink) calc(l + 0.08) c h); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-muted); }
.btn.ghost:hover { background: var(--bg-sunken); color: var(--ink); }

.btn .size {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.7;
}

/* ===== Layout ===== */

.page {
  background: var(--bg);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-wordmark {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
  color: var(--ink-muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.nav-signin {
  font-size: 13px;
  color: var(--ink-muted);
}
.nav-signin:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 80px 40px 60px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-family: var(--font-serif);
  font-size: 76px;
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-weight: 400;
  margin: 0;
  text-wrap: balance;
}
.hero h1 .quiet { color: var(--ink-faint); }
.hero-lede {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 44ch;
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-cta .btn { padding: 11px 18px; font-size: 14px; }
.hero-cta .btn .size { font-size: 11px; }
.hero-caveats {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Demo card */
.demo {
  background: var(--bg-elev);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.demo-titlebar {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunken);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}
.demo-traffic { display: flex; gap: 6px; }
.demo-traffic span {
  width: 10px; height: 10px; border-radius: 999px; display: inline-block;
}
.demo-traffic .red { background: #FF5F57; }
.demo-traffic .yellow { background: #FEBC2E; }
.demo-traffic .green { background: #28C840; }
.demo-titlebar .file {
  margin-left: 8px;
  font-family: var(--font-mono);
}
.demo-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-status .label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--err);
}
.demo-thread {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
}
.demo-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--ink-faint);
  margin-bottom: 4px;
}
.demo-msg {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
  text-wrap: pretty;
}
.demo-echo {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: oklch(98% 0.012 80);
}
.demo-echo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.demo-echo-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.demo-echo-text {
  font-size: 14px;
  color: var(--ink-muted);
  font-style: italic;
  line-height: 1.5;
  text-wrap: pretty;
}
.demo-reply {
  padding: 20px 22px 24px;
}
.demo-reply-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.demo-reply-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ok);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.demo-reply-field {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
  text-wrap: pretty;
}
.demo-reply-foot {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.demo-reply-foot .meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
}
.demo-reply-foot .send {
  display: flex;
  gap: 6px;
  align-items: center;
}
.demo-reply-foot .send span:last-child {
  font-size: 11px;
  color: var(--ink-muted);
}

/* How it works */
.how {
  padding: 60px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
}
.how h2,
.privacy h2,
.modes h2,
.customise h2,
.compare h2,
.setup-section h2 {
  font-size: 36px;
  font-family: var(--font-serif);
  letter-spacing: -0.025em;
  max-width: 22ch;
  text-wrap: balance;
  line-height: 1.1;
  font-weight: 400;
  margin: 12px 0 0;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.how-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.how-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.how-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.how-card-key {
  height: 22px;
  font-size: 11px;
}
.how-card-body { margin-top: auto; }
.how-card-title {
  font-size: 22px;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  margin-top: 50px;
  font-weight: 400;
}
.how-card-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 8px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Versus */
.versus {
  padding: 60px 40px;
  border-top: 1px solid var(--line);
}
.versus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.versus-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-elev);
}
.versus-card .eyebrow { margin-bottom: 14px; display: block; }
.versus-card h3 {
  font-size: 22px;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 14px;
  font-weight: 400;
}
.versus-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  text-wrap: pretty;
  margin: 0;
}

/* Privacy strip */
.privacy {
  padding: 72px 40px;
  border-top: 1px solid var(--line);
}
.privacy h2 { margin-bottom: 32px; }
.privacy-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.privacy-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 18px 24px;
  gap: 24px;
}
.privacy-row + .privacy-row {
  border-top: 1px solid var(--line);
}
.privacy-row .label {
  font-size: 14px;
  font-weight: 600;
}
.privacy-row .copy {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  text-wrap: pretty;
}

/* Footer */
.footer {
  padding: 40px;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
}
.footer-links {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--ink-faint);
}
.footer-links a:hover { color: var(--ink); }

/* ===== Sub-page (privacy / setup / changelog) prose ===== */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}
.prose h1 {
  font-family: var(--font-serif);
  font-size: 56px;
  letter-spacing: -0.035em;
  line-height: 1.0;
  font-weight: 400;
  margin: 24px 0 16px;
  text-wrap: balance;
}
.prose h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 400;
  margin: 48px 0 12px;
}
.prose h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 8px;
}
.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  text-wrap: pretty;
}
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 22px; margin: 0 0 16px; }
.prose ul li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .lede {
  font-size: 18px;
  color: var(--ink-muted);
  margin-bottom: 32px;
  text-wrap: pretty;
}

/* ===== Two modes ===== */

.modes {
  padding: 72px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
}
.modes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
.mode-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.mode-card .mode-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mode-card .mode-eyebrow .label {
  color: var(--accent-ink);
}
.mode-card h3 {
  font-size: 28px;
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 400;
  margin: 0 0 14px;
}
.mode-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  text-wrap: pretty;
  margin: 0 0 12px;
}
.mode-card .mode-meta {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}

/* ===== Customise ===== */

.customise {
  padding: 72px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
}
.customise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.customise-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
.customise-card .eyebrow { display: block; margin-bottom: 12px; }
.customise-card h3 {
  font-size: 18px;
  font-family: var(--font-sans);
  letter-spacing: -0.012em;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 10px;
}
.customise-card p {
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
  text-wrap: pretty;
  margin: 0;
}
/* ===== Compare ===== */

.compare {
  padding: 72px 40px;
  border-top: 1px solid var(--line);
}
.compare-wrap {
  margin-top: 40px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-top: 1px solid var(--line);
}
.compare-table thead th {
  background: var(--bg-sunken);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  border-top: none;
  letter-spacing: -0.01em;
}
.compare-table thead th.col-feature { width: 38%; }
.compare-table thead th.col-murmur { color: var(--ink); }
.compare-table tbody td.feature {
  font-weight: 500;
  color: var(--ink);
  font-size: 13.5px;
}
.compare-table tbody td.cell {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-muted);
}
.compare-table tbody td.cell.yes { color: var(--ok); font-weight: 600; }
.compare-table tbody td.cell.no { color: var(--ink-faint); }
.compare-table tbody td.cell.partial { color: var(--ink-muted); }
.compare-table .col-murmur-cell {
  background: oklch(99% 0.012 55);
  font-weight: 600;
}
/* Visual cell indicators: a dot for yes, a dash for no, dimmed dash for n/a.
   Kept text labels too for screen readers (.cell-text class). */
.compare-table .cell-mark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.compare-table .cell-mark .dot {
  width: 8px;
  height: 8px;
}
.compare-table .cell-mark .dash {
  display: inline-block;
  width: 10px;
  height: 2px;
  background: currentColor;
  opacity: 0.5;
  border-radius: 1px;
}
.compare-table .cell-mark .qual {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
}
.compare-table tbody td.cell.yes .cell-mark .dot { background: var(--ok); }
.compare-table tbody td.cell.no .cell-mark .dash { opacity: 0.5; }

/* ===== Diagrams (mini-UI fragments) ===== */

/* Waveform — used inline in the hero and inside popover previews */
.waveform {
  display: block;
  width: 100%;
  height: auto;
  fill: currentColor;
}
.waveform.recording { color: var(--accent); }
.waveform.processing { color: var(--ink-faint); opacity: 0.7; }
.waveform.idle { color: var(--ink-faint); opacity: 0.5; }

/* Animation is driven by JS (see index.html) which mutates the y/height/
   opacity attributes directly each frame. This is more reliable across
   browsers than CSS transforms on SVG rects (transform-box quirks).
   The static layout above renders the waveform fully fine in
   reduced-motion environments — the JS bails on prefers-reduced-motion. */

/* Inline-recording waveform used in the hero demo card's spoken-text block */
.waveform-inline {
  height: 22px;
  margin: 8px 0 6px;
}

/* Popover preview — looks like the actual menu-bar popover, three states.
   Reuses the existing card vocabulary; the only new bits are the layout. */
.popover-preview {
  margin-top: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.popover-preview .pop-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}
.popover-preview .pop-wordmark {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.popover-preview .pop-version {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-faint);
}
.popover-preview .pop-body {
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.popover-preview .pop-state {
  display: flex;
  align-items: center;
  gap: 10px;
}
.popover-preview .pop-state-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.popover-preview .pop-state-time {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.popover-preview .pop-helper {
  font-size: 13.5px;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.popover-preview .pop-helper .pop-app {
  color: var(--accent-ink);
  font-weight: 500;
}
.popover-preview .pop-waveform {
  height: 36px;
  border-radius: 8px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  padding: 4px 10px;
  display: flex;
  align-items: center;
}

/* Privacy data-flow diagram — Mac on the left, Anthropic on the right,
   conditional arrow labelled "polish mode only" in the middle. */
.diagram-privacy {
  margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.diagram-privacy .zone {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.diagram-privacy .zone + .zone-arrow + .zone {
  /* the right zone */
}
.diagram-privacy .zone-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.diagram-privacy .zone-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.diagram-privacy .zone-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.diagram-privacy .zone-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
.diagram-privacy .zone-item .qual {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  margin-left: auto;
}
.diagram-privacy .zone-arrow {
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--bg-sunken);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 18px;
  min-width: 140px;
  gap: 10px;
}
.diagram-privacy .zone-arrow .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-ink);
  text-align: center;
}
.diagram-privacy .zone-arrow .glyph {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}

/* Mode preview (legacy result-popover) — kept in case we need a smaller variant.
   Currently superseded by .popover-preview for both modes. */
.mode-preview {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mode-preview .preview-head {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mode-preview .preview-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ok);
}
.mode-preview .preview-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  text-wrap: pretty;
}
.mode-preview .preview-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Three accuracy tiers: a picker UI fragment */
.diagram-tiers {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.diagram-tiers .tier {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  align-items: center;
  border: 1px solid transparent;
}
.diagram-tiers .tier.selected {
  background: var(--bg);
  border-color: var(--line);
}
.diagram-tiers .tier .tier-name {
  color: var(--ink-muted);
  font-weight: 500;
}
.diagram-tiers .tier.selected .tier-name {
  color: var(--ink);
  font-weight: 600;
}
.diagram-tiers .tier-size {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
}

/* Snippets diagram: trigger phrase → expanded value */
.diagram-snippets {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.diagram-snippets .snippet-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.diagram-snippets .snippet-trigger {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
  font-size: 12.5px;
  white-space: nowrap;
}
.diagram-snippets .snippet-arrow {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 12px;
}
.diagram-snippets .snippet-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Custom prompt diagram: a tiny code-editor pane */
.diagram-prompt {
  margin-top: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-family: var(--font-mono);
}
.diagram-prompt .prompt-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.diagram-prompt .prompt-bar-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ok);
}
.diagram-prompt .prompt-body {
  padding: 10px 12px;
  color: var(--ink-muted);
  line-height: 1.7;
  font-size: 11px;
}
.diagram-prompt .prompt-body .line {
  display: block;
}
.diagram-prompt .prompt-body .line + .line {
  margin-top: 2px;
}

/* ===== Setup section ===== */

.setup-section {
  padding: 72px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-sunken);
}
.setup-steps {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.setup-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px 24px;
  align-items: flex-start;
  counter-increment: step;
}
.setup-steps li + li {
  border-top: 1px solid var(--line);
}
.setup-steps li .step-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-sunken);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.setup-steps li .step-icon svg {
  width: 18px;
  height: 18px;
}
.setup-steps li .step-body {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.setup-steps li .step-body strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  font-size: 14.5px;
}
.setup-foot {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  line-height: 1.55;
}

/* ===== Responsive ===== */

@media (max-width: 960px) {
  .hero { padding: 56px 24px 40px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero h1 { font-size: 56px; }
  .hero-lede { font-size: 16px; }
  .nav { padding: 16px 24px; flex-wrap: wrap; gap: 12px; }
  .nav-links { display: none; }
  .how, .versus, .privacy,
  .modes, .customise, .compare, .setup-section { padding: 48px 24px; }
  .how h2, .privacy h2,
  .modes h2, .customise h2, .compare h2, .setup-section h2 { font-size: 28px; }
  .how-grid { grid-template-columns: 1fr; gap: 16px; }
  .versus-grid { grid-template-columns: 1fr; gap: 16px; }
  .modes-grid { grid-template-columns: 1fr; gap: 16px; }
  .customise-grid { grid-template-columns: 1fr; gap: 16px; }
  .privacy-row { grid-template-columns: 1fr; gap: 6px; }
  .compare-table th, .compare-table td { padding: 12px 12px; }
  .compare-table { font-size: 12.5px; }
  .setup-steps li { grid-template-columns: 36px 1fr; padding: 16px 18px; gap: 12px; }
  .diagram-privacy { grid-template-columns: 1fr; }
  .diagram-privacy .zone-arrow {
    border-left: none; border-right: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: row; padding: 12px 18px; min-width: 0;
  }
  .diagram-privacy .zone-arrow .glyph { transform: rotate(90deg); font-size: 18px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .prose { padding: 40px 24px 64px; }
  .prose h1 { font-size: 40px; }
  .prose h2 { font-size: 24px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 44px; }
  .nav-actions .nav-signin { display: none; }
  .demo-titlebar .file { display: none; }
}
