/* ============================================================
   Helios — product-specific styles.

   Layered on top of /colors_and_type.css from the SLS Design
   System (palette, type, motion, civic overrides). This file
   contains only Helios components: wordmark layout, wizard, the
   stepper / compass / option grid, results bignumbers, monthly
   bar chart, and accordions. No tokens are redefined here.

   Helios sits in the Clara register: consumer wizard, mobile-first,
   progressive disclosure, gain-framed copy, max-width 480 / 640.

   Accessibility note: the canonical CSS sets `a { color: var(--gold) }`
   for in-flow links. That ratio fails AA on cream, so this file
   overrides it: dark text with a gold underline (the SLS link
   treatment rule). Gold is reserved for buttons, icons, focus
   rings, and large display italics where it is decorative.
   ============================================================ */

/* ---------- Page layout ---------------------------------------- */

body {
  display: flex;
  flex-direction: column;
}

/* ---------- Link treatment override (AA fix) ------------------- */

a {
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition:
    color var(--dur-hover) ease,
    text-decoration-thickness var(--dur-hover) ease;
}

a:hover {
  color: var(--dark);
  text-decoration-thickness: 2px;
  opacity: 1;
}

/* ---------- Header / SLS wordmark ------------------------------- */

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: var(--space-4) var(--space-4) 0;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
  transition: gap var(--dur-logo) var(--ease-unhurried);
}

.wordmark:hover { text-decoration: none; }

[data-sls-word="south"],
[data-sls-word="london"] {
  color: var(--gold);
  font-weight: 500;
}

[data-sls-word="scientific"] {
  color: var(--dark);
  font-style: italic;
  font-weight: 400;
}

/* The shared wordmark.js toggles `is-collapsed` on the root. We
   tighten letter spacing in the collapsed state so S/L/S sits
   visually like a stacked initials block, then loosens on expand. */
.wordmark.is-collapsed {
  letter-spacing: 0;
}

.product-mark {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--dark-light);
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

/* ---------- Stage / cards --------------------------------------- */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-5) var(--space-3) var(--space-5);
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-top: var(--space-4);
  animation: card-fade-in var(--dur-card-in) ease both;
}

.card[hidden] { display: none; }

.card-results { max-width: 640px; }

@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Intro */

.card-intro h1 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.hero-italic {
  display: block;
  font-style: italic;
  color: var(--gold);
}

.lede {
  font-size: var(--text-base);
  color: var(--dark);
  line-height: var(--leading-body);
  margin-bottom: var(--space-3);
}

.footnote {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--dark-light);
}

.intro-details {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--dark-light);
}

.intro-details summary {
  cursor: pointer;
  color: var(--dark-light);
  list-style: none;
}

.intro-details summary::-webkit-details-marker { display: none; }

.intro-details summary::after {
  content: " +";
  color: var(--gold);
}

.intro-details[open] summary::after { content: " −"; }

/* ---------- Polar horizon viz ---------------------------------- */

.horizon-polar {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.horizon-polar-title {
  font-size: 1.05rem;
  margin-bottom: var(--space-1);
}

.horizon-polar-caption {
  font-size: var(--text-sm);
  color: var(--dark-light);
  line-height: var(--leading-body);
  margin-bottom: var(--space-2);
}

.horizon-polar-svg {
  display: block;
  margin: 0 auto;
  max-width: 380px;
  width: 100%;
  height: auto;
}

.horizon-polar-svg .polar-sky-bg { fill: var(--cream); }
.horizon-polar-svg .polar-obstruction {
  fill: var(--dark);
  fill-opacity: 0.16;
}
.horizon-polar-svg .polar-grid {
  fill: none;
  stroke: var(--border);
  stroke-dasharray: 2 3;
}
.horizon-polar-svg .polar-spoke {
  stroke: var(--border);
  stroke-dasharray: 2 3;
}
.horizon-polar-svg .polar-outer {
  fill: none;
  stroke: var(--dark-light);
  stroke-opacity: 0.5;
}
.horizon-polar-svg .polar-cardinal {
  font-family: var(--font-serif);
  font-size: 14px;
  fill: var(--dark-light);
  text-anchor: middle;
  dominant-baseline: middle;
}
.horizon-polar-svg .polar-sunpath {
  fill: none;
  stroke: var(--gold);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.horizon-polar-svg .polar-sunpath-summer  { stroke-width: 2.5; opacity: 1; }
.horizon-polar-svg .polar-sunpath-equinox { stroke-width: 2;   opacity: 0.7; }
.horizon-polar-svg .polar-sunpath-winter  {
  stroke-width: 1.75;
  opacity: 0.55;
  stroke-dasharray: 4 3;
}
.horizon-polar-svg .polar-panel-marker {
  fill: var(--gold);
  stroke: none;
}

.horizon-polar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem var(--space-3);
  justify-content: center;
  list-style: none;
  font-size: var(--text-sm);
  color: var(--dark-light);
  margin-top: var(--space-2);
}

.horizon-polar-legend li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-line {
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--gold);
}
.legend-equinox { opacity: 0.7; }
.legend-winter  {
  opacity: 0.55;
  height: 0;
  border-top: 2px dashed var(--gold);
  background: transparent;
}
.legend-panel {
  width: 0;
  height: 0;
  background: transparent;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid var(--gold);
}

.intro-details p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--leading-body);
}

/* ---------- Buttons -------------------------------------------- */

.button {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius);
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  min-height: 44px;
  cursor: pointer;
  transition:
    background-color var(--dur-hover) ease,
    border-color var(--dur-hover) ease,
    color var(--dur-hover) ease,
    opacity var(--dur-hover) ease;
}

.button-primary {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}

.button-primary:hover { opacity: 0.85; }

.button-primary:disabled {
  background: var(--gold-faint);
  color: var(--dark-light);
  border-color: var(--gold-faint);
  cursor: not-allowed;
}

.button-secondary {
  background: transparent;
  color: var(--dark-light);
  border-color: var(--border);
}

.button-secondary:hover {
  border-color: var(--dark-light);
  color: var(--dark);
}

/* ---------- Wizard --------------------------------------------- */

.progress {
  height: 4px;
  background: var(--gold-faint);
  border-radius: 4px;
  margin-bottom: var(--space-4);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  width: 0%;
  transition: width var(--dur-card-in) ease;
}

.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.step h2 {
  margin-bottom: var(--space-1);
}

.step-help {
  color: var(--dark-light);
  font-size: var(--text-sm);
  margin-bottom: 1.25rem;
}

.step-actions {
  margin-top: var(--space-4);
  display: flex;
  justify-content: flex-end;
}

.step-actions-split { justify-content: space-between; }

/* Postcode input */

.postcode-input {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  transition: border-color var(--dur-hover) ease;
}

.postcode-input:focus-visible {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-faint);
}

.postcode-input.is-valid { border-color: var(--green); }

.field-error {
  color: var(--red);
  font-size: var(--text-sm);
  margin: 0.5rem 0 0;
}

/* Floor stepper */

.stepper {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  gap: var(--space-3);
  background: var(--gold-faint);
  border-radius: var(--radius);
  padding: 1.25rem 0.75rem;
}

.stepper-button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--white);
  color: var(--gold);
  font-size: var(--text-lg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: pointer;
  transition:
    background-color var(--dur-hover) ease,
    color var(--dur-hover) ease;
}

.stepper-button:hover { background: var(--gold); color: var(--white); }

.stepper-display { text-align: center; }

.stepper-number {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--dark);
}

.stepper-caption {
  display: block;
  color: var(--dark-light);
  font-size: var(--text-sm);
  margin-top: 0.15rem;
}

/* Compass */

.compass {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  margin: 0;
}

.compass-cell {
  aspect-ratio: 1;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    border-color var(--dur-hover) ease,
    background-color var(--dur-hover) ease,
    color var(--dur-hover) ease;
}

.compass-cell:hover {
  border-color: var(--gold);
  background: var(--gold-faint);
}

.compass-cell.is-selected {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.compass-centre {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-sm);
  color: var(--dark-light);
}

/* Kit selection */

.option-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: var(--space-4);
}

.option-grid-2 { grid-template-columns: repeat(2, 1fr); }
.option-grid-3 { grid-template-columns: repeat(3, 1fr); }

.option-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  cursor: pointer;
  text-align: center;
  transition:
    border-color var(--dur-hover) ease,
    background-color var(--dur-hover) ease;
}

.option-card:hover {
  border-color: var(--gold);
  background: var(--gold-faint);
}

.option-card.is-selected {
  border-color: var(--gold);
  background: var(--gold-faint);
}

.option-card.is-selected .option-headline { font-weight: 600; }

.option-headline {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--dark);
}

.option-detail {
  font-size: var(--text-sm);
  color: var(--dark-light);
}

/* Field controls */

.field-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.text-input,
.select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  font: inherit;
  transition: border-color var(--dur-hover) ease;
}

.text-input:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-faint);
}

.advanced {
  margin-top: var(--space-4);
  border-top: 1px solid var(--border);
  padding-top: var(--space-3);
}

.advanced > summary {
  cursor: pointer;
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--dark-light);
  list-style: none;
}

.advanced > summary::-webkit-details-marker { display: none; }

.advanced > summary::after {
  content: " +";
  font-family: var(--font-serif);
  color: var(--gold);
}

.advanced[open] > summary::after { content: " \2212"; }

.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 100px;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
}

.advanced-grid .field-label { margin: 0; }

/* ---------- Spinner / loading ---------------------------------- */

.card-loading { text-align: center; }

.spinner {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--space-3);
  border-radius: 50%;
  border: 3px solid var(--gold-faint);
  border-top-color: var(--gold);
  animation: spin 800ms linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Results -------------------------------------------- */

.results-header { margin-bottom: 1.25rem; }

.results-eyebrow {
  font-size: var(--text-sm);
  color: var(--dark-light);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.results-headline { font-size: var(--text-xl); }

.bignumbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin-bottom: 1.25rem;
}

.bignumber {
  background: var(--gold-faint);
  border-radius: var(--radius);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bignumber-label {
  font-size: var(--text-sm);
  color: var(--dark-light);
}

.bignumber-value {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.4rem;
  color: var(--dark);
  line-height: 1;
}

.bignumber-unit {
  font-size: var(--text-sm);
  color: var(--dark-light);
}

@media (max-width: 540px) {
  .bignumbers { grid-template-columns: 1fr; }
}

/* Verdict pills (canonical pill spec: --radius-pill, weight 600) */

.verdict-area {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.verdict-area:empty { display: none; }

.verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.85rem;
  font-size: var(--text-sm);
  font-weight: 600;
}

.verdict-good {
  background: var(--green-bg);
  color: var(--green-dark);
}

.verdict-warning {
  background: var(--amber-bg);
  color: var(--amber);
}

/* Warnings (amber-note left-border treatment, per canonical) */

.warnings:empty { display: none; }

.warning-card {
  border-left: 4px solid var(--amber-note);
  background: var(--amber-bg);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-sm);
  color: var(--dark);
  margin-bottom: 0.5rem;
}

/* Horizon-source disclaimer — sits between the results header and the
   donut hero so users can't miss that a synthetic-horizon result is
   not LIDAR-derived (spec §3.5 honesty surfacing). */

.horizon-disclaimer {
  border-left: 4px solid var(--amber-note);
  background: var(--amber-bg);
  padding: 0.875rem 1.125rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-sm);
  color: var(--dark);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.horizon-disclaimer strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--amber);
}

/* Accordion */

.accordion {
  border-top: 1px solid var(--border);
  margin-top: var(--space-3);
  padding-top: 0.75rem;
}

.accordion > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: var(--text-base);
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.accordion > summary::-webkit-details-marker { display: none; }

.accordion > summary::after {
  content: "+";
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.3rem;
  transition: transform var(--dur-hover) ease;
}

.accordion[open] > summary::after { content: "\2212"; }

.accordion-body {
  padding: 0.75rem 0 0.5rem;
  color: var(--dark);
}

/* Key-value list */

.kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1rem;
  margin: 0 0 0.5rem;
}

.kv dt {
  color: var(--dark-light);
  font-size: var(--text-sm);
}

.kv dd {
  margin: 0;
  font-weight: 500;
  font-size: var(--text-sm);
}

.notes {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--dark-light);
}

.notes li::before {
  content: "\00b7";
  color: var(--gold);
  font-weight: 700;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.notes li {
  padding-left: 1em;
  margin-bottom: 0.35rem;
}

.caveat {
  font-size: var(--text-sm);
  color: var(--dark-light);
  margin-top: 0.75rem;
}

.results-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-4);
}

/* Monthly chart */

.monthly-chart {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
}

.monthly-chart .bar {
  fill: var(--gold);
  transition: fill var(--dur-hover) ease;
}

.monthly-chart .bar:hover { fill: var(--dark); }

.monthly-chart .axis { fill: var(--dark-light); }

.monthly-chart .gridline {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

/* Error card */

.card-error { text-align: center; }

.error-detail {
  color: var(--red);
  margin: var(--space-3) 0;
}

/* ---------- Footer --------------------------------------------- */

.site-footer {
  text-align: center;
  padding: var(--space-4) var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  color: var(--dark-light);
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--dark-light); text-decoration: underline; text-decoration-color: var(--border); }
.site-footer a:hover { color: var(--gold); text-decoration-color: var(--gold); }
.footer-sep { margin: 0 0.4rem; color: var(--border); }

.footer-meta {
  margin-top: 0.25rem;
  font-size: var(--text-xs);
  color: var(--dark-light);
}

/* ---------- House-number input (step 1) ------------------------ */

.house-input {
  display: block;
  margin-top: 0.5rem;
  width: 100%;
}

/* ---------- Waitlist signup card -------------------------------- */

.waitlist {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: var(--gold-faint);
  border-radius: var(--radius);
}

.waitlist-title {
  font-size: 1.05rem;
  margin-bottom: var(--space-1);
}

.waitlist-copy {
  font-size: var(--text-sm);
  color: var(--dark);
  line-height: var(--leading-body);
  margin-bottom: var(--space-2);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.waitlist-input {
  width: 100%;
}

.waitlist-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--dark-light);
  line-height: 1.45;
  cursor: pointer;
}

.waitlist-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.waitlist-status {
  font-size: var(--text-sm);
  margin-top: 0.25rem;
}

.waitlist-status-ok    { color: var(--green-dark); }
.waitlist-status-error { color: var(--red); }

/* ---------- Doc page (privacy etc.) ----------------------------- */

.stage-doc { padding: var(--space-4) var(--space-3); }

.doc {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-4) 0;
}

.doc-nav { margin-bottom: var(--space-3); }
.doc-back {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--gold);
}

.doc-header {
  margin-bottom: var(--space-4);
}

.doc-header h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.doc-subtitle {
  font-size: var(--text-base);
  color: var(--dark-light);
}

.doc section {
  margin-bottom: var(--space-4);
}

.doc section h2 {
  font-size: 1.2rem;
  margin-bottom: var(--space-1);
}

.doc section p,
.doc section li {
  font-size: 0.95rem;
  line-height: var(--leading-body);
  color: var(--dark);
}

.doc section p + p {
  margin-top: 0.5rem;
}

.doc section ul {
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

.doc section li {
  margin-bottom: 0.35rem;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: var(--text-sm);
}

.doc th,
.doc td {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.doc th {
  background: var(--cream);
  font-weight: 600;
}

.doc caption {
  text-align: left;
  font-size: var(--text-xs);
  color: var(--dark-light);
  margin-bottom: 0.25rem;
}

.doc-meta {
  margin-top: var(--space-4);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
}

.doc-meta p {
  font-size: var(--text-xs);
  color: var(--dark-light);
  font-style: italic;
}

/* === Bill-share donut & friends ============================================
   Spec: docs/superpowers/specs/2026-05-05-bill-savings-and-cost-clarity-design.md
   --gold-deep is a one-step-warmer SLS-palette variant for the celebratory
   net-positive mode. Stays inside the existing brand family. */

:root {
  --gold-deep: #C77A14;
}

/* Wizard step 4: usage cards */

.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.usage-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 0.9rem;
  border: 1px solid var(--cream-darker, #E9E0C8);
  border-radius: 12px;
  background: var(--cream);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: left;
}

.usage-card:hover { border-color: var(--gold); }
.usage-card.is-selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(232, 160, 48, 0.18);
}

.usage-card .usage-headline {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
}

.usage-card .usage-kwh {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--dark-light);
  margin-top: 0.15rem;
}

.usage-card .usage-detail {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--dark-light);
  margin-top: 0.5rem;
}

.usage-skip {
  display: inline-block;
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
}

.usage-skip:hover { text-decoration: underline; }

/* Results: hero donut block */

.donut-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0 1.25rem;
  padding: 1rem 0;
  border-radius: 16px;
  transition: background 0.4s ease;
}

.donut-svg { width: 280px; max-width: 80vw; display: block; }
.donut-arc-bg { stroke: var(--cream-darker, #E9E0C8); }
.donut-arc-fg { stroke: var(--gold); transition: stroke 0.4s ease; }

.donut-centre-value {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  fill: var(--dark);
  transition: fill 0.4s ease;
}

.donut-centre-label {
  font-family: var(--font-sans);
  font-size: 11px;
  fill: var(--dark-light);
}

.donut-toggle {
  display: inline-flex;
  margin-top: 0.5rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--cream-darker, #E9E0C8);
}

.donut-toggle-pill {
  padding: 0.3rem 0.9rem;
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--dark-light);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.donut-toggle-pill.is-active {
  background: var(--gold);
  color: #fff;
}

/* Results: trio of supporting stats */

.stat-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 0.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--dark-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--dark);
  margin-top: 0.15rem;
}

.stat-unit {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--dark-light);
  margin-top: 0.05rem;
}

/* Results: verdict block */

.verdict-block {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--cream-darker, #E9E0C8);
  border-bottom: 1px solid var(--cream-darker, #E9E0C8);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--dark);
}

.verdict-block p { margin: 0; }

.verdict-block .verdict-extra {
  display: block;
  margin-top: 0.4rem;
  color: var(--dark-light);
  font-size: 0.85rem;
}

/* Net-positive celebratory mode */

.net-positive .donut-block {
  background: linear-gradient(180deg, transparent, rgba(232, 160, 48, 0.06));
}

.net-positive .donut-arc-fg { stroke: var(--gold-deep); }
.net-positive .donut-centre-value { fill: var(--gold-deep); }

.net-positive-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.5rem;
  background: var(--gold-deep);
  color: #fff;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Class-based displays beat the UA stylesheet's [hidden] { display: none },
   so spell out the hide explicitly for any pill we set display on. */
.net-positive-pill[hidden] { display: none; }
