:root {
  color-scheme: light;
  --ink: #173832;
  --muted: #657570;
  --line: #d5ded9;
  --paper: #fbfcfa;
  --green: #0d725b;
  --mint: #e2f1ea;
  --gold: #f4bd45;
  --gold-pale: #fff4d8;
  --blue: #517483;
  --blue-pale: #eaf2f5;
  --shadow: 0 12px 32px rgba(23, 56, 50, .08);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
.shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.topbar { min-height: 72px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: var(--green); border-radius: 50%; letter-spacing: 0; font-size: 14px; }
.privacy { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.privacy span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 52px 0 30px; }
.eyebrow, .step { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .13em; font-size: 13px; font-weight: 800; color: var(--green); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 12px; max-width: 780px; font: 700 clamp(38px, 5vw, 64px)/1.02 Georgia, serif; letter-spacing: -.035em; }
.intro-detail { margin-top: 14px !important; }
.lede { max-width: 760px; margin: 0; color: #4d625c; font-size: 18px; }
.button { border: 0; border-radius: 999px; padding: 12px 18px; background: var(--green); color: white; font-weight: 750; cursor: pointer; white-space: nowrap; }
.button.quiet { background: white; color: var(--ink); border: 1px solid var(--line); }
.finder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 18px; }
.dimension-card, .summary-card { border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: white; box-shadow: var(--shadow); }
.dimension-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.dimension-head h2, .summary-card h2 { margin-bottom: 20px; font: 700 28px/1.15 Georgia, serif; }
.swap { border: 0; background: var(--mint); color: var(--green); padding: 9px 14px; border-radius: 999px; font-weight: 750; cursor: pointer; }
.dimension-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dimension-fields label { padding: 15px 16px; background: #f5f8f6; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-weight: 700; }
.dimension-fields label span { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; color: var(--ink); }
.dimension-fields input { min-width: 0; width: 100%; border: 0; border-bottom: 2px solid #9eb1aa; outline: 0; background: transparent; color: var(--ink); font-size: 30px; font-weight: 800; }
.dimension-fields input:focus { border-color: var(--green); }
.input-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.summary-card { background: var(--ink); color: white; }
.summary-card .step { color: #9fe1cd; }
.summary-card h2 { margin-bottom: 10px; color: white; }
.summary-card > p:not(.step) { color: #d8e6e1; }
.summary-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.summary-numbers div { padding: 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.summary-numbers strong, .summary-numbers span { display: block; }
.summary-numbers strong { font-size: 27px; }
.summary-numbers span { color: #bed1ca; font-size: 13px; }
.results-section { padding: 58px 0 24px; }
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.results-head h2 { margin: 0; font: 700 34px/1.1 Georgia, serif; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 13px; }
.legend span { width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; }
.fit-dot { background: var(--green); }.near-dot { background: var(--gold); }.closest-dot { background: var(--blue); }
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 6px 20px rgba(23,56,50,.06); }
.plan-image-wrap { position: relative; aspect-ratio: 1.42; display: grid; place-items: center; background: #eff4f1; border-bottom: 1px solid var(--line); }
.plan-image-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 15px; mix-blend-mode: multiply; }
.status { position: absolute; top: 12px; right: 12px; padding: 6px 10px; border-radius: 999px; color: white; font-size: 12px; font-weight: 800; }
.status.fit { background: var(--green); }.status.near { background: #9b6b00; }.status.closest { background: var(--blue); }
.plan-body { padding: 18px; }
.plan-title { display: flex; align-items: start; gap: 12px; }
.plan-title > span { flex: 0 0 auto; padding: 6px 8px; border-radius: 8px; background: var(--ink); color: white; font-weight: 850; }
.plan-title h3 { margin: 0; font-size: 18px; }
.plan-title p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.plan-message { margin: 14px 0 0; padding-top: 13px; border-top: 1px solid var(--line); color: #465b55; font-size: 14px; }
.empty { grid-column: 1 / -1; padding: 50px; text-align: center; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); }
.all-plans-section { margin: 0 0 54px; }
.all-plans-toggle { width: 100%; display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: white; color: var(--ink); font-weight: 800; cursor: pointer; }
.all-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 15px; }
.plan-card.compact .plan-image-wrap { aspect-ratio: 1.65; }
.plan-card.compact .plan-body { padding: 13px; }
.plan-card.compact .plan-title h3 { font-size: 15px; }
.guidance { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; margin-bottom: 42px; padding: 36px; border-radius: 24px; background: var(--mint); }
.guidance h2 { margin: 0; font: 700 30px/1.15 Georgia, serif; }
.guidance-copy p { margin-bottom: 14px; }
.guidance-copy .final-note { padding-top: 14px; border-top: 1px solid #aac6bb; font-weight: 700; }
footer { padding: 28px 0 38px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; }.results-grid { grid-template-columns: repeat(2, 1fr); }.all-plans { grid-template-columns: repeat(3, 1fr); }.guidance { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 620px) { .shell { width: min(100% - 24px, 1240px); }.topbar { min-height: 64px; }.privacy { display: none; }.title-row { align-items: start; padding-top: 34px; flex-direction: column; }.dimension-fields, .results-grid, .all-plans { grid-template-columns: 1fr; }.dimension-card, .summary-card { padding: 21px; }.summary-numbers { grid-template-columns: repeat(3, 1fr); }.results-head { align-items: start; flex-direction: column; }.guidance { padding: 24px; } }
@media print { .topbar, .button, .swap, .all-plans-section, footer { display: none !important; }.shell { width: 100%; }.title-row { padding-top: 0; }.finder { grid-template-columns: 1fr 1fr; }.results-grid { grid-template-columns: repeat(3, 1fr); }.plan-card { break-inside: avoid; box-shadow: none; }.guidance { break-inside: avoid; } }

.plan-cost {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--line, #d5dfda);
}
.plan-cost span { font-size: 0.875rem; line-height: 1.4; }
.plan-cost strong { font-size: 1.25rem; font-weight: 750; white-space: nowrap; }

.project-costs { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.cost-row { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap: 4px 12px; margin: 8px 0; font-size:0.875rem; }
.cost-row strong { white-space:nowrap; font-size:1rem; }
.cost-total { border-top:1px solid var(--line); padding-top:12px; margin-top:12px; font-weight:700; }
.cost-total strong { font-size:1.25rem; }

.project-details { margin-bottom: 24px; }
.project-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.project-fields label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; }
.project-fields input { width: 100%; min-width: 0; font: inherit; padding: 12px; border: 1px solid #a9bcb5; border-radius: 8px; }
.project-report { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 16px 0 24px; overflow-wrap: anywhere; }
.project-report[hidden] { display: none; }
.project-report dt { font-weight: 600; }
.project-report dd { margin: 0; white-space: pre-wrap; }
.contact-card { margin: 28px 0; }
@media (max-width: 620px) { .project-fields { grid-template-columns: 1fr; } }
@media print { .project-details { display: none; } .contact-card { break-inside: avoid; } }

.results-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cost-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; gap: 12px; align-items: baseline; }
.cost-row > span { white-space: nowrap; }
.cost-row strong { text-align: right; font-variant-numeric: tabular-nums; font-size: 1rem; }
.cost-total { border-top: 0; padding-top: 0; margin-top: 0; }
.estimate-year { margin: -4px 0 10px; text-align: right; font-size: 12px; font-weight: 400; color: var(--muted); }
@media (max-width: 1000px) { .results-grid { grid-template-columns: 1fr; } }
@media (max-width: 380px) { .plan-body { padding: 12px; } .cost-row { font-size: 12px; gap: 5px; } .cost-row strong { font-size: 14px; } }
@media print {
  @page { margin: 0.55in; }
  body { font-size: 11pt; }
  h1 { font-size: 32pt; }
  .lede { font-size: 11pt; }
  .finder, .dimension-card, .summary-card { break-inside: avoid; page-break-inside: avoid; }
  .results-grid { display: block; }
  .plan-card { display: block; overflow: visible; break-before: page; page-break-before: always; break-inside: avoid; page-break-inside: avoid; margin: 0; border-radius: 0; box-shadow: none; }
  .plan-image-wrap { display: block; height: 4in; aspect-ratio: auto; }
  .plan-image-wrap img { height: 100%; width: 100%; object-fit: contain; }
  .plan-body { padding: 16px; }
  .plan-title h3 { font-size: 16pt; }
  .cost-row { font-size: 11pt; grid-template-columns: 1fr max-content; }
  .cost-row strong { font-size: 12pt; }
  .estimate-year { font-size: 8pt; }
  .plan-message { font-size: 10pt; }
  .guidance { display: block; margin-top: 24px; }
}

.plan-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 18px; align-items: start; }
.fit-message { margin: 0; color: #465b55; font-size: 14px; line-height: 1.4; text-align: right; }
@media print { .fit-message { font-size: 10pt; } }

.cost-total { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }

.print-only { display: none; }
.plan-pair { display: contents; }
.dimension-value { white-space: nowrap; }
.guidance h2 { font-size: 22px; line-height: 1.25; }
.planning-summary { margin: 28px 0; }
.planning-copy { margin-bottom: 0; }
@media print {
  .screen-only, .finder { display: none !important; }
  .print-only { display: block; }
  .title-row { display: block; padding-bottom: 16px; }
  h1 { font-size: 25pt; max-width: none; }
  .inquiry-record { background: #e2f1ea; border: 1px solid #aac6bb; border-radius: 10px; padding: 12px 16px; margin: 14px 0 16px; print-color-adjust: exact; -webkit-print-color-adjust: exact; break-inside: avoid; }
  .inquiry-record h2 { font-size: 14pt; margin-bottom: 8px; }
  .inquiry-record .project-report { margin: 0; gap: 4px 16px; font-size: 10pt; }
  .report-site { break-inside: avoid; }
  .report-site h2 { font-size: 14pt; margin: 12px 0 5px; }
  #report-dimensions { white-space: nowrap; font-weight: 700; margin-bottom: 4px; }
  .results-section { break-before: page; padding-top: 0; }
  .results-head { display: block; break-after: avoid; margin-bottom: 14px; }
  .results-head h2 { font-size: 20pt; }
  .results-grid { display: block; }
  .plan-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-bottom: 14px; break-inside: avoid; page-break-inside: avoid; }
  .plan-card { break-before: auto; page-break-before: auto; break-inside: avoid; page-break-inside: avoid; border-radius: 10px; overflow: visible; }
  .plan-image-wrap { height: 1.6in; }
  .plan-image-wrap img { padding: 6px; }
  .plan-body { padding: 10px; }
  .plan-heading { gap: 8px; grid-template-columns: 1.1fr .9fr; }
  .plan-title h3 { font-size: 11pt; }
  .plan-title p, .fit-message { font-size: 8pt; }
  .project-costs { margin-top: 9px; padding-top: 7px; }
  .cost-row { font-size: 8.5pt; gap: 6px; margin: 5px 0; }
  .cost-row strong { font-size: 9pt; }
  .cost-total { margin-top: 7px; padding-top: 7px; }
  .estimate-year { font-size: 7pt; margin: 0; }
  .plan-message { font-size: 8pt; margin-top: 7px; padding-top: 7px; }
  .guidance { padding: 18px; }
  .guidance h2 { font-size: 14pt; margin-bottom: 10px; }
  .planning-summary, .contact-card { padding: 18px; break-inside: avoid; }
  .planning-summary h2, .contact-card h2 { font-size: 15pt; }
}

@media print { .plan-image-wrap img { mix-blend-mode: normal; display: block; visibility: visible; print-color-adjust: exact; -webkit-print-color-adjust: exact; } }

.contact-card h2 { margin-bottom: 8px; }
.contact-card p { margin-bottom: 8px; }
.contact-card p:last-child { margin-bottom: 0; }
@media print {
  .guidance { margin-bottom: 12px; }
  .planning-summary { margin: 12px 0 0; padding: 12px 14px; border-bottom: 0; border-radius: 10px 10px 0 0; break-after: avoid; page-break-after: avoid; }
  .contact-card { margin: 0; padding: 10px 14px 12px; border-radius: 0 0 10px 10px; box-shadow: none; }
  .contact-card h2 { font-size: 12pt; }
  .contact-card p { font-size: 10pt; line-height: 1.35; margin-bottom: 6px; }
}

.site-dimension-line { white-space: nowrap; }
.contact-card h2 { margin-bottom: 12px; }
.contact-card p { font-size: 16px; line-height: 1.6; margin-bottom: 12px; }
@media print {
  .site-dimension-line { font-size: 12pt; margin: 12px 0; }
  .contact-card { padding: 14px 16px 16px; }
  .contact-card h2 { font-size: 14pt; margin-bottom: 10px; }
  .contact-card p { font-size: 11pt; line-height: 1.5; margin-bottom: 10px; }
}

.send-report .button { white-space: normal; text-align: left; max-width: 100%; }
.send-report textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 5px; }
