:root {
  --ink: #111f29;
  --muted: #64717a;
  --paper: #edf2f1;
  --surface: #f8fbfa;
  --line: #cbd5d3;
  --signal: #ff5b35;
  --signal-dark: #c93414;
  --teal: #0f6f69;
  --teal-soft: #cfe5df;
  --white: #ffffff;
  --display: "Space Grotesk", sans-serif;
  --body: "Manrope", sans-serif;
  --mono: "DM Mono", monospace;
  --shadow: 0 22px 60px rgba(24, 49, 57, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17,31,41,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,31,41,.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--body);
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -50px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

.site-header, main, footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 14px/1 var(--display);
  letter-spacing: .08em;
  text-decoration: none;
}
.brand-mark {
  width: 26px;
  height: 18px;
  display: flex;
  align-items: end;
  gap: 3px;
}
.brand-mark i { width: 6px; display: block; background: var(--signal); }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 18px; }
nav { display: flex; gap: 28px; }
nav a {
  font-size: 13px;
  text-decoration: none;
  color: var(--muted);
}
nav a:hover { color: var(--ink); }
.status {
  justify-self: end;
  font: 400 11px/1 var(--mono);
  color: var(--muted);
}
.status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #25a56a;
  box-shadow: 0 0 0 4px rgba(37,165,106,.12);
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 70px;
  align-items: center;
  padding: 75px 0 85px;
}
.eyebrow {
  margin: 0 0 20px;
  color: var(--teal);
  font: 500 11px/1.3 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: balance; }
h1 {
  margin: 0;
  max-width: 720px;
  font: 600 clamp(58px, 8vw, 108px)/.86 var(--display);
  letter-spacing: -.07em;
}
.lede {
  max-width: 610px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.button.primary { color: white; background: var(--ink); }
.button.primary:hover { background: var(--teal); }
.button.quiet { border-color: transparent; }
.button.quiet:hover { border-color: var(--line); }

.meter-panel {
  position: relative;
  min-height: 390px;
  padding: 24px;
  overflow: hidden;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
}
.meter-panel::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -110px;
  width: 270px;
  height: 270px;
  border: 40px solid rgba(255,91,53,.15);
  border-radius: 50%;
}
.meter-head, .results-head {
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.58);
  font: 400 11px/1 var(--mono);
  text-transform: uppercase;
}
.meter-scale { position: relative; z-index: 1; margin-top: 34px; }
.meter-row { margin-bottom: 25px; }
.meter-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font: 400 12px/1 var(--mono);
}
.meter-track { height: 12px; background: rgba(255,255,255,.08); }
.meter-fill {
  width: 0;
  height: 100%;
  background: var(--teal-soft);
  transform-origin: left;
  animation: meterIn .7s ease-out forwards;
}
.meter-row:first-child .meter-fill { background: var(--signal); }
.meter-note {
  position: absolute;
  left: 24px;
  bottom: 22px;
  z-index: 1;
  max-width: 300px;
  margin: 0;
  color: rgba(255,255,255,.55);
  font-size: 12px;
}
@keyframes meterIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.calculator-section, .models-section, .method-section, .articles-section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: end;
  margin-bottom: 42px;
}
.section-heading h2, .method-lead h2, .newsletter h2 {
  margin: 0;
  font: 600 clamp(36px, 4.5vw, 62px)/.96 var(--display);
  letter-spacing: -.045em;
}
.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.calculator-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.controls { padding: 30px; border-right: 1px solid var(--line); }
.controls label { display: block; margin-bottom: 34px; }
.controls label > span:first-child {
  display: block;
  color: var(--muted);
  font: 400 11px/1 var(--mono);
  text-transform: uppercase;
}
.controls output {
  display: block;
  margin: 10px 0 18px;
  font: 600 26px/1 var(--display);
}
input[type="range"] {
  width: 100%;
  accent-color: var(--signal);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 400 10px/1 var(--mono);
}
.scope-field { margin-bottom: 34px; }
.scope-field > span {
  display: block;
  color: var(--muted);
  font: 400 11px/1 var(--mono);
  text-transform: uppercase;
}
.scope-field strong {
  display: block;
  margin: 10px 0 7px;
  font: 600 20px/1.2 var(--display);
}
.scope-field small { color: var(--muted); }
.control-note { display: flex; gap: 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.control-note span {
  flex: 0 0 20px;
  height: 20px;
  border: 1px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  text-align: center;
  font: 500 11px/19px var(--mono);
}
.control-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.results { padding: 30px; color: white; background: var(--ink); }
.cost-results { margin-top: 8px; }
.cost-row {
  display: grid;
  grid-template-columns: 34px minmax(160px, 1fr) minmax(120px, 2fr) 100px;
  gap: 14px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.cost-rank { color: rgba(255,255,255,.35); font: 400 11px/1 var(--mono); }
.cost-name strong { display: block; font-size: 13px; }
.cost-name small { color: rgba(255,255,255,.42); font: 400 10px/1 var(--mono); }
.cost-bar { height: 5px; background: rgba(255,255,255,.08); }
.cost-bar i { display: block; height: 100%; background: var(--teal-soft); }
.cost-row:first-child .cost-bar i { background: var(--signal); }
.cost-value { text-align: right; font: 500 17px/1 var(--mono); }
.loading { color: rgba(255,255,255,.5); font-family: var(--mono); }

.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.filter-group { display: flex; gap: 8px; }
.filter {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.filter:hover, .filter.active { color: white; background: var(--ink); border-color: var(--ink); }
#modelCount { color: var(--muted); font: 400 11px/1 var(--mono); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 810px; }
th {
  padding: 14px 18px;
  color: var(--muted);
  background: #e5ecea;
  text-align: left;
  font: 400 10px/1 var(--mono);
  text-transform: uppercase;
}
td { padding: 20px 18px; border-top: 1px solid var(--line); font-size: 13px; }
td strong { display: block; }
td small { color: var(--muted); font: 400 10px/1 var(--mono); }
.price { font-family: var(--mono); }
.source-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.source-link:hover { text-decoration: underline; }
.table-footnote { margin: 14px 0 0; color: var(--muted); font-size: 11px; }

.method-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.method-grid article { padding: 5px 24px 24px; border-left: 1px solid var(--line); }
.method-grid span { color: var(--signal); font: 500 11px/1 var(--mono); }
.method-grid h3 { margin: 34px 0 12px; font: 600 20px/1.2 var(--display); }
.method-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.article-cards {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.article-card {
  position: relative;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border-left: 1px solid var(--line);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.article-card:first-child { border-left: 0; }
.article-card.featured { color: white; background: var(--ink); }
.article-card:hover { color: white; background: var(--teal); }
.article-number {
  align-self: flex-end;
  color: var(--signal);
  font: 500 12px/1 var(--mono);
}
.article-kicker {
  margin: auto 0 18px;
  color: var(--muted);
  font: 400 10px/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.article-card.featured .article-kicker,
.article-card:hover .article-kicker { color: rgba(255,255,255,.58); }
.article-card h3 {
  margin: 0 0 16px;
  font: 600 clamp(25px, 2.5vw, 38px)/1 var(--display);
  letter-spacing: -.035em;
}
.article-card > p:not(.article-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.article-card.featured > p:not(.article-kicker),
.article-card:hover > p:not(.article-kicker) { color: rgba(255,255,255,.68); }
.article-card strong { margin-top: 26px; font-size: 12px; }

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 92px;
  padding: 48px;
  color: white;
  background: var(--teal);
}
.newsletter .eyebrow { color: var(--teal-soft); }
.newsletter form { display: grid; grid-template-columns: 1fr auto; }
.newsletter input {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  color: white;
}
.newsletter input::placeholder { color: rgba(255,255,255,.65); }
.newsletter button { border: 0; padding: 0 18px; background: var(--signal); color: white; font-weight: 700; }
.newsletter form p { grid-column: 1 / -1; margin: 10px 0 0; color: rgba(255,255,255,.62); font-size: 11px; }

footer {
  min-height: 100px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: center;
  border-top: 1px solid var(--line);
}
footer p { margin: 0; color: var(--muted); font-size: 11px; }
.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;
}
:focus-visible { outline: 3px solid rgba(255,91,53,.45); outline-offset: 3px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 45px; }
  .meter-panel { min-height: 350px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .method-section { grid-template-columns: 1fr; gap: 50px; }
  .article-cards { grid-template-columns: 1fr; }
  .article-card { min-height: 285px; border-left: 0; border-top: 1px solid var(--line); }
  .article-card:first-child { border-top: 0; }
  .newsletter { grid-template-columns: 1fr; gap: 35px; }
  footer { grid-template-columns: 1fr; padding: 30px 0; gap: 12px; }
}
@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .status { display: none; }
  .hero { min-height: auto; padding: 60px 0; }
  h1 { font-size: clamp(52px, 17vw, 78px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; }
  .calculator-section, .models-section, .method-section, .articles-section { padding: 65px 0; }
  .cost-row { grid-template-columns: 25px 1fr 85px; }
  .cost-bar { display: none; }
  .filter-row { align-items: flex-start; flex-direction: column; gap: 15px; }
  .filter-group { flex-wrap: wrap; }
  .method-grid { grid-template-columns: 1fr; }
  .method-grid article { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .method-grid h3 { margin-top: 16px; }
  .newsletter { padding: 30px 22px; }
  .newsletter form { grid-template-columns: 1fr; }
  .newsletter button { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
