/* =========================================================
   Optimus Review - component styles
   Base: flagship-2 (Consumer Tech Editorial, design-candidate winner)
   Grafted: five-state badges + legend (flagship-3), price-hero-card
   (flagship-3), discrepancy-box (flagship-3), panel-meta stamp
   (flagship-3), hand-schematic diagrams (flagship-1), sourced fact
   links (flagship-1), mobile stacked-card table + scroll-affordance
   table (required fix 7), .sr-only + focus-visible (required fix 11).
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--text-on-accent);
  padding: 10px 16px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

/* ---- Disclaimer bar : visible near top, no interaction needed ---- */
.disclaimer-bar {
  background: var(--st-warn-bg);
  border-bottom: 1px solid var(--st-warn-border);
  color: var(--st-warn-text);
  font-size: 13.5px;
  font-weight: 600;
}
.disclaimer-bar .wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.disclaimer-bar svg { flex: none; width: 17px; height: 17px; }
.disclaimer-bar strong { font-weight: 700; }
.disclaimer-bar .verified {
  margin-left: auto;
  font-weight: 500;
  color: var(--st-warn-text);
  opacity: 0.85;
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
  display: none;
}
@media (min-width: 640px) { .disclaimer-bar .verified { display: block; } }

/* ---- Header ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site nav.primary { display: flex; align-items: center; gap: 20px; padding: 14px 0; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 19px;
  color: var(--text); text-decoration: none; white-space: nowrap;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: var(--text-on-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-family: var(--font-head); flex: none;
}
.logo .sub {
  display: none;
  font-family: var(--font-body); font-weight: 500; font-size: 11.5px;
  color: var(--text-faint); line-height: 1.2;
}
@media (min-width: 860px) { .logo .sub { display: block; } }

.nav-links { display: none; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  text-decoration: none; font-size: 14px; font-weight: 600;
  color: var(--text-muted); padding: 13px 11px; border-radius: 7px;
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav-links a:hover { color: var(--text); background: var(--bg-inset); }
@media (min-width: 1020px) { .nav-links { display: flex; } }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  padding: 15px 16px; border-radius: 9px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1;
  min-height: 44px;
}
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-strong); }

.menu-toggle {
  display: flex; width: 44px; height: 44px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--bg-card);
  align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle svg { width: 18px; height: 18px; }
@media (min-width: 1020px) { .menu-toggle { display: none; } }

#mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--bg); }
#mobile-menu.open { display: block; }
#mobile-menu .wrap { padding: 10px 24px 18px; display: flex; flex-direction: column; }
#mobile-menu a {
  padding: 12px 4px; text-decoration: none; color: var(--text); font-weight: 600;
  border-bottom: 1px solid var(--border); font-size: 15px;
}
#mobile-menu a:last-child { border-bottom: none; }
@media (min-width: 1020px) { #mobile-menu { display: none !important; } }

/* ---- Hero ---- */
.hero { padding: 52px 0 40px; }
.kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent-strong);
  background: var(--accent-soft); border: 1px solid var(--accent-soft-border);
  padding: 5px 10px; border-radius: var(--radius-pill); margin-bottom: 18px;
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

h1.headline { font-size: clamp(30px, 5.2vw, 50px); max-width: 17ch; margin-bottom: 16px; overflow-wrap: break-word; }
.dek { font-size: 18px; color: var(--text-muted); max-width: 62ch; margin-bottom: 20px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; color: var(--text-faint); font-family: var(--font-mono); }
.byline strong { color: var(--text-muted); font-weight: 600; }

/* ---- Stat cards (mobile overflow fixed: minmax(0,1fr) + clamp) ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stat-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
  min-width: 0;
}
.stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); }
.stat-value {
  font-family: var(--font-mono); font-weight: 600;
  font-size: clamp(15px, 4.2vw, 21px);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.stat-source { font-size: 12px; color: var(--text-faint); margin-top: auto; }

/* ---- Status legend (five-state) ---- */
.legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin-top: 18px;
}
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-muted); font-weight: 600; }
.legend-item .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* ---- Badges: five-state taxonomy + warn ---- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 6px; border: 1px solid transparent;
  white-space: nowrap; width: fit-content;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
/* Long badge labels inside a stat card (e.g. "Stated target, not a price")
   can exceed the card's mobile column width; wrap instead of clipping.
   Other .badge instances (compare-cards, fact-rows, callouts, timeline) keep
   the default nowrap/fit-content sizing - this is scoped to stat cards only. */
.stat-card .badge { white-space: normal; overflow-wrap: anywhere; width: auto; }
/* Same wrap for a long badge sitting directly in a data-card (lease estimate
   card): "Third party estimate, not confirmed by Tesla" exceeds the card's
   mobile width if kept on one line. */
.data-card > .badge { white-space: normal; overflow-wrap: anywhere; width: auto; }
.badge-confirmed   { color: var(--st-confirmed-text);   background: var(--st-confirmed-bg);   border-color: var(--st-confirmed-border); }
.badge-confirmed .dot   { background: var(--st-confirmed-dot); }
.badge-reported    { color: var(--st-reported-text);    background: var(--st-reported-bg);    border-color: var(--st-reported-border); }
.badge-reported .dot    { background: var(--st-reported-dot); }
.badge-unconfirmed { color: var(--st-unconfirmed-text); background: var(--st-unconfirmed-bg); border-color: var(--st-unconfirmed-border); }
.badge-unconfirmed .dot { background: var(--st-unconfirmed-dot); }
.badge-missed      { color: var(--st-missed-text);      background: var(--st-missed-bg);      border-color: var(--st-missed-border); }
.badge-missed .dot      { background: var(--st-missed-dot); }
.badge-target      { color: var(--st-target-text);      background: var(--st-target-bg);      border-color: var(--st-target-border); }
.badge-target .dot      { background: var(--st-target-dot); }
.badge-warn        { color: var(--st-warn-text);        background: var(--st-warn-bg);        border-color: var(--st-warn-border); }
.badge-warn .dot        { background: var(--st-warn-dot); }

/* ---- Section shell ---- */
section.page { padding: 64px 0; border-top: 1px solid var(--border); scroll-margin-top: 78px; }
section.page:first-of-type { border-top: none; }
.section-head {
  max-width: 68ch; margin-bottom: 30px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.section-head-text { max-width: 68ch; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block;
}
h1.section-title, h2.section-title { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 12px; }
.section-dek { color: var(--text-muted); font-size: 16px; }
.panel-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  white-space: nowrap; padding-bottom: 4px;
}

/* ---- Comparison table (desktop) + stacked cards (mobile) ---- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; background: var(--bg-card); font-size: 14.5px; }
table.compare th, table.compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.compare thead th {
  font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-faint); background: var(--bg-subtle); font-weight: 600; border-bottom: 1px solid var(--border-strong);
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr.is-optimus { background: var(--accent-soft); }
table.compare td.robot-name { font-weight: 700; font-family: var(--font-head); }
table.compare td .maker { display: block; font-weight: 400; font-family: var(--font-body); color: var(--text-faint); font-size: 12.5px; margin-top: 2px; }
.avail-yes { color: var(--ok); font-weight: 700; }
.avail-no { color: var(--text-faint); font-weight: 700; }
.price-cell { font-family: var(--font-mono); font-size: 13.5px; }

.compare-cards { display: none; flex-direction: column; gap: 12px; }
.compare-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card);
  padding: 16px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm);
}
.compare-card.is-optimus { border-color: var(--accent-soft-border); background: var(--accent-soft); }
.compare-card .cc-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.compare-card .cc-maker { color: var(--text-faint); font-size: 12.5px; margin-top: 2px; }
.compare-card .cc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; padding-top: 8px; border-top: 1px solid var(--border); }
.compare-card .cc-row .cc-label { color: var(--text-faint); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; flex: none; }
.compare-card .cc-row .cc-val { text-align: right; }

@media (max-width: 719px) {
  .table-scroll.compare-scroll { display: none; }
  .compare-cards { display: flex; }
}

.table-footnote { font-size: 13px; color: var(--text-faint); margin-top: 14px; max-width: 76ch; }

/* ---- Preview / section-jump cards ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.jump-card {
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
  text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.jump-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.jump-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
}
.jump-icon svg { width: 19px; height: 19px; }
.jump-card h3 { font-size: 17px; }
.jump-card p { color: var(--text-muted); font-size: 14px; }
.jump-card .goto { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--accent); display: flex; align-items: center; gap: 5px; }

/* ---- Callout boxes ---- */
.callout {
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.callout svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.callout p { font-size: 14.5px; }
.callout strong { display: block; margin-bottom: 4px; font-size: 15px; font-family: var(--font-head); }
.callout-warn { background: var(--warn-bg); border-color: var(--warn-border); color: var(--warn); }
.callout-danger { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }
.callout-neutral { background: var(--bg-subtle); border-color: var(--border); color: var(--text); }

/* ---- Fact rows (price/specs/lease sections) ---- */
.fact-list { display: flex; flex-direction: column; gap: 14px; }
.fact-row { display: flex; gap: 16px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); }
.fact-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); min-width: 92px; padding-top: 2px; flex: none; }
@media (max-width: 480px) {
  .fact-row { flex-wrap: wrap; }
  .fact-date { min-width: 0; }
}
.fact-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fact-body p { font-size: 15px; overflow-wrap: anywhere; word-break: break-word; }
.fact-body cite { font-style: normal; font-size: 12.5px; color: var(--text-faint); font-family: var(--font-mono); overflow-wrap: anywhere; word-break: break-word; display: block; }
.fact-body cite a { color: var(--text-faint); text-decoration: underline; text-decoration-color: var(--border-strong); }
.fact-body cite a:hover { color: var(--accent); }

/* ---- Price hero readout ---- */
.price-readout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 860px) { .price-readout { grid-template-columns: 1fr; } }
.price-hero-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.price-hero-card .price-big { font-family: var(--font-mono); font-size: clamp(28px, 6vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.price-hero-card .price-target { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--text); overflow-wrap: anywhere; }
.price-line { padding-top: 14px; border-top: 1px solid var(--border); }
.price-line:first-of-type { padding-top: 0; border-top: none; }
.price-line-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.price-line-note { font-size: 13px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* ---- Specs table + two-card split + discrepancy box ---- */
.two-col { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.3fr 0.9fr; align-items: start; } }
.two-col-even { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .two-col-even { grid-template-columns: 1fr 1fr; } }

.data-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.data-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.data-card-head h2, .data-card-head h3 { font-size: 15.5px; }

.discrepancy-box {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-md);
  background: var(--st-unconfirmed-bg); border: 1px solid var(--st-unconfirmed-border);
}
.discrepancy-box strong { color: var(--st-unconfirmed-text); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; display: block; margin-bottom: 6px; }
.discrepancy-box p { font-size: 13px; color: var(--text); line-height: 1.55; }

.diagram-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
@media (max-width: 480px) { .diagram-row { grid-template-columns: 1fr; } }
.diagram-card { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); padding: 16px 16px 12px; text-align: center; }
.diagram-card .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin-top: 10px; }
.diagram-card .dof { font-family: var(--font-mono); font-weight: 800; font-size: 22px; color: var(--accent); margin-top: 2px; }
.diagram-card svg { margin: 0 auto; }

/* specs table: scroll affordance instead of stacked cards */
.table-scroll-affordance { position: relative; }
.table-scroll-affordance .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroll-hint {
  display: none;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  text-align: right; margin-top: 6px;
}
@media (max-width: 719px) {
  .scroll-hint { display: block; }
  .table-scroll-affordance { position: relative; }
  .table-scroll-affordance::after {
    content: "";
    position: absolute; top: 0; right: 0; bottom: 22px; width: 28px;
    background: linear-gradient(to right, transparent, var(--bg) 92%);
    pointer-events: none;
  }
}
table.specs { width: 100%; border-collapse: collapse; background: var(--bg-card); min-width: 520px; }
table.specs th, table.specs td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14.5px; }
table.specs thead th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); background: var(--bg-subtle); }
table.specs td:first-child { color: var(--text-muted); font-weight: 600; width: 34%; }
table.specs tbody tr:last-child td { border-bottom: none; }

/* ---- Timeline ---- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border-strong); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -26px; top: 4px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--accent);
}
.tl-date { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint); margin-bottom: 6px; }
.tl-title { font-family: var(--font-head); font-weight: 600; font-size: 16.5px; margin-bottom: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tl-body { font-size: 14.5px; color: var(--text-muted); max-width: 70ch; }
.tl-source { font-size: 12px; color: var(--text-faint); font-family: var(--font-mono); margin-top: 6px; }
.tl-source a { color: var(--text-faint); text-decoration: underline; text-decoration-color: var(--border-strong); }
.tl-source a:hover { color: var(--accent); }

.honesty-list { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.honesty-row {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md);
}
.honesty-row p { font-size: 13.5px; color: var(--text-muted); }

.lead-note {
  font-size: 13.5px; color: var(--text-muted); background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px; margin-top: 20px;
}
.lead-note strong { color: var(--text); }

/* ---- Quick answer box ---- */
.qa-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
.qa-box h2, .qa-box h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.qa-box h2 svg, .qa-box h3 svg { width: 17px; height: 17px; color: var(--accent-strong); }
.qa-item { padding: 12px 0; border-top: 1px solid var(--border); }
.qa-item:first-of-type { border-top: none; padding-top: 0; }
.qa-q { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.qa-a { font-size: 14px; color: var(--text-muted); }

/* ---- Estimate pills (lease) ---- */
.estimate-pill-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.estimate-pill {
  flex: 1 1 200px; background: var(--bg-subtle); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md); padding: 14px 16px; min-width: 0;
}
.estimate-pill .estimate-value { font-family: var(--font-mono); font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.estimate-pill .estimate-caption { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* ---- How to spot list ---- */
.spot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.spot-list li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px;
}
.spot-list svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--danger); }

/* ---- Newsletter ---- */
.newsletter {
  background: var(--bg-inset); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px; display: grid; gap: 22px;
}
@media (min-width: 860px) { .newsletter { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.newsletter h2 { font-size: 24px; margin-bottom: 10px; }
.newsletter p.lede { color: var(--text-muted); font-size: 15px; }
.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row input[type="email"] {
  flex: 1; min-width: 180px; padding: 12px 14px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  font-size: 14.5px; font-family: var(--font-body);
}
.nl-row input[type="email"]::placeholder { color: var(--text-faint); }
.nl-fine { font-size: 12.5px; color: var(--text-faint); }
.nl-status { font-size: 13px; min-height: 1.4em; }
.nl-status[data-state="ok"] { color: var(--ok); }
.nl-status[data-state="error"] { color: var(--danger); }

/* ---- Footer ---- */
footer.site { border-top: 1px solid var(--border); background: var(--bg-subtle); padding: 48px 0 28px; margin-top: 20px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); margin-bottom: 34px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 10px; max-width: 40ch; }
.footer-col h3, .footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--text-muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

.footer-disclaimer {
  border: 1px solid var(--st-warn-border); background: var(--st-warn-bg); color: var(--st-warn-text);
  border-radius: var(--radius-md); padding: 16px 18px; font-size: 13.5px; font-weight: 600;
  display: flex; gap: 10px; margin-bottom: 22px;
}
.footer-disclaimer svg { flex: none; width: 17px; height: 17px; margin-top: 1px; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--text-faint); padding-top: 20px; border-top: 1px solid var(--border);
}
.footer-bottom p { max-width: 70ch; }

/* ---- misc ---- */
.stack { display: flex; flex-direction: column; gap: 18px; }
blockquote.pull {
  margin: 0; padding: 16px 18px; border-left: 3px solid var(--accent);
  background: var(--bg-card); border-radius: 0 10px 10px 0; font-size: 15.5px; font-style: italic; color: var(--text);
}
blockquote.pull footer { margin-top: 8px; font-style: normal; font-size: 13px; color: var(--text-faint); font-family: var(--font-mono); }
blockquote.pull a { color: var(--text-faint); text-decoration: underline; }

/* Never allow any element to force horizontal scroll on the page itself */
.wrap, section.page, .hero, footer.site, header.site { max-width: 100vw; }
