/* ============================================================
   Murmur — landing page styles
   Ported from the design handoff (design_handoff_murmur_landing).
   Tokens, keyframes and component styles mirror the prototype's
   theme.jsx / Murmur - Landing.html. Light by default; the hero and
   the closing/footer bookend use the dark token scope.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  font-family: var(--font-ui);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: color-mix(in oklch, var(--accent) 26%, transparent); }
a { color: inherit; }
img { max-width: 100%; }

/* ── tokens — light (page default) ────────────────────────── */
:root {
  --bg: oklch(0.968 0.004 80);
  --surface: oklch(0.997 0.0015 80);
  --surface-2: oklch(0.962 0.005 80);
  --surface-3: oklch(0.94 0.006 80);
  --ink: oklch(0.245 0.008 70);
  --ink-soft: oklch(0.47 0.008 70);
  --ink-faint: oklch(0.64 0.006 70);
  --line: oklch(0.905 0.005 75);
  --line-soft: oklch(0.93 0.004 75);
  --accent: oklch(0.60 0.13 248);
  --accent-soft: oklch(0.60 0.13 248 / 0.12);
  --ok: oklch(0.58 0.11 155);
  --shadow: 0 1px 2px rgba(40,34,26,0.05), 0 12px 34px rgba(40,34,26,0.10);
  --shadow-sm: 0 1px 2px rgba(40,34,26,0.06), 0 4px 14px rgba(40,34,26,0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --font-ui: "Hanken Grotesk", system-ui, sans-serif;
  --font-display: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, monospace;
}

/* ── tokens — dark scope (hero + closing/footer) ──────────── */
[data-theme="dark"] {
  --bg: oklch(0.175 0.006 70);
  --surface: oklch(0.215 0.007 70);
  --surface-2: oklch(0.255 0.008 70);
  --surface-3: oklch(0.30 0.009 70);
  --ink: oklch(0.945 0.004 85);
  --ink-soft: oklch(0.74 0.006 85);
  --ink-faint: oklch(0.56 0.007 80);
  --line: oklch(0.33 0.009 70);
  --line-soft: oklch(0.28 0.008 70);
  --accent: oklch(0.74 0.12 246);
  --accent-soft: oklch(0.74 0.12 246 / 0.16);
  --ok: oklch(0.74 0.12 158);
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 18px 48px rgba(0,0,0,0.5);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 6px 18px rgba(0,0,0,0.4);
  background: var(--bg);
  color: var(--ink);
}

/* ── keyframes (ported from the product prototype) ────────── */
@keyframes mm-wf { 0%,100%{transform:scaleY(var(--b,0.34));} 50%{transform:scaleY(1);} }
@keyframes mm-wf-idle { 0%,100%{transform:scaleY(0.22);} 50%{transform:scaleY(0.4);} }
@keyframes mm-dot { 0%,80%,100%{opacity:0.22;transform:translateY(0) scale(0.85);} 40%{opacity:1;transform:translateY(-2px) scale(1);} }
@keyframes mm-ring { 0%{transform:scale(0.82);opacity:0.5;} 70%{opacity:0;} 100%{transform:scale(1.55);opacity:0;} }
@keyframes mm-caret { 0%,100%{opacity:0;} 50%{opacity:1;} }
@keyframes mm-spin { to { transform: rotate(360deg); } }
@keyframes mm-fade-up { from{opacity:0;transform:translateY(6px);} to{opacity:1;transform:translateY(0);} }
@keyframes mm-pop { 0%{opacity:0;transform:scale(0.6);} 60%{transform:scale(1.12);} 100%{opacity:1;transform:scale(1);} }
@keyframes mm-breathe { 0%,100%{transform:scale(1);opacity:0.55;} 50%{transform:scale(1.06);opacity:0.85;} }
@keyframes mm-float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-7px);} }

/* ── reveal-on-scroll (CSS scroll-timeline; degrades visible) ── */
@keyframes reveal-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 4% entry 42%; }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── buttons ──────────────────────────────────────────────── */
.btn { font-family: var(--font-ui); cursor: pointer; border: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; transition: transform .14s ease, background .16s ease, box-shadow .16s ease, color .16s ease, border-color .16s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); height: 54px; padding: 0 28px; border-radius: 999px; font-size: 15.5px; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow), 0 0 0 4px color-mix(in oklch, var(--ink) 13%, transparent); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 0.5px solid var(--line); height: 54px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; }
.btn-ghost:hover { color: var(--ink); background: color-mix(in oklch, var(--surface-2) 70%, transparent); border-color: var(--ink-faint); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }

.pill-link { font-family: var(--font-ui); color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; transition: color .14s ease; display: inline-flex; align-items: center; gap: 7px; }
.pill-link:hover { color: var(--ink); }

.section { scroll-margin-top: 84px; }

/* ── layout ───────────────────────────────────────────────── */
.lwrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.lwrap--nav { max-width: 1240px; }
.lwrap--hero { max-width: 980px; }
.lwrap--models { max-width: 1000px; }
.lwrap--cta { max-width: 840px; }

/* ── shared type atoms ────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 20px;
}
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.eyebrow--center { justify-content: center; }

.headline {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(33px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -0.032em;
  color: var(--ink); text-wrap: balance;
}
.headline--center { text-align: center; margin-inline: auto; }

.lede {
  margin: 18px 0 0; font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.62;
  color: var(--ink-soft); max-width: 560px; text-wrap: pretty;
}
.lede--center { text-align: center; margin-inline: auto; }

.centered-head { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; background-color: transparent;
  border-bottom: 0.5px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav--frosted {
  background-color: color-mix(in oklch, var(--surface) 78%, transparent);
  border-bottom: 0.5px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav__row { height: 68px; display: flex; align-items: center; gap: 24px; }
.nav__links { margin-left: 18px; display: flex; gap: 26px; }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }

/* wordmark */
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark__mark {
  width: 28px; height: 28px; border-radius: 9px; background: var(--ink); color: var(--bg);
  display: grid; place-items: center; flex: 0 0 auto;
}
.wordmark__name { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

/* ── download cluster ─────────────────────────────────────── */
.dl-cluster { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.dl-cluster--center { align-items: center; }
.dl-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dl-cluster--center .dl-row { justify-content: center; }
.dl-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint);
}
.dl-cluster--center .dl-meta { justify-content: center; }
.dl-meta__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.dl-meta__ok span { color: var(--ink-faint); }
.dl-meta__sep { opacity: 0.5; }

/* macOS one-line install — click-to-copy command (Homebrew-style) */
.cmd {
  display: inline-flex; align-items: center; gap: 11px; max-width: 100%;
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1;
  background: var(--surface-2); border: 0.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .14s ease, background .14s ease;
}
.cmd:hover { border-color: var(--ink-faint); }
.cmd__prompt { color: var(--accent); flex: 0 0 auto; font-weight: 600; }
.cmd__text { color: var(--ink); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd__text::-webkit-scrollbar { display: none; }
.cmd__copy { flex: 0 0 auto; display: inline-flex; color: var(--ink-faint); }
.cmd__check-i { display: none; }
.cmd.copied { border-color: color-mix(in oklch, var(--ok) 55%, transparent); }
.cmd.copied .cmd__copy-i { display: none; }
.cmd.copied .cmd__check-i { display: inline; color: var(--ok); }

/* ── hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
}
.hero__wash {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(110% 80% at 50% -8%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 60%);
}
.hero__body { position: relative; flex: 1; display: flex; align-items: center; padding: 120px 0 80px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px;
}
.hero__h1 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(44px, 7vw, 88px); line-height: 0.98; letter-spacing: -0.04em;
  color: var(--ink); text-wrap: balance;
}
.hero__sub {
  margin: 22px auto 0; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6;
  color: var(--ink-soft); max-width: 600px; text-wrap: pretty;
}
.hero__cluster { margin-top: 38px; }
.hero__widget { margin-top: 72px; width: 100%; display: flex; justify-content: center; }

/* ── floating pill widget ─────────────────────────────────── */
.pill-loop { position: relative; display: grid; place-items: center; animation: mm-float 6s ease-in-out infinite; }
.pill-loop__glow {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--accent) 30%, transparent), transparent 66%);
  filter: blur(18px); opacity: 0.65; pointer-events: none;
}
.pill {
  position: relative; display: flex; align-items: center; gap: 11px;
  height: 52px; padding: 0 16px 0 11px; border-radius: 999px; min-width: 244px;
  font-family: var(--font-ui);
  background: color-mix(in oklch, var(--surface) 82%, transparent);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 0.5px solid var(--line); box-shadow: var(--shadow);
}
.pill__glyph {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.pill__glyph--idle { background: var(--surface-2); color: var(--ink-soft); }
.pill__center { flex: 1; display: inline-flex; align-items: center; font-size: 14.5px; font-weight: 500; }
.pill__center--idle { color: var(--ink-faint); }
.pill__center--label { gap: 9px; }
.pill__center--done { color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
.pill__meta {
  flex: 0 0 auto; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  color: var(--ink-faint); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pill__meta--accent { color: var(--accent); }

/* waveform / dots / spinner / live dot used inside the pill */
.wf { display: flex; align-items: center; gap: 3px; height: 26px; flex: 1; color: var(--ink); }
.wf span { display: block; width: 3px; height: 100%; flex: 0 0 auto; background: currentColor; border-radius: 3px; transform-origin: center; }
.dots { display: inline-flex; align-items: center; gap: 4px; }
.dots span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.spinner {
  display: inline-block; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid color-mix(in oklch, var(--ink-soft) 22%, transparent);
  border-top-color: var(--ink-soft); animation: mm-spin 0.7s linear infinite;
}
.livedot { position: relative; width: 11px; height: 11px; display: inline-flex; align-items: center; justify-content: center; }
.livedot__ring { position: absolute; inset: 0; border-radius: 50%; background: var(--accent); }
.livedot__core { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); position: relative; }
.glyph-done { color: var(--ok); display: inline-flex; animation: mm-pop .35s ease-out; }
.glyph-polish { color: var(--accent); display: inline-flex; }

/* ── privacy / local-first ────────────────────────────────── */
.privacy { padding: clamp(84px, 12vh, 140px) 0; }
.flow-wrap { margin-top: 56px; position: relative; }
.flow-box {
  position: relative; border: 1px dashed var(--line); border-radius: calc(var(--radius) + 8px);
  padding: 34px 30px 30px; background: color-mix(in oklch, var(--surface-2) 45%, transparent);
}
.flow-tab {
  position: absolute; top: -11px; left: 28px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg); padding: 0 12px; height: 22px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); border: 0.5px solid var(--line);
}
.flow-tab__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.flow { display: flex; align-items: stretch; gap: 4px; }
.flow-node {
  flex: 1 1 0; min-width: 0; background: var(--surface); border: 0.5px solid var(--line);
  border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 11px;
}
.flow-node__icon {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--surface-2); color: var(--ink-soft);
}
.flow-node__icon--accent { background: var(--accent-soft); color: var(--accent); }
.flow-node__title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.flow-node__sub { font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; font-family: var(--font-mono); letter-spacing: -0.01em; }
.flow-arrow { flex: 0 0 auto; display: flex; align-items: center; color: var(--ink-faint); align-self: center; padding: 0 2px; }
.flow-arrow span { transform: rotate(-90deg); display: inline-flex; }
.flow-cloud { display: flex; align-items: center; gap: 9px; justify-content: center; margin-top: 18px; color: var(--ink-faint); }
.flow-cloud__icon { opacity: 0.5; display: inline-flex; }
.flow-cloud__note { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.01em; }
.flow-cloud__strike { text-decoration: line-through; text-decoration-color: color-mix(in oklch, var(--accent) 55%, transparent); text-decoration-thickness: 1.5px; }

.trust { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.trust-card { background: var(--surface); border: 0.5px solid var(--line); border-radius: var(--radius); padding: 24px 24px 26px; }
.trust-card__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); color: var(--ok); display: grid; place-items: center; margin-bottom: 16px; }
.trust-card__title { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 8px; }
.trust-card__body { margin: 0; font-size: 14px; line-height: 1.56; color: var(--ink-soft); text-wrap: pretty; }

/* ── models ───────────────────────────────────────────────── */
.models { padding: clamp(84px, 12vh, 140px) 0; background: var(--surface); }
.models__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.models__intro .headline { max-width: 520px; }
.models__intro .lede { max-width: 420px; margin-top: 0; }
.models-table {
  margin-top: 48px; background: var(--bg); border: 0.5px solid var(--line);
  border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow-sm);
}
.mrow { display: grid; grid-template-columns: 92px 1fr 1fr 1fr 1.1fr; gap: 16px; align-items: center; }
.mrow--head {
  padding: 15px 26px; border-bottom: 0.5px solid var(--line); background: var(--surface-2);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-faint);
}
.mrow--body { padding: 17px 26px; border-bottom: 0.5px solid var(--line-soft); }
.mrow--rec { background: var(--accent-soft); }
.mrow__id { font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.mrow__mono { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.mrow__use { display: inline-flex; align-items: center; gap: 10px; }
.mrow__use span { font-size: 13.5px; color: var(--ink-soft); }
.acc { display: inline-flex; gap: 4px; }
.acc span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.acc span.on { background: var(--accent); }
.badge {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); border: 0.5px solid color-mix(in oklch, var(--accent) 40%, transparent);
  border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}
.models-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 26px; }
.models-foot__ok { display: inline-flex; align-items: center; gap: 8px; color: var(--ok); }
.models-foot__ok span { font-size: 12.5px; color: var(--ink-soft); }
.models-foot__note { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }

/* ── desktop app screenshots ──────────────────────────────── */
.screens { padding: clamp(84px, 12vh, 140px) 0; }
.shots { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.shot-frame { width: 100%; overflow: hidden; border-radius: 14px; border: 0.5px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.shot-window { width: 900px; height: 620px; transform-origin: top left; }
.shot-cap { margin-top: 18px; padding-inline: 4px; }
.shot-cap__title { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.shot-cap__desc { font-size: 13.5px; color: var(--ink-faint); margin-top: 3px; text-wrap: pretty; }

/* ── desktop-app mockup (rendered at 900×620, then scaled) ─── */
.app { position: relative; width: 900px; height: 620px; display: flex; background: var(--surface); color: var(--ink); font-family: var(--font-ui); }
.app__bar { position: absolute; top: 0; left: 0; right: 0; height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 16px; z-index: 2; }
.app__lights { display: inline-flex; gap: 8px; }
.app__lights span { width: 11px; height: 11px; border-radius: 50%; }
.app__side {
  position: relative; width: 212px; flex: 0 0 auto; border-right: 0.5px solid var(--line);
  background: var(--surface-2); padding: 50px 16px 18px; display: flex; flex-direction: column;
}
.app__brand { display: inline-flex; align-items: center; gap: 9px; margin: 0 6px 22px; }
.app__brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--surface-2); display: grid; place-items: center; }
.app__brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.app__nav { display: flex; flex-direction: column; gap: 3px; }
.app__navitem { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--ink-soft); }
.app__navitem.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.app__navitem svg { color: var(--ink-faint); }
.app__navitem.on svg { color: var(--accent); }
.app__sidefoot { margin-top: auto; padding: 12px 11px 0; border-top: 0.5px solid var(--line); font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); display: flex; align-items: center; gap: 7px; }
.app__main { position: relative; flex: 1; min-width: 0; padding: 50px 34px 30px; overflow: hidden; }

.app__greet { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.app__sub { font-size: 13.5px; color: var(--ink-faint); margin-top: 5px; }
.app__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.app__stat { background: var(--surface); border: 0.5px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.app__stat-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.app__stat-v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); margin-top: 8px; }
.app__stat-v em { font-style: normal; font-size: 14px; color: var(--ink-faint); font-weight: 500; margin-left: 3px; }
.app__seclabel { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 30px 0 14px; display: flex; align-items: center; justify-content: space-between; }
.app__search { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 13px; border-radius: 11px; border: 0.5px solid var(--line); background: var(--surface); color: var(--ink-faint); font-size: 13px; margin-bottom: 10px; }
.app__hist { display: flex; flex-direction: column; gap: 8px; }
.app__hrow { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 0.5px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.app__hrow-body { min-width: 0; flex: 1; }
.app__hrow-text { font-size: 13.5px; color: var(--ink); line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app__hrow-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); margin-top: 4px; }
.app__hrow-copy { width: 30px; height: 30px; border-radius: 8px; border: 0.5px solid var(--line); display: grid; place-items: center; color: var(--ink-faint); flex: 0 0 auto; }

/* settings view */
.app__h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.app__card { background: var(--surface); border: 0.5px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-sm); margin-top: 14px; }
.app__field { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app__field + .app__field { margin-top: 16px; padding-top: 16px; border-top: 0.5px solid var(--line-soft); }
.app__field-k { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.app__field-h { font-size: 12px; color: var(--ink-faint); margin-top: 3px; }
.app__control { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 9px; border: 0.5px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--ink-soft); }
.app__kbd { font-family: var(--font-mono); font-size: 12px; color: var(--ink); background: var(--surface-2); border: 0.5px solid var(--line); border-radius: 7px; padding: 4px 9px; }
.app__models { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.app__model { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; border: 0.5px solid var(--line); background: var(--surface-2); }
.app__model.on { border-color: color-mix(in oklch, var(--accent) 45%, transparent); background: var(--accent-soft); }
.app__model-radio { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--line); flex: 0 0 auto; display: grid; place-items: center; }
.app__model.on .app__model-radio { border-color: var(--accent); }
.app__model.on .app__model-radio::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.app__model-id { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink); }
.app__model-meta { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }

/* ── closing CTA + footer (dark bookend) ──────────────────── */
.closing { position: relative; overflow: hidden; }
.closing__wash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 120% at 50% 0%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 58%); }
.closing__inner { position: relative; padding: clamp(96px, 15vh, 168px) 28px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.closing__widget { margin-bottom: 30px; }
.closing__h2 {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -0.035em;
  color: var(--ink); text-wrap: balance;
}
.closing__lede { margin: 20px 0 36px; font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; color: var(--ink-soft); max-width: 520px; text-wrap: pretty; }

.footer { position: relative; border-top: 0.5px solid var(--line); }
.footer__grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; padding: 44px 0 0; }
.footer__about { max-width: 320px; }
.footer__tag { margin: 16px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-faint); text-wrap: pretty; }
.footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col-h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 3px; }
.footer__col .pill-link { font-size: 13.5px; }
.footer__bottom { margin-top: 40px; padding: 22px 0 40px; border-top: 0.5px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.footer__bottom span { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); display: inline-flex; align-items: center; gap: 8px; }

/* ── responsive ───────────────────────────────────────────── */
@media (max-width: 920px) {
  .models-table { overflow-x: auto; }
  .models-table > .mrow, .models-table > .models-foot { min-width: 720px; }
}
@media (max-width: 820px) {
  .nav__links { display: none; }
  .trust { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .flow { flex-wrap: wrap; }
  .flow-node { flex: 1 1 40%; }
  .flow-arrow { display: none; }
}
@media (max-width: 560px) {
  .nav-source { display: none; }
  .flow-node { flex: 1 1 100%; }
}
