/* heatingcost.com — site styles */
:root {
  --ink: #15232e;
  --ash: #67727d;
  --rule: #d5dee5;
  --paper: #ffffff;
  --frost: #e9f0f5;
  --pilot: #0f6e99;
  --pilot-dark: #0b5577;
  --flame: #e8632a;
  --flame-soft: #fbe4d6;
  --max: 1120px;
  --font: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-variant-numeric: tabular-nums;
}
a { color: var(--pilot); text-underline-offset: 3px; }
a:hover { color: var(--pilot-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin-top: 2em; }
h3 { font-size: 1.15rem; margin-top: 1.5em; }
p { margin: 0 0 1em; max-width: 68ch; }
small, .muted { color: var(--ash); }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .92em; }

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

/* header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; flex-wrap: wrap; }
.wordmark { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--flame); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .95rem; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--pilot); text-decoration: underline; }

/* hero / intro */
.intro { padding: 36px 0 12px; }
.intro p { font-size: 1.1rem; max-width: 60ch; }
.data-note { font-size: .9rem; color: var(--ash); margin-top: 4px; }

/* calculator layout */
.calc { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 20px 0 40px; }
@media (min-width: 900px) { .calc { grid-template-columns: 320px 1fr; gap: 44px; } }

.controls { background: var(--frost); padding: 22px 20px 8px; border-radius: 6px; align-self: start; }
.controls h2 { margin-top: 0; font-size: 1.1rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 4px; }
.field .hint { display: block; font-size: .82rem; color: var(--ash); margin-top: 3px; }
.field select, .field input[type="number"], .field input[type="text"] {
  width: 100%; font: inherit; font-size: 1rem; padding: 8px 10px; border: 1px solid #b9c6d0; border-radius: 4px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8ec3de; outline-offset: 2px; }
.radio-row { display: flex; gap: 6px; flex-wrap: wrap; }
.radio-row label { font-weight: 500; font-size: .9rem; border: 1px solid #b9c6d0; border-radius: 4px; padding: 6px 10px; background: #fff; cursor: pointer; }
.radio-row input { margin-right: 6px; }
.radio-row label:has(input:checked) { border-color: var(--pilot); background: #e3f1f8; }

/* verdict */
.verdict { font-size: 1.25rem; line-height: 1.4; max-width: 60ch; margin: 0 0 18px; }
.verdict strong { color: var(--flame); font-weight: 800; }

/* ranked bars */
.ranked { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ranked li { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 10px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 560px) { .ranked li { grid-template-columns: 1fr; gap: 6px; } }
.ranked .fuel { font-weight: 600; }
.ranked .fuel small { display: block; font-weight: 400; color: var(--ash); font-size: .82rem; }
.ranked .bar-wrap { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.ranked .bar { height: 18px; background: #c9d6e0; border-radius: 2px; min-width: 2px; transition: width .35s ease; }
.ranked li.cheapest .bar { background: var(--flame); }
.ranked li.cheapest .fuel { color: var(--flame); }
.ranked .per { font-weight: 700; white-space: nowrap; font-size: 1.05rem; }
.ranked .per small { display: block; font-weight: 400; color: var(--ash); font-size: .8rem; text-align: right; }
.ranked .yours { font-weight: 400; color: var(--ash); font-size: .85em; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ranked .bar { transition: none; } }

/* assumptions table */
.assume { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 10px; }
.assume th, .assume td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.assume th { font-weight: 600; color: var(--ash); font-size: .85rem; }
.assume input { width: 7.5em; font: inherit; font-size: .95rem; padding: 5px 7px; border: 1px solid #b9c6d0; border-radius: 4px; }
.assume td.num { text-align: right; }
details.assumptions { margin-top: 22px; }
details.assumptions summary { cursor: pointer; font-weight: 600; color: var(--pilot); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; align-items: center; }
button.btn { font: inherit; font-weight: 600; background: var(--pilot); color: #fff; border: 0; border-radius: 4px; padding: 10px 16px; cursor: pointer; }
button.btn:hover { background: var(--pilot-dark); }
button.btn.secondary { background: #fff; color: var(--pilot); border: 1px solid var(--pilot); }
.copied { font-size: .9rem; color: var(--ash); }

/* prose sections */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 10px 0 20px; }
.prose th, .prose td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { color: var(--ash); font-weight: 600; font-size: .85rem; }
.prose td.num, .prose th.num { text-align: right; }

/* price page bits */
.price-hero { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 24px 0 8px; }
@media (min-width: 760px) { .price-hero { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.big { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.big small { font-size: .35em; font-weight: 500; color: var(--ash); letter-spacing: 0; margin-left: .3em; }
.delta { font-size: 1.05rem; margin-top: 6px; }
.delta.up { color: #b23b0e; }
.delta.down { color: #1f7a3a; }
.chart { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--ash); }
.chart .line { fill: none; stroke: var(--pilot); stroke-width: 2; }
.chart .avg { stroke: var(--ash); stroke-dasharray: 4 4; stroke-width: 1; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.mini-rank { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.mini-rank li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.mini-rank li.this { font-weight: 700; color: var(--flame); }
.cta-box { background: var(--frost); border-radius: 6px; padding: 18px 20px; margin: 24px 0; max-width: 70ch; }
.cta-box p { margin-bottom: 10px; }
.state-list { columns: 2; column-gap: 32px; padding-left: 1.2em; }
@media (min-width: 700px) { .state-list { columns: 4; } }
.state-list li { margin-bottom: 4px; break-inside: avoid; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 48px; padding: 24px 0 40px; font-size: .9rem; color: var(--ash); }
.site-footer p { max-width: none; }
