/*
 * Discover → Analysis → Results presentation layer (results-v2, 2026-08-22).
 *
 * Page-scoped: only /analyze loads this file. It supersedes the results,
 * prediction-card, analysis-trace and rollout blocks that used to live in the
 * shared theme.css — those were deleted there rather than left behind, because
 * nothing else on the site rendered them (checked: admin, my-reports,
 * employee-portal and network all render their own markup).
 *
 * The one rule the whole file follows: SHOW THE CONCLUSION, REVEAL THE
 * EVIDENCE ON DEMAND. Level 1 (the opportunity) is the only thing that gets
 * display type; level 2 (what we learned) gets a headline; level 3 (what to do
 * first) gets a card; level 4 (evidence, maths, assumptions) gets a
 * disclosure. Containers are spent only where that hierarchy needs them —
 * whitespace, hairlines and type carry the rest.
 *
 * Every colour is a theme token (var(--accent), var(--value), …) so light and
 * dark both work; no hex literals, which tests/pred-card.test.js enforces.
 */

/* ─── Page shell ──────────────────────────────────────────────────────────── */

.az-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 120px;
}

/* Intro: three lines, no box. */
.az-intro { display: flex; flex-direction: column; gap: 10px; margin-bottom: 44px; }
.az-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.az-title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.az-lede { font-size: 1rem; line-height: 1.6; color: var(--text-2); margin: 0; max-width: 46ch; }

/* ─── Discover form: three required questions, all on screen ──────────────── */

.az-flow { display: flex; flex-direction: column; }

/* A step is a hairline-separated band, not a card. The border only appears
   between steps, so the form reads as one continuous conversation. */
.az-step {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  align-items: start;
}
.az-step:first-of-type { border-top: 0; }

/* No step ships hidden any more (2026-08-31) — all three required questions
   are on screen from the first paint. This rule stays as a guard, not as
   decoration: `display: grid` above outranks the user-agent's
   `[hidden] { display: none }`, so anything that ever sets hidden on a step
   would otherwise stay visible. */
.az-step[hidden] { display: none; }
@keyframes az-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.az-step-num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-3);
  padding-top: 3px;
  transition: color 0.25s ease;
}
.az-step.is-answered .az-step-num { color: var(--value); }

.az-step-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.az-q {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}
.az-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2px 8px;
}
.az-tag.is-required { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }

.az-step-body { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.az-hint { font-size: 0.8125rem; line-height: 1.55; color: var(--text-3); margin: 0; }
.az-hint em { color: var(--text-2); font-style: normal; }

/* Description word counter (2026-09-09): a quiet "42 / 500 words" beside the
   hint; turns to the danger colour only when the count is out of range. */
.az-describe-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.az-count { font-size: 0.8125rem; line-height: 1.55; color: var(--text-3); margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.az-count.is-out { color: var(--danger); }
.az-count.is-out .az-count-num { font-weight: 600; }
@media (max-width: 600px) { .az-describe-foot { flex-direction: column; gap: 4px; } }

/* "How we handle your information" (2026-09-09): the compact in-page section
   at the very bottom, reached from the upload hint. Subtle, not tiny:
   0.875rem on --text-2 keeps well above 4.5:1 in both themes. */
@media (max-width: 600px) { .az-privacy { margin-top: 40px; padding-left: 4px; padding-right: 4px; } }

/* Yes/no + chip rows */
.az-choices { display: flex; gap: 8px; flex-wrap: wrap; }
.az-choice {
  font: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 9px 18px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.az-choice:hover { border-color: var(--accent); background: var(--accent-soft); }
.az-choice:active { transform: translateY(1px); }
.az-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.az-choice[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.az-choice-sm { font-size: 0.8125rem; padding: 7px 14px; }

/* Missing-answer nudge (replaces the old red outline on a whole panel). */
.az-step.is-missing .az-q { color: var(--danger); }
.az-step.is-missing .az-choices { animation: az-nudge 0.4s ease; }
@keyframes az-nudge {
  0%, 100% { transform: none; }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* The optional-context group: one line that opens into the quiet fields. */
.az-more { border-top: 1px solid var(--line); }
.az-more > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.az-more > summary::-webkit-details-marker { display: none; }
.az-more > summary:hover { color: var(--text); }
.az-more > summary::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
  margin-left: auto;
}
.az-more[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.az-more-why { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.az-more-body { padding: 4px 0 30px; display: flex; flex-direction: column; gap: 26px; }
.az-sub { display: flex; flex-direction: column; gap: 12px; }
.az-sub-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.az-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.az-grid-tight { grid-template-columns: 1fr 1fr auto; align-items: end; }

/* Live "= N hrs/week" readout beside the two hour boxes. */
.az-total { font-family: var(--font-mono); font-size: 0.95rem; color: var(--text-3); padding-bottom: 12px; white-space: nowrap; }
.az-total .val { color: var(--value); }

/* Upload */
.az-drop {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.az-drop:hover, .az-drop.is-over { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.az-drop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.az-file {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8125rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
}
.az-file .f-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.az-file .f-size { color: var(--text-3); flex-shrink: 0; }
.az-file .f-status { flex-shrink: 0; }
.az-file.is-ok { border-color: var(--value); }
.az-file.is-warn { border-color: var(--danger); }
.az-file-count { font-size: 0.75rem; color: var(--text-3); margin: 0; }
.az-err { color: var(--danger); }

/* ─── The launch bar ──────────────────────────────────────────────────────── */

.az-launch {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.az-run {
  position: relative;
  align-self: flex-start;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-strong);
  border: 0;
  border-radius: 12px;
  padding: 16px 30px;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: transform 0.15s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background 0.15s ease;
}
.az-run:hover:not(:disabled) { background: var(--accent); transform: translateY(-1px); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.az-run:active:not(:disabled) { transform: translateY(0); }
.az-run:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.az-run:disabled { opacity: 0.5; cursor: not-allowed; }
/* Armed: every required answer is in. A slow sheen crosses the button once
   the form is genuinely ready — an invitation, not a decoration. */
.az-run.is-armed { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent), 0 12px 34px color-mix(in srgb, var(--accent) 28%, transparent); }
.az-run.is-armed::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--accent-ink) 26%, transparent) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: az-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes az-sheen { 0%, 62% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.az-run-arrow { transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1); }
.az-run:hover:not(:disabled) .az-run-arrow { transform: translateX(3px); }
.az-launch-note { font-size: 0.8125rem; color: var(--text-3); margin: 0; }
.az-launch-note.is-error { color: var(--danger); }
.az-launch-legal { font-size: 0.75rem; color: var(--text-3); margin: 0.35rem 0 0; line-height: 1.6; max-width: 34rem; }
.az-launch-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }

/* ─── Analysis console ────────────────────────────────────────────────────── */
/* The signature moment. Rows only ever check off from something the page
   actually observed (see public/js/thinking-state.js) — the motion here dresses
   that honesty, it never substitutes for it. */

#run-status { display: block; }
/* Fallback spinner — the only thing #run-status carries if thinking-state.js
   itself fails to load (see beginTrace() in analyze.js). */
.az-spin {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: az-spin 0.8s linear infinite;
  vertical-align: -2px;
}
@keyframes az-spin { to { transform: rotate(360deg); } }

.think {
  position: relative;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-raised) 88%, transparent);
  padding: 20px 22px;
  overflow: hidden;
  animation: az-step-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
/* Live: a faint accent wash plus a scan line travelling down the panel. */
.think.is-working { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.think.is-working::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
/* Scan line. Animating `top` in percent keeps it tied to the panel's own
   height, so no JS has to measure anything and hand CSS a pixel value. */
.think.is-working::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: az-scan 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes az-scan {
  0%   { top: 0%;   opacity: 0; }
  12%  { opacity: 0.7; }
  88%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}
.think.is-done { border-color: color-mix(in srgb, var(--value) 32%, transparent); }

.think-head {
  position: relative;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.think-head:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.think-spark { display: inline-flex; color: var(--text-3); transition: color 0.3s ease; }
.think.is-working .think-spark { color: var(--accent); animation: az-pulse 1.8s ease-in-out infinite; }
.think.is-done .think-spark { color: var(--value); }
@keyframes az-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.06); } }

.think-label { font-size: 0.9375rem; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.think.is-working .think-label {
  background: linear-gradient(90deg, var(--text-2) 20%, var(--text) 45%, var(--text-2) 70%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: az-shimmer 2.4s linear infinite;
}
@keyframes az-shimmer { to { background-position: -220% 0; } }
.think-secs {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  min-width: 3ch;
  text-align: right;
}
.think-chev { display: inline-flex; color: var(--text-3); transition: transform 0.3s ease; }

.think-trace {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.think-trace.is-open { grid-template-rows: 1fr; opacity: 1; }
/* The rail keeps overflow:hidden — it is the clipping child the trace's
   0fr→1fr collapse needs. So the vertical line CANNOT be a border on this
   element: a marker centred on a border sits half outside the padding box and
   gets sliced clean in half by that same clip (which is exactly what happened).
   The line is a pseudo-element instead, and every marker lives inside the
   padding box with room to spare. */
.think-rail {
  overflow: hidden;
  position: relative;
  /* 31px = the marker's 15px + the 3px of clearance it needs on each side.
     Landing the marker flush at x=0 is not enough: its 1px box-shadow ring
     sits OUTSIDE the border box, so the clip shaved the left of every ring
     and antialiased the edge off the filled discs. */
  padding: 14px 0 0 31px;
}
.think-rail::before {
  content: '';
  position: absolute;
  left: 10px; /* centre of the 15px marker, which spans x 3..18 */
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.think-row {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  transition: opacity 0.3s ease;
}
/* Stagger index. thinking-state.js sets these as classes rather than inline
   custom properties so the value survives classList.toggle() and needs no
   style.setProperty call — see the comment on rowEls there. */
.row-i0 { --i: 0; }
.row-i1 { --i: 1; }
.row-i2 { --i: 2; }
.row-i3 { --i: 3; }
.row-i4 { --i: 4; }
/* The marker sits ON the rail, not beside it — the trace reads as one thread.
   left:-28px cancels the rail's padding exactly, so the 15px marker spans
   rail-x 0..15 and its centre (7.5) lands on the 1px line at x=7. */
.think-mark {
  position: absolute;
  left: -28px;
  top: 7px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--bg-raised);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--value);
  box-shadow: 0 0 0 1px var(--line);
}
.think-row.is-pending .think-mark { box-shadow: 0 0 0 1px var(--line); }
.think-row.is-working .think-mark { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.think-row.is-working .think-mark::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: az-beat 1.3s ease-in-out infinite;
}
@keyframes az-beat { 0%, 100% { transform: scale(0.6); opacity: 0.6; } 50% { transform: scale(1); opacity: 1; } }
/* Done is a FILLED disc, not an outlined one. A 1px ring plus a small tick
   sitting on the rail read as a broken circle at real size — the two thin
   strokes competed and neither won. Filling it also masks the rail cleanly
   behind the marker. The check itself takes --bg so it stays legible on the
   green in both themes (--value is light in dark mode and dark in light
   mode) — the same trick .rollout-breakeven-dot uses for its ring. */
.think-row.is-done .think-mark {
  color: var(--bg);
  background: var(--value);
  box-shadow: none;
  animation: az-pop 0.34s cubic-bezier(0.22, 1.4, 0.4, 1) both;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes az-pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.think-row.is-failed .think-mark { box-shadow: 0 0 0 1px color-mix(in srgb, var(--danger) 60%, transparent); }

.think-text { font-size: 0.875rem; color: var(--text); }
.think-row.is-pending { opacity: 0.4; }
.think-row.is-pending .think-text { color: var(--text-2); }
.think-detail { font-size: 0.8125rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
/* The detail only animates once its row is done — the rule (and so the
   animation) starts applying at exactly the moment the real figure arrives. */
.think-row.is-done .think-detail {
  color: var(--value);
  animation: az-detail-in 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 90ms + 60ms);
}
.think-row.is-working .think-detail { font-style: italic; }
.think-row.is-failed .think-detail { color: var(--danger); font-style: normal; }
@keyframes az-detail-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* The console is the most animated thing on the site, so its reduced-motion
   answer lives here beside it rather than in a far-away catch-all: no scan
   line, no shimmer, no cascade — the same information, held still. */
@media (prefers-reduced-motion: reduce) {
  .think { animation: none; }
  .think.is-working::after { display: none; }
  .think.is-working .think-label { animation: none; background: none; color: var(--text); }
  .think.is-working .think-spark { animation: none; }
  .think-row.is-working .think-mark::before { animation-duration: 2.5s; }
  .think-row.is-done .think-mark,
  .think-row.is-done .think-detail { animation: none; }
  .think-trace, .think-chev { transition: none; }
}

/* ─── Results ─────────────────────────────────────────────────────────────── */

.rz { display: flex; flex-direction: column; }
/* Sections arrive in sequence, once. */
.rz-sec { animation: az-sec-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both; animation-delay: calc(var(--s, 0) * 110ms); }
@keyframes az-sec-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.rz-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 14px;
}
.rz-label .on { color: var(--accent); }

/* ── A · The reveal ──────────────────────────────────────────────────────── */

.rz-hero {
  position: relative;
  text-align: center;
  padding: 66px 0 56px;
  isolation: isolate;
  /* The glow is wider than the column on purpose; clipping it here keeps it
     from adding horizontal page scroll on narrow screens. */
  overflow: hidden;
}
/* Understated glow behind the number — depth, not neon. */
.rz-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%; top: 42%;
  width: min(680px, 100%);
  aspect-ratio: 1.6 / 1;
  transform: translate(-50%, -50%);
  background: none;
  opacity: 0;
  animation: az-glow-in 1.4s ease 0.15s both;
  pointer-events: none;
}
@keyframes az-glow-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

.rz-hero-num {
  display: block;
  font-size: clamp(5.5rem, 20vw, 11rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  margin: 6px 0 0;
}
.rz-hero-unit {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 20px;
}
.rz-hero-sub { font-size: 1rem; color: var(--text-2); margin: 12px 0 0; }
.rz-hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 34px;
  flex-wrap: wrap;
  margin-top: 30px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.rz-hero-meta b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.rz-hero-meta .val { color: var(--value); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── B · The bottleneck ──────────────────────────────────────────────────── */

.rz-sec-b { padding: 52px 0; border-top: 1px solid var(--line); }
.rz-insight {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
  max-width: 24ch;
}
/* The named opportunity sits on its own line under the headline: automation
   names run long, and folding one into the sentence made the sentence the
   thing you had to parse instead of the finding. */
.rz-insight-lead { display: flex; flex-direction: column; gap: 4px; margin: 18px 0 0; }
.rz-insight-lead .nm { font-size: 1.0625rem; font-weight: 600; color: var(--accent); line-height: 1.4; }
.rz-insight-lead .hrs { font-size: 0.875rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rz-insight-body { font-size: 1rem; line-height: 1.65; color: var(--text-2); margin: 20px 0 0; max-width: 62ch; }
.rz-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 22px; }
.rz-chip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 11px;
}

/* ── C/D · Recommendations ───────────────────────────────────────────────── */

.rz-sec-c { padding: 52px 0 0; border-top: 1px solid var(--line); }
.rz-sec-d { padding: 40px 0 0; }
.rz-recs { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }

.rz-rec {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--bg-raised) 80%, transparent);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
html.dark .rz-rec { backdrop-filter: blur(10px); }
.rz-rec:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
/* The lead recommendation carries a faint purple presence — it is the answer
   to "what should I do first", and nothing else on the page competes. */
.rz-rec.is-lead {
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent), 0 18px 50px color-mix(in srgb, var(--accent) 14%, transparent);
}
.rz-rec.is-lead::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: none;
  pointer-events: none;
}

/* The heading is structural only — the type lives on .rz-rec-name / .rz-row-name
   so a card and a compact row can look nothing alike while both being an <h3>. */
.rz-rec-h { margin: 0; font: inherit; font-weight: inherit; }

.rz-rec-head {
  position: relative;
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px 18px;
  align-items: start;
}
.rz-rec-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius-lg); }

.rz-rank {
  grid-row: 1 / span 3;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-3);
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.rz-rec.is-lead .rz-rank { color: var(--accent); }

/* The part of the business this automation belongs to (2026-08-31). Same mono
   treatment as the rank numerals so it reads as structure, not content. Dual
   role: a block sitting above the card name inside .rz-rec-name's grid cell
   (recCard), and an inline flex item alongside .rz-row-name in .rz-row-head's
   flex row (recRow) — flex-shrink: 0 keeps the label from being squeezed by a
   long name in that second context. */
.rz-area {
  display: block;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 4px;
}
.rz-area-spread { font-size: 0.8125rem; color: var(--text-2); margin: 12px 0 0; }
.rz-area-spread b { color: var(--accent); font-weight: 600; }

.rz-rec-name {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}
.rz-rec.is-lead .rz-rec-name { font-size: 1.35rem; }

.rz-rec-facts { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: 0.875rem; }
.rz-hours { color: var(--value); font-weight: 600; font-variant-numeric: tabular-nums; }
.rz-fit { color: var(--text-2); }
.rz-fit.is-strong { color: var(--accent); font-weight: 600; }

/* Digitize-first foundations (2026-09-01): the badge says the move needs no
   AI at all — for a "Not yet" audience that IS the selling point. */
.rz-noai {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--value);
  border: 1px solid color-mix(in srgb, var(--value) 45%, transparent);
  border-radius: var(--radius);
  padding: 2px 8px;
  white-space: nowrap;
}

/* trigger → AI → outcome, as one quiet line of mono. Boxes around every node
   were three containers per card for information that reads fine as a line. */
.rz-flow {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-3);
  margin-top: 10px;
}
.rz-flow .n-ai { color: var(--accent); }
.rz-flow .n-out { color: var(--value); }
.rz-flow .arw { opacity: 0.5; }

.rz-open {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.rz-rec-head:hover .rz-open { color: var(--accent); }
.rz-open i {
  display: block;
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.rz-rec.is-open .rz-open i { transform: rotate(-135deg) translate(-2px, -2px); }
.rz-rec.is-open .rz-open .lbl-shut { display: none; }
.rz-rec:not(.is-open) .rz-open .lbl-open { display: none; }

/* Expansion: grid-template-rows 0fr → 1fr animates a height the browser
   computes, so nothing has to guess a pixel value. */
.rz-rec-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.rz-rec.is-open .rz-rec-detail { grid-template-rows: 1fr; }
.rz-rec-detail > div { overflow: hidden; }
.rz-rec-detail-inner { padding: 4px 24px 24px; display: flex; flex-direction: column; gap: 22px; }
.rz-rec.is-open .rz-rec-detail-inner { animation: az-detail-in 0.45s ease 0.1s both; }

.rz-why { font-size: 0.9375rem; line-height: 1.65; color: var(--text); margin: 0; }
.rz-why + .rz-why { color: var(--text-2); font-size: 0.875rem; }

.rz-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.rz-stat { flex: 1 1 150px; min-width: 140px; display: flex; flex-direction: column; gap: 5px; }
.rz-stat-k { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-3); }
.rz-stat-v { font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.rz-stat-v small { font-size: 0.72rem; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.rz-stat-v.is-value { color: var(--value); }
.rz-stat-v.is-accent { color: var(--accent); }

/* Comparative rail: how this automation's hours sit against the biggest one. */
.rz-rail { height: 3px; border-radius: var(--radius); background: var(--line); overflow: hidden; margin-top: 3px; }
.hours-fill { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--value)); transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s; }
.hours-fill.grow { width: var(--fill); }
@media (prefers-reduced-motion: reduce) { .hours-fill { transition: none; width: var(--fill); } }

/* Evidence table: label/value pairs, hairlines only. */
.rz-facts { display: flex; flex-direction: column; }
.rz-fact { display: grid; grid-template-columns: 150px 1fr; gap: 6px 18px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 0.8125rem; }
.rz-fact dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.rz-fact dd { margin: 0; color: var(--text-2); line-height: 1.6; }
.rz-fact dd .num { color: var(--text); font-variant-numeric: tabular-nums; }

/* ── E · The rest, as rows ───────────────────────────────────────────────── */

.rz-sec-e { padding: 52px 0 0; }
.rz-rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rz-row { border-bottom: 1px solid var(--line); }
.rz-row-head {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 17px 12px 17px 4px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  transition: background 0.15s ease, padding-left 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.rz-row-head:hover { background: var(--accent-soft); padding-left: 12px; }
.rz-row-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rz-row-name { flex: 1; font-size: 0.9375rem; font-weight: 500; }
.rz-row-meta { font-size: 0.8125rem; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rz-row-meta .rz-hours { font-weight: 500; }
.rz-row-go { color: var(--text-3); transition: transform 0.2s ease, color 0.15s ease; }
.rz-row-head:hover .rz-row-go { color: var(--accent); transform: translateX(3px); }
.rz-row.is-open .rz-row-go { transform: rotate(90deg); color: var(--accent); }
.rz-row-detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.rz-row.is-open .rz-row-detail { grid-template-rows: 1fr; }
.rz-row-detail > div { overflow: hidden; }

/* ── The sign-up gate ────────────────────────────────────────────────────── */

.rz-gate {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
}
.rz-gate-stack { display: flex; flex-direction: column; }
.rz-locked { padding: 17px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 14px; }
.rz-locked:last-child { border-bottom: 0; }
.rz-locked-inner { filter: blur(7px); pointer-events: none; user-select: none; display: flex; align-items: baseline; gap: 14px; width: 100%; }
.rz-gate-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 55%, transparent), color-mix(in srgb, var(--bg) 92%, transparent));
}
.rz-gate-line { font-size: 0.9375rem; color: var(--text); margin: 0; }
.rz-gate-line b { color: var(--accent); }
.rz-gate-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rz-gate-form .input { max-width: 240px; }
/* The gate is one account button (2026-09-01): centred, on its own line. */
.rz-gate-actions { display: flex; justify-content: center; margin: 0 0 10px; }
.rz-gate-note { font-size: 0.78rem; color: var(--text-3); margin: 0; }

/* ── F · Payback ─────────────────────────────────────────────────────────── */

.rz-sec-f { padding: 56px 0; border-top: 1px solid var(--line); margin-top: 52px; }
.rz-roi-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 26px 18px; }
.rz-roi-k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px; }
.rz-roi-v { font-size: clamp(1.6rem, 4vw, 2.15rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rz-roi-v.is-accent { color: var(--accent); }
.rz-roi-v.is-value { color: var(--value); }
.rz-roi-v.is-masked { color: var(--text-3); letter-spacing: 0.1em; }
/* The coarse band shown to anonymous visitors. Sized down from a headline
   figure because it is a range, not a quote, and styled as real content rather
   than as absence — the '•••' it replaced read as data that failed to load. */
.rz-roi-v.is-range { color: var(--value); font-size: clamp(1.15rem, 2.6vw, 1.5rem); letter-spacing: -0.02em; }
.rz-roi-v.is-locked { color: var(--text-3); font-size: clamp(1.1rem, 2.4vw, 1.35rem); letter-spacing: 0; }
.rz-roi-sub { font-size: 0.78rem; color: var(--text-3); margin: 7px 0 0; }

/* One plain sentence stating the answer, above every control. */
.rz-payoff-lead {
  font-size: clamp(0.98rem, 2.2vw, 1.12rem);
  line-height: 1.5;
  color: var(--text-1);
  margin: 0 0 22px;
  max-width: 54ch;
}
.rz-payoff-lead:empty { display: none; }

/* The locked state as an invitation. A gate only motivates when people can see
   what they are missing. */
.rz-unlock {
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--accent-soft);
}
.rz-unlock-p { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.55; color: var(--text-2); }
.rz-unlock-p strong { color: var(--text-1); font-weight: 600; }
.rz-unlock-btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.rz-unlock-btn:hover { background: var(--accent-strong); }

/* The handoff into the consulting conversation. Unlocked readers only. */
.rz-request { margin: 26px 0 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.rz-request-p { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.55; color: var(--text-2); }
.rz-request-btn {
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}
.rz-request-btn:hover:not(:disabled) { background: var(--accent-strong); }
.rz-request-btn:disabled { opacity: 0.6; cursor: default; }
.rz-request-status { margin: 12px 0 0; font-size: 0.85rem; color: var(--text-2); }
.rz-request-status:empty { display: none; }

.rz-paces { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 38px 0 6px; }
.rz-paces-k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-right: 4px; }
.rollout-pace-btn {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.rollout-pace-btn:hover { color: var(--text); border-color: var(--line-strong); }
.rollout-pace-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rollout-pace-btn.is-active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); background: var(--accent-soft); }

/* The chart's host. It normally lands inside the payback section's mount slot,
   where the section supplies the spacing; the margin only matters on
   mountRolloutHost's fallback path, where it is appended to the results root. */
.rollout-section { margin-top: 8px; }
.rollout-figure { overflow-x: auto; margin-top: 6px; }
.rollout-chart { display: block; max-width: 100%; height: auto; color: inherit; }
.rollout-caption { font-size: 0.78rem; color: var(--text-3); margin: 10px 0 0; line-height: 1.55; }

/* The value signal reads in the brand's own palette, not as a grey chart. */
.rollout-band { fill: var(--accent-soft); stroke: none; }
.rollout-expected { stroke: var(--accent-strong); stroke-width: 2; }
/* The conservative bound — the series break-even is actually computed from.
   Same accent family as `expected` so they read as one projection, but clearly
   subordinate to it: this is the floor of the range, not the headline case. */
.rollout-conservative { stroke: var(--accent-strong); stroke-width: 1.25; opacity: 0.45; }
.rollout-zero { stroke: currentColor; opacity: 0.3; stroke-dasharray: 3 3; }
/* ANNOTATION, not data (2026-08-31). This was `var(--accent-strong)` at 0.85 —
   the data line's own colour — on a full-height rule, and on a chart whose
   curve is near-flat at the bottom it read as the value spiking to the top of
   the axis. It is now a short drop line from the marker to the axis, drawn in
   the neutral ink the other guides use, so it cannot be mistaken for a series. */
.rollout-breakeven { stroke: currentColor; opacity: 0.35; stroke-width: 1; stroke-dasharray: 2 3; }
.rollout-breakeven-dot { fill: var(--accent-strong); stroke: var(--bg); stroke-width: 2; }
.rollout-breakeven-label {
  fill: var(--accent-ink);
  paint-order: stroke;
  stroke: var(--accent-strong);
  stroke-width: 9;
  stroke-linejoin: round;
  font-size: 15px;
  font-weight: 600;
}
.rollout-note { fill: currentColor; font-size: 14px; font-weight: 600; }
.rollout-ytick,
.rollout-phase-label { fill: currentColor; opacity: 0.65; font-size: 14px; }
.rollout-phase-tick { stroke: currentColor; opacity: 0.4; }
/* Regular month ticks to the end of the horizon (2026-09-01); quieter than the
   phase ticks so where automations land still reads first. */
.rollout-month-tick { stroke: currentColor; opacity: 0.25; }
.rollout-month-label { fill: currentColor; opacity: 0.45; font-size: 14px; }
/* Draw-on: the projection line traces itself once, then settles. */
.rollout-figure .rollout-expected { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: az-draw 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards; }
@keyframes az-draw { to { stroke-dashoffset: 0; } }

/* ── G · Methodology + footer actions ────────────────────────────────────── */

.rz-method { border-top: 1px solid var(--line); }
.rz-method > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: color 0.15s ease;
}
.rz-method > summary::-webkit-details-marker { display: none; }
.rz-method > summary:hover { color: var(--text); }
.rz-method > summary::after {
  content: '';
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
  margin-left: auto;
}
.rz-method[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.rz-method-body { padding-bottom: 34px; display: flex; flex-direction: column; gap: 24px; }
.rz-method-h { font-size: 0.875rem; font-weight: 600; color: var(--text); margin: 0 0 8px; }
.rz-method-p { font-size: 0.875rem; line-height: 1.7; color: var(--text-2); margin: 0; max-width: 70ch; }
.rz-method-p + .rz-method-p { margin-top: 8px; }

.rz-actions { border-top: 1px solid var(--line); padding: 30px 0 0; display: flex; flex-direction: column; gap: 12px; }
.rz-actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rz-actions-row .input { max-width: 260px; }
.rz-fine { font-size: 0.75rem; line-height: 1.65; color: var(--text-3); max-width: 66ch; margin: 26px 0 0; }
.rz-note { font-size: 0.8125rem; color: var(--text-3); margin: 0; }
.rz-note a { color: var(--accent); }

/* Roadmap (kept — only its chrome changed) */
.rz-roadmap { border-top: 1px solid var(--line); padding: 46px 0 0; }
.rz-phase { border-left: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); padding: 4px 0 26px 20px; position: relative; }
.rz-phase::before { content: ''; position: absolute; left: -5px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.rz-phase-k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.rz-phase-t { font-family: var(--font-display); font-weight: 550; font-size: 1.05rem; margin: 6px 0 4px; }
.rz-phase-g { font-size: 0.875rem; color: var(--text-2); margin: 0 0 12px; }
.rz-phase-items { display: flex; flex-direction: column; gap: 8px; }
.rz-phase-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rz-phase-item > summary { cursor: pointer; list-style: none; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.9375rem; }
.rz-phase-item > summary::-webkit-details-marker { display: none; }
.rz-phase-item[open] > summary { border-bottom: 1px solid var(--line); }
.rz-phase-cx { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); white-space: nowrap; }
.rz-phase-body { padding: 12px 13px; font-size: 0.875rem; display: flex; flex-direction: column; gap: 8px; }
.rz-phase-body p { margin: 0; color: var(--text-2); }
.rz-phase-body b { display: block; font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.rz-journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 18px 0 26px; }
.rz-jstage { border-top: 2px solid var(--line); padding-top: 14px; }
.rz-jstage.is-now { border-top-color: var(--accent); }
.rz-jstage-k { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.rz-jstage.is-now .rz-jstage-k { color: var(--accent); }
.rz-jstage-t { font-family: var(--font-display); font-weight: 550; font-size: 1rem; margin: 6px 0 8px; line-height: 1.3; }
.rz-jstage ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; }
.rz-jstage li { font-size: 0.8125rem; color: var(--text-2); line-height: 1.5; }

/* ─── Empty / error states ────────────────────────────────────────────────── */

.rz-empty { padding: 60px 0; text-align: center; }
.rz-empty h2 { font-family: var(--font-display); font-weight: 550; font-size: 1.5rem; margin: 0 0 12px; }
.rz-empty p { font-size: 0.9375rem; line-height: 1.65; color: var(--text-2); margin: 0 auto; max-width: 52ch; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .az-shell { padding: 36px 18px 90px; }
  .az-step { grid-template-columns: 1fr; gap: 0; }
  .az-step-num { display: none; }
  .az-grid-tight { grid-template-columns: 1fr 1fr; }
  .az-total { grid-column: 1 / -1; padding-bottom: 0; }
  .az-run { width: 100%; justify-content: center; }
  .rz-hero { padding: 46px 0 40px; }
  .rz-rec-head { grid-template-columns: auto 1fr; padding: 18px; gap: 4px 12px; }
  .rz-open { grid-row: auto; grid-column: 1 / -1; justify-self: start; margin-top: 12px; }
  .rz-flow { grid-column: 1 / -1; }
  .rz-rec-detail-inner { padding: 4px 18px 20px; }
  .rz-fact { grid-template-columns: 1fr; gap: 2px; }
  .rz-roi-top { gap: 22px 14px; }
  .think { padding: 16px; }
}

/* Narrow: the flow reads top-to-bottom instead of wrapping mid-sequence,
   which left arrows stranded at the start of a line. */
@media (max-width: 560px) {
  .rz-flow { flex-direction: column; align-items: flex-start; gap: 3px; }
  .rz-flow .arw { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rz-sec,
  .rz-rec.is-open .rz-rec-detail-inner { animation: none; }
  .rz-hero::before { animation: none; opacity: 1; }
  .az-run.is-armed::after { display: none; }
  .rollout-figure .rollout-expected { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .rz-rec-detail, .rz-row-detail { transition: none; }
}
.az-foot { max-width: 720px; margin: 56px auto 0; padding: 18px 0 8px; border-top: 1px solid var(--line-strong); color: var(--text-3); font-size: 0.8125rem; display: flex; flex-wrap: wrap; gap: 0 10px; align-items: center; }
.az-foot a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.15em; }
.az-foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
