/* =========================================================================
   Wave Point — site styles
   Motif: the logo is a halftone dot field swelling into a wave.
   Dots are data points; the wave is work moving through them.
   ========================================================================= */

/* ---- Tokens ---------------------------------------------------------- */
:root {
  --ink:        #17131f;   /* near-black, violet cast, from the logo's darkest dot */
  --ink-2:      #4b4358;   /* secondary prose */
  --ink-3:      #7a7188;   /* captions, sources */
  --paper:      #faf8fc;   /* page ground — clinical, faintly violet */
  --paper-2:    #f1edf6;   /* recessed surfaces */
  --rule:       #ddd5e6;
  --rule-2:     #c9bdd6;

  --violet:     #6018b4;
  --magenta:    #cc189c;
  --violet-dim: #f0e7fa;
  --signal:     #0f7a5f;   /* paid, resolved */
  --signal-dim: #e3f2ec;
  --alert:      #b03a10;   /* denied, at risk */
  --alert-dim:  #fbeae2;

  --font:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: var(--font);
  --sans:    var(--font);
  --mono:    var(--font);

  --btn:     #4a1191;      /* the one action colour: brand violet, darkened */
  --btn-hi:  #7a3ad4;      /* its hover/active highlight */

  --measure: 58ch;
  --gutter:  clamp(1.25rem, 5vw, 3.5rem);
  --wide:    76rem;

  --step:    clamp(3.5rem, 8vw, 6.5rem);  /* vertical rhythm between sections */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }

/* ---- Type scale ------------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(1.95rem, 3.6vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.18; }
h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--violet); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--magenta); }

strong { font-weight: 600; }

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

.lede {
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}

.source {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 48em;
}
.source a { color: var(--ink-3); }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.7rem 1.1rem; z-index: 100;
  font-weight: 500;
}
.skip:focus { left: 0; }

/* ---- Shell ----------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: var(--step); }
.band--tint { background: var(--paper-2); }
.band--close { background: var(--violet-dim); border-top: 1px solid var(--rule-2); }

.rule-top { border-top: 1px solid var(--rule); }

/* ---- Header ---------------------------------------------------------- */
.masthead {
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 50;
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; display: block; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }

.nav a:not(.btn) {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--rule-2); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--violet); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}

/* ---- Buttons --------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--btn);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 0.85rem 1.35rem;
  border: 1px solid var(--btn);
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms linear, border-color 120ms linear;
}
.btn:hover { background: var(--btn-hi); border-color: var(--btn-hi); color: #fff; }
.btn:active { background: #3a0d75; border-color: #3a0d75; }

.btn--ghost { background: transparent; color: var(--btn); border-color: #c9b3ea; }
.btn--ghost:hover { background: transparent; color: var(--btn-hi); border-color: var(--btn-hi); }

/* ---- Hero ------------------------------------------------------------ */
.hero { padding-block: clamp(3.25rem, 8vw, 6rem) clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 { margin-bottom: 1.4rem; }
/* The home headline is four phrases. Given room, each takes a line, so
   balancing never splits "small / businesses". On a phone they flow. */
@media (min-width: 62rem) { .h1-lines span { display: block; } }
.hero .lede { margin-bottom: 2rem; }

.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.hero__note { font-size: 0.85rem; color: var(--ink-3); margin: 0; max-width: 22em; }

.wave-surface {
  width: 118%;
  max-width: none;
  height: auto;
  display: block;
  margin: -6% -9% -6% -9%;
}
canvas.wave-surface { aspect-ratio: 1 / 1; }   /* wave.js swaps the <img> for this */

/* ---- Two-column: prose + evidence gutter ----------------------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.split--hold > :first-child { position: sticky; top: 6.5rem; }
@media (max-width: 62rem) { .split--hold > :first-child { position: static; } }

.split__head { margin-bottom: 1.5rem; }

/* ---- The claim record (evidence artifact) ---------------------------- */
.record {
  background: #fff;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.855rem;
  line-height: 1.5;
  overflow: hidden;
}

.record__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 0.6rem 0.9rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.78rem;
}

.record__row {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.record__row:last-child { border-bottom: 0; }
.record__row dt { color: var(--ink-3); font-weight: 400; margin: 0; }
.record__row dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; }

.record dl { margin: 0; }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 0.12rem 0.42rem;
  border-radius: 2px;
  white-space: nowrap;
}
.tag--alert  { background: var(--alert-dim);  color: var(--alert); }
.tag--signal { background: var(--signal-dim); color: var(--signal); }
.tag--work   { background: var(--violet-dim); color: var(--violet); }

/* ---- Stat lines (no card kit — ruled rows) --------------------------- */
.stats { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }

.stats li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.4rem 1.5rem;
  padding-block: 1.15rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}

.stats b {
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--violet);
}

.stats span { color: var(--ink-2); font-size: 0.98rem; line-height: 1.5; }
.stats cite { display: block; font-style: normal; font-size: 0.8rem; color: var(--ink-3); margin-top: 0.3rem; }

/* ---- Sequence (genuinely a sequence — labelled by real day) ---------- */
.seq { margin: 0; padding: 0; }

.seq > div {
  display: grid;
  grid-template-columns: minmax(5.25rem, 6.75rem) minmax(0, 1fr);
  gap: 0.5rem 1.4rem;
  padding-block: 1.6rem;
  border-top: 1px solid var(--rule);
}
.seq > div:last-child { border-bottom: 1px solid var(--rule); }

.seq dt {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--violet);
  padding-top: 0.28rem;
}

.seq dd { margin: 0; }
.seq dd h3 { margin-bottom: 0.4rem; }
.seq dd p { color: var(--ink-2); max-width: 54ch; }

/* ---- Comparison table ------------------------------------------------ */
.tablewrap { overflow-x: auto; }

table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 34rem;
}
table.cmp caption { text-align: left; color: var(--ink-3); font-size: 0.82rem; padding-bottom: 0.9rem; }
table.cmp th, table.cmp td { text-align: left; padding: 0.85rem 1rem 0.85rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.cmp thead th { font-weight: 600; font-size: 0.8rem; color: var(--ink-3); border-bottom-color: var(--rule-2); }
table.cmp tbody th { font-weight: 500; color: var(--ink); padding-right: 1.5rem; }
table.cmp td { color: var(--ink-2); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }

/* ---- Workflow figure ------------------------------------------------- */
.flow {
  margin: 0;
  background: #fff;
  border: 1px solid var(--rule-2);
  border-radius: 4px;
  overflow: hidden;
}

.flow__stage { display: block; width: 100%; height: auto; background: #fff; }

.flow__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--rule);
  background: var(--paper-2);
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.45;
}
.flow__foot p { margin: 0; max-width: 46em; }

.flow__replay {
  background: #fff;
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}
.flow__replay:hover { border-color: var(--violet); color: var(--violet); }

/* ---- Contact --------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.channels { margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.channels > div { padding-block: 1.3rem; border-bottom: 1px solid var(--rule); }
.channels dt { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.25rem; }
.channels dd { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.channels dd a { font-family: var(--mono); font-size: 0.9rem; }

.prep { margin: 0; padding-left: 1.15rem; color: var(--ink-2); }
.prep li { margin-bottom: 0.6rem; max-width: 46ch; }
.prep li:last-child { margin-bottom: 0; }

/* ---- Footer ---------------------------------------------------------- */
.footer { border-top: 1px solid var(--rule); padding-block: 2.75rem; font-size: 0.85rem; }

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
}
.footer p { margin: 0; color: var(--ink-3); max-width: 34em; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer nav a { color: var(--ink-2); text-decoration: none; }
.footer nav a:hover { color: var(--violet); text-decoration: underline; }
.footer__legal { margin-top: 1.4rem; }
.footer__legal p { font-size: 0.78rem; color: var(--ink-3); }

/* ---- Legal text ------------------------------------------------------ */
.legal { max-width: 68ch; }
.legal h2 { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; margin: 2.2rem 0 0.6rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink-2); font-size: 0.95rem; }

/* ---- Notices --------------------------------------------------------- */
.notice {
  border-left: 2px solid var(--rule-2);
  padding-left: 1.1rem;
  color: var(--ink-3);
  font-size: 0.86rem;
  line-height: 1.55;
  max-width: 52em;
}

/* ---- Responsive ------------------------------------------------------ */
@media (max-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  /* Decorative only: let the headline and the call to action come first. */
  .hero__art { max-width: 15rem; margin-inline: auto; }
  .split, .split--even, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
}

@media (max-width: 46rem) {
  .nav-toggle { display: block; }

  .masthead__inner { flex-wrap: wrap; gap: 0.75rem; min-height: 3.9rem; }

  .nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.75rem;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a:not(.btn) { padding-block: 0.8rem; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current] { border-bottom-color: var(--violet); }
  .nav .btn { margin-top: 0.85rem; text-align: center; }

  .seq > div { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .seq dt { padding-top: 0; }

  .stats li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}

/* ---- Print ----------------------------------------------------------- */
@media print {
  .masthead, .flow__replay, .skip { display: none; }
  body { background: #fff; }
}

/* =========================================================================
   Workflow stage — the site's one piece of orchestrated motion.
   Reflows to a single column on narrow screens; the prose beside it
   carries every fact the animation shows.
   ========================================================================= */

.stage { background: #fff; font-size: 0.9rem; line-height: 1.45; }

.stage__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: #cfc5db;
  font-size: 0.8rem;
}

.stage__name { font-weight: 500; color: #fbf9fd; }
.stage__clock { font-family: var(--mono); font-size: 0.76rem; margin-left: auto; color: #b7abc6; }

.stage__live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.76rem; color: #b7abc6; }
.stage__live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--signal); box-shadow: 0 0 0 0 rgba(15,122,95,0.55);
}
.stage[data-phase="working"] .stage__live::before { animation: wp-pulse 1.5s ease-out infinite; }
@keyframes wp-pulse {
  70%  { box-shadow: 0 0 0 6px rgba(15,122,95,0); }
  100% { box-shadow: 0 0 0 0 rgba(15,122,95,0); }
}

.stage__body {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

/* -- the claim under inspection -- */
.stage__claim { padding: 1rem; border-right: 1px solid var(--rule); }

.claim {
  border: 1px solid var(--rule-2);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.78rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms linear, transform 260ms cubic-bezier(.2,.7,.3,1), border-color 220ms linear;
}
.claim[data-in="1"] { opacity: 1; transform: none; }
.claim[data-state="risk"] { border-color: #e0a88c; }
.claim[data-state="paid"] { border-color: #8fc4b2; }

.claim__head {
  padding: 0.45rem 0.7rem;
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 0.72rem;
  display: flex; justify-content: space-between; gap: 0.75rem;
}

.claim__rows { margin: 0; }
.claim__rows > div {
  display: flex; justify-content: space-between; gap: 0.75rem;
  padding: 0.36rem 0.7rem;
  border-bottom: 1px solid var(--rule);
}
.claim__rows dt { color: var(--ink-3); margin: 0; font-weight: 400; }
.claim__rows dd { margin: 0; color: var(--ink); font-weight: 500; text-align: right; }

.claim__status {
  padding: 0.5rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 500;
  text-align: center;
  background: var(--paper-2);
  color: var(--ink-2);
  transition: background 220ms linear, color 220ms linear;
}
.claim__status[data-state="work"] { background: var(--violet-dim); color: var(--violet); }
.claim__status[data-state="risk"] { background: var(--alert-dim);  color: var(--alert); }
.claim__status[data-state="paid"] { background: var(--signal-dim); color: var(--signal); }

/* -- the assistant's working panel -- */
.stage__work { padding: 1rem 1.15rem; position: relative; overflow: hidden; min-height: 15.5rem; }

.scan {
  position: absolute; inset-block: 0; width: 42%; left: 0;
  background: linear-gradient(90deg, transparent, rgba(140,24,172,0.07), transparent);
  opacity: 0; pointer-events: none;
}
.stage[data-phase="working"] .scan { opacity: 1; animation: wp-scan 1.9s linear infinite; }
@keyframes wp-scan { from { transform: translateX(-110%); } to { transform: translateX(280%); } }

.checks { list-style: none; margin: 0 0 0.9rem; padding: 0; position: relative; }

.checks li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  padding-block: 0.3rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms linear, transform 200ms ease-out;
  color: var(--ink-2);
  font-size: 0.845rem;
}
.checks li[data-in="1"] { opacity: 1; transform: none; }

.checks b { font-weight: 500; color: var(--ink); }
.checks samp { font-family: var(--mono); font-weight: 500; color: var(--ink); }

.mark {
  width: 1.15rem; height: 1.15rem;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.7rem; font-weight: 700; line-height: 1;
  background: var(--paper-2); color: var(--ink-3);
  transition: background 200ms linear, color 200ms linear;
}
.mark[data-mark="ok"]    { background: var(--signal-dim); color: var(--signal); }
.mark[data-mark="warn"]  { background: var(--alert-dim);  color: var(--alert); }
.mark[data-mark="fixed"] { background: var(--signal-dim); color: var(--signal); }

/* -- risk meter -- */
.risk {
  opacity: 0;
  transition: opacity 220ms linear;
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.risk[data-in="1"] { opacity: 1; }

.risk__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.4rem; }
.risk__label { font-size: 0.82rem; color: var(--ink-2); }
.risk__val { font-family: var(--mono); font-size: 0.92rem; font-weight: 500; color: var(--alert); }
.risk[data-state="clear"] .risk__val { color: var(--signal); }

.risk__bar { height: 5px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.risk__fill {
  height: 100%; width: 0%;
  background: var(--alert);
  border-radius: 3px;
  transition: width 120ms linear, background 260ms linear;
}
.risk[data-state="clear"] .risk__fill { background: var(--signal); }

/* -- the fix -- */
.fixes { list-style: none; margin: 0; padding: 0; }
.fixes li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
  padding-block: 0.28rem;
  font-size: 0.845rem;
  color: var(--ink-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms linear, transform 200ms ease-out;
}
.fixes li[data-in="1"] { opacity: 1; transform: none; }
.fixes b { font-weight: 500; color: var(--ink); }

/* -- outcome timeline -- */
.stage__track { border-top: 1px solid var(--rule); padding: 0.9rem 1.15rem 1rem; background: var(--paper); }
.track { display: block; width: 100%; height: auto; }
.track text { font-family: var(--mono); font-size: 11px; fill: var(--ink-3); }
.track .t-strong { fill: var(--ink); font-weight: 500; }
.track .t-paid { fill: var(--signal); font-weight: 500; }
.track .t-late { fill: var(--alert); }

.track-compact { display: none; margin: 0; }
.track-compact > div {
  display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem;
  padding-block: 0.45rem; border-bottom: 1px solid var(--rule);
}
.track-compact > div:last-child { border-bottom: 0; }
.track-compact dt { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); flex: 0 0 100%; }
.track-compact dd { margin: 0; font-family: var(--mono); font-size: 0.82rem; font-weight: 500; }
.track-compact .t-paid { color: var(--signal); }
.track-compact .t-late { color: var(--alert); }

.stage__note {
  max-width: none;          /* overrides the global p measure cap */
  margin: 0;
  padding: 0.7rem 1.15rem;
  border-top: 1px solid var(--rule);
  background: var(--ink);
  color: #cbc2d6;
  font-size: 0.82rem;
  opacity: 0;
  transition: opacity 300ms linear;
}
.stage__note[data-in="1"] { opacity: 1; }
.stage__note b { color: #fbf9fd; font-weight: 500; }

@media (max-width: 52rem) {
  .stage__body { grid-template-columns: minmax(0, 1fr); }
  .stage__claim { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stage__work { min-height: 0; }

  /* The 800-unit track scales its type down to about 4px here. Same
     information, set as a list that a phone can actually read. */
  .track { display: none; }
  .track-compact { display: block; }
}

/* Reduced motion: the driver renders the finished state and stops. */
@media (prefers-reduced-motion: reduce) {
  .stage .scan { display: none; }
  .stage__live::before { animation: none !important; }
  .claim, .checks li, .fixes li, .risk, .stage__note { transition: none; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
