@font-face {
  font-family: 'DM Sans';
  src: url('./dm-sans.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #152f27;
  --muted: #50645b;
  --line: #d5dbd0;
  --paper: #f8f7f2;
  --accent: #c7f495;
  font: 16px/1.5 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body, h1, h2, p, dl, dd { margin: 0; }
.page-width { width: min(calc(100% - 48px), 1100px); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead .page-width { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { font-size: 22px; font-weight: 800; letter-spacing: -.07em; }
.masthead-label, .form-note, .help, .footnote { color: var(--muted); }
.masthead-label { font-size: .85rem; }
.intro { padding: clamp(34px, 6vw, 76px) 0 clamp(26px, 4vw, 49px); }
h1 { max-width: 850px; font-size: clamp(2.25rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.067em; font-weight: 650; text-wrap: balance; }
.intro p { max-width: 660px; margin-top: 18px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.18rem); }
h2 { font-size: clamp(1.4rem, 2.7vw, 1.8rem); line-height: 1.2; letter-spacing: -.05em; }
.layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); align-items: start; gap: clamp(24px, 5vw, 64px); }
form { min-width: 0; }
.form-heading { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
input, select, button { font: inherit; }
button, .view-result { font-weight: 650; }
button { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
button:hover { background: #e9ede3; }
button:focus-visible, select:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #597b30; outline-offset: 3px; }
.form-heading button, .footnote, .model-note { font-size: .83rem; }
.form-note, .help { font-size: .93rem; margin-top: 7px; }
.example-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.example-links button { min-height: 40px; font-size: .82rem; text-align: left; }
.guide-cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; padding: 12px 16px; background: #183b30; color: #fffef7; border-radius: 8px; font-weight: 650; text-decoration: none; }
.guide-cta:hover { background: #29553e; }
.guide-subhead, .guide-checklist { max-width: 740px; }
.guide-subhead { margin-top: 9px; color: var(--muted); }
.guide-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 16px; margin-top: 18px; }
.guide-examples article { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; }
.guide-examples h3 { margin: 0; font-size: 1.15rem; }
.guide-examples p { margin: 8px 0 10px; }
.guide-examples a { display: inline-block; padding-block: 6px; }
.guide-checklist { margin-block: clamp(32px, 6vw, 64px); }
.guide-checklist ol { padding-left: 1.25em; }
.guide-checklist li { margin-bottom: 9px; padding-left: .2em; }
.footnote { margin-top: 10px; }
fieldset { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
form > fieldset { border-top: 1px solid var(--line); padding-top: 16px; }
legend { padding: 0 10px 0 0; font-size: 1.12rem; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
fieldset .help { margin: 0 0 15px; }
a { color: #295f3d; text-underline-offset: .16em; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.fields label { display: flex; flex-direction: column; justify-content: space-between; gap: 5px; font-size: .86rem; font-weight: 600; }
.input-wrap, select {
  width: 100%; min-height: 44px; border: 1px solid #acb8ab; border-radius: 7px;
  background: #fffefa; color: var(--ink); font-weight: 550; font-size: 1rem;
}
.input-wrap { display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.input-wrap input { flex: 1; width: 0; min-width: 0; border: 0; background: transparent; color: inherit; min-height: 42px; }
.input-wrap span { font-size: .88rem; white-space: nowrap; color: var(--muted); }
.input-wrap:focus-within { outline: 3px solid #597b30; outline-offset: 2px; }
.input-wrap input:focus { outline: none; }
.input-wrap:has(input[aria-invalid="true"]) { border-color: #a13b1e; box-shadow: inset 0 0 0 1px #a13b1e; }
select { padding: 0 8px; }
.month-field { margin-top: 20px; }
.month-field legend { font-size: .92rem; }
.month-field .help { margin: 4px 0 9px; font-size: .85rem; }
.month-options { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.month-option { position: relative; cursor: pointer; }
.month-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.month-option span { display: grid; place-content: center; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; font-size: .85rem; }
.month-option input:checked + span { border-color: #254d38; background: #254d38; color: #fff; font-weight: 700; }
.month-option input:focus-visible + span { outline: 3px solid #597b30; outline-offset: 2px; }
.estimate { position: sticky; top: 20px; border-radius: 17px; padding: clamp(24px, 3.4vw, 39px); background: #183b30; color: #fffef7; }
.estimate h2 { font-size: 1.22rem; letter-spacing: -.025em; }
.result-number { font-size: clamp(2.1rem, 4.15vw, 3.8rem); line-height: 1.08; margin: 20px 0 9px; color: var(--accent); font-weight: 650; letter-spacing: -.065em; overflow-wrap: anywhere; }
.result-note, .model-note { color: #d5e3d6; }
.result-note { font-size: .95rem; }
dl { border-block: 1px solid #507060; margin: 22px 0 15px; padding: 8px 0; }
dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; }
dt { color: #e1ecdf; font-size: .89rem; }
dd { font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.validation { margin: 16px 0; padding: 12px; border: 1px solid #f1bc81; border-radius: 6px; color: #ffe2b4; }
.view-result { display: none; }
.schedule { max-width: 720px; margin: clamp(36px, 5vw, 66px) 0 60px; }
.schedule .help { max-width: 620px; margin-bottom: 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 6px; text-align: right; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; padding-left: 0; }
thead th { font-size: .8rem; color: var(--muted); }
tbody th { font-weight: 600; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .page-width { width: min(calc(100% - 32px), 580px); }
  .layout { grid-template-columns: 1fr; }
  .estimate { position: static; }
  .intro { padding-top: 38px; }
  .view-result { display: inline-block; margin-top: 17px; color: var(--ink); }
}
@media (max-width: 440px) {
  .fields { gap: 14px 10px; }
  .month-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .estimate { padding: 24px 20px; }
  .schedule table { font-size: .78rem; }
  .schedule th, .schedule td { padding-inline: 4px; }
}
