/* Transcribe Today.

   Mint-teal for the product (buttons, links, prices), violet for the voice
   (the waveform, the recording ring, focus), and two pastels, mint and
   lavender, as fills. Butter marks the one free thing. One typeface,
   Familjen Grotesk, carries everything but code, which is IBM Plex Mono.

   The page script reads --seal-ink, --ink, --rule and --paper to draw the
   waveform, so those names are kept as aliases. */
:root {
  color-scheme: light dark;
  --bg:          #ffffff;
  --wash:        #eff8f6;
  --card:        #ffffff;
  --ink:         #10282c;
  --ink-soft:    #3f565b;
  --ink-faint:   #566d72;
  --line:        #d3e3e0;
  --line-strong: #6f8d89;
  --brand:       #0a7166;
  --brand-ink:   #ffffff;
  --brand-text:  #0a6a5f;
  --brand-soft:  #d6f2ec;
  --voice:       #6542cc;
  --voice-soft:  #ebe5ff;
  --butter:      #fff0b8;
  --butter-ink:  #5f4700;
  --no:          #b3261e;
  --no-soft:     #fde7e4;
  --code-bg:     #f4f8f7;
  --shadow:      0 1px 2px rgba(16, 40, 44, .05), 0 18px 40px -22px rgba(16, 40, 44, .28);

  --seal-ink: var(--voice);
  --rule:     var(--line-strong);
  --paper:    var(--card);

  --font: "Familjen Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:          #0c1d20;
    --wash:        #10272b;
    --card:        #132e33;
    --ink:         #e8f4f2;
    --ink-soft:    #b3c8c6;
    --ink-faint:   #9bb3b1;
    --line:        #24474c;
    --line-strong: #5e878d;
    --brand:       #5fd3c3;
    --brand-ink:   #04211d;
    --brand-text:  #6fdccd;
    --brand-soft:  #15403c;
    --voice:       #b8a3ff;
    --voice-soft:  #2b2553;
    --butter:      #3a3115;
    --butter-ink:  #f5d470;
    --no:          #ff9f94;
    --no-soft:     #42201d;
    --code-bg:     #0f2529;
    --shadow:      0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  --bg:          #0c1d20;
  --wash:        #10272b;
  --card:        #132e33;
  --ink:         #e8f4f2;
  --ink-soft:    #b3c8c6;
  --ink-faint:   #9bb3b1;
  --line:        #24474c;
  --line-strong: #5e878d;
  --brand:       #5fd3c3;
  --brand-ink:   #04211d;
  --brand-text:  #6fdccd;
  --brand-soft:  #15403c;
  --voice:       #b8a3ff;
  --voice-soft:  #2b2553;
  --butter:      #3a3115;
  --butter-ink:  #f5d470;
  --no:          #ff9f94;
  --no-soft:     #42201d;
  --code-bg:     #0f2529;
  --shadow:      0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -22px rgba(0, 0, 0, .7);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--font);
  font-feature-settings: "ss01" 0;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--voice); outline-offset: 3px; border-radius: 8px; }
p { margin: 0 0 .9em; max-width: 66ch; }
code { font-family: var(--mono); font-size: .86em; background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px; padding: .05em .35em; }
strong, b { font-weight: 650; }
h1, h2, h3, h4 { font-family: var(--font); margin: 0; letter-spacing: -.015em; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.1; }
h3 { font-size: 1.32rem; font-weight: 650; line-height: 1.2; }
h4 { font-size: 1.06rem; font-weight: 650; line-height: 1.3; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.ic { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; vertical-align: -.22em; }

/* -------------------------------------------------------------- top bar */
.bar { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; white-space: nowrap;
}
.logo svg { width: 36px; height: 36px; flex: none; }
.logo .ring { color: var(--brand); }
.logo .wave { color: var(--voice); }
.logo .lines { color: var(--ink); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 550;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--wash); color: var(--ink); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.theme {
  width: 42px; height: 42px; border-radius: 50%; padding: 0; display: grid; place-items: center;
  background: transparent; color: var(--ink-soft); border: 1.5px solid var(--line-strong); cursor: pointer;
}
.theme:hover { background: var(--wash); color: var(--ink); }
.theme .ic { width: 20px; height: 20px; vertical-align: 0; }
.theme .ic-sun { display: none; }
:root[data-theme="dark"] .theme .ic-sun { display: block; }
:root[data-theme="dark"] .theme .ic-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .ic-sun { display: block; }
  :root:not([data-theme="light"]) .theme .ic-moon { display: none; }
}
@media (max-width: 860px) { .nav { display: none; } }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 600 1.04rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn .ic { width: 22px; height: 22px; vertical-align: 0; }
.btn.main { background: var(--brand); color: var(--brand-ink); }
.btn.main:hover { filter: brightness(1.08); }
.btn.soft { background: var(--brand-soft); color: var(--brand-text); }
.btn.soft:hover { filter: brightness(.97); }
.btn.small { min-height: 42px; padding: 0 18px; font-size: .95rem; }
.btn.small .ic { width: 19px; height: 19px; }
@media (max-width: 520px) {
  .bar { gap: 10px; }
  .bar .btn.small .label-long { display: none; }
  .logo { font-size: 1.12rem; gap: 8px; }
  .logo svg { width: 30px; height: 30px; }
}
/* On the narrowest phones the sign-in button keeps only its GitHub mark;
   its name stays for screen readers. */
@media (max-width: 374px) {
  .bar .btn.small { width: 42px; padding: 0; }
  .bar .btn.small .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Buttons inside the tools: one shape, two weights. */
.tool button, .tool .ghost {
  font: 600 .95rem/1 var(--font); min-height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--brand); cursor: pointer;
  background: var(--brand); color: var(--brand-ink);
}
.tool button:hover { filter: brightness(1.08); }
.tool button.ghost { background: transparent; color: var(--brand-text); border-color: var(--line-strong); }
.tool button.ghost:hover { filter: none; background: var(--wash); border-color: var(--brand); }
.tool button:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

/* ----------------------------------------------------------------- hero */
/* Three pieces: the pitch, the demo, the facts. Side by side on a wide
   screen; on a phone the demo comes straight after the buttons, so it is
   seen before the small print. */
.hero {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "pitch demo" "facts demo";
  grid-template-rows: auto 1fr;
  column-gap: 48px; align-items: start; padding-block: 28px 72px;
}
.hero-pitch { grid-area: pitch; }
.hero .demo-card { grid-area: demo; }
.hero-facts { grid-area: facts; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem); font-weight: 700; line-height: 1.02;
  letter-spacing: -.035em; margin: 18px 0 22px;
}
.hero .lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-soft); max-width: 31rem; margin-bottom: 30px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.facts {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px 28px;
  color: var(--ink-soft); font-size: .98rem;
}
.facts li { display: flex; gap: 9px; align-items: center; }
.facts .ic { color: var(--brand-text); width: 21px; height: 21px; vertical-align: 0; }
.fine { font-size: .9rem; color: var(--ink-faint); margin: 14px 0 0; }
@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "pitch" "demo" "facts"; grid-template-rows: auto; row-gap: 32px; padding-block-start: 12px; }
  .hero .facts { margin-top: 0; }
}
@media (max-width: 520px) {
  .hero h1 { margin-top: 8px; }
  .hero .lead { font-size: 1.08rem; margin-bottom: 24px; }
}
@media (max-width: 420px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------ live demo */
.demo-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--shadow); padding: 24px;
}
.demo-card-hd { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.demo-card-hd h2 { font-size: 1.35rem; letter-spacing: -.01em; }
.demo-card-hd span { font-size: .92rem; color: var(--ink-faint); }
.demo-live {
  display: grid; gap: 18px 24px;
  grid-template-columns: auto minmax(0, 1fr);
}
.demo-live > #demo-playback { grid-column: 1 / -1; }
.demo-speech { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.record-rig { display: grid; justify-items: center; gap: 12px; align-self: start; width: 196px; }
button.trace-seal {
  position: relative; flex: none; width: 176px; height: 176px;
  padding: 0; border: 0; background: none; border-radius: 50%;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 0 10px var(--voice-soft);
}
button.trace-seal:disabled { cursor: progress; opacity: .75; }
button.trace-seal:focus-visible { outline: 3px solid var(--voice); outline-offset: 14px; }
.trace-seal svg, .trace-seal canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
}
.trace-ring .rim { fill: var(--paper); stroke: var(--line); stroke-width: 3; }
.trace-seal:not(:disabled):hover .trace-ring .rim { stroke: var(--voice); }
.trace-ring .arc {
  fill: none; stroke: var(--voice); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 289; stroke-dashoffset: 289;
  transition: stroke-dashoffset .2s linear;
}
/* The microphone badge says "press me" while nothing is happening; it steps
   aside the moment there is a trace to watch. */
.seal-mic {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--voice); color: var(--card);
  display: grid; place-items: center; pointer-events: none;
  box-shadow: 0 0 0 6px var(--paper);
  transition: opacity .15s ease, transform .15s ease;
}
.trace-seal .seal-mic svg { position: static; width: 32px; height: 32px; }
.trace-seal:not([data-state="idle"]) .seal-mic { opacity: 0; transform: scale(.8); }
.trace-seal[data-state="idle"]:hover .seal-mic { transform: scale(1.06); }
.seal-stop {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity .15s ease;
}
.seal-stop .scrim { fill: var(--paper); opacity: .86; }
.seal-stop .mark-pause rect, .seal-stop .mark-play path { fill: var(--voice); }
.seal-stop .mark-pause, .seal-stop .mark-play { display: none; }
.trace-seal[data-state="recording"] .seal-stop .mark-pause { display: block; }
.trace-seal[data-state="paused"] .seal-stop .mark-play { display: block; }
.trace-seal[data-state="recording"]:hover .seal-stop,
.trace-seal[data-state="recording"]:focus-visible .seal-stop,
.trace-seal[data-state="paused"] .seal-stop { opacity: 1; }
.seal-wait {
  position: absolute; inset: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.seal-wait .scrim { fill: var(--paper); opacity: .9; }
.seal-wait .count {
  position: relative; font-weight: 700; font-size: 2.6rem;
  color: var(--voice); font-variant-numeric: tabular-nums; line-height: 1;
}
.trace-seal[data-state="cooling"] .seal-wait { opacity: 1; }
.rig-readout { display: grid; gap: 4px; justify-items: center; text-align: center; min-width: 0; max-width: 100%; margin-top: 8px; }
.rig-caption { font-weight: 600; font-size: .95rem; color: var(--ink); }
.rig-hint { font-size: .88rem; color: var(--ink-faint); }
.demo-budget { font-family: var(--mono); font-size: .8rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.speech-hd { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.speech-hd .notice-line { margin: 0; flex: 1 1 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.transport-pick { display: inline-flex; flex: none; padding: 3px; gap: 2px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); }
button.pick {
  font: 600 .84rem/1 var(--font); white-space: nowrap; min-height: 32px;
  padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink-soft); cursor: pointer;
}
button.pick:hover { color: var(--ink); }
button.pick.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1.5px var(--brand); }
button.pick:disabled { opacity: .45; cursor: not-allowed; }
.demo-lang {
  font: 600 .84rem/1 var(--font); white-space: nowrap; display: inline-flex; align-items: center;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--voice-soft); color: var(--ink);
}
.demo-transcript {
  min-height: 9.5em; height: 100%; padding: 18px 20px;
  background: var(--wash); border-radius: 18px;
  font-size: 1.2rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
}
.demo-transcript:empty::before { content: "Whatever you say appears here, word by word."; color: var(--ink-faint); }
.demo-transcript .partial { color: var(--ink-faint); }
.demo-note { font-size: .86rem; color: var(--ink-faint); margin: 18px 0 0; max-width: none; }
.demo-playback-label { font-weight: 650; font-size: .95rem; margin: 0 0 8px; }
#demo-audio { display: none; }
button.seal {
  width: 76px; height: 76px; flex: none;
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
}
button.seal svg { width: 100%; height: 100%; display: block; overflow: visible; }
button.seal .rim { fill: var(--voice-soft); stroke: var(--line); stroke-width: 5; }
button.seal .arc {
  fill: none; stroke: var(--voice); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 270.2; stroke-dashoffset: 270.2;
  transition: stroke-dashoffset .08s linear;
}
button.seal .glyph { fill: var(--voice); }
button.seal:hover .rim { stroke: var(--voice); }
.take-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.take {
  display: flex; gap: 14px; align-items: center; padding: 10px 14px;
  background: var(--card); border: 1.5px solid var(--line); border-radius: 16px;
}
.take.playing { border-color: var(--voice); }
button.take-seal { width: 46px; height: 46px; }
.take-body { min-width: 0; display: grid; gap: 3px; }
.take-text { margin: 0; font-size: 1rem; line-height: 1.5; word-break: break-word; }
.take-text:empty::before { content: "Nothing could be made out."; color: var(--ink-faint); }
.take-meta { font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .trace-ring .arc, .seal-stop, .seal-wait, .seal-mic, button.seal .arc { transition: none; }
}
@media (max-width: 640px) {
  .demo-card { padding: 18px; border-radius: 24px; }
  .demo-live { grid-template-columns: minmax(0, 1fr); }
  .record-rig { width: auto; }
}

/* -------------------------------------------------------------- sections */
.band { padding: 80px 0; }
.band.wash { background: var(--wash); }
.band.tight { padding-top: 0; }
.band-hd { margin-bottom: 36px; max-width: 46rem; }
.band-hd h2 { margin-bottom: 14px; }
.band-hd p { font-size: 1.15rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) { .band { padding: 56px 0; } .band-hd { margin-bottom: 26px; } }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px;
}
.band.wash .card { border-color: transparent; }
@media (max-width: 640px) { .card { padding: 20px; border-radius: 18px; } }
.tool + .tool { margin-top: 24px; }
.tool-hd { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.tool-hd .badge {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none;
  background: var(--brand-soft); color: var(--brand-text);
}
.tool-hd .badge.v { background: var(--voice-soft); color: var(--voice); }
.tool-hd .badge .ic { width: 24px; height: 24px; vertical-align: 0; }
.tool-hd p { margin: 4px 0 0; color: var(--ink-soft); }

/* in service */
.in-service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.in-service .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.in-service img { width: 100%; aspect-ratio: 960 / 525; object-fit: cover; border-bottom: 1px solid var(--line); }
.in-service .body { padding: 20px 24px 24px; }
.in-service h3 { margin-bottom: 8px; }
.in-service h3 a { color: var(--ink); text-decoration: none; }
.in-service h3 a:hover { color: var(--brand-text); }
.in-service p { margin: 0 0 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600;
  padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text);
}
.tag .ic { width: 17px; height: 17px; vertical-align: 0; }
@media (max-width: 720px) { .in-service { grid-template-columns: minmax(0, 1fr); } }

/* prices */
.pricing { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.price-grid { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.price {
  background: var(--card); border-radius: 20px; padding: 20px 22px; border: 1.5px solid var(--line);
  display: grid; gap: 6px; align-content: start;
}
.price .what { display: flex; gap: 8px; align-items: center; color: var(--ink-soft); font-weight: 550; font-size: .98rem; }
.price .what .ic { color: var(--brand-text); width: 21px; height: 21px; vertical-align: 0; }
.price .amount { font-size: 2.3rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.price .amount small { font-size: 1rem; font-weight: 550; letter-spacing: 0; color: var(--ink-soft); }
.price .incl { font-size: .92rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.price.free { background: var(--butter); border-color: transparent; }
.price.free .what, .price.free .what .ic, .price.free .amount small { color: var(--butter-ink); }
.price.free .amount { color: var(--butter-ink); }
.price.free .incl { color: var(--butter-ink); }
.price-note { font-size: .92rem; color: var(--ink-faint); margin: -10px 0 18px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--brand); color: var(--brand-ink);
}
.steps h4 { margin: 7px 0 4px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
.contact { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
@media (max-width: 900px) { .pricing { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; } .price { padding: 16px 18px; } }
.price .amount, .price .amount small { white-space: nowrap; }

/* how it works */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.three h3 { margin-bottom: 12px; }
.three p { font-size: 1rem; color: var(--ink-soft); }
.three p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .three { grid-template-columns: minmax(0, 1fr); } }
.figure { margin: 24px 0 0; }
.figure figcaption { font-size: .9rem; color: var(--ink-faint); margin-top: 10px; }
.flow { width: 100%; height: auto; display: block; }
.flow .station { fill: var(--card); stroke: var(--line-strong); stroke-width: 1.5; }
.flow .station.key { fill: var(--voice-soft); stroke: var(--voice); }
.flow .wire { stroke: var(--line-strong); stroke-width: 1.5; fill: none; }
.flow .wire-live { stroke: var(--brand); stroke-width: 1.8; fill: none; }
.flow text { font-family: var(--font); fill: var(--ink); }
.flow .cap { font-size: 11px; fill: var(--ink-faint); }
.flow .lbl { font-size: 13.5px; font-weight: 650; }
.flow .owl { fill: var(--voice); }
@keyframes glide { to { offset-distance: 100%; } }
.owl-carrier {
  offset-path: path("M 128 96 L 330 96 L 330 168 L 560 168 L 560 96 L 784 96");
  offset-rotate: 0deg;
  animation: glide 7s cubic-bezier(.5,0,.5,1) infinite;
}
@media (prefers-reduced-motion: reduce) { .owl-carrier { animation: none; offset-distance: 46%; } }
@media (max-width: 720px) {
  .scroll-fig { overflow-x: auto; }
  .flow { min-width: 640px; }
}
.callouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.callout { border-radius: 18px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); }
.callout h4 { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.callout h4 .ic { color: var(--brand-text); vertical-align: 0; }
.callout p { margin: 0; color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 720px) { .callouts { grid-template-columns: minmax(0, 1fr); } }

/* code */
pre {
  margin: 0; padding: 18px 20px; overflow-x: auto;
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 16px;
  font: 400 .86rem/1.6 var(--mono); color: var(--ink); tab-size: 2;
}
pre code { font: inherit; background: none; border: 0; padding: 0; white-space: pre; }
.hljs-comment, .hljs-quote { color: var(--ink-faint); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in, .hljs-name, .hljs-section { color: var(--voice); }
.hljs-string, .hljs-symbol, .hljs-bullet, .hljs-addition { color: var(--brand-text); }
.hljs-attr { color: var(--ink); font-weight: 500; }
.hljs-number, .hljs-literal, .hljs-type, .hljs-variable, .hljs-template-variable { color: var(--butter-ink); }
.hljs-title, .hljs-title\.function_, .hljs-function .hljs-title { color: var(--ink); font-weight: 500; }
.hljs-meta, .hljs-params, .hljs-punctuation { color: var(--ink-soft); }
.hljs-deletion { color: var(--no); }
.copy-wrap { position: relative; }
.tool .copy-btn, .copy-btn {
  position: absolute; top: 10px; right: 10px; min-height: 32px; padding: 0 12px;
  font: 600 .8rem/1 var(--font); border-radius: 999px; cursor: pointer;
  background: var(--card); color: var(--ink-soft); border: 1px solid var(--line);
}
.tool .copy-btn:hover, .copy-btn:hover { filter: none; color: var(--ink); border-color: var(--brand); }
#lab-output, #snippet-body { min-height: 5em; }
/* In the two demo cards the code reaches the copy button at any width. */
.demo .copy-wrap pre { padding-top: 48px; }
@media (max-width: 720px) {
  .copy-wrap pre { padding-top: 48px; }
  p code { overflow-wrap: anywhere; }
}
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--wash); border: 1px solid var(--line); margin-bottom: 14px; }
.tool .tabs button {
  min-height: 36px; padding: 0 16px; border: 0; background: transparent; color: var(--ink-soft);
}
.tool .tabs button:hover { filter: none; color: var(--ink); }
.tool .tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1.5px var(--brand); }

/* gauntlet */
.flaws { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .flaws { grid-template-columns: minmax(0, 1fr); } }
label.check {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card);
}
label.check:hover { border-color: var(--line-strong); }
label.check:has(input:checked) { border-color: var(--no); background: var(--no-soft); }
label.check input {
  appearance: none; -webkit-appearance: none; margin: 2px 0 0; flex: none;
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong);
  background: var(--card); display: grid; place-items: center; cursor: pointer;
}
label.check input::after {
  content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--no);
  transform: scale(0); transition: transform .1s ease;
}
label.check input:checked { border-color: var(--no); }
label.check input:checked::after { transform: scale(1); }
label.check input:focus-visible { outline: 3px solid var(--voice); outline-offset: 2px; }
label.check .what { display: block; font-weight: 600; }
label.check .why { display: block; font-size: .9rem; color: var(--ink-soft); margin-top: 2px; }
ol.gauntlet { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
ol.gauntlet li {
  display: grid; grid-template-columns: 28px minmax(0, 15rem) minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 8px 14px; border-radius: 12px; background: var(--wash);
}
ol.gauntlet .mark {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; background: var(--card); color: var(--ink-faint);
}
ol.gauntlet .name { font-weight: 600; }
ol.gauntlet .note { font-family: var(--mono); font-size: .8rem; color: var(--ink-soft); }
li.pass .mark { background: var(--brand); color: var(--brand-ink); }
li.fail { background: var(--no-soft) !important; }
li.fail .mark { background: var(--no); color: var(--card); }
li.fail .note, li.fail .name { color: var(--no); }
li.skip { opacity: .55; }
@media (max-width: 560px) {
  ol.gauntlet li { grid-template-columns: 28px minmax(0, 1fr); }
  ol.gauntlet .note { grid-column: 2; }
}
.verdict:empty { display: none; }
.verdict {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--wash); font-size: .98rem;
}
.verdict.ok { background: var(--brand-soft); border-color: var(--brand); color: var(--ink); }
.verdict.no { background: var(--no-soft); border-color: var(--no); color: var(--ink); }
.verdict code { display: block; margin-top: 8px; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }

/* forms */
textarea, input[type="text"], input[type="password"] {
  width: 100%; font: 400 .95rem/1.5 var(--font); color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 12px;
  padding: 11px 14px; min-height: 46px;
}
textarea { font-family: var(--mono); font-size: .82rem; resize: vertical; min-height: 104px; word-break: break-all; }
textarea::placeholder, input::placeholder { color: var(--ink-faint); opacity: 1; }
textarea:hover, input[type="text"]:hover, input[type="password"]:hover { border-color: var(--brand); }
textarea:focus-visible, input:focus-visible { outline: 3px solid var(--voice); outline-offset: 1px; border-color: var(--voice); }
.field label, .field-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.search { position: relative; }
.search .ic { position: absolute; left: 14px; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: var(--ink-faint); pointer-events: none; }
.search input { padding-left: 44px; }
.small-note { font-size: .9rem; color: var(--ink-faint); max-width: none; }

.decoded { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.decoded h4 { font-size: .95rem; margin-bottom: 8px; color: var(--ink-soft); }
@media (max-width: 720px) { .decoded { grid-template-columns: minmax(0, 1fr); } }

/* ledger */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
thead th { font-weight: 600; color: var(--ink-soft); background: var(--wash); font-size: .86rem; }
td.num, th.num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
td.credit { color: var(--brand-text); }
td.debit { color: var(--no); }
.balance-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 16px; }
.balance-row .big { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.balance-row .lab { color: var(--ink-soft); }
.formula { font-family: var(--mono); font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--voice-soft); color: var(--ink); }

/* directory */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tool .filters button {
  min-height: 36px; padding: 0 14px; font-size: .88rem;
  background: transparent; color: var(--ink-soft); border-color: var(--line-strong);
}
.tool .filters button:hover { filter: none; color: var(--ink); border-color: var(--brand); }
.tool .filters button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.endpoint { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.endpoint:last-child { border-bottom: 0; }
.endpoint .verb {
  font-family: var(--mono); font-size: .74rem; font-weight: 500; align-self: start;
  justify-self: start; padding: 3px 8px; border-radius: 6px; background: var(--voice-soft); color: var(--ink);
}
.endpoint .path { font-family: var(--mono); font-size: .86rem; word-break: break-all; }
.endpoint .purpose { color: var(--ink-soft); font-size: .94rem; }

/* proving room */
.lab { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.notice-line { min-height: 1.6em; margin: 14px 0 10px; font-size: .98rem; }
.notice-line.ok { color: var(--brand-text); }
.notice-line.no { color: var(--no); }
.notice-line.busy { color: var(--ink-faint); }

/* clone */
.demo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin: 18px 0 16px; }
@media (max-width: 820px) { .demo-grid { grid-template-columns: minmax(0, 1fr); } }
.demo { border: 1.5px solid var(--line); border-radius: 18px; padding: 20px; background: var(--card); min-width: 0; }
.demo h4 { margin-bottom: 6px; }
.demo p { font-size: .98rem; color: var(--ink-soft); }
.demo .dl { font-size: .92rem; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.demo .dl a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.demo .dl .ic { vertical-align: 0; }
.demo .badge-line { display: inline-block; font-size: .86rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 10px; }

/* live + outage */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: minmax(0, 1fr); } }
.two h3 { margin-bottom: 12px; }
.two p { color: var(--ink-soft); }
.two .figure { margin: 18px 0 18px; }

/* limits */
.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin: 0; }
.limits div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.band.wash .limits div { border-color: transparent; }
.limits dt { font-weight: 650; margin-bottom: 4px; }
.limits dt span { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--ink-faint); margin-left: 6px; }
.limits dd { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* closing */
.closing {
  border-radius: 32px; padding: 52px 32px; text-align: center;
  background: var(--brand-soft); display: grid; justify-items: center; gap: 18px;
}
.closing h2 { max-width: 22ch; }
.closing p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }
.closing .actions { justify-content: center; }

footer.foot {
  padding-block: 40px 56px; color: var(--ink-faint); font-size: .94rem;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; align-items: center;
}
footer.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

@media (pointer: coarse) {
  button.pick { min-height: 40px; }
  .tool .copy-btn, .copy-btn { min-height: 40px; min-width: 60px; }
}
