/* The page keeps its own night palette. Everything inside .app uses Sonarak's own dark
   theme tokens (copied from src/styles.css) so the demo looks like the real window. */
:root {
  --night: #0b1020;
  --night-2: #121a30;
  --card: #161f38;
  --rule: rgba(244, 241, 232, 0.12);
  --cream: #f4f1e8;
  --soft: #b4b9cb;
  --dim: #8f96b3;
  --teal: #5eead4;
  --teal-dim: rgba(94, 234, 212, 0.14);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --code: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Sukhumvit Set", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); }
code, kbd, .mono { font-family: var(--code); }
code { font-size: 0.88em; background: rgba(244, 241, 232, 0.08); padding: 1px 6px; border-radius: 5px; }
kbd { font-size: 0.85em; background: rgba(244, 241, 232, 0.08); border: 1px solid var(--rule); padding: 0 5px; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.ic { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -1px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 6px 28px; background: rgba(11, 16, 32, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.brand { display: flex; align-items: center; gap: 9px; min-height: 44px; font: 800 20px var(--display); color: var(--cream); text-decoration: none; }
.nav nav { display: flex; gap: 4px; }
.nav nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--soft); text-decoration: none; font-size: 15px; font-weight: 500; border-radius: 8px; }
.nav nav a:hover { color: var(--cream); background: rgba(244, 241, 232, 0.06); }

/* ---------- shared ---------- */
section { max-width: 1100px; margin: 0 auto; padding: 72px 24px; }
h1, h2, h3 { font-family: var(--display); margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2.h-small { font-size: 22px; letter-spacing: -0.01em; }
.section-head { margin-bottom: 32px; }
.section-head.tight { margin-bottom: 14px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.sub { color: var(--soft); max-width: 680px; margin: 10px 0 0; }
.section-head.tight .sub { margin: 0; font-size: 15px; flex: 1 1 420px; max-width: none; }

/* ---------- hero: small, so the demo starts above the fold ---------- */
.hero { text-align: center; padding: 22px 24px 18px; }
.bat-wrap { position: relative; width: 150px; height: 88px; margin: 0 auto 10px; display: grid; place-items: center; }
.bat { width: 66px; fill: var(--cream); position: relative; z-index: 2; animation: hover 4s ease-in-out infinite; }
.bat .eye { fill: var(--night); }
.bat .ear { fill: #f2b8b5; }
.bat .cheek { fill: #f6a5a5; opacity: 0.85; }
.bat .glint { fill: var(--cream); }
.bat .mouth { fill: var(--night); stroke: var(--night); stroke-width: 10; stroke-linejoin: round; }
.bat .fang { fill: #fff; }
.ring { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 2px solid var(--teal); border-radius: 50%; opacity: 0; animation: ping 3s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.ring.r2 { animation-delay: 1.5s; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(3); opacity: 0; } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.hero h1 { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.lede { color: var(--soft); max-width: 640px; margin: 12px auto 18px; font-size: 18px; line-height: 1.5; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 10px; border: 1.5px solid rgba(244, 241, 232, 0.55); color: var(--cream); text-decoration: none; font: 700 16px var(--display); transition: background 0.15s, border-color 0.15s; }
.btn:hover { background: rgba(244, 241, 232, 0.08); border-color: var(--cream); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--night); }
.btn.primary:hover { background: #7ff0de; border-color: #7ff0de; }
.demo-section { padding-top: 14px; padding-bottom: 36px; }
.meta { color: var(--dim); font-size: 13.5px; margin: 12px 0 0; }
.mac-only { display: none; }

/* ---------- the app look: Sonarak's dark theme ---------- */
.app {
  --bg: #1d1d1c;
  --panel: #232322;
  --side: #1a1a19;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #ecebe6;
  --muted: #a3a19a;
  --faint: #8a8880;
  --hover: rgba(255, 255, 255, 0.05);
  --sel: #23364f;
  --accent: #4f8ff0;
  --on-accent: #fff;
  --get: #74c27a;
  --post: #e2b04a;
  --put: #6fb1ea;
  --patch: #ae95f2;
  --delete: #ef7d70;
  --ok: #74c27a;
  --bad: #ef7d70;
  --bad-bg: #3b2322;
  --warn: #e2b04a;
  --warn-bg: #3a3020;
  --new-bg: #22361f;
  --code-bg: #1b1b1a;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --r-ctl: 6px;
  --r-box: 10px;
  font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  text-align: left;
}
.app code, .app .mono, .app pre { font-family: var(--mono); }
.app code { background: var(--hover); padding: 0 4px; border-radius: 4px; font-size: 0.92em; }
:where(.app) button { font: inherit; color: inherit; cursor: pointer; }
.app :focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-ctl); }
.app .muted { color: var(--muted); }
.app .link { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.app .m { font-family: var(--mono); font-size: 10.5px; font-weight: 700; width: 36px; flex: none; letter-spacing: 0.01em; }
.app .GET { color: var(--get); } .app .POST { color: var(--post); } .app .PUT { color: var(--put); } .app .DELETE { color: var(--delete); }

.a-title { display: flex; align-items: center; gap: 14px; padding: 7px 14px; background: var(--side); border-bottom: 1px solid var(--line); }
.lights { display: flex; gap: 8px; margin-right: 4px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; flex-wrap: wrap; }
.crumb { display: flex; flex-direction: column; min-width: 0; }
.crumb small { font-size: 10.5px; line-height: 13px; color: var(--faint); }
.crumb b { font-size: 13.5px; line-height: 18px; font-weight: 600; white-space: nowrap; }
.crumbs .sep { color: var(--faint); font-size: 15px; padding-top: 12px; }
.crumb.env { margin-left: auto; text-align: right; }

.a-tabbar { display: flex; align-items: stretch; min-height: 34px; background: var(--side); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.a-tabbar::-webkit-scrollbar { display: none; }
.a-tab { display: flex; align-items: center; gap: 6px; padding: 0 12px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--muted); white-space: nowrap; flex: none; }
.a-tab[hidden] { display: none; }
.a-tab.ep:hover { color: var(--text); background: var(--hover); }
.a-tab.on { color: var(--text); background: var(--panel); font-weight: 500; box-shadow: inset 0 2px 0 var(--accent); }
.a-tab .m { width: auto; }
.a-tab .tname { font-family: var(--mono); font-size: 12px; }
.a-tab .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.a-tab .dot.bad { background: var(--bad); }
.a-tab .dot[hidden] { display: none; }

.a-main { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.a-side { background: var(--side); border-right: 1px solid var(--line); padding: 8px 0 10px; min-width: 0; }
.a-filter { display: flex; align-items: center; gap: 7px; margin: 2px 10px 4px; padding: 4px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--panel); color: var(--faint); }
.a-filter kbd { margin-left: auto; font: 11px var(--mono); background: none; border: 0; color: var(--faint); padding: 0; }
.a-group { display: flex; align-items: center; gap: 6px; padding: 8px 14px 4px; }
.a-group .chev { color: var(--faint); transform: rotate(90deg); }
.a-side.static .a-group:not(.open) .chev { transform: none; }
.a-group .gname { font-family: var(--mono); font-size: 12px; font-weight: 600; }
.a-group .gprefix { font-family: var(--mono); font-size: 10px; color: var(--faint); background: var(--hover); padding: 0 5px; border-radius: 4px; }
.a-group .gcount { margin-left: auto; font-size: 11px; color: var(--faint); }
.a-group.sub { padding-left: 30px; }
.a-group.sub .gname { font-weight: 500; }
.a-group.plain { color: var(--muted); font-size: 11.5px; font-weight: 600; padding-top: 12px; }
.a-ep { display: flex; align-items: center; gap: 6px; width: calc(100% - 16px); margin: 0 8px; padding: 5px 8px 5px 24px; border: 0; border-radius: 6px; background: none; text-align: left; white-space: nowrap; min-width: 0; }
button.a-ep:hover { background: var(--hover); }
.a-ep.on { background: var(--sel); }
.a-ep .path { font-family: var(--mono); font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.a-ep .pre { color: var(--faint); }
.a-ep .lock { color: var(--faint); display: flex; }
.a-ep.gone { opacity: 0.75; }
.a-ep.gone .path { text-decoration: line-through; }
.a-ep.next:not(.on) { box-shadow: inset 0 0 0 1.5px var(--accent); animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { box-shadow: inset 0 0 0 1.5px transparent; } }
.badge { font-size: 10px; line-height: 14px; padding: 0 5px; border-radius: 4px; flex: none; }
.badge.new { background: var(--new-bg); color: var(--ok); }
.badge.changed { background: var(--warn-bg); color: var(--warn); }
.badge.removed { background: var(--bad-bg); color: var(--bad); }
.cmp-note { margin: 2px 10px 2px; padding: 4px 8px; font-size: 11.5px; color: var(--muted); background: var(--hover); border-radius: var(--r-ctl); }

.a-work { min-width: 0; display: flex; flex-direction: column; }
.a-url { display: flex; gap: 8px; padding: 12px 14px 8px; align-items: stretch; }
.a-url .method { display: flex; align-items: center; width: auto; font-size: 12px; padding: 0 11px; border-radius: var(--r-ctl); background: var(--hover); }
.a-url code { flex: 1; min-width: 0; font-size: 12.5px; line-height: 18px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--bg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-url .var { color: var(--accent); }
.send { min-width: 72px; padding: 5px 16px; border: 0; border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent); font-weight: 500; }
.send:hover { background: #4682db; }
.send:disabled { opacity: 0.65; cursor: default; }
.app .send:focus-visible { outline-offset: 2px; }
.a-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 14px 8px; font-size: 12px; color: var(--muted); }
.a-meta .fact { display: inline-flex; align-items: center; gap: 4px; }
.a-tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.a-rt { border: 0; background: none; padding: 7px 10px 6px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.a-rt:hover { color: var(--text); }
.a-rt.on { color: var(--text); font-weight: 500; border-bottom-color: var(--accent); }
.a-req { padding: 10px 14px; min-height: 108px; border-bottom: 1px solid var(--line); }
.a-req p { margin: 0 0 6px; }
.a-req .note { color: var(--faint); font-size: 12px; margin-top: 8px; }
.kv { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.kv td { padding: 5px 12px 5px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv tr:last-child td { border-bottom: 0; }
.kv td:last-child { padding-right: 0; }
.kv .mono { font-size: 12px; }
.app .ok { color: var(--ok); }
.req { margin-left: 6px; font: 10px/14px -apple-system, sans-serif; color: var(--warn); background: var(--warn-bg); padding: 0 5px; border-radius: 4px; }
.pill { display: inline-block; font: 600 11px/16px var(--mono); padding: 0 6px; border-radius: 4px; }
.pill.bad { color: var(--bad); background: var(--bad-bg); }
.pill.ok { color: var(--ok); background: var(--new-bg); }
.app pre.code { margin: 0; padding: 8px 10px; background: var(--code-bg); border-radius: 6px; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: var(--text); }
.j-key { color: var(--put); } .j-str { color: var(--get); } .j-num { color: var(--post); } .j-lit { color: var(--patch); } .j-p { color: var(--muted); }

.a-resp-head { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: 11.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.a-status-line { font-family: var(--mono); font-weight: 600; }
.a-status-line.ok { color: var(--ok); } .a-status-line.bad { color: var(--bad); }
.a-status-line small { color: var(--faint); font-weight: 400; font-size: 11.5px; margin-left: 6px; }
.a-resp { padding: 12px 14px 14px; min-height: 236px; }
.hint { color: var(--muted); padding: 60px 10px; text-align: center; }
.done-note { display: flex; align-items: center; gap: 6px; color: var(--ok); font-size: 12px; margin-bottom: 4px; }
.done-note + pre.code { margin-top: 8px; }

.insight { border: 1px solid color-mix(in srgb, var(--bad) 28%, var(--line-strong)); border-radius: var(--r-box); overflow: hidden; }
.insight .head { padding: 8px 12px; background: var(--bad-bg); color: var(--bad); font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.insight .head > span:first-of-type { flex: 1 1 200px; }
.copy-ai { margin-left: auto; flex: none; padding: 2px 9px; font-size: 11.5px; font-weight: 500; color: inherit; background: transparent; border: 1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius: var(--r-ctl); }
button.copy-ai:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.snip { margin: 10px 12px 0; background: var(--code-bg); border-radius: 6px; padding: 6px 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; overflow-x: auto; }
.snip div { display: flex; gap: 12px; padding: 0 10px; white-space: pre; }
.snip div.hl { background: var(--bad-bg); box-shadow: inset 2px 0 0 var(--bad); }
.snip .ln { color: var(--faint); width: 22px; text-align: right; flex: none; }
.insight ul { margin: 8px 0 0; padding: 0 12px 0 30px; color: var(--muted); font-size: 12.5px; }
.insight li { margin: 2px 0; }
.fixes { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px 12px; }
.fixes button, .fbtn { padding: 4px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--panel); color: var(--text); }
.fixes button:hover { background: var(--hover); }
.fixes button.go { background: var(--accent); border-color: transparent; color: var(--on-accent); font-weight: 500; }
.app pre.prompt { margin: 10px 12px 12px; font-size: 11.5px; color: var(--muted); max-height: 190px; overflow: auto; }
.app pre.prompt[hidden] { display: none; }

.a-statusbar { display: flex; align-items: center; gap: 2px; min-height: 24px; padding: 2px 6px; border-top: 1px solid var(--line); background: var(--side); font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.sb-item { padding: 0 7px; white-space: nowrap; }
.sb-path { color: var(--faint); }
.sb-ok { color: var(--ok); }
.a-statusbar .spacer { flex: 1; }
#jar.flash { animation: flash 1.2s ease-out; border-radius: 4px; }
@keyframes flash { 0% { background: color-mix(in srgb, var(--ok) 35%, transparent); } 100% { background: transparent; } }

/* the bat that walks you through the demo */
.guide { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.guide img { flex: none; }
.bubble { flex: 1; min-width: 0; background: var(--cream); color: var(--night); font-size: 15px; line-height: 1.45; padding: 9px 14px; border-radius: 4px 12px 12px 12px; }
.bubble .step { font-weight: 700; margin-right: 4px; white-space: nowrap; }
.reset { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 40px; padding: 0 14px; background: none; border: 1px solid var(--rule); border-radius: 8px; color: var(--soft); font: inherit; font-size: 14px; cursor: pointer; }
.reset:hover { color: var(--cream); border-color: var(--soft); }

/* ---------- who it is for ---------- */
.who { padding-top: 34px; padding-bottom: 20px; max-width: 860px; }
.who p { margin: 0; font-size: 19px; color: var(--soft); }
.who b { color: var(--cream); }
.who .frameworks { margin-top: 18px; font-size: 14.5px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.frameworks span { color: var(--cream); border: 1px solid var(--rule); border-radius: 6px; padding: 2px 9px; }

/* ---------- features ---------- */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 44px; align-items: center; margin-bottom: 72px; }
.feat.flip .feat-text { order: 2; }
.feat h3 { font-size: clamp(24px, 3vw, 31px); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; margin-bottom: 12px; }
.feat p { margin: 0 0 12px; color: var(--soft); }
.feat-text ul { margin: 0; padding-left: 20px; color: var(--soft); font-size: 16px; }
.feat-text li { margin: 6px 0; }
.feat-text b { color: var(--cream); }
.viz { box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4); }
.viz-cols { display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.viz .a-side { padding-top: 10px; }
.viz-pane { padding: 12px 14px 14px; min-width: 0; }
.viz-pane .kv { margin-bottom: 10px; }
.viz-h { font-weight: 600; margin-bottom: 6px; }
.viz > .insight { margin: 12px 12px 0; }
.viz > pre.prompt { max-height: none; }
.docs-change { margin: 0 0 12px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-box); background: var(--bg); font-size: 12.5px; }
.docs-change ul { margin: 6px 0 0; padding-left: 18px; }
.docs-h2 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.docs-h3 { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 10px 0 4px; }
.docs-line { font-size: 12.5px; }

.rest-title { font-size: 24px; margin-bottom: 18px; }
.rest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 44px; }
.rest li { padding: 14px 0; border-top: 1px solid var(--rule); color: var(--soft); font-size: 15.5px; }
.rest b, .leaves b { display: block; color: var(--cream); font: 700 17px var(--display); margin-bottom: 2px; }

/* ---------- what leaves your Mac ---------- */
.leaves { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: n; }
.leaves li { border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; background: var(--card); color: var(--soft); font-size: 15.5px; }
.plain { max-width: 760px; color: var(--soft); margin: 0; }

/* ---------- install ---------- */
.box { border: 1px solid var(--rule); border-radius: 12px; padding: 24px; margin-bottom: 16px; background: var(--card); }
.box h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.box p { color: var(--soft); }
.box.limits { background: none; }
.box.limits ul { margin: 12px 0 0; padding-left: 20px; color: var(--soft); font-size: 15.5px; }
.box.limits li { margin: 6px 0; }
.box.limits b { color: var(--cream); }
.tag { font: 600 11px var(--code); color: var(--teal); background: var(--teal-dim); padding: 3px 9px; border-radius: 99px; }
.cmd { display: flex; align-items: center; gap: 10px; background: var(--night); border: 1px solid var(--rule); border-radius: 10px; padding: 8px 8px 8px 16px; }
.cmd-scroll { position: relative; flex: 1; min-width: 0; }
.cmd code { display: block; background: none; padding: 6px 0; font-size: 14px; overflow-x: auto; white-space: nowrap; color: var(--teal); }
.copy { flex: none; min-width: 76px; min-height: 40px; background: var(--cream); color: var(--night); border: 0; border-radius: 7px; padding: 0 14px; font: 700 14px var(--display); cursor: pointer; }
.copy:hover { background: #fff; }
.scroll-hint { display: none; }
.small { font-size: 14.5px; }

footer { text-align: center; color: var(--dim); font-size: 14px; padding: 28px 16px 56px; border-top: 1px solid var(--rule); }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 8px; }
footer nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; color: var(--soft); }
footer nav a:hover { color: var(--cream); }
footer p { margin: 8px 0 0; }

/* ---------- narrower screens ---------- */
@media (max-width: 900px) {
  .feat, .feat.flip { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-bottom: 56px; }
  .feat.flip .feat-text { order: 0; }
  .leaves { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .nav { padding: 4px 12px; }
  .nav nav { gap: 0; }
  .nav nav a { padding: 0 9px; }
  section { padding: 52px 16px; }
  .hero { padding: 18px 16px 14px; }
  .lede { font-size: 17px; }
  .mac-only { display: block; margin: 10px auto 0; max-width: 320px; font-size: 14px; color: var(--cream); background: var(--teal-dim); border-radius: 8px; padding: 6px 12px; }
  .section-head.tight { display: block; }
  .section-head.tight .sub { margin-top: 6px; }

  /* the demo stacks: endpoint list on top with full paths, then the request */
  .lights { display: none; }
  .a-title { flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px; }
  .crumbs { gap: 6px 8px; }
  .a-main { grid-template-columns: minmax(0, 1fr); }
  .a-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .a-filter { display: none; }
  button.a-ep { min-height: 40px; }
  .a-tab { min-height: 40px; }
  .a-rt { min-height: 40px; padding-left: 9px; padding-right: 9px; }
  .send { min-height: 40px; }
  .fixes button, button.copy-ai { min-height: 40px; }
  .a-resp { min-height: 0; }
  .hint { padding: 28px 10px; }
  .a-statusbar { padding: 5px 6px; }
  .sb-path { display: none; }
  .viz-cols { grid-template-columns: minmax(0, 1fr); }
  .viz .a-side { border-bottom: 1px solid var(--line); }

  /* mascot stays on the same line as its bubble; the button gets its own row */
  .guide { flex-wrap: wrap; align-items: flex-start; }
  .guide .bubble { flex: 1 1 0; }
  .reset { flex: 1 0 100%; min-height: 44px; }

  .who p { font-size: 17px; }
  .rest { grid-template-columns: minmax(0, 1fr); }
  .box { padding: 18px 16px; }
  .cmd { flex-direction: column; align-items: stretch; padding: 8px; }
  .cmd-scroll { padding-left: 6px; }
  .cmd-scroll::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; background: linear-gradient(90deg, transparent, var(--night)); pointer-events: none; }
  .cmd code { padding-right: 36px; }
  .copy { min-height: 44px; }
  .scroll-hint { display: block; margin: 6px 0 0; font-size: 13px; color: var(--dim) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .bat, .a-ep.next:not(.on), #jar.flash { animation: none; }
  .ring { opacity: 0.2; transform: scale(1.6); }
  .ring.r2 { display: none; }
  .btn { transition: none; }
}

/* the AI agents section: steps and the tool list */
#agents .box ul { margin: 12px 0; padding: 0; list-style: none; color: var(--soft); font-size: 15.5px; }
#agents .box li { margin: 8px 0; }
#agents .box b { color: var(--cream); }
#agents .box li code { font-size: 13.5px; }
#agents .cmd { margin: 4px 0 8px; }
