:root {
  --forest: #163c2b;
  --forest-2: #255b41;
  --cream: #f3efe3;
  --paper: #fffdf7;
  --moss: #a9be70;
  --orange: #dc6935;
  --ink: #183228;
  --muted: #657068;
  --line: #d9ddcf;
  --blue: #477786;
  --shadow: 0 24px 70px rgba(20, 48, 35, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--cream); line-height: 1.5; }
button, input, select { font: inherit; }
button, select, input { accent-color: var(--orange); }
a { color: inherit; }

.site-header { position: relative; z-index: 10; max-width: 1240px; margin: 0 auto; min-height: 84px; padding: 18px 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--forest); }
.brand-mark { width: 37px; height: 37px; color: var(--forest-2); }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.header-link { font-size: 14px; font-weight: 750; text-decoration: none; border-bottom: 1px solid var(--forest); padding-bottom: 3px; }

.section-shell { max-width: 1240px; margin: 0 auto; padding-left: 28px; padding-right: 28px; }
.hero { min-height: calc(100vh - 84px); display: grid; grid-template-columns: minmax(0, .83fr) minmax(480px, 1.17fr); align-items: center; gap: clamp(40px, 8vw, 110px); padding-top: 54px; padding-bottom: 90px; position: relative; }
.hero::before { content: ""; position: absolute; width: 250px; height: 250px; left: -180px; top: 8%; border: 55px solid rgba(169,190,112,.25); border-radius: 52% 48% 60% 40%; transform: rotate(20deg); }
.eyebrow, .step-label { margin: 0 0 14px; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 850; color: var(--forest-2); }
.hero h1 { margin: 0; max-width: 620px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 7.5vw, 108px); line-height: .88; letter-spacing: -.06em; color: var(--forest); }
.hero h1 em { display: block; font-weight: 400; color: var(--orange); }
.lede { max-width: 540px; margin: 30px 0 28px; font-size: clamp(17px, 2vw, 20px); color: #3f4e47; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { border: 1px solid #bdc7b7; border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 750; background: rgba(255,255,255,.42); }

.builder-card { background: var(--paper); border: 1px solid rgba(23,60,43,.12); border-radius: 22px; box-shadow: var(--shadow); padding: clamp(23px, 3vw, 36px); }
.card-heading, .parts-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.card-heading h2, .parts-heading h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; color: var(--forest); }
.card-heading h2 { font-size: 31px; }
.time-pill { padding: 7px 11px; border-radius: 99px; background: #e8ecde; color: var(--forest); font-size: 11px; font-weight: 800; white-space: nowrap; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 27px; }
.field { min-width: 0; display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #faf8f1; font-size: 12px; font-weight: 750; color: var(--muted); }
.field strong { color: var(--forest); font-size: 20px; line-height: 1; }
input[type="range"] { width: 100%; cursor: pointer; }
.range-ends { display: flex; justify-content: space-between; font-weight: 550; color: #848d85; }
.select-field { align-content: center; }
.select-field select { width: 100%; border: 0; border-bottom: 1px solid #bdc6b9; padding: 5px 25px 8px 0; background: transparent; color: var(--forest); font-size: 14px; font-weight: 750; }
.choice-group { border: 0; margin: 22px 0 0; padding: 0; }
.choice-group legend { margin-bottom: 9px; font-size: 12px; font-weight: 800; color: var(--muted); }
.segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: grid; place-items: center; min-height: 44px; padding: 9px 7px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; font-weight: 750; text-align: center; transition: .18s ease; }
.segmented input:checked + span { color: #fff; border-color: var(--forest-2); background: var(--forest-2); box-shadow: 0 5px 16px rgba(37,91,65,.18); }
.segmented input:focus-visible + span { outline: 3px solid rgba(220,105,53,.35); outline-offset: 2px; }
.result-panel { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; background: var(--forest); color: white; border-radius: 14px; overflow: hidden; }
.result-panel > div { display: grid; padding: 17px 18px; }
.result-panel > div + div { border-left: 1px solid rgba(255,255,255,.18); }
.result-panel span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .7; }
.result-panel strong { font-family: Georgia, "Times New Roman", serif; font-size: 31px; font-weight: 500; line-height: 1.15; }
.result-panel small { opacity: .75; }
.formula-note { margin: 11px 2px 17px; color: #778179; font-size: 11px; }
.primary-button, .secondary-button { border: 0; border-radius: 10px; min-height: 49px; padding: 0 18px; font-weight: 850; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.primary-button { width: 100%; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--orange); box-shadow: 0 8px 18px rgba(220,105,53,.23); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(220,105,53,.28); }
.primary-button:focus-visible, .secondary-button:focus-visible { outline: 3px solid rgba(220,105,53,.32); outline-offset: 3px; }

.flush-section { background: var(--forest); color: #f7f4e9; padding: 98px 0; }
.two-column { display: grid; grid-template-columns: .82fr 1.18fr; gap: 46px 72px; align-items: center; }
.flush-section .eyebrow, .flush-section .step-label { color: #bfd084; }
.section-intro h2, .safety-copy > h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(44px, 6vw, 74px); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.section-intro > p:not(.eyebrow) { max-width: 520px; color: #c8d4cc; font-size: 17px; }
.callout { display: flex; gap: 13px; align-items: flex-start; max-width: 520px; margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.callout-icon { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 50%; background: var(--orange); color: white; font-weight: 900; }
.callout p { margin: 0; color: #d8e0da; font-size: 13px; }
.flow-card { background: #f4f0e5; color: var(--forest); padding: 32px 24px 22px; border-radius: 18px; box-shadow: 0 20px 55px rgba(0,0,0,.2); overflow: hidden; }
.flow-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: start; gap: 10px; }
.flow-node { display: grid; justify-items: center; gap: 5px; min-width: 0; text-align: center; }
.flow-node strong { font-size: 12px; }
.flow-node small { font-size: 10px; color: var(--muted); }
.flow-node.accent strong { color: var(--orange); }
.flow-arrow { margin-top: 28px; color: #8e9a8f; }
.node-icon { position: relative; display: block; width: 58px; height: 58px; border: 2px solid var(--forest-2); border-radius: 14px; background: #e8eadf; }
.flow-node.accent .node-icon { border-color: var(--orange); background: #f5dfd3; }
.roof-icon::before { content: ""; position: absolute; width: 28px; height: 28px; left: 13px; top: 15px; border-left: 4px solid var(--forest-2); border-top: 4px solid var(--forest-2); transform: rotate(45deg); }
.screen-icon::before { content: "≋"; position: absolute; inset: 5px 0 0; font-size: 35px; color: var(--forest-2); }
.pipe-icon::before { content: ""; position: absolute; left: 26px; top: 9px; width: 8px; height: 38px; border-radius: 6px; background: var(--orange); box-shadow: -10px -2px 0 -3px var(--orange); }
.tank-icon::before { content: ""; position: absolute; inset: 12px; border: 3px solid var(--forest-2); border-radius: 3px; box-shadow: inset 0 -12px 0 #9ec4cf; }
.flow-caption { margin: 22px 0 0; padding-top: 17px; border-top: 1px solid #d3d8cc; color: var(--muted); font-size: 11px; text-align: center; }
.flow-caption span { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--orange); }
.parts-block { grid-column: 1 / -1; margin-top: 13px; }
.parts-heading { align-items: end; margin-bottom: 20px; }
.parts-heading h3 { color: white; font-size: 36px; }
.parts-heading > span { color: #b9c7bd; font-size: 12px; font-weight: 750; }
.parts-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.16); }
.part-item { min-height: 148px; padding: 19px 16px; border-right: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.part-number { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-bottom: 18px; border-radius: 50%; color: var(--forest); background: #bed083; font-size: 10px; font-weight: 900; }
.part-item strong { display: block; margin-bottom: 5px; font-size: 13px; }
.part-item p { margin: 0; color: #aebdb3; font-size: 11px; line-height: 1.45; }

.safety-section { padding-top: 106px; padding-bottom: 35px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 68px; align-items: start; }
.safety-copy > h2 { max-width: 780px; color: var(--forest); }
.safety-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.safety-grid article { min-height: 205px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.safety-grid article > span { font-family: Georgia, serif; color: var(--orange); font-size: 14px; }
.safety-grid h3 { margin: 24px 0 8px; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.safety-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.not-potable { margin-top: 22px; padding: 18px 20px; border-left: 4px solid var(--orange); background: #e8e6db; font-size: 13px; }
.checklist-card { position: sticky; top: 20px; padding: 30px; border: 1px solid #cbd2c5; border-radius: 18px; background: var(--paper); box-shadow: var(--shadow); }
.checklist-card h2 { margin: 0; font-family: Georgia, serif; font-size: 38px; font-weight: 500; color: var(--forest); }
.checklist-summary { margin: 8px 0 23px; color: var(--muted); font-size: 13px; }
.checklist-items { display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist-row { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.checklist-row input { margin-top: 3px; }
.checklist-row strong { display: block; font-size: 12px; }
.checklist-row small { color: var(--muted); }
.checklist-actions { display: grid; grid-template-columns: 1.25fr .75fr; gap: 9px; margin-top: 20px; }
.checklist-actions .primary-button { justify-content: center; }
.secondary-button { background: #e7e9df; color: var(--forest); }
.saved-message { min-height: 18px; margin: 9px 0 0; color: var(--forest-2); font-size: 11px; font-weight: 700; text-align: center; }
footer { grid-column: 1 / -1; margin-top: 70px; padding-top: 25px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 9px 30px; color: var(--muted); font-size: 11px; }
.footer-brand { display: grid; color: var(--forest); }
.footer-brand strong { font-size: 14px; }
.source-links { text-align: right; }
footer > p { grid-column: 1 / -1; margin: 8px 0 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 50px; }
  .hero h1 { font-size: clamp(64px, 14vw, 94px); }
  .hero-copy { max-width: 700px; }
  .builder-card { max-width: 700px; }
  .two-column, .safety-section { grid-template-columns: 1fr; }
  .parts-grid { grid-template-columns: repeat(2, 1fr); }
  .checklist-card { position: static; }
}

@media (max-width: 560px) {
  .site-header { min-height: 72px; padding: 14px 18px; }
  .header-link { display: none; }
  .section-shell { padding-left: 17px; padding-right: 17px; }
  .hero { padding-top: 35px; padding-bottom: 62px; gap: 38px; }
  .hero h1 { font-size: clamp(57px, 18vw, 78px); }
  .lede { margin-top: 24px; font-size: 16px; }
  .builder-card { margin-left: -3px; margin-right: -3px; padding: 21px 17px; border-radius: 17px; }
  .field-grid { grid-template-columns: 1fr; }
  .segmented span { min-height: 48px; font-size: 11px; }
  .result-panel strong { font-size: 25px; }
  .flush-section { padding: 72px 0; }
  .flow-card { margin-left: -2px; margin-right: -2px; padding: 23px 13px 18px; }
  .flow-row { gap: 5px; }
  .node-icon { width: 48px; height: 48px; }
  .roof-icon::before { width: 23px; height: 23px; left: 11px; top: 13px; }
  .pipe-icon::before { left: 22px; top: 7px; height: 33px; }
  .tank-icon::before { inset: 9px; }
  .screen-icon::before { font-size: 29px; }
  .flow-node small { display: none; }
  .flow-arrow { margin-top: 22px; }
  .parts-grid { grid-template-columns: 1fr 1fr; }
  .part-item { min-height: 137px; padding: 16px 13px; }
  .safety-section { padding-top: 72px; gap: 45px; }
  .safety-grid { grid-template-columns: 1fr; }
  .safety-grid article { min-height: auto; }
  .checklist-card { padding: 24px 18px; }
  .checklist-actions { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  .source-links { text-align: left; }
}

@media print {
  body { background: white; }
  .site-header, .hero, .flush-section, .safety-copy, footer, .checklist-actions, .saved-message { display: none !important; }
  .safety-section { display: block; padding: 0; }
  .checklist-card { box-shadow: none; border: 0; padding: 0; }
  .checklist-row { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.builder-nav{display:flex;flex-wrap:wrap;gap:1rem}.builder-nav a{font-size:1rem}@media(max-width:560px){.site-header{flex-wrap:wrap;gap:1rem}.builder-nav{width:100%;gap:.8rem}}
.builder-nav .header-link{display:inline-flex}
