/* ============================================================================
 * Quorum — a drafting sheet.
 * Cool plan-paper base, green-black ink. Two accents with separate jobs:
 *   --pen    blueprint ink: structure, links, the assistant's voice
 *   --signal lamp amber:   ONLY "this room is being heard / this was captured"
 * The canvas palette in hero-office.js mirrors these values; keep them in sync.
 * ========================================================================== */
:root {
  --paper: #e6e7e2;
  --paper-2: #f2f3ef;
  --paper-3: #d9dbd4;
  --ink: #17201c;
  --ink-2: #55605a;
  --rule: #c6c9c1;
  --pen: #1e3aae;
  --pen-soft: rgba(30, 58, 174, 0.1);
  --signal: #e8a33d;
  --signal-soft: rgba(232, 163, 61, 0.18);

  --console: #1c2622;
  --console-ink: #dfe4dd;
  --console-dim: #8c988f;

  --f-sans: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --mark-w: 190px;
  --topbar-h: 64px;
}

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

/* overflow-x: clip, not hidden: hidden turns body into a scroll container. */
html { scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
a { color: var(--pen); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
b { font-weight: 600; }

:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 6px;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px;
  border-radius: 999px;
  font: 500 1rem/1 var(--f-sans);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-ink { background: var(--ink); color: var(--paper-2); }
.btn-ink:hover { background: var(--pen); }
.btn-line { color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper-2); }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(230, 231, 226, 0.86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.topbar-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.03em;
}
.wordmark svg { width: 26px; height: 26px; fill: none; stroke-width: 3; stroke-linecap: round; }
.wordmark svg circle { stroke: var(--ink); }
.wordmark svg path { stroke: var(--signal); }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav a { color: var(--ink); text-decoration: none; font-size: 0.975rem; }
.topnav a:hover { color: var(--pen); }
.topnav a.topnav-cta {
  padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--paper-2);
}
.topnav a.topnav-cta:hover { background: var(--pen); color: var(--paper-2); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  position: relative;
}
.menu-toggle i {
  position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink);
  transition: transform 0.2s ease, top 0.2s ease;
}
.menu-toggle i:nth-of-type(1) { top: 17px; }
.menu-toggle i:nth-of-type(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] i:nth-of-type(1) { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] i:nth-of-type(2) { top: 21px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------- hero */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 7vh, 80px) var(--gutter) 56px;
}
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 56px;
  align-items: end;
}
.hero h1 {
  font-size: clamp(2.75rem, 7.2vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 11ch;
  grid-row: span 2;
}
.hero-sub { font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stage {
  margin-top: clamp(32px, 5vh, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto auto;
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--paper-2);
  overflow: hidden;
}
.stage-canvas {
  position: relative;
  height: clamp(420px, 64vh, 640px);
  cursor: grab;
  touch-action: pan-y;
  /* plan-paper grid under the model */
  background-image:
    linear-gradient(to right, rgba(23, 32, 28, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 32, 28, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.stage-canvas.dragging { cursor: grabbing; }
#office { display: block; width: 100%; height: 100%; }

.stage-hint {
  position: absolute; left: 20px; bottom: 16px; right: 20px;
  font-size: 0.875rem; color: var(--ink-2);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.stage-hint.gone { opacity: 0; }

/* hover probe: live mic scores for one room */
.probe {
  position: absolute; top: 0; left: 0; z-index: 4;
  width: 232px; padding: 12px 14px 12px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--ink);
  pointer-events: none;
  opacity: 0; transform: translate(-9999px, 0);
  transition: opacity 0.14s ease;
}
.probe.show { opacity: 1; }
.probe h5 { margin: 0 0 2px; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.probe p { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.4; margin-bottom: 10px; }
.probe-mic { display: grid; grid-template-columns: 78px 1fr 36px; align-items: center; gap: 8px; font-size: 0.8125rem; margin-top: 5px; }
.probe-mic span:first-child { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.probe-bar { height: 6px; border-radius: 3px; background: var(--paper-3); overflow: hidden; }
.probe-bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; transition: width 0.25s ease; }
.probe-mic.pick span:first-child { color: var(--ink); font-weight: 600; }
.probe-mic.pick .probe-bar i { background: var(--signal); }
.probe-mic em { font-style: normal; font-family: var(--f-mono); font-size: 0.75rem; text-align: right; color: var(--ink-2); }
.probe-mic.pick em { color: var(--ink); }
.probe-note { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 0.78rem; color: var(--ink-2); line-height: 1.4; }

/* reduced-motion / small-screen static labels */
.callouts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.callout {
  position: absolute; transform: translate(-50%, calc(-100% - 12px));
  padding: 4px 10px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--ink);
  font-size: 0.8125rem; white-space: nowrap;
}
.callout.hot { background: var(--signal); border-color: var(--signal); color: var(--ink); }

/* ledger: the live record */
.ledger {
  border-left: 1px solid var(--rule);
  background: var(--paper);
  display: flex; flex-direction: column;
  min-height: 0;
  height: clamp(420px, 64vh, 640px);
}
.ledger-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--rule);
  font-weight: 600; font-size: 0.975rem;
}
.ledger-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 var(--signal-soft);
  animation: live 2.2s ease-out infinite;
}
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(232, 163, 61, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(232, 163, 61, 0); }
}
.ledger-lines {
  list-style: none; margin: 0; padding: 10px 18px;
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 9px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 64px);
}
.ledger-lines li {
  font-family: var(--f-mono); font-size: 0.75rem; line-height: 1.5;
  color: var(--ink);
  animation: ink-in 0.45s ease both;
}
.ledger-lines li .l-meta { display: block; color: var(--ink-2); }
.ledger-lines li .l-room {
  display: inline-block; padding: 0 6px; margin-right: 4px; border-radius: 4px;
  background: var(--signal-soft); color: var(--ink);
}
.ledger-lines li.agent { color: var(--pen); }
.ledger-lines li.agent .l-room { background: var(--pen-soft); color: var(--pen); }
@keyframes ink-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ledger-card {
  flex: 0 0 auto;
  margin: 0 12px 12px; padding: 0 14px; max-height: 0; opacity: 0;
  border-radius: 12px; background: var(--paper-2); border: 1px solid var(--rule);
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.3s ease, padding 0.45s ease;
}
.ledger-card.show { max-height: 320px; opacity: 1; padding: 12px 14px; }
.ledger-card h5 { margin: 0 0 6px; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.ledger-card p { font-size: 0.875rem; line-height: 1.45; color: var(--ink); }
.ledger-card p + p { margin-top: 6px; }
.ledger-card .src { color: var(--ink-2); font-size: 0.8125rem; }
.ledger-card.agent h5 { color: var(--pen); }
.frames { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 8px 0 6px; }
.frames span {
  aspect-ratio: 4 / 3; border-radius: 3px; background: var(--paper-3);
  position: relative; overflow: hidden;
}
.frames span::after {
  content: attr(data-t); position: absolute; left: 3px; bottom: 1px;
  font-family: var(--f-mono); font-size: 0.5625rem; color: var(--ink-2);
}
.frames span.hit { outline: 2px solid var(--signal); outline-offset: 1px; }
.frames span i { position: absolute; border-radius: 1px; background: var(--ink-2); opacity: 0.55; }

.chips {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px 16px;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
}
.chip {
  font: 500 0.9375rem/1 var(--f-sans);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.chip[aria-pressed="true"]::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); margin-right: 8px; vertical-align: 1px;
}

/* ---------------------------------------------------------------- sheets */
.sheet {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(64px, 10vh, 112px) var(--gutter);
  display: grid;
  grid-template-columns: var(--mark-w) minmax(0, 1fr);
  gap: 0 40px;
  border-top: 1px solid var(--rule);
}
.sheet-mark span {
  position: sticky; top: calc(var(--topbar-h) + 28px);
  display: block;
  padding-top: 10px;
  border-top: 2px solid var(--pen);
  width: max-content;
  color: var(--pen);
  font-size: 0.9375rem; font-weight: 500;
}
.sheet-body h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 20ch;
}
.lede { margin-top: 20px; max-width: 60ch; font-size: 1.1875rem; line-height: 1.55; color: var(--ink-2); }

/* what ships */
.kit { margin: 48px 0 0; }
.kit-row {
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 8px 40px;
  padding: 22px 0;
  border-top: 1px solid var(--rule);
}
.kit-row:last-child { border-bottom: 1px solid var(--rule); }
.kit dt b { display: block; font-size: 1.25rem; letter-spacing: -0.015em; }
.kit dt span { color: var(--ink-2); font-size: 0.9375rem; }
.kit dd { margin: 0; max-width: 58ch; }

/* how it works — a real sequence, so it is numbered */
.steps {
  list-style: none; margin: 48px 0 0; padding: 0;
  counter-reset: step;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.steps li {
  counter-increment: step;
  padding: 24px 0 28px;
  border-top: 1px solid var(--ink);
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 8px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 2.5rem; font-weight: 600; line-height: 0.9; letter-spacing: -0.04em;
  color: var(--pen);
}
.steps h3 { font-size: 1.375rem; margin-bottom: 8px; }
.steps p { color: var(--ink-2); max-width: 46ch; }

/* the daily brief, rendered as a document */
.doc {
  position: relative;
  margin-top: 48px;
  max-width: 720px;
  padding: clamp(24px, 4vw, 48px);
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 4px;
  box-shadow: 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--ink);
}
.doc-head { padding-bottom: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.doc-from { font-size: 0.875rem; color: var(--ink-2); }
.doc-head h3 { margin-top: 6px; font-size: 1.5rem; }
.doc-meta { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.doc h4 { margin: 28px 0 10px; font-size: 1.0625rem; color: var(--pen); letter-spacing: -0.01em; }
.doc p { line-height: 1.65; max-width: 64ch; }
.doc p + p { margin-top: 12px; }
.doc-list { margin: 0; padding-left: 1.1em; }
.doc-list li { margin: 6px 0; padding-left: 4px; }
.doc-list li::marker { color: var(--signal); }

/* ask it — console */
.console {
  margin-top: 48px;
  display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  background: var(--console);
  color: var(--console-ink);
  border-radius: 16px;
  overflow: hidden;
}
.console-qs { display: flex; flex-direction: column; padding: 10px; gap: 4px; border-right: 1px solid rgba(223, 228, 221, 0.12); }
.console-q {
  text-align: left; font: 400 0.9375rem/1.35 var(--f-sans);
  color: var(--console-dim); background: transparent; border: 0; border-radius: 10px;
  padding: 12px 14px; cursor: pointer;
}
.console-q:hover { color: var(--console-ink); background: rgba(223, 228, 221, 0.06); }
.console-q[aria-selected="true"] { color: var(--console-ink); background: rgba(223, 228, 221, 0.1); }
.console-q:focus-visible { outline-color: var(--signal); }
.console-a { padding: 24px 28px 28px; min-height: 340px; font-family: var(--f-mono); font-size: 0.875rem; line-height: 1.65; }
.console-a .ca-q { color: var(--console-dim); }
.console-a .ca-q::before { content: "› "; color: var(--signal); }
.console-a .ca-body { margin-top: 14px; color: var(--console-ink); white-space: pre-wrap; }
.console-a .ca-cite {
  display: inline-block; margin: 2px 0; padding: 0 6px; border-radius: 4px;
  background: rgba(232, 163, 61, 0.16); color: #f0c47e;
}
.console-a .ca-caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -2px; background: var(--signal); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.film { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 16px 0 6px; }
.film figure {
  margin: 0; aspect-ratio: 4 / 3; position: relative; border-radius: 4px; overflow: hidden;
  background: #28332e; opacity: 0; animation: ink-in 0.35s ease forwards;
}
.film figure.hit { outline: 2px solid var(--signal); outline-offset: 2px; }
.film figcaption { position: absolute; left: 5px; bottom: 3px; font-size: 0.625rem; color: var(--console-dim); }
.film figure.hit figcaption { color: #f0c47e; }
.film i { position: absolute; background: #4a5751; border-radius: 1px; }
.film i.obj { background: var(--signal); border-radius: 2px; }

/* who it's for */
.trades {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
}
.trade { padding: 22px 0 26px; border-top: 1px solid var(--rule); }
.trade h3 { font-size: 1.25rem; margin-bottom: 8px; }
.trade p { color: var(--ink-2); max-width: 50ch; }

/* the off switch — a wall plate with an LED strip over a big push button */
.switch-demo {
  margin-top: 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--rule);
}
.wall {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px;
  min-height: 380px; padding: 40px 24px;
  background:
    radial-gradient(ellipse 60% 38% at 50% 34%, rgba(232, 163, 61, 0.28), transparent 70%),
    var(--paper-3);
  transition: background-color 0.6s ease;
}
.wall::before {                 /* the strip's wash on the wall fades with it */
  content: ""; position: absolute; inset: 0;
  background: var(--paper-3);
  opacity: 0; transition: opacity 0.7s ease 0.15s;
  pointer-events: none;
}
.wall.off::before { opacity: 1; }
.plate {
  position: relative; z-index: 1;
  width: 200px; padding: 26px 0 20px;
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  background: var(--paper-2);
  border-radius: 18px;
  box-shadow: 0 1px 0 #fff inset, 0 10px 24px -12px rgba(23, 32, 28, 0.45), 0 0 0 1px rgba(23, 32, 28, 0.12);
}
.strip {
  position: relative; width: 150px; height: 10px; border-radius: 5px; overflow: hidden;
  background: var(--signal);
  box-shadow: 0 0 18px 2px rgba(232, 163, 61, 0.65);
  transition: box-shadow 0.5s ease 0.2s;
}
.strip i {                      /* darkness sweeps across the LEDs, left to right */
  position: absolute; inset: 0; background: #3b423e;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.6, 0, 0.3, 1);
}
.wall.off .strip { box-shadow: 0 0 0 0 rgba(232, 163, 61, 0); transition-delay: 0s; }
.wall.off .strip i { transform: scaleX(1); }
.strip::after {                 /* individual LEDs */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 7px, rgba(23, 32, 28, 0.18) 7px 8px);
}
.big-btn {
  width: 120px; height: 120px; border-radius: 50%;
  border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, #2c3632, var(--ink) 70%);
  color: var(--paper-2);
  box-shadow: 0 7px 0 #0c120f, 0 12px 18px -6px rgba(23, 32, 28, 0.5), 0 0 0 8px var(--paper-3), 0 0 0 9px rgba(23, 32, 28, 0.15);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.big-btn svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; }
.big-btn:active, .big-btn.pressing {
  transform: translateY(6px);
  box-shadow: 0 1px 0 #0c120f, 0 4px 8px -4px rgba(23, 32, 28, 0.5), 0 0 0 8px var(--paper-3), 0 0 0 9px rgba(23, 32, 28, 0.15);
}
.big-btn:focus-visible { outline: 3px solid var(--pen); outline-offset: 12px; }
.plate-name { font-size: 0.875rem; color: var(--ink-2); }
.switch-hint { position: relative; z-index: 1; font-size: 0.9375rem; color: var(--ink-2); transition: opacity 0.3s ease; }
.switch-hint.gone { opacity: 0; }

.switch-log {
  background: var(--console); color: var(--console-ink);
  padding: 22px 24px; display: flex; flex-direction: column; min-height: 380px;
}
.switch-state {
  display: flex; align-items: center; gap: 10px;
  font-weight: 500; padding-bottom: 14px; border-bottom: 1px solid rgba(223, 228, 221, 0.12);
}
.switch-state::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--signal); box-shadow: 0 0 10px var(--signal);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.switch-log.off .switch-state::before { background: #59625d; box-shadow: none; }
.switch-lines {
  list-style: none; margin: 0; padding: 14px 0 0; flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 56px);
}
.switch-lines li { animation: ink-in 0.4s ease both; }
.switch-lines .t { color: var(--console-dim); margin-right: 8px; }
.switch-lines .event { color: #f0c47e; }
.switch-lines .event.off { color: #a9b3ad; }

.switch-facts {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px;
}
.switch-facts li { padding: 18px 0 22px; border-top: 1px solid var(--rule); color: var(--ink-2); max-width: 52ch; }
.switch-facts b { display: block; color: var(--ink); font-size: 1.125rem; margin-bottom: 4px; letter-spacing: -0.01em; }

/* privacy — the reason to buy, set on the darkest surface on the page */
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink .sheet { border-top: 0; }
.band-ink .sheet-mark span { color: var(--signal); border-top-color: var(--signal); }
.band-ink .lede { color: #b5bdb6; }
.guarantees {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
}
.guarantee { padding: 22px 0 30px; border-top: 1px solid rgba(230, 231, 226, 0.22); }
.guarantee h3 { font-size: 1.1875rem; margin-bottom: 8px; color: var(--paper-2); }
.guarantee p { color: #b5bdb6; font-size: 1rem; }

/* quote */
.band-ink + .sheet { border-top: 0; }
.form-frame {
  position: relative; margin-top: 40px; max-width: 760px;
  border: 1px solid var(--rule); border-radius: 16px; background: var(--paper-2); overflow: hidden;
}
.form-frame iframe { display: block; width: 100%; border: 0; }
.form-frame.pending iframe { display: none; }
.form-fallback { display: none; padding: 28px; font-size: 1.0625rem; }
.form-frame.pending .form-fallback { display: block; }

/* 404 — an empty room on the plan */
.notfound { border-top: 0; min-height: calc(100vh - var(--topbar-h) - 220px); }
.nf-plan { display: block; width: min(360px, 100%); height: auto; margin: 0 0 32px -12px; }
.nf-floor { fill: var(--paper-2); stroke: var(--pen); stroke-width: 1.5; stroke-dasharray: 5 5; }
.nf-wall { fill: #fbfbf9; stroke: var(--rule); stroke-width: 1; }
.nf-wall-r { fill: #eef0eb; }
.nf-switch polygon { fill: var(--paper-2); stroke: var(--ink-2); stroke-width: 1; }
.nf-switch line { stroke: #3b423e; stroke-width: 3.5; stroke-linecap: round; }
.nf-plan text { font: 600 44px var(--f-sans); fill: var(--pen); }
.notfound h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 0.98; max-width: 14ch;
}
.nf-actions { margin-top: 32px; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--rule); }
.foot-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 48px var(--gutter) 56px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 48px; align-items: start;
}
.foot-inner > p { color: var(--ink-2); max-width: 40ch; font-size: 0.9375rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--ink); text-decoration: none; font-size: 0.9375rem; }
.foot nav a:hover { color: var(--pen); }
.foot-legal { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  :root { --mark-w: 140px; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .ledger { border-left: 0; border-top: 1px solid var(--rule); height: 300px; }
  .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .topnav {
    position: absolute; top: var(--topbar-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    display: none;
  }
  .topnav.open { display: flex; }
  .topnav a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .topnav a.topnav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
  .menu-toggle { display: block; }

  .hero-head { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { grid-row: auto; max-width: 12ch; }
  .stage-canvas { height: 380px; cursor: default; }
  .stage-hint { display: none; }
  .ledger { height: 280px; }
  .chip { flex: 1 1 auto; }

  .sheet { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sheet-mark span { position: static; }
  .kit-row { grid-template-columns: minmax(0, 1fr); }
  .steps, .trades, .guarantees { grid-template-columns: minmax(0, 1fr); }
  .console { grid-template-columns: minmax(0, 1fr); }
  .switch-demo, .switch-facts { grid-template-columns: minmax(0, 1fr); }
  .wall, .switch-log { min-height: 320px; }
  .console-qs { border-right: 0; border-bottom: 1px solid rgba(223, 228, 221, 0.12); }
  .console-a { padding: 20px; min-height: 300px; font-size: 0.8125rem; }
  .film { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .hero-sub, .lede { font-size: 1.0625rem; }
  .stage { border-radius: 14px; }
  .stage-canvas { height: 320px; }
  .doc { box-shadow: 5px 5px 0 -1px var(--paper-2), 5px 5px 0 0 var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
