/* ==================================================================
   Will It Local? — design system.
   Identity: "the editorial test lab" — warm paper, ink, graph-paper
   grid, big Fraunces display type, mono numerals, rubber-stamp
   verdicts. Neutral by default; color is spent only on the verdict.
   ================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "JBMono";
  src: url("/fonts/jbmono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "JBMono";
  src: url("/fonts/jbmono-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f6f3ee;
  --paper-2: #eee9e0;
  --card: #fffdf9;
  --ink: #1c1a17;
  --ink-2: #57524a;
  --ink-3: #6e685c;
  --line: #e0d9cc;
  --line-2: #cfc6b5;
  --own: #35684d;
  --own-soft: #e3ede6;
  --rent: #44618e;
  --rent-soft: #e4e9f1;
  --hybrid: #a8742f;
  --hybrid-ink: #8a5c20; /* small-text ochre: ≥4.5:1 on card, paper and hybrid-soft */
  --hybrid-soft: #f2e9da;
  --accent: #bf5a2e;
  --accent-ink: #a34a22;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", sans-serif;
  --mono: "JBMono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --shadow: 0 1px 2px rgba(74, 52, 30, 0.05), 0 10px 30px rgba(74, 52, 30, 0.07);
  --shadow-lg: 0 2px 6px rgba(74, 52, 30, 0.07), 0 26px 62px rgba(74, 52, 30, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 99;
  background: var(--ink); color: var(--paper); padding: 8px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* Branded keyboard-focus ring — same terracotta the form fields already use. */
a:focus-visible, button:focus-visible, [tabindex]:focus-visible,
input[type="range"]:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- specimen tags: the uppercase labels used everywhere ---- */
.tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ================= header ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.wordmark {
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  text-decoration: none; letter-spacing: 0.01em; white-space: nowrap;
}
.wordmark-local { color: var(--accent-ink); font-style: normal; }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  text-decoration: none; font-size: 0.92rem; color: var(--ink-2);
  border-bottom: 2px solid transparent; padding: 4px 0;
  transition: color 0.2s, border-color 0.2s;
}
.site-nav a:hover { color: var(--ink); border-color: var(--accent); }
/* Below 720px the nav wraps under the wordmark as a 2×2 specimen-label
   strip — no hamburger, no JS, so it works on every server-rendered page
   too. The header goes static so it doesn't tax small viewports. */
@media (max-width: 720px) {
  .site-header { position: static; }
  .header-row { flex-wrap: wrap; height: auto; padding-top: 12px; }
  .site-nav { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .site-nav a {
    font-family: var(--sans); font-size: 11px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
    line-height: 20px; padding: 12px 0;
  }
}

/* ================= hero ================= */
.hero { padding: 84px 0 60px; overflow: hidden; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.hero-eyebrow::before { content: ""; width: 42px; height: 1px; background: var(--ink-3); }
.hero h1 {
  font-size: clamp(3rem, 9.5vw, 6.4rem);
  margin: 0 0 12px;
  max-width: 13ch;
}
.hero h1 .q { color: var(--accent-ink); }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink-2); max-width: 56ch; margin: 0 0 34px; }
.hero-sub strong { color: var(--ink); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* hero dial — the instrument */
.dial-wrap { position: relative; display: grid; place-items: center; }
.dial-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 26px 20px; width: min(400px, 100%);
  rotate: 0.6deg;
}
.dial-card .tag { display: block; text-align: center; margin-bottom: 4px; }
.dial-svg { width: 100%; height: auto; display: block; }
.dial-readout {
  display: flex; justify-content: space-between; font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-3);
  padding: 6px 6px 0; text-transform: uppercase;
}
.dial-readout .r-own { color: var(--own); }
.dial-readout .r-hybrid { color: var(--hybrid-ink); }
.dial-readout .r-rent { color: var(--rent); }

@keyframes needle-idle {
  0% { transform: rotate(-64deg); }
  30% { transform: rotate(38deg); }
  55% { transform: rotate(-12deg); }
  80% { transform: rotate(52deg); }
  100% { transform: rotate(-64deg); }
}
.dial-needle { transform-origin: 130px 128px; animation: needle-idle 7s var(--ease-out) infinite; }

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 10px;
  border: 1.5px solid var(--ink);
  background: transparent; color: var(--ink);
  font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s, background 0.18s, color 0.18s;
}
.btn:hover { transform: translateY(-1.5px); box-shadow: 0 6px 18px rgba(28, 26, 23, 0.14); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-accent:hover { background: #8f3e1c; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-quiet { border-color: var(--line-2); color: var(--ink-2); font-size: 0.92rem; padding: 10px 18px; }

/* ================= honest strip ================= */
.strip { padding: 54px 0; border-top: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 26px; }
@media (max-width: 860px) { .strip-grid { grid-template-columns: 1fr; } }
.hcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.hcard h3 { margin: 10px 0 8px; font-size: 1.22rem; }
.hcard p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }
.hcard .tag { color: var(--accent-ink); }

/* ================= section scaffolding ================= */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 10px 0 10px; }
.section-head p { color: var(--ink-2); margin: 0; }

/* ================= the lab (wizard) ================= */
.lab {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.lab-steps {
  display: flex; gap: 0; border-bottom: 1px solid var(--line);
  background: var(--paper-2); overflow-x: auto;
}
.lab-step {
  flex: 1; min-width: 150px; padding: 14px 18px; border: 0; background: transparent;
  text-align: left; cursor: pointer; border-right: 1px solid var(--line);
  transition: background 0.2s;
}
.lab-step:last-child { border-right: 0; }
.lab-step .tag { display: block; transition: color 0.2s; }
.lab-step .step-name { font-weight: 600; font-size: 0.98rem; color: var(--ink-2); }
.lab-step .step-val {
  display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px;
}
.lab-step[aria-selected="true"] { background: var(--card); box-shadow: inset 0 -3px 0 var(--accent); }
.lab-step[aria-selected="true"] .tag { color: var(--accent-ink); }
.lab-step[aria-selected="true"] .step-name { color: var(--ink); }
.lab-step.done .tag::after { content: " ✓"; color: var(--own); letter-spacing: 0; }
/* On small phones the rail becomes a 2×2 grid so all four steps stay visible. */
@media (max-width: 560px) {
  .lab-steps { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .lab-step { min-width: 0; min-height: 44px; padding: 12px 14px; }
  .lab-step:nth-child(2n) { border-right: 0; }
  .lab-step:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .lab-step .step-val { max-width: none; }
}

.lab-body { padding: 30px; min-height: 380px; position: relative; }
.pane { display: none; }
.pane.active { display: block; animation: pane-in 0.45s var(--ease-out); }
@keyframes pane-in {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}
.pane h3 { margin: 0 0 4px; font-size: 1.5rem; }
.pane .pane-sub { color: var(--ink-2); margin: 0 0 22px; font-size: 0.97rem; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .choice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .choice-grid { grid-template-columns: 1fr; } }

.choice {
  position: relative; text-align: left; background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 14px; padding: 16px;
  cursor: pointer; transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}
.choice:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.choice.selected { border-color: var(--ink); background: var(--card); box-shadow: var(--shadow); }
.choice.selected::after {
  content: "✓"; position: absolute; top: 10px; right: 12px;
  font-family: var(--sans); font-weight: 700; color: var(--own);
}
.choice .c-name { font-weight: 650; display: block; margin-bottom: 2px; }
.choice .c-meta { font-family: var(--sans); font-size: 11px; color: var(--ink-3); display: block; letter-spacing: 0.02em; }
.choice .c-blurb { font-size: 0.86rem; color: var(--ink-2); display: block; margin-top: 6px; line-height: 1.45; }
.choice .c-price { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--ink-2); }
.choice.selected .c-price { right: 32px; }

.custom-fields {
  margin-top: 18px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 12px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: var(--paper);
}
@media (max-width: 720px) { .custom-fields { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.field input, .field select {
  width: 100%; padding: 9px 11px; border: 1.5px solid var(--line-2); border-radius: 8px;
  background: var(--card); font-family: var(--mono); font-size: 0.95rem; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input.invalid { border-color: var(--accent-ink); }
.field-error { grid-column: 1 / -1; margin: 0; font-family: var(--sans); font-size: 12px; color: var(--accent-ink); }

.pane-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; gap: 12px; }
.pane-nav .spacer { flex: 1; }

/* data-loading placeholder in the choice grids (hidden when JS is off) */
.grid-loading { grid-column: 1 / -1; margin: 0; font-family: var(--sans); font-size: 12px; color: var(--ink-3); padding: 18px; border: 1px dashed var(--line-2); border-radius: 12px; }
html:not(.js) .grid-loading { display: none; }

/* the lab without JavaScript / after a failed data load */
.lab-noscript { margin: 0; padding: 18px 30px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-size: 0.95rem; color: var(--ink-2); }
.lab-error { padding: 60px 30px; text-align: center; }
.lab-error .tag { color: var(--accent-ink); display: block; margin-bottom: 8px; }
.lab-error p { max-width: 44ch; margin: 0 auto 20px; color: var(--ink-2); }

/* one-line jargon decoder under the lab */
.lab-glossary { margin-top: 14px; }
.lab-glossary summary { cursor: pointer; display: inline-block; }
.lab-glossary summary::marker { color: var(--accent-ink); }
.lab-glossary .fine { font-size: 0.85rem; color: var(--ink-3); margin: 8px 0 0; max-width: 90ch; }

/* the big red-ish button */
.run-btn {
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  padding: 18px 38px; border-radius: 12px; letter-spacing: 0.02em;
}

/* ================= running animation ================= */
.running { text-align: center; padding: 40px 0 30px; }
.running .dial-svg { max-width: 280px; margin: 0 auto; }
.running .dial-needle { animation: needle-run 1.7s var(--ease-out) forwards; }
@keyframes needle-run {
  0% { transform: rotate(-64deg); }
  25% { transform: rotate(50deg); }
  45% { transform: rotate(-30deg); }
  70% { transform: rotate(58deg); }
  100% { transform: rotate(0deg); }
}
.run-lines { font-family: var(--sans); font-size: 13px; color: var(--ink-2); min-height: 66px; margin-top: 14px; }
.run-lines div { opacity: 0; animation: line-in 0.3s forwards; }
.run-lines div:nth-child(2) { animation-delay: 0.55s; }
.run-lines div:nth-child(3) { animation-delay: 1.1s; }
@keyframes line-in { to { opacity: 1; } }

/* ================= verdict ================= */
.verdict-zone { margin-top: 34px; }
.verdict-card {
  position: relative; background: var(--card); border: 1px solid var(--line-2);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 30px; align-items: center;
  overflow: hidden;
}
@media (max-width: 820px) { .verdict-card { grid-template-columns: 1fr; padding: 28px; } }
.verdict-card::before {
  content: ""; position: absolute; inset: 10px; border: 1px solid var(--line);
  border-radius: 14px; pointer-events: none;
}
.verdict-kicker { margin-bottom: 6px; }
.verdict-reason { font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.5; margin: 10px 0 20px; max-width: 44ch; }
.verdict-conf { font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

.stamp-box { display: grid; place-items: center; min-height: 190px; }
.stamp {
  font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 4.6vw, 3.3rem);
  letter-spacing: 0.02em; padding: 18px 34px; border: 1.5px solid currentColor;
  border-radius: 18px; text-transform: uppercase; line-height: 1;
  box-shadow: var(--shadow); opacity: 0;
}
.stamp.show { animation: stamp-in 0.5s var(--ease-out) 0.15s forwards; }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(0.92) translateY(8px); }
  60% { opacity: 1; transform: scale(1.01) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.stamp-own { color: var(--own); background: var(--own-soft); }
.stamp-rent { color: var(--rent); background: var(--rent-soft); }
.stamp-hybrid { color: var(--hybrid-ink); background: var(--hybrid-soft); }

/* stat row under verdict */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
@media (max-width: 820px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat .tag { display: block; margin-bottom: 6px; }
.stat .stat-num { font-family: var(--mono); font-weight: 700; font-size: clamp(1.35rem, 3vw, 1.7rem); letter-spacing: -0.02em; }
.stat .stat-sub { font-size: 0.8rem; color: var(--ink-3); font-family: var(--mono); }

/* ================= chart ================= */
.chart-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-top: 20px;
}
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-legend { display: flex; gap: 22px; font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; flex-wrap: wrap; }
.chart-legend .k { display: inline-block; width: 20px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 7px; }
.k-local { background: var(--ink); }
.k-cloud { background: var(--accent); }
.chart-note { font-family: var(--sans); font-size: 11.5px; color: var(--ink-3); margin-top: 10px; }

path.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw-line 1.4s var(--ease-out) forwards; }
path.draw.delay { animation-delay: 0.25s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.cross-dot { opacity: 0; animation: dot-in 0.4s 1.5s forwards; }
@keyframes dot-in { to { opacity: 1; } }
.cross-ring { transform-origin: center; transform-box: fill-box; animation: ring-pulse 2.2s 1.8s ease-out infinite; opacity: 0; }
@keyframes ring-pulse {
  0% { opacity: 0.7; transform: scale(0.4); }
  70% { opacity: 0; transform: scale(2.1); }
  100% { opacity: 0; transform: scale(2.1); }
}

/* ================= sliders / sensitivity ================= */
.twist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin-top: 18px; }
@media (max-width: 720px) { .twist-grid { grid-template-columns: 1fr; } }
.twist { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.twist-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.twist-val { font-family: var(--mono); font-weight: 700; font-size: 0.95rem; }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; cursor: grab; }
input[type="range"]:active { cursor: grabbing; }

/* ================= sovereignty ================= */
.sov-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-top: 20px; }
.sov-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.sov-rows { margin-top: 14px; display: grid; gap: 12px; }
.sov-row { display: grid; grid-template-columns: 150px 1fr 40px; gap: 14px; align-items: center; font-size: 0.92rem; }
@media (max-width: 560px) { .sov-row { grid-template-columns: 110px 1fr 36px; } }
.sov-bar { height: 8px; background: var(--paper-2); border-radius: 6px; overflow: hidden; }
.sov-fill { height: 100%; width: 0; background: var(--ink); border-radius: 6px; transition: width 1s var(--ease-out) 0.2s; }
.sov-num { font-family: var(--mono); font-weight: 700; font-size: 0.9rem; text-align: right; }
.sov-note { margin: 14px 0 0; font-size: 0.92rem; color: var(--ink-2); font-style: italic; }

/* ================= act row (share / links / plan) ================= */
.act-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; align-items: center; }
.share-out { font-family: var(--sans); font-size: 12.5px; color: var(--own); }

.reco-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 720px) { .reco-grid { grid-template-columns: 1fr; } }
.reco {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; text-decoration: none; box-shadow: var(--shadow);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.reco:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.reco .r-name { font-weight: 650; }
.reco .r-note { display: block; color: var(--ink-2); font-size: 0.9rem; margin-top: 3px; }
.reco .r-go { float: right; color: var(--accent-ink); font-weight: 700; }
.reco-disclose { font-size: 0.82rem; color: var(--ink-3); margin-top: 12px; }

/* ================= benchmarks ================= */
.bench-table-wrap { overflow-x: auto; }
.bench-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
@media (max-width: 720px) { .bench-form { grid-template-columns: 1fr 1fr; } }
.bench-msg { font-family: var(--sans); font-size: 12.5px; margin-top: 10px; min-height: 20px; }
.bench-msg.ok { color: var(--own); }
.bench-msg.err { color: var(--accent-ink); }

/* ================= plan pitch ================= */
.plan-pitch {
  background: var(--ink); color: var(--paper); border-radius: 20px; padding: 44px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 820px) { .plan-pitch { grid-template-columns: 1fr; padding: 30px; } }
.plan-pitch h2 { margin: 8px 0 10px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.plan-pitch p { color: #cfc9bf; margin: 0; max-width: 52ch; }
.plan-pitch .tag { color: #a89f8f; }
.plan-price { font-family: var(--mono); font-weight: 700; font-size: 2rem; text-align: center; }
.plan-price small { display: block; font-family: var(--sans); font-weight: 600; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #a89f8f; }

/* ================= tables (shared with SSR pages) ================= */
.datatable { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-size: 0.95rem; }
.datatable th, .datatable td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.datatable thead th { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); background: var(--paper-2); }
.datatable tr:last-child th, .datatable tr:last-child td { border-bottom: 0; }
.datatable .num { font-family: var(--mono); text-align: right; white-space: nowrap; }
.datatable .strong { font-weight: 700; }
.datatable .dim { color: var(--ink-3); font-weight: 400; font-size: 0.85em; }
.table-scroll { overflow-x: auto; }
.matrix a { text-decoration: none; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.cell-own { color: var(--own); }
.cell-rent { color: var(--rent); }
.cell-hybrid { color: var(--hybrid-ink); }

/* ================= badges & verdict strip (SSR) ================= */
.badge { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 0.75em; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 999px; vertical-align: middle; }
.badge-own { color: var(--own); background: var(--own-soft); border: 1.5px solid var(--own); }
.badge-rent { color: var(--rent); background: var(--rent-soft); border: 1.5px solid var(--rent); }
.badge-hybrid { color: var(--hybrid-ink); background: var(--hybrid-soft); border: 1.5px solid var(--hybrid); }

.verdict-strip { border-radius: var(--radius); padding: 22px 26px; margin: 22px 0; border: 1.5px solid; box-shadow: var(--shadow); }
.verdict-strip-own { color: var(--own); background: var(--own-soft); }
.verdict-strip-rent { color: var(--rent); background: var(--rent-soft); }
.verdict-strip-hybrid { color: var(--hybrid); background: var(--hybrid-soft); }
.verdict-strip-label { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.verdict-strip-hybrid .verdict-strip-label { color: var(--hybrid-ink); }
.verdict-strip-word { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.verdict-strip-reason { color: var(--ink); margin: 8px 0 0; }

/* ================= prose pages (articles, methodology, SSR) ================= */
.page-prose { padding: 56px 24px 80px; max-width: 780px; }
.page-prose h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 8px 0 14px; }
.page-prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.page-prose h3 { font-size: 1.2rem; margin: 26px 0 8px; }
.page-prose .lede { font-size: 1.15rem; color: var(--ink-2); }
.page-prose .crumbs { font-family: var(--sans); font-weight: 600; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.page-prose .crumbs a { color: inherit; }
.page-prose .fine { font-size: 0.85rem; color: var(--ink-3); }
.page-prose blockquote { border-left: 3px solid var(--accent); margin: 20px 0; padding: 4px 0 4px 20px; color: var(--ink-2); font-style: italic; }
.page-prose code { font-family: var(--mono); font-size: 0.86em; background: var(--paper-2); padding: 2px 6px; border-radius: 5px; }
.related-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 720px) { .related-cols { grid-template-columns: 1fr; } }
.related-cols ul { padding-left: 18px; margin: 6px 0; }
.related-cols li { margin: 6px 0; font-size: 0.92rem; }
.statelinks { line-height: 2; }

/* article cards on home + index */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .article-grid { grid-template-columns: 1fr; } }
.article-card {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; text-decoration: none; box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.article-card:hover { transform: translateY(-4px) rotate(-0.3deg); box-shadow: var(--shadow-lg); }
.article-card h3 { margin: 10px 0 8px; font-size: 1.18rem; }
.article-card p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.article-card .read { display: inline-block; margin-top: 14px; font-family: var(--sans); font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); }

/* ================= footer ================= */
.site-footer { border-top: 1px solid var(--line-2); background: var(--paper-2); padding: 44px 0 54px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px 60px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-mark { font-family: var(--serif); font-weight: 700; margin: 0 0 4px; }
.footer-tag { color: var(--ink-2); margin: 0; font-size: 0.92rem; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.92rem; }
.footer-nav a:hover { color: var(--ink); }
.footer-fine { grid-column: 1 / -1; color: var(--ink-3); font-size: 0.82rem; margin: 10px 0 0; border-top: 1px solid var(--line); padding-top: 18px; }

/* ================= scroll reveal =================
   Hiding is gated on the `js` class (set by an inline <head> script) so
   content is never invisible when JS is off or the module fails to load. */
.reveal { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* count-up numbers get a soft settle */
.settled { animation: settle 0.4s var(--ease-out); }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }

/* ================= print (build plan) ================= */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .datatable { box-shadow: none; }
  .page-prose { padding: 0; max-width: none; }
}

/* ================= reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  .stamp { opacity: 1; }
}
