:root {
  --ink: #182622;
  --muted: #65706c;
  --line: #dfe7e1;
  --paper: #f7f8f4;
  --card: #ffffff;
  --forest: #0e4a37;
  --green: #31c778;
  --mint: #dff7e8;
  --orange: #fb8d45;
  --error: #aa2634;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.45; }
button, input, select { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 68px 0 44px; max-width: 800px; }
.eyebrow { color: var(--forest); letter-spacing: .12em; font-size: .71rem; font-weight: 800; margin: 0 0 10px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(2.7rem, 7vw, 5.8rem); line-height: .96; letter-spacing: -.065em; margin-bottom: 22px; }
h1 em { color: var(--forest); font-style: normal; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 0; }
.lede { max-width: 640px; font-size: 1.08rem; color: #52615c; }
.source-pill { display: inline-block; border: 1px solid #b8d8c5; color: var(--forest); background: #ecfaf1; border-radius: 999px; padding: 7px 12px; font-size: .8rem; font-weight: 650; }
.estimator-card, .results { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 16px 60px rgba(13, 55, 36, .06); padding: clamp(22px, 4vw, 42px); }
.card-heading, .results-topline, .form-actions, .comparison-labels, .comparison-values { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.step { background: var(--mint); color: var(--forest); border-radius: 99px; padding: 6px 10px; font-size: .76rem; font-weight: 750; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 22px; margin-top: 34px; }
label, legend { display: block; color: #34433e; font-size: .88rem; font-weight: 760; }
input, select { width: 100%; color: var(--ink); background: #fff; border: 1px solid #cdd9d2; border-radius: 9px; padding: 12px 13px; margin-top: 7px; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(14, 74, 55, .12); }
small { display: block; color: var(--muted); font-size: .74rem; font-weight: 480; margin-top: 7px; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.segmented-control { display: flex; gap: 0; margin-top: 7px; }
.segmented-control label { display: flex; align-items: center; flex: 1; gap: 7px; border: 1px solid #cdd9d2; padding: 10px; font-size: .77rem; font-weight: 650; }
.segmented-control label:first-child { border-radius: 9px 0 0 9px; }.segmented-control label:last-child { border-left: 0; border-radius: 0 9px 9px 0; }
.segmented-control input { width: auto; margin: 0; accent-color: var(--forest); }
.occupancy-fieldset input[type=number] { margin-top: 10px; }
.optional { color: var(--muted); font-weight: 500; }
.currency-input { display: flex; align-items: center; color: var(--muted); border: 1px solid #cdd9d2; border-radius: 9px; padding: 0 12px; margin-top: 7px; }.currency-input input { border: 0; box-shadow: none; margin: 0; padding-left: 6px; padding-right: 6px; }
.form-actions { align-items: center; margin-top: 32px; border-top: 1px solid var(--line); padding-top: 21px; }.form-actions p { max-width: 440px; color: var(--muted); font-size: .78rem; margin: 0; }
button { cursor: pointer; border: 0; border-radius: 9px; padding: 13px 17px; font-weight: 800; }.form-actions button { background: var(--forest); color: #fff; white-space: nowrap; }.form-actions button span { margin-left: 8px; font-size: 1.1rem; }.form-actions button:hover { background: #0a3c2c; }
.form-error { border-left: 4px solid var(--error); color: #7f1924; background: #fff0f1; border-radius: 4px; padding: 11px 13px; margin-top: 22px; font-size: .86rem; }
.results { margin-top: 26px; border-color: #bce3ca; }.results-topline { align-items: center; }.results-actions { display: flex; gap: 9px; align-items: center; }.secondary-button { border: 1px solid #cdd9d2; background: #fff; color: var(--forest); padding: 9px 12px; font-size: .8rem; }.estimate-badge { display: inline-block; background: #e7f8ee; color: var(--forest); border-radius: 999px; padding: 6px 9px; font-size: .71rem; font-weight: 800; }.estimate-badge.proxy { background: #fff1d8; color: #825000; }
.metric-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 12px; margin-top: 28px; }.metric { min-height: 148px; background: #f3f7f4; border-radius: 13px; padding: 16px; display: flex; flex-direction: column; }.metric span { color: var(--muted); font-size: .75rem; font-weight: 700; }.metric strong { font-size: clamp(1.55rem, 3vw, 2.45rem); letter-spacing: -.055em; line-height: 1; margin-top: auto; }.metric small { margin-top: 6px; }.hero-metric { background: var(--forest); color: #fff; }.hero-metric span, .hero-metric small { color: #c7e6d2; }
.comparison-card { border: 1px solid var(--line); border-radius: 13px; padding: 17px; margin-top: 14px; }.comparison-labels, .comparison-values { font-size: .79rem; font-weight: 750; }.comparison-labels span:last-child, .comparison-values strong:last-child { text-align: right; }.comparison-bars { margin: 12px 0 9px; display: grid; gap: 8px; }.bar { min-width: 3px; height: 12px; border-radius: 99px; transition: width .35s ease; }.baseline-bar { background: var(--orange); }.heat-pump-bar { background: var(--green); }.comparison-values strong { font-size: 1.15rem; letter-spacing: -.03em; }.calculation-details { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 14px; }.calculation-details summary { color: var(--forest); cursor: pointer; font-size: .88rem; font-weight: 800; }.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; padding-top: 14px; }.detail-list div { display: flex; justify-content: space-between; gap: 10px; font-size: .79rem; border-bottom: 1px solid #edf1ee; padding-bottom: 7px; }.detail-list span { color: var(--muted); }.disclaimer { color: var(--muted); font-size: .72rem; margin: 20px 0 0; }
.warnings { margin-top: 16px; background: #fff7e8; border-left: 4px solid #e9a23b; padding: 12px 14px; color: #62420e; font-size: .8rem; }.warnings ul { margin: 7px 0 0; padding-left: 18px; }.warnings li + li { margin-top: 4px; }
.method-note { margin: 46px 0 58px; display: grid; grid-template-columns: .75fr 1.25fr; gap: 50px; }.method-note p { color: #53615c; max-width: 650px; }
footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; border-top: 1px solid #d8e2dc; padding: 22px 0 36px; display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--muted); font-size: .74rem; }footer a { color: var(--forest); font-weight: 700; text-decoration: none; }
@media (max-width: 760px) { .hero { padding-top: 46px; }.form-grid, .metric-grid, .method-note { grid-template-columns: 1fr; }.card-heading, .results-topline, .form-actions { align-items: stretch; flex-direction: column; }.results-actions { justify-content: space-between; }.form-actions button { width: 100%; }.detail-list { grid-template-columns: 1fr; }.metric { min-height: 120px; } }
@media print { body { background: #fff; }.shell { width: 100%; }.hero, .estimator-card, .method-note, footer, .secondary-button { display: none; }.results { display: block !important; border: 0; box-shadow: none; margin: 0; padding: 0; }.metric-grid { grid-template-columns: repeat(4, 1fr); } }
