/* ===========================================================================
   EstiMate site — design pass, Sep 2026 (C3)
   Matched to report template v3 (website/report_template_v3.html.j2):
   navy #031D31 · lime #B8C73A · Source Serif 4 display · Inter body,
   the lime rail + serif numeral section opener, hairline cards, confidence
   pills, generous whitespace. The site should read as the same product that
   produced the report.
   =========================================================================== */

:root {
  --navy:      #031D31;
  --navy-ink:  #010E18;   /* darker header/ribbon shade */
  --navy-2:    #0A2C49;
  --navy-3:    #0E3a5f;
  --green:     #B8C73A;
  --green-d:   #9FB033;
  --green-t:   #eef3d3;   /* tint */
  --green-p:   #f6fae9;   /* palest lime wash (report .edge-note) */
  --ink:       #16232e;
  --muted:     #5b6b78;
  --slate:     #636E78;
  --line:      #e4e9ee;
  --hair:      #f0f3f6;
  --bg:        #f5f7f9;
  --paper:     #fbfcfd;
  --white:     #ffffff;
  --good:      #2f8f5b;
  --warn:      #c98a26;
  --warn-bg:   #fdf6ec;
  --warn-line: #ecd9b6;
  --bad:       #c0492f;
  --radius:    12px;
  --shadow:    0 1px 2px rgba(3,29,49,.05), 0 6px 20px rgba(3,29,49,.05);
  --shadow-lg: 0 18px 50px rgba(3,29,49,.18);
  --maxw:      1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { line-height: 1.15; margin: 0 0 .4em; }
/* Editorial serif for display headings; Inter stays for UI/body */
h1,h2,h3,.display {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  font-weight: 600; font-optical-sizing: auto; letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 3.9vw, 3.05rem); }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.15rem); }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
h4 { font-family: "Inter", sans-serif; font-size: .98rem; font-weight: 700; letter-spacing: 0; }

/* ---- eyebrow (report .eyebrow) ---- */
.eyebrow {
  display: block; font-size: .74rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green-d); margin-bottom: 8px;
}

/* ---- icon system (replaces emoji) ---- */
.ic {
  width: 1.05em; height: 1.05em; display: inline-block; vertical-align: -.15em;
  stroke: currentColor; fill: none; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto;
}
img.fill { width: 100%; height: 100%; object-fit: cover; display: block; }

/* display numerals in the editorial serif for a considered, non-template feel */
.hc-range, .price-band .big, .estimate-box .range, .report-cover .r-addr,
.pocket-score .s, .step .num, .snum, .co-total .amt {
  font-family: "Source Serif 4", Georgia, serif; font-weight: 600; letter-spacing: -.02em;
}
p  { margin: 0 0 1em; }
a  { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px){ .wrap { padding: 0 18px; } }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: inherit; font-weight: 650; cursor: pointer;
  border: 0; border-radius: 8px;
  padding: .82em 1.5em; text-decoration: none; letter-spacing: .005em;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: var(--navy-ink); box-shadow: 0 1px 2px rgba(3,29,49,.12); }
.btn-primary:hover { background: var(--green-d); }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--slate); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-lg { padding: 1em 1.9em; font-size: 1.04rem; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- top nav ---------- */
.nav {
  background: var(--navy-ink);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.nav .logo { height: 56px; width: auto; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: #c3cfd8; text-decoration: none; font-size: .92rem; font-weight: 550; letter-spacing: .01em; }
.nav-links a:hover { color: #fff; }
.nav-links .btn-primary { color: var(--navy-ink); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(880px 420px at 86% -18%, rgba(184,199,58,.12), transparent 62%),
    var(--navy);
  color: #fff;
  padding: 58px 0 74px;
}
.hero .eyebrow { color: var(--green); margin-bottom: 20px; }
.hero h1 { color: #fff; max-width: 15ch; line-height: 1.08; }
.hero h1 em { font-style: italic; color: var(--green); padding-right: .08em; }
.hero p.lead { font-size: 1.14rem; color: #b6c5d1; max-width: 48ch; margin: 20px 0 32px; line-height: 1.65; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note {
  color: #8ca2b2; font-size: .84rem; margin-top: 22px; letter-spacing: .03em;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-note b { color: var(--green); font-weight: 700; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 54px; align-items: center; }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; } .hero { padding: 56px 0 64px; } }

/* the sample report, shown as the artefact it is */
.hero-card {
  background: #fff; color: var(--ink); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 9px; transform: rotate(-1.1deg);
  border: 1px solid rgba(255,255,255,.35);
  max-width: 440px; margin-left: auto;
}
.hero-card img { border-radius: 4px; width: 100%; }
.hero-card .hc-foot {
  padding: 10px 6px 3px; font-size: .62rem; color: var(--slate);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hero-card .hc-foot b { color: var(--navy); font-weight: 800; }

/* ---------- generic sections ---------- */
section.block { padding: 78px 0; }

/* section opener — the report's lime rail + serif numeral, adapted to the web */
.sec-open { position: relative; padding-left: 40px; margin-bottom: 40px; max-width: 62ch; }
.sec-open::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 7px; bottom: 6px;
  background: var(--green); border-radius: 1px;
}
.sec-open .snum {
  display: block; font-size: 2.9rem; line-height: .86; color: var(--navy);
  margin-bottom: 12px;
}
.sec-open h2 { margin: 0; }
.sec-open p { margin: 14px 0 0; color: var(--muted); font-size: 1.02rem; }
.sec-open.on-dark .snum { color: #fff; }
.sec-open.on-dark h2 { color: #fff; }
.sec-open.on-dark .eyebrow { color: var(--green); }
.sec-open.on-dark p { color: #b6c5d1; }

/* steps / how it works */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
@media (max-width: 900px){ .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 28px;
}
.step .num {
  display: block; font-size: 2.1rem; line-height: 1; color: var(--navy); margin-bottom: 4px;
}
.step .num::after {
  content: ""; display: block; width: 26px; height: 3px; background: var(--green); margin-top: 12px;
}
.step h3 { font-size: 1.08rem; margin: 16px 0 6px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; line-height: 1.55; }

/* feature / wedge cards */
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 900px){ .cards { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 30px;
}
.card .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--green-t); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.card .ico .ic { width: 22px; height: 22px; stroke-width: 1.6; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; line-height: 1.6; }

/* intent selector (landing strip + intake step 0) */
.intent-pick { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 700px){ .intent-pick { grid-template-columns: 1fr; } }
.intent-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 28px;
  cursor: pointer; background: #fff; text-align: left; text-decoration: none; color: inherit;
  display: block; position: relative; overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .1s ease;
}
.intent-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--green); opacity: 0; transition: opacity .15s ease;
}
.intent-card:hover { border-color: var(--green-d); transform: translateY(-2px); box-shadow: var(--shadow); }
.intent-card:hover::before { opacity: 1; }
.intent-card.selected { border-color: var(--navy); background: var(--green-p); box-shadow: 0 0 0 2px rgba(3,29,49,.08); }
.intent-card.selected::before { opacity: 1; }
.intent-card .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--green-t); color: var(--navy); display: grid; place-items: center; margin: 0 0 16px; }
.intent-card.selected .ico { background: var(--navy); color: var(--green); }
.intent-card .ico .ic { width: 22px; height: 22px; stroke-width: 1.6; }
.intent-card h3 { margin: 0 0 5px; font-size: 1.15rem; }
.intent-card p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

/* trust section */
.trust-band { background: var(--navy); color: #fff; border-radius: 16px; padding: 54px 48px 56px; }
.trust-band .sec-open { margin-bottom: 40px; }
.trust-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 34px; }
@media (max-width: 840px){ .trust-cols { grid-template-columns: 1fr; gap: 26px; } }
@media (max-width: 600px){ .trust-band { padding: 36px 24px 40px; } }
.trust-col { padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); }
.trust-col .ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(184,199,58,.16); color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.trust-col .ico .ic { width: 22px; height: 22px; }
.trust-col h3 { color: #fff; font-size: 1.1rem; margin-bottom: 8px; }
.trust-col p { color: #b6c5d1; font-size: .93rem; margin: 0; line-height: 1.6; }

/* price band */
.price-band {
  background: var(--navy); color: #fff; border-radius: 16px; padding: 52px 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
@media (max-width: 780px){ .price-band { grid-template-columns: 1fr; padding: 36px 26px; } }
.price-band .big { font-size: 3.4rem; color: var(--green); line-height: 1; margin: 14px 0 10px; }
.price-band h2 { color: #fff; margin: 0 0 6px; }
.price-band p { color: #b6c5d1; margin: 0; max-width: 46ch; }
.price-band .eyebrow { color: var(--green); }

/* footer */
footer { background: var(--navy); color: #8ca2b2; padding: 40px 0; font-size: .85rem; border-top: 1px solid rgba(255,255,255,.08); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer .logo { height: 48px; }
footer a { color: #b6c5d1; text-decoration: none; }
.disclaimer { background: var(--navy-ink); color: #7b8fa0; font-size: .77rem; padding: 20px 0; line-height: 1.6; }
.disclaimer .wrap { max-width: 1000px; text-align: center; }
.disclaimer strong { color: #a9bdcb; font-weight: 650; }

/* =================== INTAKE WIZARD =================== */
.intake-page { background: var(--bg); min-height: 100vh; }
.intake-shell { max-width: 960px; margin: 0 auto; padding: 42px 22px 90px; }

.progress { display: flex; gap: 6px; margin-bottom: 26px; }
.progress .seg { flex: 1; height: 4px; border-radius: 2px; background: #dfe5ea; transition: background .25s ease; }
.progress .seg.done { background: var(--green); }
.progress .seg.active { background: var(--navy); }

.step-label {
  color: var(--green-d); font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; margin-bottom: 10px;
}
.panel { display: none; }
.panel.show {
  display: block; animation: fade .25s ease;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 46px 40px; position: relative; box-shadow: var(--shadow);
}
.panel.show::before {
  content: ""; position: absolute; left: 0; top: 34px; width: 6px; height: 74px;
  background: var(--green); border-radius: 0 2px 2px 0;
}
.panel h2 { margin: 0 0 10px; }
.panel > p.muted { font-size: 1rem; max-width: 62ch; line-height: 1.6; }
@media (max-width: 640px){ .panel.show { padding: 30px 22px 28px; } .panel.show::before { display: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 650; margin-bottom: 8px; font-size: .95rem; }
.field .hint, .hint { color: var(--muted); font-size: .85rem; margin-top: 8px; line-height: 1.5; }
input[type=text], input[type=email], input[type=number], input[type=url], select, textarea {
  width: 100%; font: inherit; padding: .8em .95em; border: 1.5px solid var(--line);
  border-radius: 9px; background: #fff; color: var(--ink);
  transition: border .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green-d); box-shadow: 0 0 0 4px rgba(184,199,58,.2);
}
.ac { position: relative; }

/* a quiet inset panel (used for the optional listing-link field) */
.inset {
  margin: 8px 0 22px; padding: 18px 20px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--paper);
}
.inset label { font-weight: 650; }

/* dropzone */
.dropzone {
  border: 1.5px dashed #cdd6dd; border-radius: var(--radius); background: #fff;
  padding: 34px 24px; text-align: center; cursor: pointer; transition: all .15s ease;
}
.dropzone:hover, .dropzone.drag { border-color: var(--green-d); background: var(--green-p); }
.dropzone .dz-ico { margin-bottom: 10px; color: var(--green-d); }
.dropzone h3 { margin: 0 0 4px; font-size: 1.05rem; }
.dropzone p { color: var(--muted); margin: 0; font-size: .88rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill,minmax(96px,1fr)); gap: 10px; margin-top: 16px; }
.thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; position: relative; background: var(--hair); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 5px; right: 5px; background: rgba(3,29,49,.82); color:#fff; border:0; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-size: .82rem; line-height: 1; }
.count-pill {
  display:inline-block; background: var(--green-t); color:#5d6c14; border-radius:5px;
  padding:4px 11px; font-size:.72rem; font-weight:800; letter-spacing:.1em;
  text-transform:uppercase; margin-top: 14px;
}

/* ---------- required slot tiles (intake step 3) ---------- */
.slot-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 20px; }
@media (max-width:640px){ .slot-grid { grid-template-columns: 1fr; } }
.slot {
  border: 1.5px dashed #cdd6dd; border-radius: 10px; padding: 16px 18px 16px;
  background: #fff; cursor: pointer; overflow: hidden;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column; gap: 10px; min-height: 142px; position: relative;
}
.slot:hover, .slot.drag { border-color: var(--green-d); background: var(--green-p); }
.slot .slot-top { display: flex; gap: 13px; align-items: flex-start; }
.slot .slot-top > div { min-width: 0; }
.slot .slot-label { font-weight: 700; color: var(--navy); font-size: .97rem; letter-spacing: -.005em; }
.slot .slot-hint { font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.slot .slot-thumb {
  width: 62px; height: 62px; border-radius: 8px; object-fit: cover;
  background: var(--hair); display: none; flex: none; border: 1px solid var(--line);
  transition: opacity .3s ease;
}
.slot .slot-state {
  margin-top: auto; font-size: .84rem; font-weight: 600; line-height: 1.45;
  display: flex; align-items: flex-start; gap: 8px; color: var(--slate);
  padding-top: 10px; border-top: 1px solid var(--hair);
}
.slot .slot-replace {
  background: none; border: 0; color: var(--navy); font: inherit; font-size: .8rem;
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer; padding: 6px 0 0; align-self: flex-start;
}
.slot .slot-replace:hover { color: var(--green-d); }

/* -- state: EMPTY (default, above) -- */

/* -- state: CHECKING — deliberate and calm; this takes 7-10 seconds -- */
.slot.checking {
  border-style: solid; border-color: #c3d0da; background: #f7fafc; cursor: default;
}
.slot.checking .slot-thumb { opacity: .62; }
.slot.checking .slot-state { color: var(--navy); align-items: center; }
.slot.checking::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--green) 45%, var(--green-d) 55%, transparent);
  background-size: 45% 100%; background-repeat: no-repeat;
  animation: slotsweep 1.9s ease-in-out infinite;
}
@keyframes slotsweep {
  0%   { background-position: -46% 0; }
  100% { background-position: 146% 0; }
}
.slot-spin {
  width: 15px; height: 15px; border: 2px solid #d5dee5; border-top-color: var(--navy);
  border-radius: 50%; display: inline-block; animation: slotspin .9s linear infinite; flex: none;
}
@keyframes slotspin { to { transform: rotate(360deg); } }

/* -- state: ACCEPTED -- */
.slot.accepted { border-style: solid; border-color: var(--green-d); background: var(--green-p); }
.slot.accepted .slot-state { color: #46691f; align-items: center; border-top-color: rgba(159,176,51,.32); }
.slot.accepted .slot-thumb { border-color: var(--green-d); }
.slot-tick { width: 16px; height: 16px; flex: none; color: var(--good); }

/* -- state: REJECTED -- */
.slot.rejected { border-style: solid; border-color: var(--warn); background: var(--warn-bg); }
.slot.rejected .slot-state { color: #8a5a26; border-top-color: var(--warn-line); }
.slot.rejected .slot-state::before {
  content: "!"; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--warn); color: #fff; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; margin-top: 1px;
}

/* -- state: UNCHECKED FALLBACK (photo kept, check didn't run) -- */
.slot.unchecked { border-style: solid; border-color: var(--line); background: var(--paper); }
.slot.unchecked .slot-state { color: var(--slate); }
.slot.unchecked .slot-state::before {
  content: "i"; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: #c3d0da; color: #fff; font-size: .68rem; font-weight: 800;
  font-style: italic; display: grid; place-items: center; margin-top: 1px;
}

.add-bath {
  margin-top: 14px; background: #fff; border: 1.5px dashed #cdd6dd; border-radius: 8px;
  padding: 10px 16px; color: var(--navy); font: inherit; font-size: .85rem; font-weight: 700;
  cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.add-bath:hover { border-color: var(--green-d); background: var(--green-p); }
#extraBaths { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
#extraBaths:not(:empty) { margin-top: 14px; }
@media (max-width:640px){ #extraBaths { grid-template-columns: 1fr; } }

.gate-hint {
  color: var(--muted); font-size: .86rem; margin-top: 18px;
  border-left: 3px solid var(--green-d); background: var(--green-p);
  padding: 12px 16px; border-radius: 0 6px 6px 0; line-height: 1.5;
}
.optional-zone { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--hair); }
.optional-zone .opt-label { font-weight: 700; color: var(--navy); font-size: .97rem; }
.optional-zone .opt-hint { font-size: .84rem; color: var(--muted); margin: 3px 0 14px; }

/* counters row (bed/bath/car) */
.counters { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
@media (max-width:640px){ .counters { grid-template-columns: 1fr; } }
.counters.counters-2 { grid-template-columns: repeat(2,1fr); }
.counter { border: 1px solid var(--line); border-radius: 10px; padding: 16px 14px; text-align: center; background: var(--paper); }
.counter .lab { font-size: .76rem; color: var(--slate); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 7px; }
.counter .ctrl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.counter button { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background:#fff; font-size: 1.15rem; cursor: pointer; color: var(--navy); line-height: 1; }
.counter button:hover { border-color: var(--green-d); background: var(--green-p); }
.counter .val { font-family: "Source Serif 4", Georgia, serif; font-size: 1.6rem; font-weight: 600; min-width: 28px; color: var(--navy); }

.nav-row { display: flex; justify-content: space-between; margin-top: 36px; gap: 12px; align-items: center; }

/* ---------- step 5: order summary ---------- */
.checkout { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.checkout .co-head {
  background: var(--navy); color: #fff; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
}
.checkout .co-head .t { font-family: "Source Serif 4", Georgia, serif; font-size: 1.15rem; font-weight: 600; }
.checkout .co-head .s { color: var(--green); font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.checkout .co-body { padding: 6px 24px 4px; }
.review { }
.review .row { display:flex; justify-content:space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid var(--hair); }
.review .row .k { color: var(--slate); font-size: .92rem; }
.review .row .v { font-weight: 650; text-align: right; font-size: .94rem; }
.checkout .co-line {
  display: flex; justify-content: space-between; gap: 18px; padding: 16px 24px;
  border-top: 1px solid var(--line); font-size: .95rem;
}
.checkout .co-line .d { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.checkout .co-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 18px;
  padding: 16px 24px 20px; border-top: 2px solid var(--navy); background: var(--green-p);
}
.checkout .co-total .l { font-weight: 700; letter-spacing: .02em; }
.checkout .co-total .amt { font-size: 1.9rem; color: var(--navy); }
.includes { list-style: none; margin: 18px 0 0; padding: 0; }
.includes li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .92rem; color: var(--muted); }
.includes li .ic { color: var(--green-d); margin-top: .25em; }
.pay-note {
  margin-top: 18px; border-left: 3px solid var(--green-d); background: var(--green-p);
  padding: 14px 18px; border-radius: 0 6px 6px 0; font-size: .88rem; color: #41514a; line-height: 1.55;
}

/* ---------- confirmation ---------- */
.confirm-shell { max-width: 860px; margin: 0 auto; padding: 72px 22px 90px; }
.confirm-tick {
  width: 62px; height: 62px; border-radius: 14px; background: var(--green-t); color: #46691f;
  display: grid; place-items: center; margin: 0 0 26px;
}
.confirm-head { position: relative; padding-left: 40px; }
.confirm-head::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 4px; width: 7px;
  background: var(--green); border-radius: 1px;
}
.confirm-head h1 { font-size: clamp(2rem, 3.4vw, 2.7rem); margin: 0 0 12px; }
.confirm-head .lede { font-size: 1.14rem; color: var(--muted); margin: 0; max-width: 46ch; line-height: 1.6; }
.confirm-head .lede strong { color: var(--navy); font-weight: 650; }
.confirm-card {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px 26px; margin-top: 34px;
}
.confirm-card h3 { margin: 0 0 6px; font-size: 1.22rem; }
.nextlist { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: nx; }
.nextlist li {
  display: grid; grid-template-columns: 34px 1fr; gap: 16px; align-items: baseline;
  padding: 15px 0; border-top: 1px solid var(--hair);
}
.nextlist li:first-child { border-top: 0; padding-top: 4px; }
.nextlist li::before {
  counter-increment: nx; content: "0" counter(nx);
  font-family: "Source Serif 4", Georgia, serif; font-size: 1.12rem; font-weight: 600;
  color: var(--green-d); letter-spacing: -.01em;
}
.nextlist .t { font-weight: 650; color: var(--ink); font-size: .98rem; }
.nextlist .d { color: var(--muted); font-size: .9rem; line-height: 1.55; margin-top: 2px; }
.refline {
  margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: .8rem; color: var(--slate); letter-spacing: .04em;
}
.refline .mono { font-family: Consolas, "SFMono-Regular", "Liberation Mono", monospace; font-size: .78rem; color: var(--navy); }

/* =================== REPORT (prototype look-page, unchanged) =================== */
.report { background: #fff; }
.report-cover {
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(184,199,58,.14), transparent 60%),
    var(--navy);
  color: #fff; padding: 54px 0 60px;
}
.report-cover .wrap { max-width: 900px; }
.report-cover .logo { height: 58px; margin-bottom: 36px; }
.report-cover .r-addr { font-size: 2.1rem; font-weight: 800; }
.report-cover .r-sub { color: #b9c6d1; margin-bottom: 30px; }
.cover-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: end; }
@media (max-width: 760px){ .cover-grid { grid-template-columns: 1fr; } }
.cover-photo { aspect-ratio: 16/10; border-radius: 14px; overflow:hidden; background:#22323e; box-shadow: var(--shadow-lg); }
.estimate-box .lab { color: var(--green); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .74rem; }
.estimate-box .range { font-size: 2.6rem; font-weight: 800; letter-spacing: -.02em; }
.estimate-box .mid { color: #b9c6d1; }
.conf-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.14); margin: 16px 0 6px; position: relative; overflow: hidden; }
.conf-bar i { position:absolute; left:0; top:0; bottom:0; width: 72%; background: var(--green); border-radius: 999px; }
.conf-row { display:flex; justify-content: space-between; font-size:.8rem; color:#b9c6d1; }

.report-body { max-width: 900px; margin: 0 auto; padding: 10px 22px 60px; }
.r-section { padding: 40px 0; border-bottom: 1px solid var(--line); }
.r-section:last-child { border-bottom: 0; }
.r-section > .eyebrow { color: var(--green-d); }
.r-section h2 { margin-top: 4px; }

.liftlower { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 640px){ .liftlower { grid-template-columns: 1fr; } }
.ll { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.ll h4 { display:flex; align-items:center; gap: 8px; font-size: 1rem; }
.ll ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
.ll li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .94rem; display:flex; gap:8px; }
.ll li:last-child { border-bottom: 0; }
.ll.up h4 { color: var(--good); }
.ll.down h4 { color: var(--bad); }

.specs { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 18px 0; }
@media (max-width: 560px){ .specs { grid-template-columns: 1fr 1fr; } }
.spec { background: var(--bg); border-radius: 12px; padding: 16px; text-align: center; }
.spec .v { font-size: 1.5rem; font-weight: 800; color: var(--navy); }
.spec .k { color: var(--muted); font-size: .82rem; }

.photo-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
@media (max-width: 560px){ .photo-row { grid-template-columns: 1fr 1fr; } }
.photo-row .ph { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background:#dfe6ea; }

.condition-chip { display:inline-block; background: var(--green-t); color:#5e6b22; font-weight:700; padding: 5px 14px; border-radius: 999px; font-size:.85rem; }

.locgrid { display:grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 700px){ .locgrid { grid-template-columns: 1fr; } }
.aerial { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background:#dfe6ea; box-shadow: var(--shadow); position: relative; }
.aerial .pin-marker { position: absolute; top: 46%; left: 50%; transform: translate(-50%,-50%); width: 26px; height: 26px; color: var(--green); filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.pocket-score { display:flex; align-items:baseline; gap:10px; }
.pocket-score .s { font-size: 2.2rem; font-weight: 800; color: var(--navy); }
.pocket-score .l { font-weight: 700; }
.driver { display:flex; justify-content: space-between; align-items:center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size:.94rem; }
.driver:last-child { border-bottom: 0; }
.driver .bar { flex: 0 0 120px; height: 7px; border-radius: 999px; background: #eef1f3; position: relative; margin-left: 12px; }
.driver .bar i { position:absolute; top:0; bottom:0; left:50%; border-radius:999px; }
.driver .bar i.pos { background: var(--good); }
.driver .bar i.neg { background: var(--bad); }
.flag { display:inline-flex; gap:6px; align-items:center; background:#fff5e8; color:#9a6512; border:1px solid #f0dcb6; padding:8px 12px; border-radius:10px; font-size:.88rem; margin-top:10px; }

.comp { display: grid; grid-template-columns: 150px 1fr auto; gap: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
@media (max-width: 620px){ .comp { grid-template-columns: 1fr; } }
.comp .cphoto { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; background:#dfe6ea; }
.comp .caddr { font-weight: 700; }
.comp .cmeta { color: var(--muted); font-size: .88rem; margin: 2px 0 8px; }
.comp .cverdict { font-size: .9rem; }
.comp .cprice { text-align: right; }
.comp .cprice .p { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.comp .cprice .d { font-size: .8rem; color: var(--muted); }
.badge { display:inline-block; padding: 4px 9px; border-radius: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.badge.lfl  { background:#e8edf2; color:#33485c; }
.badge.sup  { background:var(--green-t); color:#5d6c14; }
.badge.inf  { background:#f7ece3; color:#8a5a26; }

.market { display:grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
@media (max-width: 560px){ .market { grid-template-columns: 1fr; } }
.stat { background: var(--bg); border-radius: 12px; padding: 18px; }
.stat .v { font-size: 1.7rem; font-weight: 800; color: var(--navy); }
.stat .k { color: var(--muted); font-size: .85rem; }
.stat .t { font-size: .8rem; font-weight: 700; }
.stat .t.up { color: var(--good); }

.method { background: var(--bg); border-radius: var(--radius); padding: 22px; font-size: .92rem; color: var(--muted); }
.method strong { color: var(--ink); }

/* ---- print / PDF ---- */
@media print {
  .proto-bar, .no-print { display: none !important; }
  body { background: #fff; }
  .r-section { break-inside: avoid; }
  .comp, .ll, .card, .step { break-inside: avoid; }
  .report-cover { break-after: avoid; }
}

/* ===========================================================================
   Phase 5 — hosted intake additions (pay step, payment-confirming states,
   the local stub-pay page, the DRAFT legal pages). Everything above this line
   is the prototype stylesheet, copied unchanged.
   =========================================================================== */

/* the 24-hour promise, stated once and loudly, on the pay step */
.promise {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: #fff; border-radius: 10px;
  padding: 14px 18px; margin: 18px 0 0; font-size: .97rem; line-height: 1.5;
}
.promise .ic { color: var(--green); width: 20px; height: 20px; }
.promise b { color: var(--green); font-weight: 700; }
@media (max-width: 480px){ .promise { align-items: flex-start; font-size: .92rem; } }

.pay-actions { margin-top: 26px; }
.pay-actions .btn { width: 100%; justify-content: center; }
.legal-note {
  margin-top: 16px; font-size: .82rem; color: var(--muted); line-height: 1.6; text-align: center;
}
.legal-note a { color: var(--navy); font-weight: 650; }

.secure-line {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: .82rem; margin-top: 14px;
}
.secure-line .ic { width: 15px; height: 15px; }

/* payment-confirming / error banners */
.banner {
  display: flex; gap: 11px; align-items: flex-start;
  border-radius: 9px; padding: 14px 17px; margin-bottom: 20px;
  font-size: .91rem; line-height: 1.55;
}
.banner.wait { background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.banner.good { background: var(--green-p); border: 1px solid #ccd88c; color: #41514a; }
.banner.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: #8a5a26; }
.banner.bad  { background: #fbeeee; border: 1px solid #e3b9b9; color: #8a2b2b; }
.banner .spin {
  width: 16px; height: 16px; border: 2px solid #d5dee5; border-top-color: var(--navy);
  border-radius: 50%; display: inline-block; animation: slotspin .9s linear infinite;
  flex: none; margin-top: 2px;
}

/* the local test payment page (PAYMENT_MODE=stub only — never deployed live) */
.stub-shell { max-width: 520px; margin: 0 auto; padding: 60px 22px 90px; }
.stub-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 34px 30px; box-shadow: var(--shadow);
}
.stub-flag {
  background: #fff5e8; border: 1px solid #f0dcb6; color: #8a5a26;
  border-radius: 8px; padding: 11px 15px; font-size: .84rem; font-weight: 650;
  margin-bottom: 22px; line-height: 1.5;
}
.stub-amt { font-family: "Source Serif 4", Georgia, serif; font-size: 2.6rem;
  font-weight: 600; color: var(--navy); letter-spacing: -.02em; line-height: 1; }
.stub-card .btn { width: 100%; justify-content: center; margin-top: 22px; }

/* DRAFT legal pages */
.legal-shell { max-width: 760px; margin: 0 auto; padding: 48px 22px 80px; }
.draft-stamp {
  display: inline-block; background: #fff5e8; border: 1px solid #f0dcb6; color: #8a5a26;
  border-radius: 6px; padding: 6px 13px; font-size: .72rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.legal-shell h2 { font-size: 1.3rem; margin: 34px 0 10px; }
.legal-shell p, .legal-shell li { color: var(--ink); font-size: .96rem; line-height: 1.7; }
.legal-shell ul { padding-left: 20px; }

/* review row values wrap instead of clipping on a narrow phone */
.review .row .v { word-break: break-word; }
@media (max-width: 420px){
  .review .row { flex-direction: column; gap: 2px; }
  .review .row .v { text-align: left; }
}

/* Phone nav: at the prototype's widths the three links plus the CTA overflow the
   bar and give the whole page a sideways scroll. The in-page anchors duplicate
   sections the customer can just scroll to, so on a phone only the CTA stays. */
@media (max-width: 760px) {
  .nav .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .nav .logo { height: 40px; }
  .nav-links { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links a:not(.btn) { font-size: .85rem; }
  .nav-links .btn { padding: .7em 1.1em; font-size: .9rem; }
  .hero { padding: 40px 0 52px; }
}
@media (max-width: 560px) {
  /* Only the in-page anchors go: they duplicate sections the customer can scroll
     to. Real navigation ("Back to home") stays. */
  .nav-links a[href^="#"] { display: none; }
}
/* Belt and braces: nothing on these pages should ever scroll sideways. */
html, body { max-width: 100%; overflow-x: hidden; }
/* The hero card's fixed 382px max-width is wider than a 375px phone, which pushed
   the whole hero column past the viewport. Below the hero's stacking breakpoint
   it becomes fluid and sits square. */
@media (max-width: 900px) {
  .hero-grid > * { min-width: 0; }
  .hero-card { max-width: 100%; margin-left: 0; transform: none; }
}
/* On a phone the "One-off - no subscription" badge squeezed "Your order" onto
   two lines; stack them instead. */
@media (max-width: 480px) {
  .checkout .co-head { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* ===========================================================================
   Phase 5b — the rebuilt intake: address suggestions, one photo pool, pay last.
   Phone first: everything below is sized so a 390 px screen never scrolls
   sideways and every tap target clears 44 px.
   =========================================================================== */

/* the address drop-down --------------------------------------------------- */
.ac-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: 4px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  max-height: 290px; overflow-y: auto;
}
.ac-list[hidden] { display: none; }
.ac-list li {
  padding: 12px 12px; min-height: 44px; display: flex; align-items: center;
  border-radius: 7px; cursor: pointer; font-size: .95rem; line-height: 1.35;
}
.ac-list li:hover, .ac-list li:focus { background: var(--green-p); outline: none; }

/* optional-field tag ------------------------------------------------------ */
.field label .opt {
  font-weight: 500; color: var(--slate); font-size: .82rem; letter-spacing: .01em;
}

/* the photo pool ---------------------------------------------------------- */
.panel .dropzone { margin-top: 22px; min-height: 132px; }
.panel .dropzone h3 { font-size: 1.06rem; }
.photo-count {
  margin-top: 14px; font-weight: 650; color: var(--navy); font-size: .97rem;
}
#photoThumbs:not(:empty) { margin-top: 16px; }
/* the remove button is a real tap target, not a decoration: 44 px on a phone,
   trimmed back on a pointer device where a 44 px square would swamp the tile. */
#photoThumbs .thumb .x { width: 32px; height: 32px; font-size: 1rem; }
@media (pointer: coarse), (max-width: 480px) {
  #photoThumbs .thumb .x { width: 44px; height: 44px; font-size: 1.15rem; border-radius: 8px; }
}

/* counters: 44 px targets ------------------------------------------------- */
.counter button { width: 44px; height: 44px; font-size: 1.25rem; }
.counter .lab { text-transform: none; letter-spacing: 0; font-size: .84rem;
                color: var(--slate); font-weight: 650; }

/* the pay step ------------------------------------------------------------ */
.checkout .co-price-note {
  padding: 0 24px 20px; color: var(--muted); font-size: .9rem; line-height: 1.5;
  background: var(--paper); border-top: 0;
}
.pay-body { margin: 16px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.65; }
.pay-body + .pay-body { margin-top: 10px; }
.promise { margin-top: 20px; }
/* the promise sits on the navy band, so its emphasis stays lime - a navy bold
   here disappears into the background. */
.promise b { color: var(--green); }

/* the confirmation page --------------------------------------------------- */
.confirm-card p { font-size: .99rem; line-height: 1.7; margin: 0 0 14px; }
.confirm-card p:last-of-type { margin-bottom: 0; }

/* phone ------------------------------------------------------------------- */
@media (max-width: 480px) {
  .intake-shell { padding: 26px 16px 70px; }
  .counters, .counters.counters-2 { grid-template-columns: 1fr; gap: 10px; }
  .counter { display: flex; align-items: center; justify-content: space-between;
             text-align: left; padding: 10px 14px; }
  .counter .ctrl { margin-top: 0; }
  .nav-row .btn { flex: 1 1 auto; justify-content: center; min-height: 48px; }
  .checkout .co-total { padding-left: 18px; padding-right: 18px; }
  .checkout .co-body { padding-left: 18px; padding-right: 18px; }
  .checkout .co-price-note { padding-left: 18px; padding-right: 18px; }
  #photoThumbs { grid-template-columns: repeat(3, 1fr); }
}
