/* ==========================================================================
   SvantAI site styles
   Visual language: control-panel enclosure grey, black engraved label
   plates, one amber signal colour for "a person is needed" and for the
   buttons you press.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ground: #E8E9E3;       /* enclosure grey, slight olive bias */
  --ground-2: #DEE0D7;     /* recessed strips */
  --panel: #F5F5F0;        /* module faces */
  --ink: #15171A;
  --ink-2: #4A4F4B;
  --ink-3: #6E746D;
  --rule: #C7CAC0;
  --rule-strong: #9DA298;
  --plate: #1B1E20;        /* engraved label plates */
  --plate-2: #2A2E31;
  --plate-ink: #ECEDE6;
  --plate-ink-2: #BEC3BA;
  --plate-dim: #8C938C;
  --demo-dim: #A7ADA6;       /* small explanatory labels inside the dark demos */
  --signal: #F0A00A;       /* amber lamp */
  --signal-hover: #FFB120;
  --signal-ink: #1B1400;
  --signal-text: #8A5200;  /* amber that reads as text on light ground */
  --signal-wash: #F7E3B8;
  --run: #2F8F58;
  --run-bright: #5BC489;   /* "done" marks on dark plates */
  --bad: #B3261E;
  --shadow: 0 1px 0 rgba(21, 23, 26, .05), 0 18px 32px -20px rgba(21, 23, 26, .35);
  --brand-mix: 100%;       /* logo hover: share of brand colour vs ink */

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ground: #111314;
    --ground-2: #0C0E0F;
    --panel: #1A1D1F;
    --ink: #E7E8E2;
    --ink-2: #ADB2AA;
    --ink-3: #858B84;
    --rule: #2D3134;
    --rule-strong: #474C50;
    --plate: #08090A;
    --plate-2: #1E2224;
    --plate-ink: #E7E8E2;
    --plate-ink-2: #B3B8AF;
    --plate-dim: #7D847D;
    --demo-dim: #9CA39C;
    --signal: #F4AA22;
    --signal-hover: #FFBC3F;
    --signal-ink: #1B1400;
    --signal-text: #F6B94A;
    --signal-wash: #3A2C10;
    --run: #43B874;
    --bad: #F2837A;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 36px -20px rgba(0, 0, 0, .8);
    --brand-mix: 70%;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #111314;
  --ground-2: #0C0E0F;
  --panel: #1A1D1F;
  --ink: #E7E8E2;
  --ink-2: #ADB2AA;
  --ink-3: #858B84;
  --rule: #2D3134;
  --rule-strong: #474C50;
  --plate: #08090A;
  --plate-2: #1E2224;
  --plate-ink: #E7E8E2;
  --plate-ink-2: #B3B8AF;
  --plate-dim: #7D847D;
  --demo-dim: #9CA39C;
  --signal: #F4AA22;
  --signal-hover: #FFBC3F;
  --signal-ink: #1B1400;
  --signal-text: #F6B94A;
  --signal-wash: #3A2C10;
  --run: #43B874;
  --bad: #F2837A;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 18px 36px -20px rgba(0, 0, 0, .8);
  --brand-mix: 70%;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

/* Text is filled in by JavaScript in the visitor's language. Keep the page
   hidden for that first moment so it never flashes empty or in the wrong
   language; the animation is a failsafe if the script never finishes. */
.js:not(.i18n-ready) body {
  visibility: hidden;
  animation: i18n-failsafe 0s 3s forwards;
}
@keyframes i18n-failsafe { to { visibility: visible; } }

.noscript { padding: 24px var(--gutter); font-family: var(--font-mono); font-size: .8rem; }

[hidden] { display: none !important; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
a { color: inherit; }
b, strong { font-weight: 700; }
button { font: inherit; color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Small type roles ---------- */
.label,
.plate-label {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.label {
  font-size: .66rem;
  color: var(--label-color, var(--ink-2));
}


.plate-label {
  font-size: .66rem;
  color: var(--plate-ink-2);
}

.lamp {
  display: inline-block;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--run);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--run) 22%, transparent);
}
.lamp--blink { animation: blink 2.4s ease-in-out infinite; }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 650;
  font-size: .98rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease, color .15s ease;
}

.btn--signal {
  background: var(--signal);
  color: var(--signal-ink);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2), 0 1px 0 rgba(0, 0, 0, .08);
}
.btn--signal:hover { background: var(--signal-hover); }
.btn--signal:active {
  transform: translateY(1px);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .2);
}

.btn--ghost {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { background: var(--ink); color: var(--ground); }

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: .88rem;
}

/* WhatsApp glyph drawn from the logo file, so it takes the text colour. */
.wa-icon {
  display: inline-block;
  flex: none;
  width: 1.15em;
  height: 1.15em;
  background-color: currentColor;
  -webkit-mask: url(../logos/whatsapp.svg) center / contain no-repeat;
  mask: url(../logos/whatsapp.svg) center / contain no-repeat;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark { width: 28px; height: 28px; flex: none; }
.bm-bg { fill: var(--plate); stroke: var(--plate-2); }
.bm-dot { fill: var(--signal); }
.bm-ring { fill: none; stroke: var(--plate-ink); }
.bm-arm { stroke: var(--plate-ink); }

.brand__name {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.01em;
}
.brand__ai { color: var(--signal-text); }
.footer .brand__ai { color: var(--signal); }

/* EN / ID switch */
.langswitch {
  display: inline-flex;
  flex: none;
  padding: 2px;
  border: 1px solid var(--rule-strong);
  border-radius: 5px;
}
.langswitch button {
  min-width: 34px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.langswitch button:hover { color: var(--ink); }
.langswitch button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }

.topbar__cta-short { display: none; }

.topbar__wa {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 1.1rem;
  transition: background-color .15s ease, color .15s ease;
}
.topbar__wa:hover { background: var(--ink); color: var(--ground); }

.topnav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.topnav a {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-2);
  text-decoration: none;
  padding-block: 6px;
}
.topnav a:hover { color: var(--ink); }

@media (max-width: 1080px) {
  .topnav { gap: 16px; }
}
@media (max-width: 980px) {
  .topnav { display: none; }
  .langswitch { margin-left: auto; }
}
@media (max-width: 560px) {
  .topbar__inner { gap: 10px; }
  .topbar__cta-long { display: none; }
  .topbar__cta-short { display: inline; }
}
@media (max-width: 374px) {
  /* Small phones: the WhatsApp button is the contact, so drop the second one. */
  .topbar__wa:not([hidden]) ~ .topbar__cta { display: none; }
}
@media (max-width: 340px) {
  .topbar__inner { gap: 6px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(48px, 6vw, 88px); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__title {
  margin: 20px 0 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2.45rem, 1.05rem + 3.6vw, 4.1rem);
  line-height: .98;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.hero__lede {
  max-width: 56ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.sizepick {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.sizepick__q {
  font-weight: 600;
  font-size: 1rem;
}
.sizepick__row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.sizebtn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 12px 11px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.sizebtn:hover { border-color: var(--ink); transform: translateY(-1px); }
.sizebtn b {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: .98rem;
  line-height: 1.15;
}
.sizebtn small {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .6rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-2);
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 540px) {
  .sizepick__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Meter (business-size scale, 4 cells) ---------- */
.meter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
}
.meter i {
  display: block;
  width: 9px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 1px;
  opacity: .4;
}
.meter i.on {
  background: currentColor;
  opacity: 1;
}

/* ---------- Shift log ---------- */
.log {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--plate);
  color: var(--plate-ink);
  border: 1px solid var(--plate-2);
  border-radius: 8px;
  box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55);
  overflow: hidden;
  --label-color: var(--plate-dim);
}

.log__head,
.log__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.log__head {
  justify-content: space-between;
  border-bottom: 1px solid var(--plate-2);
}
.log__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--plate-ink);
}
.log.is-paused .lamp--blink { animation: none; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 22%, transparent); }

.log__lines {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  height: 9.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .7rem;
  line-height: 1.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3rem);
          mask-image: linear-gradient(to bottom, transparent 0, #000 3rem);
}

.log__line {
  display: grid;
  grid-template-columns: 3.4em 3.6em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 7px 16px;
  border-top: 1px solid var(--plate-2);
}
.log__line.is-new { animation: line-in .5s cubic-bezier(.2, .8, .2, 1); }

@keyframes line-in {
  from { opacity: 0; transform: translateY(10px); background: var(--plate-2); }
  to { opacity: 1; transform: none; }
}

.log__time { color: var(--plate-dim); font-variant-numeric: tabular-nums; }

.log__no {
  padding: 0;
  border: 0;
  background: none;
  color: var(--signal);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.log__no:hover { text-decoration-color: currentColor; }

.log__text { color: var(--plate-ink); overflow-wrap: anywhere; }

.log__tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid var(--signal);
  border-radius: 2px;
  color: var(--signal);
  font-size: .9em;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.log__foot {
  border-top: 1px solid var(--plate-2);
  color: var(--plate-dim);
  flex-wrap: wrap;
}
.log__foot b { color: var(--plate-ink); font-variant-numeric: tabular-nums; }

.log__toggle {
  margin-left: auto;
  padding: 5px 10px;
  background: transparent;
  border: 1px solid var(--plate-2);
  border-radius: 3px;
  color: var(--plate-ink-2);
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.log__toggle:hover { border-color: var(--plate-dim); color: var(--plate-ink); }
.log__toggle:focus-visible { outline-color: var(--plate-ink); }

.log__caption {
  padding: 0 16px 14px;
  font-size: .8rem;
  line-height: 1.45;
  color: var(--plate-dim);
}

/* ---------- Logo strip ---------- */
.stack {
  padding-block: 26px 22px;
  background: var(--ground-2);
  border-block: 1px solid var(--rule);
}
.stack .label { margin-bottom: 16px; }

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.logos li { display: flex; }

/* Each mark is an SVG used as a mask (set inline by sections.js), so it
   takes the text colour at rest and its brand colour on hover. */
.logo {
  --size: 26px;
  display: block;
  width: calc(var(--size) * var(--w, 1));
  height: var(--size);
  background-color: var(--ink-2);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: background-color .2s ease;
}
.logo:hover {
  background-color: var(--brand, var(--ink));
  background-color: color-mix(in oklab, var(--brand, var(--ink)) var(--brand-mix), var(--ink));
}

.stack .marquee .logo { --size: 34px; }

.stack__models {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin-top: 22px;
  margin-bottom: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.stack__models .label { margin: 0; }
.stack__note {
  font-size: .82rem;
  line-height: 1.45;
  color: var(--ink-3);
}

/* ---------- Marquee (marquee.js) ---------- */
/* Before the script runs, and under reduced motion, the list is a still,
   wrapped row inside the page gutter. */
.marquee {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.marquee.is-ready:not(.is-still) {
  max-width: none;
  padding-inline: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee.is-ready:not(.is-still) .marquee__track {
  display: flex;
  width: max-content;
  animation: marquee var(--dur, 40s) linear infinite;
}
.marquee.is-ready:not(.is-still) .logos {
  --gap: 46px;
  flex: none;
  flex-wrap: nowrap;
  gap: var(--gap);
  padding-right: var(--gap); /* same space at the seam between copies */
}
.marquee--reverse.is-ready:not(.is-still) .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track,
.marquee.is-paused .marquee__track,
.marquee.is-offscreen .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 720px) {
  .stack .marquee .logo { --size: 28px; }
  .marquee.is-ready:not(.is-still) .logos { --gap: 32px; }
  .stack__models .label { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none !important; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section + .section { border-top: 1px solid var(--rule); }

.section__head {
  max-width: 780px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section__title {
  margin-top: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 114%;
  font-size: clamp(1.85rem, 1rem + 2.5vw, 2.9rem);
  line-height: 1.03;
  letter-spacing: -.024em;
  text-wrap: balance;
}

.section__lede {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--ink-2);
}

/* ---------- Catalog controls ---------- */
.controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 44px;
  align-items: center;
  margin-bottom: 28px;
  padding: 20px 24px 22px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.dialbox { display: flex; flex-direction: column; gap: 4px; }

.dial {
  position: relative;
  width: 300px;
  height: 156px;
}

.dial:has(#tier-all:checked) { --rot: -100deg; }
.dial:has(#tier-solo:checked) { --rot: -50deg; }
.dial:has(#tier-team:checked) { --rot: 0deg; }
.dial:has(#tier-group:checked) { --rot: 50deg; }
.dial:has(#tier-enterprise:checked) { --rot: 100deg; }

.dial__face {
  position: absolute;
  left: 150px;
  top: 104px;
  width: 0;
  height: 0;
}

.dial__tick {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 7px;
  background: var(--rule-strong);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-52px);
}

.dial__knob {
  position: absolute;
  left: -38px;
  top: -38px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--plate) 0 5deg, var(--plate-2) 5deg 10deg);
  box-shadow: 0 1px 0 var(--rule), 0 14px 22px -12px rgba(0, 0, 0, .6);
  transform: rotate(var(--rot, -100deg));
  transition: transform .5s cubic-bezier(.34, 1.5, .64, 1);
  cursor: pointer;
}
.dial__knob::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, var(--plate-2), var(--plate) 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}
.dial__pointer {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 22px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--signal);
}

.dial__pos {
  position: absolute;
  left: 150px;
  top: 104px;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-94px) rotate(calc(var(--a) * -1));
}
.dial__pos input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.dial__pos span {
  display: block;
  padding: 4px 7px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-3);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.dial__pos span:hover { color: var(--ink); }
.dial__pos input:checked + span {
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 700;
}
.dial__pos input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.readout { display: grid; gap: 8px; align-content: center; }
.readout__line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.readout__line b {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 800;
  font-size: clamp(1.4rem, 1rem + 1.2vw, 1.9rem);
  letter-spacing: -.02em;
  line-height: 1.1;
}
.readout__people {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .72rem;
  color: var(--ink-2);
}
.readout__blurb { max-width: 52ch; color: var(--ink-2); }
.readout__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 2px;
}
.readout__count { font-variant-numeric: tabular-nums; color: var(--ink); }

.fnfilter {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px solid var(--rule);
}
.fnfilter legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; }
.fnfilter__row {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-size: .9rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip span:hover { border-color: var(--ink); }
.chip small {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}
.chip input:checked + span small { color: inherit; opacity: .7; }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

@media (max-width: 680px) {
  .controls {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px 16px 20px;
  }
  .dialbox { align-items: center; }
  .dialbox .label { align-self: flex-start; }
}
@media (max-width: 370px) {
  .dial { transform: scale(.88); transform-origin: 50% 0; margin-bottom: -18px; }
}

/* ---------- Catalog grid & cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.card:focus-visible { outline-offset: 2px; }

.card__plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--plate);
  color: var(--plate-ink-2);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.card__no { color: var(--signal); font-weight: 700; }

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px 18px;
}

.card__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 750;
  font-size: 1.32rem;
  line-height: 1.1;
  letter-spacing: -.012em;
}

.card__pitch {
  color: var(--ink-2);
  font-size: .97rem;
  line-height: 1.5;
}

.card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-strong);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.card__fit { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.card__fit span { color: var(--ink-2); }

/* Mini pipeline on each card */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 5px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  letter-spacing: .02em;
}
.flow li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.flow li + li::before {
  content: "";
  width: 8px;
  height: 1.5px;
  background: var(--rule-strong);
}
.flow__step {
  padding: 4px 7px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  background: var(--ground);
  color: var(--ink);
  white-space: nowrap;
}
.flow__step--human {
  border-color: var(--signal);
  background: var(--signal-wash);
  color: var(--ink);
}
.flow__step--human::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  vertical-align: 1px;
  background: var(--signal);
  transform: rotate(45deg);
}
.legend-human {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-human::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--signal);
  transform: rotate(45deg);
}

.empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
}
.empty p { max-width: 60ch; }

.catalog__note {
  margin-top: 28px;
  color: var(--ink-2);
}
.catalog__note a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Coverage matrix ---------- */
/* "Compare all systems": the full table, closed by default. */
.compare { margin-top: 28px; }
.compare__toggle { list-style: none; cursor: pointer; }
.compare__toggle::-webkit-details-marker { display: none; }
.compare__toggle::after { content: "+"; font-family: var(--font-mono); font-weight: 700; }
.compare[open] .compare__toggle::after { content: "\2212"; }
.compare__lede { margin: 18px 0 14px; max-width: 60ch; color: var(--ink-2); }

.matrix-scroll {
  overflow-x: auto;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
}

.matrix {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

.matrix th,
.matrix td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.matrix tr:last-child th,
.matrix tr:last-child td { border-bottom: 0; }
.matrix td,
.matrix thead th + th { border-left: 1px solid var(--rule); }

.matrix thead th {
  background: var(--plate);
  color: var(--plate-ink);
  border-bottom: 0;
  font-weight: 500;
  vertical-align: bottom;
}
.matrix thead th + th { border-left-color: var(--plate-2); }
.matrix__tier {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.matrix__tier b {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 1rem;
}
.matrix__tier span {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--plate-dim);
}
.matrix__tier .meter { color: var(--plate-ink); }
.matrix thead th:first-child {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--plate-dim);
}

.matrix tbody th {
  width: 19%;
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: .98rem;
}

.matrix__cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.matrix__link {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  padding: 2px 0;
  color: inherit;
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.3;
}
.matrix__link b {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .68rem;
  color: var(--signal-text);
}
.matrix__link span {
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 3px;
}
.matrix__link:hover span { text-decoration-color: var(--ink); }
.matrix__none {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .68rem;
  color: var(--ink-3);
}

/* ---------- Process ---------- */
.stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: stage;
  position: relative;
  border-top: 2px solid var(--rule);
}
.stages::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -2px;
  height: 2px;
  background: var(--ink);
  transform-origin: 0 50%;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 34px 28px 0 0;
  counter-increment: stage;
}
.stage::before {
  content: counter(stage, decimal-leading-zero);
  position: absolute;
  top: -15px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--ground);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .62rem;
  font-weight: 700;
  z-index: 1;
}
.stage:last-child::before {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--signal-ink);
}

.stage__when { color: var(--signal-text); }
.stage__title {
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.stage p { color: var(--ink-2); }
.stage__get {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--rule-strong);
  font-size: .95rem;
  color: var(--ink) !important;
}

@media (max-width: 900px) {
  .stages {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding-left: 30px;
    border-top: 0;
    border-left: 2px solid var(--rule);
  }
  .stages::after {
    top: 0;
    bottom: 0;
    left: -2px;
    right: auto;
    width: 2px;
    height: auto;
    transform-origin: 50% 0;
  }
  .stage { padding: 0; }
  .stage::before { top: -2px; left: -46px; }
}

/* ---------- House rules ---------- */
.rules__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px 64px;
  align-items: start;
}
.rules__grid .section__head { position: sticky; top: 96px; margin-bottom: 0; }

.rules__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rules__list li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.rules__list h3 {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 750;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.rules__list p { color: var(--ink-2); font-size: 1rem; }

@media (max-width: 900px) {
  .rules__grid { grid-template-columns: minmax(0, 1fr); }
  .rules__grid .section__head { position: static; }
}
@media (max-width: 620px) {
  .rules__list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Engagements ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.plan__plate {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--plate);
  color: var(--plate-ink);
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 750;
  font-size: 1.1rem;
  letter-spacing: -.01em;
}

.plan__body { display: grid; gap: 16px; padding: 18px; }
.plan__line { font-size: 1.05rem; line-height: 1.45; }

.plan__spec { margin: 0; display: grid; }
.plan__spec div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}
.plan__spec dt {
  padding-top: 3px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.plan__spec dd { margin: 0; font-size: .95rem; line-height: 1.45; }

@media (max-width: 900px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: start;
}
.about__grid .section__head { margin-bottom: 0; }

.founders {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.founder {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--plate);
  color: var(--plate-ink);
  border-radius: 8px;
  --label-color: var(--plate-dim);
}
.founder__head { display: flex; align-items: center; gap: 16px; }
.founder__head > div { display: grid; gap: 5px; min-width: 0; }
.founder__mark {
  flex: none;
  width: 56px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 3.2rem;
  line-height: .85;
  color: var(--signal);
}
.founder__photo {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: cover;
}
.founder__name {
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.01em;
}
.founder__bio { max-width: 56ch; font-size: .95rem; line-height: 1.55; color: var(--plate-ink-2); }
.founder__links { display: flex; flex-wrap: wrap; gap: 8px; }
.founder__links a {
  padding: 6px 10px;
  border: 1px solid var(--plate-2);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--plate-ink-2);
  transition: border-color .15s ease, color .15s ease;
}
.founder__links a:hover { border-color: var(--plate-dim); color: var(--plate-ink); }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 32px 64px;
  align-items: start;
}
.faq__grid .section__head { margin-bottom: 0; }

.faq__list details { border-top: 1px solid var(--rule); }
.faq__list details:last-child { border-bottom: 1px solid var(--rule); }

.faq__list summary {
  position: relative;
  padding: 20px 44px 20px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 650;
  font-size: 1.12rem;
  line-height: 1.3;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: .9rem;
  line-height: 1;
}
.faq__list details[open] summary::after {
  content: "−";
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}
.faq__list details p {
  max-width: 62ch;
  padding: 0 0 22px;
  color: var(--ink-2);
}

@media (max-width: 900px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Contact ---------- */
.contact {
  padding-block: clamp(64px, 8vw, 112px);
  background: var(--plate);
  color: var(--plate-ink);
  --label-color: var(--plate-dim);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px 64px;
  align-items: start;
}

.contact__copy { display: grid; gap: 20px; }
.contact__copy > p { color: var(--plate-ink-2); max-width: 48ch; }

.contact__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 120%;
  font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.03em;
}


.contact__direct {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding-top: 18px;
  border-top: 1px solid var(--plate-2);
}
.contact__direct .label { width: 100%; }
a.contact__email { text-decoration: none; }
a.contact__email:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact__email {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .9rem;
  color: var(--plate-ink);
  user-select: all;
  overflow-wrap: anywhere;
}
.copy {
  padding: 5px 10px;
  border: 1px solid var(--plate-2);
  border-radius: 3px;
  background: transparent;
  color: var(--plate-ink-2);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}
.copy:hover { border-color: var(--plate-dim); color: var(--plate-ink); }
.copy:focus-visible { outline-color: var(--plate-ink); }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--panel);
  color: var(--ink);
  border-radius: 6px;
  --label-color: var(--ink-2);
}
.field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--wide { grid-column: 1 / -1; }

.field > label,
.field > legend {
  padding: 0;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field > legend { margin-bottom: 7px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.field [aria-invalid="true"] { border-color: var(--bad); }
.field ::placeholder { color: var(--ink-3); }

/* Optional business details, closed until the visitor wants them. */
.form__more { border-top: 1px solid var(--rule); padding-top: 14px; }
.form__more > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink-2);
}
.form__more > summary::-webkit-details-marker { display: none; }
.form__more > summary::before { content: "+"; font-family: var(--font-mono); color: var(--ink-3); }
.form__more[open] > summary::before { content: "\2212"; }
.form__more > summary:hover { color: var(--ink); }
.form__more-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}
@media (max-width: 560px) {
  .form__more-body { grid-template-columns: minmax(0, 1fr); }
}

.interest { display: flex; flex-wrap: wrap; gap: 6px; }
.interest .chip span {
  min-height: 32px;
  padding: 0 10px;
  font-size: .82rem;
}

.form__error { color: var(--bad); font-weight: 600; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.form__hint { font-size: .88rem; color: var(--ink-3); }

.composed {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--signal);
  border-radius: var(--radius);
  background: var(--signal-wash);
}
.composed__lead { font-size: .98rem; }
.composed__lead b { font-family: var(--font-mono); font-stretch: 87.5%; font-size: .88rem; overflow-wrap: anywhere; }
.composed__text {
  max-height: 240px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .72rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}
.composed__actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .form { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Footer ---------- */
.footer {
  padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--plate);
  border-top: 1px solid var(--plate-2);
  color: var(--plate-ink);
  --label-color: var(--plate-dim);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 32px;
}
.footer__fine {
  flex-basis: 100%;
  max-width: 64ch;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--plate-dim);
}
.footer__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
}

/* ---------- Spec sheet (dialog) ---------- */
.sheet {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(940px, 100%);
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--ground);
  color: var(--ink);
  box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .5);
}
.sheet[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-in .38s cubic-bezier(.2, .8, .2, 1);
}
.sheet::backdrop {
  background: rgba(8, 9, 10, .55);
}

@keyframes sheet-in {
  from { transform: translateX(48px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.sheet__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) clamp(16px, 3vw, 28px) 10px;
  background: var(--plate);
  color: var(--plate-ink);
}
.sheet__nav { display: flex; gap: 6px; }
#sheet-kicker { display: inline-flex; gap: 14px; }
.spec__outcome { font-size: 1.05rem; line-height: 1.5; }

.iconbtn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--plate-2);
  border-radius: 3px;
  background: transparent;
  color: var(--plate-ink);
  font-size: 1rem;
  cursor: pointer;
}
.iconbtn:hover { border-color: var(--plate-dim); }
.iconbtn:focus-visible { outline-color: var(--plate-ink); }

.sheet__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 48px) calc(48px + env(safe-area-inset-bottom, 0px));
}

.spec__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 22px;
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--ink);
}
.spec__no {
  grid-row: span 2;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(3.4rem, 2rem + 5vw, 5.6rem);
  line-height: .8;
  letter-spacing: -.05em;
  color: var(--signal-text);
  font-variant-numeric: tabular-nums;
}
.spec__title {
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 800;
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -.024em;
  text-wrap: balance;
}
.spec__pitch {
  grid-column: 1 / -1;
  max-width: 64ch;
  margin-top: 16px;
  font-size: 1.12rem;
  color: var(--ink-2);
}
.spec__fit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 16px;
  font-size: .95rem;
}
.spec__fit .meter { color: var(--ink); }
.spec__fit .label { color: var(--ink); }

.spec__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 36px 44px;
  padding-top: 30px;
}

.spec__block + .spec__block { margin-top: 32px; }
.spec__h {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.spec__block > p { max-width: 62ch; }

.ticks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 22px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .55em;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--ink);
  border-radius: 1px;
}

.runs {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: run;
}
.runs li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 18px 40px;
  counter-increment: run;
}
.runs li::before {
  content: counter(run);
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: var(--ground);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .62rem;
  font-weight: 700;
  z-index: 1;
}
.runs li::after {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 24px;
  bottom: 0;
  width: 1.5px;
  background: var(--rule-strong);
}
.runs li:last-child { padding-bottom: 0; }
.runs li:last-child::after { display: none; }
.runs li.is-human::before {
  border-color: var(--signal);
  background: var(--signal);
  color: var(--signal-ink);
  border-radius: 4px;
}
.runs__human {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--signal-text);
}

.spec__side {
  display: grid;
  gap: 18px;
  align-content: start;
}
.spec__panel {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.spec__panel .spec__h { margin-bottom: 8px; }

.spec__dl { margin: 0; display: grid; }
.spec__dl div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--rule);
}
.spec__dl div:first-child { border-top: 0; padding-top: 4px; }
.spec__dl dt {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.spec__dl dd { margin: 0; font-size: .95rem; line-height: 1.45; }

.fine { margin-top: 10px; font-size: .82rem; color: var(--ink-3); }

.spec__panel--guard {
  background: var(--signal-wash);
  border-color: var(--signal);
}
.spec__panel--guard .spec__h { color: var(--ink); }

.spec__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
}
.spec__cta p { color: var(--ink-2); max-width: 46ch; }
.spec__cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 760px) {
  .spec__cols { grid-template-columns: minmax(0, 1fr); }
  .spec__head { grid-template-columns: minmax(0, 1fr); }
  .spec__no { grid-row: auto; font-size: 3.2rem; }
}


/* ==========================================================================
   Motion layer: hero load, reading progress, system map, statement,
   demos stage, estimator, scroll reveals
   ========================================================================== */

/* ---------- Hero headline load ---------- */
.hw {
  display: inline-block;
  animation: hw-in .8s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(var(--i) * 70ms + 80ms);
}
.hw-keep { white-space: nowrap; }
.hw--mark { position: relative; isolation: isolate; }
.hw--mark::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.04em;
  right: .1em;
  bottom: .06em;
  height: .2em;
  background: var(--signal);
  transform-origin: 0 50%;
  animation: mark-in .7s .8s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes hw-in {
  from { opacity: 0; translate: 0 .4em; filter: blur(6px); }
  to { opacity: 1; translate: 0 0; filter: none; }
}
@keyframes mark-in { from { transform: scaleX(0); } }

/* ---------- Reading progress under the top bar ---------- */
@supports (animation-timeline: scroll()) {
  .topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--signal);
    transform-origin: 0 50%;
    animation: grow-x linear both;
    animation-timeline: scroll(root);
  }
}
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ---------- Hero system map ---------- */
.ops__map { padding: 8px 8px 0; }
.ops__map svg { display: block; width: 100%; height: auto; }

.ops__now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  min-height: 2.9em;
  padding: 10px 16px;
  border-top: 1px solid var(--plate-2);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .7rem;
  color: var(--plate-ink-2);
}
.ops__no { color: var(--signal); font-weight: 700; }
.ops__title { color: var(--plate-ink); }
.ops__to { color: var(--run-bright); }
.ops__to--human { color: var(--signal); }

.map { font-family: var(--font-mono); font-stretch: 87.5%; overflow: visible; }
.map-edge {
  fill: none;
  stroke: var(--plate-2);
  stroke-width: 1.5;
  transition: stroke .35s ease;
}
.map-edge--human { stroke-dasharray: 3 4; }
.map-edge.is-live { stroke: color-mix(in srgb, var(--plate-ink) 30%, var(--plate-2)); }
.map-comet {
  fill: none;
  stroke: var(--plate-ink);
  stroke-width: 2.6;
  stroke-linecap: round;
}
.map-comet--human { stroke: var(--signal); }
.map-dot { fill: var(--plate-ink); filter: drop-shadow(0 0 4px rgba(255, 255, 255, .55)); }
.map-dot--human { fill: var(--signal); filter: drop-shadow(0 0 5px var(--signal)); }

.map-node__box {
  fill: var(--plate);
  stroke: var(--plate-2);
  stroke-width: 1.3;
  transition: fill .3s ease, stroke .3s ease;
}
.map-node__icon {
  fill: none;
  stroke: var(--plate-ink-2);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s ease;
}
.map-node.is-hot .map-node__box { fill: var(--plate-2); stroke: var(--plate-ink); }
.map-node.is-hot .map-node__icon { stroke: var(--plate-ink); }
.map-node--out.is-hot .map-node__box { stroke: var(--run-bright); }
.map-node--out.is-hot .map-node__icon { stroke: var(--run-bright); }
.map-node--human .map-node__box { stroke: color-mix(in srgb, var(--signal) 55%, var(--plate-2)); }
.map-node--human .map-node__icon { stroke: var(--signal); }
.map-node--human.is-hot .map-node__box { fill: var(--signal); stroke: var(--signal); }
.map-node--human.is-hot .map-node__icon { stroke: var(--signal-ink); }

.map-label {
  fill: var(--plate-dim);
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.map-label--human { fill: var(--signal); }

.map-core__halo {
  fill: var(--signal);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.map-core.is-thinking .map-core__halo { animation: halo .62s ease-out; }
.map-core__ring {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.5;
  stroke-dasharray: 3 6;
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 14s linear infinite;
}
.log.is-paused .map-core__ring { animation-play-state: paused; }
.map-core__body { fill: var(--plate-2); stroke: var(--plate-ink-2); stroke-width: 1.2; }
.map-core__title { fill: var(--plate-ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.map-core__status { fill: var(--signal); font-size: 9px; letter-spacing: .06em; }

@keyframes halo {
  from { opacity: .4; transform: scale(.8); }
  to { opacity: 0; transform: scale(1.3); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Statement ---------- */
.statement {
  padding-block: clamp(72px, 11vw, 150px) clamp(44px, 6vw, 80px);
  border-top: 1px solid var(--rule);
}
.statement__text {
  max-width: 19em;
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 800;
  font-size: clamp(1.85rem, .9rem + 3.6vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.statement__text em { font-style: normal; color: var(--signal-text); }
.clients { margin-top: clamp(44px, 6vw, 72px); }
.clients .label { margin-bottom: 18px; }
.logos--clients { gap: 20px 44px; }
.logos--clients .logo { --size: 50px; }
.marquee.is-ready:not(.is-still) .logos--clients { --gap: 76px; }
/* A client without a logo file yet: its name set as a wordmark. */
.client-name {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--ink-2);
  transition: color .2s ease;
}
.client-name:hover { color: var(--ink); }
@media (max-width: 720px) {
  .logos--clients .logo { --size: 40px; }
  .marquee.is-ready:not(.is-still) .logos--clients { --gap: 52px; }
  .client-name { font-size: 1.4rem; }
}
.statement__proof {
  max-width: 44ch;
  margin-top: clamp(22px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: clamp(1rem, .92rem + .35vw, 1.2rem);
  line-height: 1.5;
  color: var(--ink-2);
}
.statement__text.is-scrubbing .w {
  color: color-mix(in srgb, var(--ink) 26%, var(--ground));
  transition: color .35s ease;
}
.statement__text.is-scrubbing .w.on { color: var(--ink); }
.statement__text.is-scrubbing em .w.on { color: var(--signal-text); }

/* ---------- Demos: layout ---------- */
.demos__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 0 56px;
}
.demos__stage-wrap {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: calc(86px + env(safe-area-inset-top, 0px));
  align-self: start;
}
.demos__steps { grid-column: 1; grid-row: 1; }

.demo-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 78vh;
  padding-block: 6vh;
  transition: opacity .45s ease;
}
.demo-step:first-child { min-height: 62vh; padding-top: 0; justify-content: flex-start; }
.demos.is-live .demo-step:not(.is-current) { opacity: .32; }
.demo-step > p { color: var(--ink-2); max-width: 52ch; }
.demo-step__title {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: clamp(1.4rem, 1rem + 1.1vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.demo-step__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.demo-step__links a {
  padding: 4px 8px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}
.demo-step__links a:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }

/* ---------- Demos: stage chrome ---------- */
.demo-stage {
  display: flex;
  flex-direction: column;
  background: var(--plate);
  color: var(--plate-ink);
  border: 1px solid var(--plate-2);
  border-radius: 10px;
  box-shadow: 0 44px 80px -44px rgba(0, 0, 0, .6);
  overflow: hidden;
  /* Labels that explain what the system is doing are small, so inside the
     demos the dim grey is a step lighter. */
  --plate-dim: var(--demo-dim);
  --label-color: var(--plate-dim);
}
.stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--plate-2);
}
.stage__tabs {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.stage__tabs::-webkit-scrollbar { display: none; }
.stage__tab,
.stage__replay {
  flex: none;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: none;
  color: var(--plate-dim);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.stage__tab:hover { color: var(--plate-ink); }
.stage__tab[aria-selected="true"] { background: var(--signal); color: var(--signal-ink); font-weight: 700; }
.stage__replay { border-color: var(--plate-2); color: var(--plate-ink-2); }
@media (max-width: 480px) {
  .stage__replay-text { display: none; }
  .stage__tab { padding-inline: 6px; }
}
.stage__replay:hover { border-color: var(--plate-dim); color: var(--plate-ink); }
.stage__tab:focus-visible,
.stage__replay:focus-visible { outline-color: var(--plate-ink); }

.stage__screen {
  position: relative;
  height: min(560px, calc(100vh - 230px));
  min-height: 430px;
  container-type: inline-size;
}
.scene {
  position: absolute;
  inset: 0;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}
.scene.is-active { opacity: 1; visibility: visible; }

.stage__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--plate-2);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--plate-dim);
}

@media (max-width: 900px) {
  .demos__grid { grid-template-columns: minmax(0, 1fr); }
  .demos__stage-wrap {
    grid-column: 1;
    grid-row: 1;
    z-index: 5;
    top: calc(62px + env(safe-area-inset-top, 0px));
    padding-block: 8px;
    background: var(--ground);
  }
  .demos__steps { grid-row: 2; }
  .stage__screen { height: min(54vh, 440px); min-height: 340px; }
  .demo-step,
  .demo-step:first-child {
    min-height: 72vh;
    padding-block: 28px 12vh;
    justify-content: flex-start;
  }
}

/* shared bits inside scenes */
.scene .lamp { box-shadow: none; }
.scene-card {
  border: 1px solid var(--plate-2);
  border-radius: 8px;
  background: color-mix(in srgb, var(--plate-2) 45%, var(--plate));
}

/* ---------- Scene 1: chat ---------- */
.scene--chat {
  --chat-bg: #0E1512;
  --chat-head: #16211D;
  --bubble-in: #1F2C33;
  --bubble-out: #155239;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
  gap: 14px;
}
.phone {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  background: var(--chat-bg);
  border: 1px solid var(--plate-2);
  border-radius: 14px;
}
.phone__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--chat-head);
}
.phone__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--signal);
  color: var(--signal-ink);
  font-size: .72rem;
  font-weight: 800;
}
.phone__who { display: flex; flex-direction: column; min-width: 0; }
.phone__who b { font-size: .88rem; }
.phone__who small { font-size: .66rem; color: var(--plate-dim); }
.phone__thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  padding: 12px;
  overflow: hidden;
}
.msg {
  max-width: 86%;
  padding: 7px 10px 5px;
  border-radius: 10px;
  font-size: .84rem;
  line-height: 1.38;
}
.msg time {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: .6rem;
  color: rgba(236, 237, 230, .55);
}
.msg--in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 3px; }
.msg--out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 3px; }
.msg.is-new { animation: pop-in .35s cubic-bezier(.2, .8, .2, 1); }
.msg--typing { display: flex; gap: 4px; padding: 11px 12px; }
.msg--typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--plate-ink-2);
  animation: typing 1s infinite;
}
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }

@keyframes pop-in {
  from { opacity: 0; translate: 0 8px; scale: .97; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes typing {
  0%, 80%, 100% { opacity: .3; translate: 0 0; }
  40% { opacity: 1; translate: 0 -3px; }
}

.trace {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--plate-2);
  border-radius: 10px;
  background: color-mix(in srgb, var(--plate-2) 40%, var(--plate));
}
.trace__title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--plate-2);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--plate-ink);
}
.trace__meta { color: var(--plate-dim); }
.trace__list {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  overflow: hidden;
  list-style: none;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  line-height: 1.45;
}
.trace__item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  column-gap: 8px;
}
.trace__item::before {
  content: "";
  grid-row: span 2;
  width: 10px;
  height: 10px;
  margin-top: 2px;
  border: 1.5px solid var(--plate-dim);
  border-radius: 50%;
}
.trace__item.is-running::before {
  border-color: var(--signal);
  border-right-color: transparent;
  animation: spin .7s linear infinite;
}
.trace__item.is-done::before { background: var(--run-bright); border-color: var(--run-bright); }
.trace__item.is-new { animation: pop-in .3s ease-out; }
.trace__fn { color: var(--plate-ink); font-weight: 700; }
.trace__out { color: var(--plate-ink-2); opacity: 0; transition: opacity .3s ease; }
.trace__item.is-done .trace__out { opacity: 1; }
.trace__result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px 10px;
  padding: 9px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--run) 26%, transparent);
  font-size: .8rem;
  opacity: 0;
  translate: 0 6px;
  transition: opacity .4s ease, translate .4s ease;
}
.trace__result.is-on { opacity: 1; translate: 0 0; }

@container (max-width: 560px) {
  .scene--chat { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
  .trace { max-height: 116px; }
  .trace__title { display: none; }
  .trace__list { justify-content: flex-end; padding: 8px 10px; gap: 6px; }
  .trace__result { margin: 0 8px 8px; padding: 6px 8px; font-size: .74rem; }
  .msg { font-size: .8rem; }
}

/* ---------- Scene 2: multimodal ---------- */
.scene--multi {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 14px;
}
.mm__inputs { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.mm-card {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid var(--plate-2);
  border-radius: 8px;
  background: color-mix(in srgb, var(--plate-2) 45%, var(--plate));
  opacity: .42;
  transition: opacity .3s ease, border-color .3s ease;
}
.mm-card.is-active { opacity: 1; border-color: var(--plate-dim); }
.mm-card.is-working { border-color: var(--run-bright); }
.mm-card__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--plate-dim);
}
.mm-card__head span:first-child { color: var(--plate-ink); font-weight: 700; }

.wave { display: flex; align-items: center; gap: 3px; height: 30px; flex: none; }
.wave i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 2px;
  background: var(--plate-ink-2);
}
.mm-card.is-working .wave i {
  background: var(--run-bright);
  animation: wave .5s ease-in-out infinite alternate;
  animation-delay: var(--d);
}
@keyframes wave { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.mm-card__transcript { min-height: 2.8em; font-size: .78rem; line-height: 1.4; color: var(--plate-ink); }

.receipt,
.doc {
  position: relative;
  align-self: flex-start;
  flex: none;
  background: #F3F1EA;
  color: #26282a;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .7);
}
.receipt {
  display: flex;
  flex-direction: column;
  width: 152px;
  padding: 7px 9px;
  font-size: .5rem;
  line-height: 1.55;
  transform: rotate(-2deg);
  margin-left: 6px;
}
.receipt b { font-size: .56rem; }
.receipt__row { display: flex; justify-content: space-between; gap: 8px; }
.receipt__row i { font-style: normal; }
.receipt__total { margin-top: 2px; padding-top: 2px; border-top: 1px dashed #8d8d8d; font-weight: 700; }
.bbox {
  position: absolute;
  border: 1.5px solid #1F9D5A;
  border-radius: 2px;
  opacity: 0;
  transition: opacity .25s ease;
}
.bbox.is-on { opacity: 1; }
.bbox--1 { left: 5px; top: 4px; width: 62%; height: 13px; }
.bbox--2 { left: 5px; top: 17px; width: 58%; height: 12px; }
.bbox--3 { left: 5px; right: 5px; bottom: 4px; height: 13px; }
.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: #1F9D5A;
  box-shadow: 0 0 10px #1F9D5A;
  opacity: 0;
}
.mm-card.is-working .scanline { opacity: 1; animation: scan 1s ease-in-out infinite alternate; }
@keyframes scan { from { top: 0; } to { top: calc(100% - 2px); } }

.doc {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 168px;
  padding: 8px;
  transform: rotate(1.5deg);
  margin-left: 6px;
}
.doc__title { font-size: .48rem; font-weight: 700; }
.doc__row { height: 6px; border-radius: 1px; background: #D5D2C6; transition: background-color .25s ease; }
.doc__row.is-hl { background: #7FD3A3; }
.doc__sum { align-self: flex-end; width: 44%; height: 7px; background: #26282a; }

.mm__out {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid var(--plate-2);
  border-radius: 8px;
}
.mm__model {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--plate-ink-2);
}
.mm__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--plate-2);
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 750;
}
.mm__head span:last-child {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-weight: 500;
  font-size: .64rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--plate-dim);
}
.mm__fields { display: flex; flex-direction: column; gap: 9px; margin: 0; }
.mm__field {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.mm__field.is-new { animation: pop-in .3s ease-out; }
.mm__field dt {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--plate-dim);
}
.mm__field dd {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 30px;
  gap: 8px;
  align-items: center;
  margin: 0;
  font-size: .84rem;
}
.mm__val { min-height: 1.2em; }
.conf { height: 4px; overflow: hidden; border-radius: 2px; background: var(--plate-2); }
.conf i {
  display: block;
  width: calc(var(--c) * 100%);
  height: 100%;
  background: var(--run-bright);
  animation: fill-w .7s ease-out both;
}
@keyframes fill-w { from { width: 0; } }
.conf__n {
  text-align: right;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  color: var(--plate-dim);
}
.mm__action {
  margin-top: auto;
  padding: 9px 10px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--run) 26%, transparent);
  font-size: .8rem;
  opacity: 0;
  transition: opacity .35s ease;
}
.mm__action.is-on { opacity: 1; }

@container (max-width: 560px) {
  .scene--multi { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 10px; }
  .mm-card:not(.is-active) { display: none; }
  .mm__inputs, .mm-card { flex: none; }
  .mm-card { max-height: 150px; }
  .mm__out { padding: 10px 12px; gap: 8px; }
  .mm__model { display: none; }
  .mm__field { grid-template-columns: 60px minmax(0, 1fr); }
  .mm__field dd { grid-template-columns: minmax(0, 1fr) 30px; font-size: .78rem; }
  .conf { display: none; }
}

/* ---------- Scene 3: agentic ---------- */
.scene--agent { display: flex; flex-direction: column; gap: 10px; }
.ag__task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--plate-2);
  border-radius: 8px;
  background: color-mix(in srgb, var(--plate-2) 45%, var(--plate));
}
.ag__thumb {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 6px;
  background: #3A3530;
}
.ag__thumb i {
  position: absolute;
  inset: 10px 8px 7px 9px;
  background: #C9A574;
  clip-path: polygon(0 0, 100% 0, 100% 58%, 72% 100%, 0 100%);
}
.ag__mail { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag__mail small {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .64rem;
  color: var(--plate-dim);
}
.ag__mail b { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.ag__goal {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .62rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--plate-ink-2);
}
.ag__goal span {
  margin-right: 6px;
  padding: 2px 6px;
  border: 1px solid var(--plate-2);
  border-radius: 3px;
  color: var(--plate-dim);
}
.ag__plan {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ag__step {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  opacity: .42;
  transition: opacity .3s ease, background-color .3s ease, border-color .3s ease;
}
.ag__step.is-running { opacity: 1; background: var(--plate-2); border-color: var(--plate-dim); }
.ag__step.is-waiting { opacity: 1; background: color-mix(in srgb, var(--signal) 14%, transparent); border-color: var(--signal); }
.ag__step.is-done { opacity: 1; }
.ag__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--plate-dim);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.ag__step.is-running .ag__num::after,
.ag__step.is-waiting .ag__num::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--plate-ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.ag__step.is-waiting .ag__num::after { border-color: var(--signal); border-right-color: transparent; }
.ag__step.is-done .ag__num { background: var(--run-bright); border-color: var(--run-bright); color: var(--plate); }
.ag__step--human.is-done .ag__num { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.ag__what { display: flex; flex-direction: column; min-width: 0; font-size: .86rem; line-height: 1.3; }
.ag__res {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .68rem;
  color: var(--run-bright);
  transition: max-height .3s ease, opacity .3s ease;
}
.ag__step.is-done .ag__res { max-height: 1.8em; opacity: 1; }
.ag__step--human .ag__res { color: var(--signal); }
.ag__tool {
  padding: 3px 7px;
  border: 1px solid var(--plate-2);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .62rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--plate-ink-2);
}
.ag__step--human .ag__tool { border-color: var(--signal); color: var(--signal); }

.ag__approve {
  position: absolute;
  right: 16px;
  bottom: 56px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(300px, calc(100% - 32px));
  padding: 12px 14px;
  border: 1.5px solid var(--signal);
  border-radius: 8px;
  background: #F5F5F0;
  color: #15171A;
  box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .75);
  opacity: 0;
  translate: 0 12px;
  pointer-events: none;
  transition: opacity .3s ease, translate .3s ease;
}
.ag__approve.is-on { opacity: 1; translate: 0 0; }
.ag__approve p { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: .84rem; }
.ag__approve small { font-size: .7rem; color: #4A4F4B; }
.ag__btn {
  padding: 8px 12px;
  border-radius: 4px;
  background: #F0A00A;
  color: #1B1400;
  font-size: .8rem;
  font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .2);
  transition: transform .1s ease, background-color .2s ease;
}
.ag__btn.is-pressed { transform: translateY(1px) scale(.95); background: #5BC489; }
.ag__cursor {
  position: absolute;
  right: -40px;
  bottom: -46px;
  width: 16px;
  height: 22px;
  background: #fff;
  clip-path: polygon(0 0, 0 78%, 26% 60%, 44% 100%, 60% 93%, 42% 55%, 76% 55%);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .8));
  transition: right .8s cubic-bezier(.3, .7, .2, 1), bottom .8s cubic-bezier(.3, .7, .2, 1);
}
.ag__cursor.is-there { right: 34px; bottom: 6px; }

.ag__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 10px;
  border-top: 1px solid var(--plate-2);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--plate-dim);
}
.ag__foot b { color: var(--plate-ink); font-variant-numeric: tabular-nums; }

@container (max-width: 560px) {
  .scene--agent { gap: 8px; }
  .ag__goal, .ag__tool { display: none; }
  .ag__step { grid-template-columns: 22px minmax(0, 1fr); padding: 4px 8px; gap: 8px; }
  .ag__what { font-size: .78rem; }
  .ag__task { padding: 8px 10px; }
  .ag__thumb { width: 38px; height: 38px; }
  .ag__mail b { font-size: .78rem; }
  .ag__approve { bottom: 48px; }
}

/* ---------- Scene 4: parcels ---------- */
.scene--parcel { display: flex; flex-direction: column; gap: 12px; }
.pc__hud {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}
.pc__cam {
  position: relative;
  display: grid;
  place-items: center;
  height: 108px;
  overflow: hidden;
  border-radius: 6px;
  background: #2B2723;
}
.pc__cam::before {
  content: "";
  position: absolute;
  inset: 12px 14px;
  border-radius: 3px;
  background: #C9A574;
}
.pc__cam-tag {
  position: absolute;
  top: 5px;
  left: 7px;
  z-index: 3;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .5rem;
  letter-spacing: .06em;
  color: #F3F1EA;
}
.pc__label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100px;
  padding: 6px 8px;
  background: #F3F1EA;
  color: #1D1D1D;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .5rem;
  transform: rotate(-4deg);
}
.pc__label b { font-size: .64rem; }
.pc__label.is-bad { clip-path: polygon(0 0, 100% 0, 100% 52%, 72% 68%, 58% 100%, 0 100%); }
.pc__barcode {
  height: 13px;
  background: repeating-linear-gradient(90deg, #1D1D1D 0 1px, transparent 1px 3px, #1D1D1D 3px 5px, transparent 5px 6px);
}
.pc__frame {
  position: absolute;
  inset: 20px 30px;
  z-index: 2;
  border: 1.5px solid var(--run-bright);
  border-radius: 3px;
}
.pc__read {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}
.pc__read div { display: flex; flex-direction: column; min-width: 0; }
.pc__read dt {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .62rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--plate-dim);
}
.pc__read dd { margin: 0; font-size: .84rem; }
.pc__read dd.is-bad { color: var(--signal); font-weight: 600; }

.pc__floor { position: relative; flex: 1; min-height: 150px; }
.pc__belt {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  height: 22px;
  overflow: hidden;
  border-radius: 11px;
  background: #25292C;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .05);
}
.pc__surface {
  position: absolute;
  inset: 3px 0;
  background: repeating-linear-gradient(90deg, #3C4145 0 2px, transparent 2px 22px);
  animation: belt .28s linear infinite;
}
.pc__floor.is-still .pc__surface { animation-play-state: paused; }
@keyframes belt { to { background-position-x: 22px; } }

.pc__gantry {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: 0;
  height: 46%;
  width: 2px;
  background: var(--plate-2);
}
.pc__gantry::before {
  content: "";
  position: absolute;
  top: 0;
  left: -14px;
  width: 30px;
  height: 12px;
  border-radius: 3px;
  background: var(--plate-ink-2);
}
.pc__beam {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 84px;
  height: calc(100% - 10px);
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(91, 196, 137, .55), rgba(91, 196, 137, 0));
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  opacity: .22;
}
.pc__beam.is-on { animation: beam .5s ease-out; }
@keyframes beam { from { opacity: .95; } to { opacity: .22; } }

.pc__parcels { position: absolute; left: 0; right: 0; top: 0; height: 46%; pointer-events: none; }
.parcel { position: absolute; left: 0; bottom: 1px; will-change: transform; }
.parcel__body {
  position: absolute;
  inset: 0;
  border-radius: 3px;
  background: #C9A574;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.parcel--dented .parcel__body { clip-path: polygon(0 0, 76% 0, 100% 32%, 100% 100%, 0 100%); background: #B9955F; }
.parcel__tape { position: absolute; left: 44%; top: 0; bottom: 0; width: 12%; background: #AE8A58; }
.parcel__label { position: absolute; right: 12%; top: 22%; width: 34%; height: 36%; border-radius: 1px; background: #F3F1EA; }
.parcel__label--torn { clip-path: polygon(0 0, 100% 0, 100% 40%, 60% 72%, 36% 100%, 0 100%); }
.parcel__tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--run-bright);
  color: #0B1A12;
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .52rem;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity .25s ease;
}
.parcel.is-read .parcel__tag { opacity: 1; }
.parcel.is-flagged .parcel__body { outline: 2px solid var(--signal); outline-offset: 2px; }
.parcel.is-flagged .parcel__tag { background: var(--signal); color: var(--signal-ink); }
.parcel.is-dropping {
  translate: 0 70px;
  scale: .7;
  opacity: 0;
  transition: translate .42s ease-in, scale .42s ease-in, opacity .3s .12s ease-in;
}

.pc__bay {
  position: absolute;
  left: calc(var(--x) * 100%);
  top: calc(46% + 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  width: 92px;
  padding: 6px 8px;
  border: 1px dashed var(--plate-dim);
  border-radius: 6px;
  text-align: center;
  transform: translateX(-50%);
}
.pc__bay::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  height: 20px;
  border-left: 1.5px dashed var(--plate-dim);
}
.pc__bay b {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .56rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.pc__bay span { font-size: .64rem; color: var(--plate-dim); }
.pc__bay output {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}
.pc__bay--qc { border-color: var(--signal); }
.pc__bay--qc::before { border-color: var(--signal); }
.pc__bay--qc b, .pc__bay--qc output { color: var(--signal); }

.pc__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding-top: 10px;
  border-top: 1px solid var(--plate-2);
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .66rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--plate-dim);
}
.pc__stats b { color: var(--plate-ink); font-variant-numeric: tabular-nums; }
.pc__rate { margin-left: auto; }

@container (max-width: 560px) {
  .pc__hud { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; }
  .pc__cam { height: 84px; }
  .pc__label { width: 84px; padding: 4px 6px; }
  .pc__frame { inset: 14px 16px; }
  .pc__read { gap: 4px 10px; }
  .pc__read div:nth-child(3) { display: none; }
  .pc__read dd { font-size: .74rem; }
  .pc__bay { width: 62px; padding: 4px; top: calc(46% + 36px); }
  .pc__bay span { display: none; }
  .pc__rate { display: none; }
}

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: 8px;
  background: var(--signal);
  color: var(--signal-ink);
}
.cta-band__text { max-width: 54ch; font-size: 1.05rem; }
.cta-band__text b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 800;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .btn--signal { background: var(--signal-ink); color: var(--signal); box-shadow: none; }
.cta-band .btn--signal:hover { background: #000; }
.cta-band .btn--ghost { border-color: var(--signal-ink); color: var(--signal-ink); }
.cta-band .btn--ghost:hover { background: var(--signal-ink); color: var(--signal); }
.cta-band :focus-visible { outline-color: var(--signal-ink); }

/* ---------- Estimator ---------- */
.roi__grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 32px 56px;
  align-items: start;
}
.roi__grid .section__head { margin-bottom: 0; }
.roi__panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.roi__inputs { display: flex; flex-direction: column; gap: 22px; padding: clamp(18px, 3vw, 28px); }
.slider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: baseline;
}
.slider label { font-size: .95rem; }
.slider output {
  font-family: var(--font-mono);
  font-stretch: 87.5%;
  font-size: .86rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.slider input { grid-column: 1 / -1; }

.slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.slider input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--ink) var(--fill, 50%), var(--rule) var(--fill, 50%));
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border: 4px solid var(--signal);
  border-radius: 50%;
  background: var(--plate);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
}
.slider input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--rule); }
.slider input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink); }
.slider input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 4px solid var(--signal);
  border-radius: 50%;
  background: var(--plate);
}
.slider input[type="range"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.roi__share { min-width: 0; margin: 0; padding: 0; border: 0; }
.roi__share legend { padding: 0; margin-bottom: 10px; font-size: .95rem; }
.roi__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.roi__chips .chip span { min-height: 34px; font-size: .82rem; }

.roi__out {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  background: var(--plate);
  color: var(--plate-ink);
  --label-color: var(--plate-dim);
}
.roi__big { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.roi__big b {
  font-family: var(--font-display);
  font-stretch: 116%;
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 1.9vw, 3.1rem);
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.roi__big--value b { color: var(--signal); }
.roi__line { font-size: .95rem; color: var(--plate-ink-2); }
.roi__line b { color: var(--plate-ink); font-variant-numeric: tabular-nums; }
.roi__out .btn { align-self: flex-start; }
.roi__out .fine { margin-top: 0; color: var(--plate-dim); }
.roi__out :focus-visible { outline-color: var(--plate-ink); }

@media (max-width: 1000px) {
  .roi__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .roi__panel { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Scroll reveals (only where the browser drives them natively) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal,
    .card,
    .rules__list li {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 75%;
    }
    .stages::after {
      animation: grow-x linear both;
      animation-timeline: view();
      animation-range: entry 60% cover 50%;
    }
    @media (max-width: 900px) {
      .stages::after { animation-name: grow-y; }
    }
  }
}
@keyframes reveal-up {
  from { opacity: 0; translate: 0 40px; }
  to { opacity: 1; translate: 0 0; }
}

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