/* ==========================================================================
   SimGadget — site styles
   One stylesheet, no build step, no framework.

   Design brief: an instrument, not a SaaS page. Hairlines, tick marks,
   monospace numerals, measurements printed like readings off a bench.
   Two accents only: mint = measured / works, amber = refused / the old way.
   ========================================================================== */

/* --- tokens ------------------------------------------------------------- */

/* The palette lives in tokens.css so the generated API reference under /api/
   can import the same file and alias TypeDoc's variables onto it. Keep this
   @import first: the CSS spec ignores an @import that follows a rule. */
@import url("tokens.css");

/* --- reset -------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }

/* --- layout ------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-tight { max-width: 780px; }

section { padding-block: 88px; }
section.tight { padding-block: 60px; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding-block: 60px; }
  .wrap { padding-inline: 18px; }
}

/* --- type --------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-weight: 640; letter-spacing: -0.024em; line-height: 1.1; text-wrap: balance; }

h1 { font-size: clamp(2.4rem, 6.2vw, 4rem); letter-spacing: -0.038em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.22rem; letter-spacing: -0.018em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); line-height: 1.55; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.tiny  { font-size: .78rem; }

strong, b { font-weight: 660; color: var(--ink); }

/* the instrument label: small caps monospace with a tick */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--line-2);
}
.eyebrow .n { color: var(--accent); }

.sechead { margin-bottom: 40px; max-width: 760px; }
.sechead h2 + p { margin-top: 18px; }

/* --- tick rule (the instrument motif) ----------------------------------- */

.rule {
  height: 9px;
  border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 44px);
  background-size: 44px 5px;
  background-repeat: repeat-x;
  opacity: .9;
}

hr.hair { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* --- nav ---------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 26px; height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 660; letter-spacing: -0.03em; font-size: 1.06rem; }
.brand svg, .brand img { width: 24px; height: 24px; flex: none; }
.brand .dim { color: var(--ink-3); font-weight: 500; }

.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-size: .93rem;
  padding: 6px 0; border-bottom: 1.5px solid transparent; transition: color .15s, border-color .15s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.chip-ver {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); background: var(--amber-tint);
  border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent);
  padding: 3px 7px; border-radius: 5px; white-space: nowrap;
}

.theme-btn {
  appearance: none; background: transparent; border: 1px solid var(--line);
  color: var(--ink-2); border-radius: 8px; width: 32px; height: 32px;
  display: grid; place-items: center; cursor: pointer; flex: none; padding: 0;
}
.theme-btn:hover { color: var(--ink); border-color: var(--line-2); }
.theme-btn svg { width: 15px; height: 15px; }

@media (max-width: 860px) {
  .nav-links { gap: 16px; }
  .nav-links a { font-size: .87rem; }
  .chip-ver { display: none; }
}
@media (max-width: 620px) {
  .nav-in { height: 56px; gap: 12px; }
  .nav-links { gap: 13px; }
  .nav-links a.hide-sm { display: none; }
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: inherit; font-size: .95rem; font-weight: 560;
  padding: 11px 18px; border-radius: 10px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .12s ease, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 620; }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-2); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --- code --------------------------------------------------------------- */

code, kbd, pre, .mono { font-family: var(--mono); }

:not(pre) > code {
  font-size: .875em;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1em .38em;
  white-space: nowrap;
}

.term {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-3) 60%, var(--bg-2));
  font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-3);
}
.term-bar .dots { display: flex; gap: 5px; }
.term-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); display: block; }
.term-bar .name { margin-left: 4px; }
.term-bar .tag { margin-left: auto; color: var(--ink-3); }

pre {
  margin: 0; padding: 16px 18px;
  overflow-x: auto;
  font-size: .82rem; line-height: 1.68;
  tab-size: 2;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; white-space: pre; }

/* tiny hand-rolled syntax palette */
.t-c { color: var(--ink-3); font-style: italic; }      /* comment  */
.t-k { color: var(--amber); }                          /* keyword  */
.t-s { color: var(--accent); }                         /* string   */
.t-f { color: var(--ink); font-weight: 600; }          /* function */
.t-n { color: var(--ink-2); }                          /* punctuation / dim */
.t-p { color: var(--accent-2); }                       /* prompt   */

/* copyable command */
.cmd {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 12px 12px 15px;
  font-family: var(--mono); font-size: .875rem;
  box-shadow: var(--shadow);
}
.cmd .sig { color: var(--accent); user-select: none; }
/* min-width:0 is load-bearing — without it a flex item refuses to shrink
   below its min-content width, and the long `claude mcp add` line widens
   the whole page instead of scrolling inside its own box. */
.cmd .txt { overflow-x: auto; white-space: nowrap; scrollbar-width: none; flex: 1; min-width: 0; }
.cmd .txt::-webkit-scrollbar { display: none; }
.cmd .copy {
  appearance: none; background: transparent; border: 1px solid var(--line);
  color: var(--ink-3); border-radius: 7px; padding: 4px 8px; cursor: pointer;
  font: inherit; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; flex: none;
}
.cmd .copy:hover { color: var(--ink); border-color: var(--line-2); }
.cmd .copy.done { color: var(--accent); border-color: var(--accent); }
.cmd + .cmd { margin-top: 10px; }

/* --- cards / grids ------------------------------------------------------ */

.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card .icon {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--accent-tint); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.card .icon svg { width: 18px; height: 18px; }

/* --- stats -------------------------------------------------------------- */

.stat { border-left: 2px solid var(--accent); padding-left: 14px; }
.stat .val { font-family: var(--mono); font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.stat .val small { font-size: .55em; font-weight: 500; color: var(--ink-2); letter-spacing: 0; }
.stat .lbl { font-size: .82rem; color: var(--ink-2); margin-top: 5px; }
.stat.was { border-left-color: var(--line-2); }
.stat.was .val { color: var(--ink-3); }

/* the before/after reading */
.reading { display: inline-flex; align-items: baseline; gap: 10px; font-family: var(--mono); font-weight: 600; }
.reading .was { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.reading .arw { color: var(--ink-3); font-weight: 400; }
.reading .now { color: var(--accent); }

/* --- tables ------------------------------------------------------------- */

.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-2); }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .93rem; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; background: color-mix(in srgb, var(--bg-3) 50%, var(--bg-2));
}
tbody tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.tbl-tools td:first-child { width: 220px; }

/* API reference: signatures are long, so let them wrap rather than forcing
   the whole table into a horizontal scroll. */
.tbl-api { min-width: 460px; }
.tbl-api td:first-child { width: 42%; }
.tbl-api td:first-child code { white-space: normal; }
.tbl-api td { font-size: .9rem; }

.api-group { scroll-margin-top: 84px; }
.api-group + .api-group { margin-top: 40px; }
.api-group h3 { margin-bottom: 6px; }
.api-group > p { color: var(--ink-2); font-size: .9rem; margin-bottom: 14px; }

.api-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.api-index a {
  font-family: var(--mono); font-size: .74rem; text-decoration: none;
  color: var(--ink-2); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px;
}
.api-index a:hover { color: var(--accent); border-color: var(--accent); }

/* --- lists -------------------------------------------------------------- */

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 9px; height: 9px; border-radius: 2px;
  border: 1.5px solid var(--accent); background: var(--accent-tint);
}
.ticks li strong { color: var(--ink); }

/* --- fix cards (the bug dossier) ---------------------------------------- */

.fix {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  overflow: hidden;
}
.fix-head {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 24px 18px;
}
.fix-num {
  font-family: var(--mono); font-size: .74rem; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; flex: none; margin-top: 3px;
}
.fix-head h3 { margin-bottom: 6px; }
.fix-body { padding: 0 24px 22px 24px; color: var(--ink-2); }
.fix-body > :first-child { margin-top: 0; }
.fix-metric {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: .85rem;
}
.fix-metric .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }

/* --- callout ------------------------------------------------------------ */

.note {
  border-left: 2px solid var(--accent);
  background: var(--accent-tint);
  padding: 18px 22px;
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--ink-2);
}
.note strong { color: var(--ink); }
.note.warn { border-left-color: var(--amber); background: var(--amber-tint); }

blockquote.contract {
  margin: 0; padding: 20px 24px;
  border: 1px dashed var(--line-2); border-radius: var(--r);
  background: var(--bg-2); color: var(--ink-2);
  font-size: .98rem;
}

/* --- hero --------------------------------------------------------------- */

.hero { position: relative; padding-block: 74px 84px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 720px; z-index: 0;
  background:
    radial-gradient(52% 50% at 72% 34%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 68%),
    radial-gradient(40% 44% at 12% 8%, color-mix(in srgb, var(--amber) 9%, transparent) 0%, transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 44px; } }

.hero h1 { margin-bottom: 22px; }
.hero .lede { max-width: 34em; margin-bottom: 28px; }
.hero-cmds { max-width: 460px; margin-bottom: 20px; }
.hero-req { color: var(--ink-3); font-size: .84rem; }

/* --- device / demo ------------------------------------------------------ */

.demo { display: grid; gap: 14px; justify-items: center; }

.device {
  --w: 300px;
  width: var(--w);
  aspect-ratio: 300 / 620;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(160deg, var(--line-2), var(--bg-3) 40%, var(--line-2));
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6), 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
  position: relative;
}
.device::after { /* side button */
  content: ""; position: absolute; right: -2px; top: 152px; width: 2px; height: 62px;
  background: var(--line-2); border-radius: 2px;
}
.screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 34px; overflow: hidden;
  background: var(--bg-2);
  isolation: isolate;
}
.notch {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 14px; background: #0b0d0e; z-index: 9;
}
.screen video { width: 100%; height: 100%; object-fit: cover; }
.demo-cap { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); text-align: center; }

@media (max-width: 400px) { .device { --w: 258px; } }

/* --- fake app inside the device (video placeholder) --------------------- */

.fakeapp {
  position: absolute; inset: 0; z-index: 2;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  display: flex; flex-direction: column;
}
.fakeapp.hidden { display: none; }

.fa-status { display: flex; justify-content: space-between; padding: 13px 22px 4px; font-size: 11px; font-weight: 600; color: var(--ink); }
.fa-nav { padding: 8px 20px 12px; border-bottom: 1px solid var(--line); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.fa-list { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.fa-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 20px; border-bottom: 1px solid var(--line); flex: none;
}
.fa-row .lab { color: var(--ink); }
.fa-row .sub { color: var(--ink-3); font-size: 11px; }

.fa-ctl { position: relative; display: inline-flex; flex: none; }
.fa-sw { width: 42px; height: 25px; border-radius: 13px; background: var(--line-2); position: relative; flex: none; }
.fa-sw i { position: absolute; top: 2.5px; left: 2.5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }

.fa-btn {
  position: relative; margin: 18px 20px 22px; padding: 13px; border-radius: 11px;
  background: var(--accent); color: var(--bg); text-align: center; font-weight: 640; margin-top: auto;
}
.fa-tabs { display: flex; border-top: 1px solid var(--line); padding: 9px 0 16px; }
.fa-tabs div { flex: 1; text-align: center; font-size: 10px; color: var(--ink-3); }
.fa-tabs div.on { color: var(--accent); }

.fa-done {
  position: absolute; inset: 0; background: var(--bg); z-index: 5;
  display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 30px;
  opacity: 0;
}
.fa-done .big { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.fa-done .sm { font-size: 12px; color: var(--ink-3); }
.fa-check {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font-size: 22px;
}

/* The tap indicator rides inside its target, so it can never drift out of
   register with the layout the way absolute coordinates do. */
.fa-ping {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px;
  margin: -23px 0 0 -23px; border-radius: 50%;
  border: 1.5px solid var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent);
  opacity: 0; pointer-events: none;
}
.fa-btn .fa-ping { border-color: var(--bg); background: color-mix(in srgb, #000 18%, transparent); }

/* --- one 14s loop, shared timeline -------------------------------------- */
@keyframes ping-a {
  0%, 13%  { opacity: 0; transform: scale(.35); }
  15%      { opacity: .95; transform: scale(.6); }
  22%, 100%{ opacity: 0; transform: scale(1.7); }
}
@keyframes ping-b {
  0%, 41%  { opacity: 0; transform: scale(.35); }
  43%      { opacity: .95; transform: scale(.6); }
  50%, 100%{ opacity: 0; transform: scale(1.7); }
}
@keyframes sw-on {
  0%, 16%   { background: var(--line-2); }
  19%, 90%  { background: var(--accent); }
  93%, 100% { background: var(--line-2); }
}
@keyframes sw-knob {
  0%, 16%   { transform: translateX(0); }
  19%, 90%  { transform: translateX(17px); }
  93%, 100% { transform: translateX(0); }
}
@keyframes btn-press {
  0%, 42%   { transform: scale(1); filter: none; }
  45%       { transform: scale(.965); filter: brightness(.88); }
  49%, 100% { transform: scale(1); filter: none; }
}
@keyframes done-in {
  0%, 50%   { opacity: 0; transform: translateY(10px); }
  56%, 88%  { opacity: 1; transform: translateY(0); }
  93%, 100% { opacity: 0; transform: translateY(0); }
}

.playing .fa-ping.p1 { animation: ping-a 14s ease-out infinite; }
.playing .fa-ping.p2 { animation: ping-b 14s ease-out infinite; }
.playing .fa-sw.target { animation: sw-on 14s linear infinite; }
.playing .fa-sw.target i { animation: sw-knob 14s cubic-bezier(.4,1.7,.5,1) infinite; }
.playing .fa-btn { animation: btn-press 14s linear infinite; }
.playing .fa-done { animation: done-in 14s ease infinite; }

/* --- the wire log next to the phone ------------------------------------- */

.wirelog {
  width: 100%; max-width: 420px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
  font-family: var(--mono); font-size: .715rem; line-height: 1.5;
  padding: 12px 14px; box-shadow: var(--shadow);
}
.wirelog .ln { display: flex; gap: 8px; padding: 3px 0; opacity: .34; transition: opacity .3s; }
.wirelog .ln .ar { color: var(--ink-3); flex: none; }
.wirelog .ln.hot { opacity: 1; }
.wirelog .req { color: var(--ink); }
.wirelog .res { color: var(--accent); }
.wirelog .res.amber { color: var(--amber); }

@keyframes log1 { 0%,6%{opacity:.34} 10%,18%{opacity:1} 22%,100%{opacity:.34} }
@keyframes log2 { 0%,18%{opacity:.34} 22%,36%{opacity:1} 40%,100%{opacity:.34} }
@keyframes log3 { 0%,36%{opacity:.34} 40%,48%{opacity:1} 52%,100%{opacity:.34} }
@keyframes log4 { 0%,48%{opacity:.34} 52%,88%{opacity:1} 92%,100%{opacity:.34} }
.playing .wirelog .ln:nth-child(1) { animation: log1 14s linear infinite; }
.playing .wirelog .ln:nth-child(2) { animation: log2 14s linear infinite; }
.playing .wirelog .ln:nth-child(3) { animation: log3 14s linear infinite; }
.playing .wirelog .ln:nth-child(4) { animation: log4 14s linear infinite; }

/* --- conversation scroller ---------------------------------------------- */
/* What a person says, and what the agent actually calls. Scrolls inside
   itself so a long transcript costs one screen of page, not five. */

.convo {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.convo::after {
  content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 64px;
  background: linear-gradient(to top, var(--bg-2) 22%, transparent);
  pointer-events: none;
}
.convo-scroll { max-height: 480px; overflow-y: auto; overscroll-behavior: contain; }
.convo-turn { padding: 22px 26px 26px; border-bottom: 1px solid var(--line); }
.convo-turn:last-child { border-bottom: 0; padding-bottom: 64px; }

.convo .you {
  position: relative; margin: 0 0 14px; padding-left: 24px;
  color: var(--ink); font-size: 1.02rem; letter-spacing: -.01em;
}
.convo .you::before {
  content: ""; position: absolute; left: 2px; top: .48em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}
.convo .ran {
  margin: 0 0 6px; padding-left: 24px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
}
.convo pre { padding: 4px 12px 0 24px; font-size: .79rem; line-height: 1.75; }
.convo .t-r { color: var(--accent); }        /* what came back */

/* --- comparison strip --------------------------------------------------- */

.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--bg-2); }
.versus .side { padding: 24px 26px; }
.versus .mid { width: 1px; background: var(--line); }
.versus .hd { font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 14px; }
.versus .old .hd { color: var(--amber); }
.versus .new .hd { color: var(--accent); }
.versus ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: .92rem; color: var(--ink-2); }
.versus .old li::before { content: "—  "; color: var(--ink-3); font-family: var(--mono); }
.versus .new li::before { content: "+  "; color: var(--accent); font-family: var(--mono); }
@media (max-width: 700px) {
  .versus { grid-template-columns: 1fr; }
  .versus .mid { width: auto; height: 1px; }
}

/* --- FAQ ---------------------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 580; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 18px;
  font-family: var(--mono); font-size: 1.2rem; color: var(--ink-3); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--accent); }
.faq .a { padding: 0 40px 22px 0; color: var(--ink-2); }

/* --- page header (inner pages) ------------------------------------------ */

.phead { padding-block: 68px 44px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.phead::before {
  content: ""; position: absolute; inset: -60% 40% auto -10%; height: 460px;
  background: radial-gradient(50% 50% at 30% 50%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.phead .wrap { position: relative; }
.phead h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 20px; }
.phead .lede { max-width: 46em; }
.phead .cmd { max-width: 420px; margin-top: 26px; }

/* --- prose columns ------------------------------------------------------ */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }
.split.wide-right { grid-template-columns: .85fr 1.15fr; }
@media (max-width: 900px) { .split, .split.wide-left, .split.wide-right { grid-template-columns: 1fr; gap: 30px; } }

.stack { display: grid; gap: 20px; }
.stack-lg { display: grid; gap: 36px; }

/* --- diagram ------------------------------------------------------------ */

.diagram { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.diagram svg { width: 100%; height: auto; }
.dg-line { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
.dg-box  { fill: var(--bg); stroke: var(--line-2); stroke-width: 1.5; }
.dg-box-a{ fill: var(--accent-tint); stroke: var(--accent); stroke-width: 1.5; }
.dg-t    { fill: var(--ink); font-family: var(--mono); font-size: 13px; }
.dg-t2   { fill: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.dg-ta   { fill: var(--accent); font-family: var(--mono); font-size: 13px; font-weight: 600; }

/* --- CTA band ----------------------------------------------------------- */

.cta {
  border: 1px solid var(--line); border-radius: 22px;
  background:
    radial-gradient(70% 130% at 88% 10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%),
    var(--bg-2);
  padding: 48px;
}
.cta h2 { margin-bottom: 14px; }
@media (max-width: 640px) { .cta { padding: 30px 24px; } }

/* --- footer ------------------------------------------------------------- */

footer.site { border-top: 1px solid var(--line); padding-block: 46px 60px; color: var(--ink-2); font-size: .9rem; }
footer.site a { color: var(--ink-2); }
footer.site a:hover { color: var(--accent); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-bot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; color: var(--ink-3); font-size: .82rem; }

/* --- misc --------------------------------------------------------------- */

.anchor { scroll-margin-top: 84px; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }

.pill {
  display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 5px;
  background: var(--accent-tint); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.pill.amber { background: var(--amber-tint); color: var(--amber); border-color: color-mix(in srgb, var(--amber) 25%, transparent); }
.pill.plain { background: var(--bg-3); color: var(--ink-3); border-color: var(--line); }

::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
