/* Murmur tokens. Night radar by default, a pale chart variant in light mode. No color appears outside :root. */
:root {
  color-scheme: dark;
  --bg: #060b16;
  --bg-2: #0a1426;
  --panel: #0c1930;
  --panel-2: #12223d;
  --line: #1e3150;
  --grid: rgba(92, 242, 224, 0.12);
  --text: #ddf4f1;
  --text-dim: #93adbb;
  --cyan: #5cf2e0;
  --cyan-dim: #2b9c93;
  --on-cyan: #04201d;
  --amber: #ffb547;
  --amber-soft: rgba(255, 181, 71, 0.18);
  --danger: #ff8a7a;
  --glow: rgba(92, 242, 224, 0.45);
  --scan: rgba(255, 255, 255, 0.028);
  --focus: #ffb547;

  /* The scope stays dark in both modes: it is an instrument. */
  --scope-bg: #040912;
  --scope-ring: rgba(92, 242, 224, 0.22);
  --scope-spoke: rgba(92, 242, 224, 0.09);
  --scope-cyan: #5cf2e0;
  --scope-on-cyan: #04201d;
  --scope-text: #8fd3cb;
  --scope-amber: #ffb547;
  --scope-amber-halo: rgba(255, 181, 71, 0.22);
  --scope-sweep-0: rgba(92, 242, 224, 0);
  --scope-sweep-1: rgba(92, 242, 224, 0.32);

  /* Mock pages look like ordinary light web pages in both modes. */
  --page-bg: #ffffff;
  --mock-ink: #1c2430;
  --mock-dim: #5a6472;
  --mock-line: #dde3ea;
  --mock-pain: #fff1d6;
  --mock-head: #f4f6f9;
  --mock-accent: #1f4fd1;
  --mock-dot: #c26a00;
  --photo-fallback: #1a2a44;
  --warn-ink: #ffb547;
  --ok-ink: #5cf2e0;

  --display: "Avenir Next Condensed", "HelveticaNeue-CondensedBold", "Helvetica Neue Condensed", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --r: 14px;
  --r-sm: 8px;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #eef2ef;
    --bg-2: #e3eae6;
    --panel: #f8faf8;
    --panel-2: #e6eeea;
    --line: #c2d1cb;
    --grid: rgba(0, 102, 95, 0.12);
    --text: #0b1a2e;
    --text-dim: #44566a;
    --cyan: #00665f;
    --cyan-dim: #2e8a82;
    --on-cyan: #ffffff;
    --amber: #8a5300;
    --amber-soft: rgba(138, 83, 0, 0.12);
    --danger: #a3271b;
    --glow: rgba(0, 102, 95, 0.2);
    --scan: rgba(0, 0, 0, 0.022);
    --focus: #8a5300;
    --photo-fallback: #c9d6d1;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, var(--scan) 0 1px, transparent 1px 3px);
  z-index: 50;
}
h1, h2, h3, p { margin: 0; }
button, select, textarea { font: inherit; color: inherit; }
.defs { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: var(--mono); }
.micro { font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.display { font-family: var(--display); font-stretch: condensed; font-weight: 700; text-transform: lowercase; letter-spacing: -0.035em; line-height: 0.92; }
.display.sm { font-size: 1.9rem; margin-bottom: 14px; }
.ic { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }

/* Buttons */
.btn, .ghost-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px;
  border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.9rem;
}
.btn { background: var(--cyan); color: var(--on-cyan); border: 1px solid var(--cyan); box-shadow: 0 0 18px var(--glow); }
.ghost-btn { background: transparent; border: 1px solid var(--line); }
.ghost-btn:hover { border-color: var(--cyan-dim); }
.btn.sm, .ghost-btn.sm { min-height: 34px; padding: 5px 12px; font-size: 0.82rem; }
button:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 18px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cyan); text-decoration: none; }
.logo { width: 34px; height: 34px; filter: drop-shadow(0 0 6px var(--glow)); }
.mark-dot { fill: var(--amber); }
.wordmark { font: 700 2rem/1 var(--display); font-stretch: condensed; letter-spacing: -0.04em; color: var(--text); }
.tagline { font: 500 0.72rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 10px; cursor: pointer; color: var(--text-dim); font-weight: 600; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--cyan); }

main { padding: 24px clamp(16px, 4vw, 48px) 48px; max-width: 1400px; margin: 0 auto; }
.page > * + * { margin-top: 28px; }
.sim { display: flex; gap: 10px; align-items: center; font-size: 0.85rem; color: var(--text-dim); }
.sim .micro { color: var(--amber); border: 1px solid var(--amber); border-radius: 4px; padding: 1px 6px; }

/* Problem */
.problem { display: grid; gap: 20px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; }
.problem h1 { font-size: clamp(2.3rem, 6vw, 4.8rem); max-width: 15ch; grid-column: 1 / -1; }
.lede { max-width: 40ch; color: var(--text-dim); font-size: 1.05rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.facts li { border-top: 1px solid var(--cyan-dim); padding-top: 10px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.fact-num { font: 700 2.8rem/1 var(--display); font-stretch: condensed; color: var(--cyan); font-variant-numeric: tabular-nums; text-shadow: 0 0 14px var(--glow); white-space: nowrap; }
.fact-txt { font-size: 0.85rem; line-height: 1.45; color: var(--text-dim); }

/* Use cases */
.cases { display: grid; gap: 8px; }
.case-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.case { display: grid; gap: 4px; align-content: start; min-width: 0; }
.case-btn { display: grid; padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); cursor: pointer; text-align: left; transition: transform 0.18s ease, border-color 0.18s ease; }
.case-btn:hover { transform: translateY(-2px); }
.case-btn:active { transform: scale(0.98); }
.case-btn[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 22px var(--glow); }
.ph { display: block; aspect-ratio: 16 / 10; background: var(--photo-fallback); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.75) contrast(1.05); }
.case-txt { display: grid; gap: 2px; padding: 8px 10px 10px; }
.case-name { font: 700 1.2rem/1.05 var(--display); font-stretch: condensed; text-transform: lowercase; letter-spacing: -0.02em; }
.case-btn[aria-pressed="true"] .micro { color: var(--cyan); }
.credit { font-size: 0.68rem; line-height: 1.35; color: var(--text-dim); }

/* Story autoplay */
.story { border: 1px solid var(--cyan-dim); border-radius: var(--r); padding: 14px 16px; background: var(--panel); display: grid; gap: 10px; }
.story-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.story h2 { color: var(--cyan); }
.progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--cyan); transition: width 0.3s ease; }
.s-cap { min-height: 1.5em; font-weight: 600; }

/* Stage: browser plus overlay */
.stage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, 1fr); gap: 20px; align-items: start; }
.browser { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.tabstrip { display: flex; gap: 4px; padding: 8px 10px 0; background: var(--bg-2); }
.btab { display: flex; gap: 8px; align-items: center; padding: 6px 14px; border-radius: 8px 8px 0 0; background: var(--panel); font-size: 0.8rem; max-width: 240px; white-space: nowrap; overflow: hidden; }
.btab.ghost { background: transparent; color: var(--text-dim); }
.fav { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--text-dim); flex: none; }
.addr { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.navbtn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; font-size: 1.2rem; line-height: 1; }
.url { flex: 1; min-width: 0; display: flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--bg-2); font: 0.8rem/1.2 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext { width: 26px; height: 26px; color: var(--cyan); padding: 3px; border-radius: 6px; background: var(--panel-2); }
.viewport { position: relative; height: 640px; background: var(--page-bg); }
.viewport iframe { width: 100%; height: 100%; border: 0; display: block; }
.fab {
  position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 12px; border-radius: 999px; border: 1px solid var(--cyan); cursor: pointer;
  background: var(--scope-bg); color: var(--scope-cyan); font-weight: 700; box-shadow: 0 0 0 6px var(--glow), 0 8px 30px var(--scope-bg);
}
.fab svg { width: 24px; height: 24px; }
.fallback { padding: 8px 12px; font-size: 0.8rem; color: var(--text-dim); border-top: 1px solid var(--line); }

/* Hotspots: a Murmur layer anchored over the framed page */
.hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; pointer-events: auto; display: flex; align-items: flex-start; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; max-width: min(260px, 46%); }
.hotspot.flip { flex-direction: row-reverse; transform: translateX(-100%); }
.hs-dot { flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--scope-amber); box-shadow: 0 0 0 4px var(--scope-amber-halo); animation: breathe 2.4s ease-in-out infinite; }
.hs-pill { padding: 4px 10px; border-radius: 12px; background: var(--scope-bg); color: var(--scope-text); font: 600 0.74rem/1.35 var(--sans); text-align: left; border: 1px solid var(--scope-ring); }
.hs-n { color: var(--scope-amber); font-family: var(--mono); }
.hotspot[aria-pressed="true"] .hs-pill { border-color: var(--scope-cyan); color: var(--scope-cyan); }
.hotspot[aria-pressed="true"] .hs-dot { background: var(--scope-cyan); }
.hotspot:active .hs-dot, .sheet-row:active, .tile:active { transform: scale(0.96); }

/* Mock pages */
.mock { height: 100%; overflow: auto; padding: 18px; color: var(--mock-ink); font-family: var(--sans); }
.mock-cap { font-size: 0.78rem; color: var(--mock-dim); border-left: 3px solid var(--mock-line); padding-left: 8px; margin-bottom: 16px; }
.sheet { max-width: 560px; border: 1px solid var(--mock-line); border-radius: 10px; overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 14px 16px; background: var(--mock-head); font-size: 0.85rem; }
.sheet-head strong { color: var(--mock-accent); }
.sheet-rows { list-style: none; margin: 0; padding: 0; }
.sheet-row { width: 100%; display: grid; grid-template-columns: 1fr auto 16px; gap: 12px; align-items: center; padding: 12px 16px; border: 0; border-top: 1px solid var(--mock-line); background: none; color: var(--mock-ink); cursor: pointer; text-align: left; transition: background 0.15s ease; }
.sheet-row:hover, .tile:hover { background: var(--mock-pain); }
.sheet-row[aria-pressed="true"], .tile[aria-pressed="true"] { background: var(--mock-pain); box-shadow: inset 4px 0 0 var(--mock-dot); }
.sr-name { display: grid; gap: 2px; }
.sr-name span { font-size: 0.78rem; color: var(--mock-dim); }
.sr-price { font-variant-numeric: tabular-nums; font-weight: 700; }
.sheet .hs-dot { margin: 0; width: 12px; height: 12px; background: var(--mock-dot); box-shadow: none; }
.sheet-note { padding: 10px 16px 14px; font-size: 0.8rem; color: var(--mock-dim); border-top: 1px solid var(--mock-line); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--mock-line); }
.tile { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px; border: 0; background: var(--page-bg); color: var(--mock-ink); cursor: pointer; text-align: left; min-height: 120px; transition: background 0.15s ease; }
.tile span { font-size: 0.78rem; color: var(--mock-dim); }
.tile .tile-cta { margin-top: 6px; justify-self: start; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--mock-accent); color: var(--mock-accent); font-weight: 600; }
.tile .hs-dot { position: absolute; top: 12px; right: 12px; }

/* Overlay: the product */
.overlay { background: var(--scope-bg); color: var(--scope-text); border: 1px solid var(--scope-ring); border-radius: var(--r); padding: 16px; max-height: 760px; overflow: auto; display: grid; gap: 18px; }
.overlay .micro { color: var(--scope-text); }
.overlay h3 { color: var(--scope-text); }
.sheet-handle { display: none; }
.ov-head { display: flex; justify-content: space-between; gap: 8px; }
.ov-head h2 { color: var(--scope-cyan); }
.trend { display: grid; gap: 8px; }
.trend-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 0.82rem; line-height: 1.45; padding: 8px 10px; border-left: 2px solid var(--scope-ring); }
.tag-ok { color: var(--ok-ink) !important; }
.tag-warn { color: var(--warn-ink) !important; border: 1px dashed var(--warn-ink); border-radius: 4px; padding: 0 4px; }
.logos { display: inline-flex; gap: 6px; }
.lg { width: 16px; height: 16px; color: var(--scope-text); }
.ill { border: 1px solid var(--scope-amber); color: var(--scope-amber) !important; border-radius: 4px; padding: 0 5px; }
.wish { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--scope-cyan); border-radius: var(--r-sm); }
.wish textarea { width: 100%; resize: vertical; border-radius: var(--r-sm); border: 1px solid var(--scope-ring); background: var(--scope-bg); color: var(--scope-cyan); padding: 8px; font-family: var(--mono); font-size: 0.85rem; }
.overlay .ghost-btn { border-color: var(--scope-ring); color: var(--scope-text); }
.overlay .btn { background: var(--scope-cyan); border-color: var(--scope-cyan); color: var(--scope-on-cyan); }

.scope { display: grid; gap: 12px; }
#radar { width: 100%; max-width: 360px; margin: 0 auto; display: block; overflow: visible; }
.grid circle { fill: none; stroke: var(--scope-ring); stroke-width: 1; }
.grid .ring-ready { stroke: var(--scope-cyan); stroke-width: 1.4; stroke-dasharray: 3 3; }
.spoke { stroke: var(--scope-spoke); stroke-width: 1; }
.ruler path { stroke: var(--scope-text); stroke-width: 1; fill: none; opacity: 0.7; }
.ruler text { fill: var(--scope-text); font: 9px var(--mono); letter-spacing: 0.06em; text-anchor: middle; text-transform: uppercase; }
.ruler text.end { text-anchor: end; }
.sweep { transform-box: view-box; transform-origin: 160px 160px; }
.sw0 { stop-color: var(--scope-sweep-0); }
.sw1 { stop-color: var(--scope-sweep-1); }
.sweep-line { stroke: var(--scope-cyan); stroke-width: 1.2; filter: url(#glow); }
.blip { cursor: pointer; outline: none; transform-box: view-box; transform-origin: 0 0; transition: transform 0.8s cubic-bezier(0.3, 1.3, 0.5, 1); }
.blip .core { fill: var(--scope-amber); }
.blip .halo { fill: var(--scope-amber-halo); animation: breathe 3.2s ease-in-out infinite; }
.blip.drop .halo { stroke: var(--scope-cyan); stroke-width: 3; fill: var(--scope-amber-halo); }
.blip .ping { fill: none; stroke: none; transform-box: fill-box; transform-origin: center; }
.blip .ping.go { stroke: var(--scope-cyan); stroke-width: 2; animation: pulse 0.9s ease-out; }
.ghost line { stroke: var(--scope-cyan); stroke-width: 1; stroke-dasharray: 2 3; }
.ghost circle { fill: none; stroke: var(--scope-cyan); stroke-width: 1.5; stroke-dasharray: 3 2; transition: cx 0.2s ease, cy 0.2s ease; }
.blip.ready .core { fill: var(--scope-cyan); filter: url(#glow); }
.blip.sel .halo, .blip:focus-visible .halo { stroke: var(--scope-cyan); stroke-width: 1.5; fill: none; animation: none; }
.blip-label { fill: var(--scope-cyan); font: 600 11px var(--mono); paint-order: stroke; stroke: var(--scope-bg); stroke-width: 4px; stroke-linejoin: round; }
.blip-label.flip { text-anchor: end; }
@keyframes breathe { 50% { opacity: 0.35; } }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(3); opacity: 0; } }

.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact { width: 100%; display: grid; grid-template-columns: 14px 1fr; gap: 0 10px; text-align: left; padding: 8px 10px; background: transparent; border: 1px solid transparent; border-radius: var(--r-sm); cursor: pointer; color: var(--scope-text); }
.contact .micro { grid-column: 2; }
.contact.sel { border-color: var(--scope-ring); background: var(--scope-amber-halo); }
.contact.drop { border-color: var(--scope-cyan); border-style: dashed; }

/* Wish stream */
.stream-wrap { display: grid; gap: 8px; border-top: 1px solid var(--scope-ring); padding-top: 14px; }
.between { justify-content: space-between; }
.stream { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.s-item { display: grid; gap: 2px; padding: 6px 10px; border-radius: var(--r-sm); background: var(--scope-amber-halo); font-size: 0.84rem; animation: slide-in 0.3s ease-out; transition: transform 0.6s ease, opacity 0.6s ease; }
.s-item.merged { transform: translateX(24px); opacity: 0.45; }
.s-item.by-you { border: 1px solid var(--scope-cyan); }
.wishchip { width: 100%; display: grid; gap: 2px; text-align: left; padding: 8px 10px; border-radius: var(--r-sm); border: 1px dashed var(--scope-amber); background: var(--scope-bg); color: var(--scope-text); cursor: grab; touch-action: none; font-size: 0.84rem; transition: transform 0.15s ease; }
.wishchip:active { cursor: grabbing; transform: scale(0.98); }
.wishchip[aria-pressed="true"] { border-style: solid; border-color: var(--scope-cyan); box-shadow: 0 0 12px var(--glow); }
.drag-ghost { position: fixed; left: 0; top: 0; width: 240px; z-index: 60; pointer-events: none; opacity: 0.92; box-shadow: 0 10px 30px var(--scope-bg); }
.hint { opacity: 0.85; text-transform: none; letter-spacing: 0.02em; }
@keyframes slide-in { from { transform: translateX(-14px); opacity: 0; } }
.c-label { font-weight: 600; }
.c-glyph { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--scope-amber); }
.c-glyph.is-ready { background: none; border: 2px solid var(--scope-cyan); border-radius: 2px; transform: rotate(45deg); }

.detail, .commit, .offers { border-top: 1px solid var(--scope-ring); padding-top: 14px; display: grid; gap: 10px; }
.detail h3.display { font-size: 2rem; color: var(--scope-cyan); text-shadow: 0 0 12px var(--glow); }
.nums { display: flex; gap: 28px; }
.nums p { display: grid; }
.big { font: 700 3.2rem/0.9 var(--display); font-stretch: condensed; letter-spacing: -0.03em; color: var(--scope-amber); font-variant-numeric: tabular-nums; }
.merge-viz { width: 100%; height: auto; }
.mv-line { fill: none; stroke: var(--scope-ring); stroke-width: 1; }
.mv-line.kept { stroke: var(--scope-amber); }
.mv-dot { fill: var(--scope-text); }
.mv-dot.kept { fill: var(--scope-amber); }
.mv-one { fill: var(--scope-cyan); filter: url(#glow); }
.kept { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kept li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; padding: 6px 0; border-bottom: 1px dotted var(--scope-ring); }
.kept.small li { font-size: 0.85rem; }
.tag { opacity: 0.85; }
.all summary { cursor: pointer; font-size: 0.85rem; }
.challenge { justify-self: start; background: transparent; color: var(--scope-amber); border: 1px dashed var(--scope-amber); border-radius: 999px; padding: 7px 14px; cursor: pointer; font-weight: 600; }

.c-type { font-weight: 600; color: var(--scope-cyan); }
.range-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.range-row input { width: 100%; accent-color: var(--scope-cyan); }
.range-row output { font: 700 1.1rem/1 var(--mono); color: var(--scope-amber); min-width: 9ch; text-align: right; }
.meter { position: relative; height: 14px; border: 1px solid var(--scope-ring); border-radius: 999px; overflow: hidden; }
.meter span { position: absolute; top: 0; bottom: 0; left: 0; }
#meter-fill { background: var(--scope-cyan); box-shadow: 0 0 10px var(--glow); transition: width 0.5s cubic-bezier(0.3, 1.3, 0.5, 1); }
#meter-ghost { background: repeating-linear-gradient(135deg, var(--scope-amber) 0 4px, transparent 4px 7px); transition: left 0.2s ease, width 0.2s ease; }
.hold { justify-self: start; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid var(--scope-cyan); background: transparent; color: var(--scope-cyan); font-weight: 700; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none; }
.hold:active { transform: scale(0.97); }
.hold svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.hold-track { fill: none; stroke: var(--scope-ring); stroke-width: 4; }
.hold-fill { fill: none; stroke: var(--scope-cyan); stroke-width: 4; stroke-linecap: round; }
.hold.is-mine { border-color: var(--scope-amber); color: var(--scope-amber); }

.offers-state { font-size: 0.88rem; }
.offer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.offer { border: 1px solid var(--scope-ring); border-radius: var(--r-sm); padding: 12px; display: grid; gap: 6px; font-size: 0.88rem; }
.offer.chosen { border-color: var(--scope-cyan); box-shadow: inset 4px 0 0 var(--scope-cyan); }
.o-who strong { color: var(--scope-cyan); }
.offer.locked { height: 64px; border-style: dashed; background: repeating-linear-gradient(135deg, transparent 0 8px, var(--scope-spoke) 8px 9px); }

/* Chat and live panel */
.lower { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.chat-wrap, .live, .how, .try { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.chat { height: 420px; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 92%; }
.msg-you { align-self: flex-end; flex-direction: row-reverse; text-align: right; }
.av { width: 30px; height: 30px; flex: none; border-radius: 50%; padding: 4px; }
.av-agent { background: var(--scope-bg); color: var(--scope-cyan); }
.av-you { display: grid; place-items: center; background: var(--panel-2); color: var(--text-dim); font: 600 0.62rem/1 var(--mono); padding: 0; }
.bubble { display: grid; gap: 8px; margin-top: 3px; padding: 10px 14px; border-radius: 4px 14px 14px 14px; background: var(--panel-2); text-align: left; }
.msg-you .bubble { border-radius: 14px 4px 14px 14px; background: var(--cyan); color: var(--on-cyan); }
.notice { align-self: center; font-size: 0.82rem; color: var(--text-dim); border: 1px dashed var(--line); border-radius: 999px; padding: 4px 12px; text-align: center; }
.typing { display: flex; gap: 4px; padding: 10px 0 0 40px; }
.typing span:not(.sr-only) { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.2; } }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 18px; font-size: 0.88rem; }
.kv dt { color: var(--text-dim); }
.kv dd { margin: 0; }
.count { display: inline-block; }
.bump { animation: bump 0.3s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes bump { 50% { transform: scale(1.35); } }
.kv .strong { font: 700 1.4rem/1 var(--display); font-stretch: condensed; color: var(--cyan); text-transform: lowercase; }
.ledger { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; max-height: 180px; overflow: auto; font-size: 0.85rem; }
.ledger li { border-left: 2px solid var(--cyan-dim); padding-left: 10px; }
.ledger .empty { border: 0; padding: 0; color: var(--text-dim); }

/* Diagram */
.how { display: grid; gap: 14px; }
.diagram { width: 100%; max-width: 640px; height: auto; }
.dg-edges path { fill: none; stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 4; }
.dg-node rect { fill: var(--panel-2); stroke: var(--line); stroke-width: 1.5; transition: stroke 0.3s, fill 0.3s; }
.dg-node text { fill: var(--text-dim); font: 600 12px var(--mono); text-anchor: middle; text-transform: lowercase; }
.dg-node .dg-num { font: 700 15px var(--display); font-stretch: condensed; fill: var(--text-dim); }
.dg-node.on rect { stroke: var(--cyan); fill: var(--bg-2); }
.dg-node.on text { fill: var(--text); }
.dg-node.on .dg-num { fill: var(--cyan); }
#dg-dot { fill: var(--amber); transition: cx 0.6s ease, cy 0.6s ease; }
.cap { min-height: 1.5em; }

.try ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.try { border-color: var(--amber); }
.try h2 { color: var(--amber); }

/* Getting started and tables */
.doc { max-width: 860px; }
.doc h2 { font: 700 2rem/1 var(--display); font-stretch: condensed; text-transform: lowercase; letter-spacing: -0.03em; color: var(--cyan); margin: 36px 0 10px; }
.doc h2:first-child { margin-top: 0; }
.doc p + p { margin-top: 8px; }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 4px; }
.personas { list-style: none; padding: 0 !important; grid-template-columns: repeat(3, 1fr); gap: 12px !important; }
.personas li { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; background: var(--panel); display: grid; gap: 6px; align-content: start; }
.personas strong { font: 700 1.6rem/1 var(--display); font-stretch: condensed; text-transform: lowercase; }
.strip { list-style: none; padding: 0 !important; grid-template-columns: repeat(4, 1fr); gap: 12px !important; counter-reset: s; }
.strip li { border-top: 2px solid var(--cyan); padding-top: 10px; display: grid; gap: 8px; align-content: start; }
.strip svg { width: 28px; height: 28px; color: var(--cyan); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; }
caption { text-align: left; font-weight: 700; padding-bottom: 8px; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font: 500 0.7rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
code { font-family: var(--mono); font-size: 0.85em; }
.foot { padding: 18px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); display: grid; gap: 6px; text-transform: none; letter-spacing: 0.02em; }
.sources a { color: var(--cyan); }
.btn:active, .ghost-btn:active, .challenge:active, .contact:active { transform: scale(0.97); }

/* 375 px: the overlay becomes a bottom sheet under the frame */
@media (min-width: 861px) {
  .overlay { max-height: 900px; }
  .scope { position: sticky; top: -16px; z-index: 3; margin: 0 -16px; padding: 8px 16px; background: var(--scope-bg); border-bottom: 1px solid var(--scope-ring); }
  #radar { max-width: 300px; }
}
@media (max-width: 860px) {
  .stage, .lower, .problem { grid-template-columns: 1fr; }
  .viewport { height: 460px; }
  .overlay { max-height: none; border-radius: 22px 22px var(--r) var(--r); box-shadow: 0 -12px 30px var(--glow); }
  .sheet-handle { display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--scope-ring); margin: -4px auto 0; }
  .facts { grid-template-columns: 1fr; }
  .case-cards { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; padding-bottom: 6px; }
  .hs-pill { font-size: 0.68rem; }
  .personas, .strip { grid-template-columns: 1fr 1fr; }
  .tabs { margin-left: 0; }
}
@media (max-width: 480px) {
  .personas, .strip { grid-template-columns: 1fr; }
  .display.sm { font-size: 1.6rem; }
  .fab { right: 10px; bottom: 10px; padding: 8px 14px 8px 10px; font-size: 0.85rem; }
  .chat { height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Launch film tab */
.film { max-width: 1040px; }
.film-h { font-size: clamp(2rem, 5.5vw, 3.6rem); line-height: 1.05; margin: 0; }
.film-h .hl { color: var(--amber); }
.film-lead { margin: 14px 0 20px; max-width: 60ch; font-size: 1.05rem; color: var(--text); }
.film-frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 0 28px rgba(92, 242, 224, 0.15); background: #000; aspect-ratio: 16 / 9; }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.film .fine { margin-top: 16px; font-size: 0.8rem; color: var(--text-dim); }
.film-beats { list-style: none; margin: 24px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.film-beats li { border-top: 3px solid var(--cyan); padding-top: 8px; }
.film-beats b { font-size: 1.4rem; display: block; margin-bottom: 4px; color: var(--amber); }
.film-beats p { font-size: 0.95rem; color: var(--text-dim); margin: 0; }
.film a.btn { display: inline-flex; text-decoration: none; }
