/* ==========================================================================
   Solar Funnel — Design System (single shared stylesheet)
   Owner: ui-styles-lead. Documented in docs/CSS-GUIDE.md — keep in sync.
   Self-contained: NO external fonts, images, imports, or CDNs.
   Mobile-first (≈80% Meta traffic). Content column max-width 640px.
   Palette: deep navy + solar gold. All token pairs WCAG AA checked.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Color — navy scale */
  --c-navy-900: #0b1b33; /* darkest: booking/gate bg, text on gold */
  --c-navy-800: #12294a;
  --c-navy-700: #1c3a66;
  --c-navy-600: #27548f; /* links, focus ring (7.6:1 on white) */
  --c-ink:      #15243d; /* body text (15.6:1 on white) */
  --c-muted:    #5b6b84; /* secondary text (5.4:1 on white) */

  /* Color — surfaces & lines */
  --c-bg:           #f5f7fa;
  --c-surface:      #ffffff;
  --c-line:         #dbe2ec; /* decorative borders */
  --c-border-input: #8494ab; /* form-control borders (≥3:1 on white) */
  --c-on-navy-muted:#b9c6da; /* muted text on navy-900/800 */

  /* Color — solar gold accent */
  --c-gold-500:  #f6a821; /* accent bg — pair with navy-900 text (8.6:1) */
  --c-gold-600:  #d98b0c; /* hover / borders */
  --c-gold-700:  #8a5800; /* gold as TEXT on white (6.0:1) */
  --c-gold-tint: #fdf4e0;

  /* Color — semantic */
  --c-green-600: #1e7a45; /* success text on white (5.4:1) */
  --c-green-bg:  #e9f6ee;
  --c-loss:      #8c3413; /* loss-framing text (7.0:1 on white) */
  --c-loss-bg:   #fbeee4;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgb(11 27 51 / 0.06), 0 1px 3px rgb(11 27 51 / 0.08);
  --shadow-md: 0 4px 12px rgb(11 27 51 / 0.10);
  --shadow-lg: 0 12px 32px rgb(11 27 51 / 0.16);

  /* Font sizes */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.375rem;
  --fs-2xl:  1.75rem;
  --fs-3xl:  2.25rem;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. BASE / RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-bg);
}

h1, h2, h3, h4, p { margin: 0 0 var(--sp-3); }
h1 { font-size: var(--fs-3xl); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: var(--fs-2xl); line-height: 1.2;  letter-spacing: -0.01em; font-weight: 700; }
h3 { font-size: var(--fs-xl);  line-height: 1.25; font-weight: 700; }
h4 { font-size: var(--fs-lg);  line-height: 1.3;  font-weight: 650; }
small { font-size: var(--fs-sm); }

a { color: var(--c-navy-600); text-underline-offset: 2px; }
a:hover { color: var(--c-navy-800); }

img, canvas, svg { max-width: 100%; display: block; }

::selection { background: var(--c-gold-tint); color: var(--c-navy-900); }

:focus-visible { outline: 3px solid var(--c-navy-600); outline-offset: 2px; }

/* Text-like inputs (element-level so frontends get sane defaults for free) */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.7em 0.9em;
  font: inherit;
  font-size: max(16px, 1rem); /* prevents iOS focus-zoom */
  color: var(--c-ink);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-md);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  border-color: var(--c-navy-600);
}
::placeholder { color: var(--c-muted); opacity: 1; }

/* --------------------------------------------------------------------------
   3. LAYOUT
   -------------------------------------------------------------------------- */
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.section { padding-block: var(--sp-6); }

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

/* Vertical rhythm — owl selector, no first/last margin leakage */
.stack > * + *    { margin-block-start: var(--sp-4); }
.stack-sm > * + * { margin-block-start: var(--sp-2); }
.stack-lg > * + * { margin-block-start: var(--sp-6); }

.center { text-align: center; }

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

/* Oversized headline number (hero savings figure) */
.display {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-navy-900);
}

/* --------------------------------------------------------------------------
   4. FORM SYSTEM (one question per screen)
   -------------------------------------------------------------------------- */
.form-step { display: none; }
.form-step.active { display: block; animation: step-in 0.25s ease; }
@keyframes step-in {
  from { opacity: 0; transform: translateY(8px); }
}

.field { display: grid; gap: var(--sp-2); margin-block-end: var(--sp-5); }

.field-label {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-ink);
}

.field-why { font-size: var(--fs-sm); color: var(--c-muted); }

/* Bill slider: range input + floating value bubble.
   JS sets --fill (track fill %) and .bill-slider-bubble left offset. */
.bill-slider { position: relative; padding-top: 3rem; }

.bill-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 48px; /* full-height tap target */
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.bill-slider input[type="range"]:focus-visible {
  outline: 3px solid var(--c-navy-600);
  outline-offset: 2px;
  border-radius: var(--r-full);
}
.bill-slider input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg,
    var(--c-gold-500) var(--fill, 50%),
    var(--c-line)     var(--fill, 50%));
}
.bill-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -10px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-gold-500);
  border: 3px solid var(--c-surface);
  box-shadow: var(--shadow-md);
}
.bill-slider input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--c-line);
}
.bill-slider input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: var(--r-full);
  background: var(--c-gold-500);
}
.bill-slider input[type="range"]::-moz-range-thumb {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-gold-500);
  border: 3px solid var(--c-surface);
  box-shadow: var(--shadow-md);
}

.bill-slider-bubble {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-navy-800);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  padding: 0.3em 0.7em;
  border-radius: var(--r-sm);
  white-space: nowrap;
  pointer-events: none;
}
.bill-slider-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--c-navy-800);
}

/* Toggle cards: 2-up tappable choice (homeowner yes/no).
   Works with a `.selected` class OR a hidden radio via :has(). */
.toggle-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}
.toggle-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 72px;
  padding: var(--sp-4);
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-md);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.toggle-card:hover { border-color: var(--c-navy-600); }
.toggle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px; height: 1px;
  min-height: 0;
}
.toggle-card.selected,
.toggle-card:has(input:checked) {
  border-color: var(--c-gold-600);
  background: var(--c-gold-tint);
  box-shadow: 0 0 0 1px var(--c-gold-600);
}
.toggle-card:has(input:focus-visible) {
  outline: 3px solid var(--c-navy-600);
  outline-offset: 2px;
}

/* Buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;            /* mobile-first; .btn-auto to shrink-wrap */
  min-height: 52px;
  padding: 0.8em 1.5em;
  border: 1.5px solid transparent;
  border-radius: var(--r-md);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn-primary { background: var(--c-gold-500); color: var(--c-navy-900); }
.btn-primary:hover { background: var(--c-gold-600); }
.btn-secondary {
  background: var(--c-surface);
  color: var(--c-navy-700);
  border-color: var(--c-navy-600);
}
.btn-secondary:hover { background: var(--c-bg); }
.btn-primary:active, .btn-secondary:active { transform: translateY(1px); }
.btn-primary:disabled, .btn-primary.disabled,
.btn-secondary:disabled, .btn-secondary.disabled {
  background: #e6eaf0;
  color: #7c8aa0;
  border-color: transparent;
  cursor: not-allowed;
  transform: none;
}
.btn-auto { width: auto; }

/* Progress dots (step indicator, decorative) */
.progress-dots {
  display: flex;
  gap: var(--sp-2);
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.progress-dots .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-line);
  transition: background 0.2s ease, transform 0.2s ease;
}
.progress-dots .dot.active { background: var(--c-gold-600); transform: scale(1.3); }
.progress-dots .dot.done   { background: var(--c-navy-600); }

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  text-align: center;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-muted);
  line-height: 1.45;
}
.consent-row input[type="checkbox"] {
  flex: none;
  width: 22px; height: 22px;
  margin: 2px 0 0;
  accent-color: var(--c-navy-700);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. CALCULATION THEATER (.analyzing)
   -------------------------------------------------------------------------- */
.analyzing {
  list-style: none;
  margin: 0;
  padding: var(--sp-2) 0;
}
.analyzing .step {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  color: var(--c-muted);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.analyzing .step::before {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  border: 2px solid var(--c-line);
  border-radius: 50%;
  background: transparent;
}
/* check mark, drawn with borders — hidden until done */
.analyzing .step::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 11px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-70%) rotate(-45deg);
  opacity: 0;
}
.analyzing .step.active { color: var(--c-ink); }
.analyzing .step.active::before {
  border-color: var(--c-line);
  border-top-color: var(--c-gold-600);
  animation: analyzing-spin 0.8s linear infinite;
}
.analyzing .step.done { color: var(--c-ink); }
.analyzing .step.done::before {
  border-color: var(--c-green-600);
  background: var(--c-green-600);
}
.analyzing .step.done::after { opacity: 1; }

/* Fully CSS-only progression (no JS): steps auto-check on a stagger */
.analyzing--auto .step:nth-child(1) { --d: 0.6s; }
.analyzing--auto .step:nth-child(2) { --d: 1.5s; }
.analyzing--auto .step:nth-child(3) { --d: 2.4s; }
.analyzing--auto .step:nth-child(4) { --d: 3.3s; }
.analyzing--auto .step:nth-child(5) { --d: 4.2s; }
.analyzing--auto .step:nth-child(6) { --d: 5.1s; }
.analyzing--auto .step::before {
  animation: analyzing-fill 0.35s ease forwards;
  animation-delay: var(--d, 0.6s);
}
.analyzing--auto .step::after {
  animation: analyzing-check 0.3s ease forwards;
  animation-delay: calc(var(--d, 0.6s) + 0.18s);
}
@keyframes analyzing-spin { to { transform: rotate(360deg); } }
@keyframes analyzing-fill {
  to { background: var(--c-green-600); border-color: var(--c-green-600); }
}
@keyframes analyzing-check { to { opacity: 1; } }

/* --------------------------------------------------------------------------
   6. REPORT COMPONENTS
   -------------------------------------------------------------------------- */
/* Roof canvas container — aspect-ratio box, navy while imagery loads */
.report-hero {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-navy-900);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.report-hero canvas, .report-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 3-up stat grid → 1-col on small screens (mobile-first) */
.stat-cards { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
@media (min-width: 560px) {
  .stat-cards { grid-template-columns: repeat(3, 1fr); }
}
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-value {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-navy-800);
}
.stat-caption {
  display: block;
  margin-top: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--c-muted);
}

/* Locked-section presentation + unlock CTA (sequencing gate) */
.gate-panel {
  background: linear-gradient(160deg, var(--c-navy-800), var(--c-navy-900));
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.gate-panel-title {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 0 0 var(--sp-2);
}
.gate-panel .muted, .gate-panel .trust-line,
.gate-panel .field-why, .gate-panel .consent-row { color: var(--c-on-navy-muted); }
.gate-panel a { color: var(--c-gold-500); }
.gate-panel :focus-visible { outline-color: var(--c-gold-500); }
.gate-panel input[type="text"], .gate-panel input[type="email"],
.gate-panel input[type="tel"] { border-color: transparent; }

/* Pathway comparison: net metering vs HRSP rebate */
.pathway-tabs { display: flex; gap: var(--sp-2); }
.pathway-tab {
  flex: 1;
  min-height: 48px;
  padding: 0.5em 1em;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-full);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-navy-700);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.pathway-tab.active, .pathway-tab[aria-selected="true"] {
  background: var(--c-navy-800);
  border-color: var(--c-navy-800);
  color: #fff;
}

.pathway-card {
  position: relative;
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  margin-top: var(--sp-3);
}
.pathway-card.recommended {
  border-color: var(--c-gold-600);
  box-shadow: 0 0 0 1px var(--c-gold-600);
}
.pathway-card.recommended::before {
  content: "Recommended";
  position: absolute;
  top: -0.8em;
  left: var(--sp-4);
  padding: 0.2em 0.65em;
  background: var(--c-gold-500);
  color: var(--c-navy-900);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-full);
}

/* "Show the math" expander — style native <details class="assumptions"> */
.assumptions {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
}
.assumptions summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.assumptions summary::-webkit-details-marker { display: none; }
.assumptions summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.assumptions[open] summary::after { transform: rotate(225deg); }
.assumptions > *:not(summary) { padding: 0 var(--sp-4) var(--sp-4); }

/* Loss framing: "you've lost ~$X since YEAR" */
.loss-banner {
  background: var(--c-loss-bg);
  border-left: 4px solid var(--c-gold-600);
  border-radius: var(--r-md);
  padding: var(--sp-4);
  color: var(--c-loss);
  font-weight: 600;
}
.loss-amount {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  line-height: 1.2;
}

/* Physical-equivalence comparison (car / groceries / tuition …) */
.equivalence-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: var(--c-gold-tint);
  border: 1px solid var(--c-gold-600);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  color: var(--c-gold-700);
}

/* CO2 secondary hook: cars-off-road / trees */
.co2-row { display: flex; gap: var(--sp-3); }
.co2-item {
  flex: 1;
  background: var(--c-green-bg);
  color: var(--c-green-600);
  border-radius: var(--r-md);
  padding: var(--sp-3);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 700;
}

/* HRSP strikethrough pricing: $21,400 → $16,400 */
.strikethrough-price { font-weight: 500; }
.strikethrough-price s, .strikethrough-price .old {
  color: var(--c-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  margin-right: 0.4em;
}
.strikethrough-price strong, .strikethrough-price .new {
  color: var(--c-green-600);
  font-weight: 800;
}

/* Rate-plan chips: TOU / ULO / Tiered — .best marks winning plan */
.rate-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3em 0.9em;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-input);
  border-radius: var(--r-full);
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--c-navy-700);
}
.chip.best {
  background: var(--c-gold-tint);
  border-color: var(--c-gold-600);
  color: var(--c-gold-700);
  font-weight: 700;
}

/* Distinct bottom CTA block — never interrupts the report body */
.booking-block {
  background: linear-gradient(160deg, var(--c-navy-800), var(--c-navy-900));
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-5);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.booking-block .muted, .booking-block .trust-line { color: var(--c-on-navy-muted); }
.booking-block a { color: var(--c-gold-500); }
.booking-block :focus-visible { outline-color: var(--c-gold-500); }

/* Thanks-page recap: label/value rows */
.report-recap {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--sp-2) var(--sp-5);
}
.recap-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--c-line);
  font-size: var(--fs-sm);
}
.recap-row:last-child { border-bottom: 0; }
.recap-row > :last-child { font-weight: 700; color: var(--c-navy-800); text-align: right; }

/* --------------------------------------------------------------------------
   7. UTILITIES
   -------------------------------------------------------------------------- */
/* Backup soft blur for any teaser element (gate is sequencing-first) */
.blur-soft {
  filter: blur(7px);
  user-select: none;
  pointer-events: none;
}

.muted { color: var(--c-muted); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.2em 0.65em;
  background: var(--c-navy-800);
  color: #fff;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-gold  { background: var(--c-gold-500); color: var(--c-navy-900); }
.badge-green { background: var(--c-green-bg); color: var(--c-green-600); }

/* Loading shimmer */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--c-line);
  border-radius: var(--r-sm);
  color: transparent;
  min-height: 1em;
  pointer-events: none;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.65), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
@keyframes skeleton-shimmer { to { transform: translateX(100%); } }

/* --------------------------------------------------------------------------
   8. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* auto-theater keeps its delays: steps still appear in order, just without
     motion. Spinner and shimmer become static. */
  .skeleton::after { animation: none; }
  .analyzing .step.active::before { border-top-color: var(--c-gold-600); }
}
