/* Is It Mold? One calm column, big tap targets, one decision per screen. */
:root {
  --bg: #f5f7f6;
  --surface: #ffffff;
  --ink: #14201b;
  --muted: #5d6a64;
  --line: #dfe5e2;
  --brand: #1f6f5c;
  --brand-ink: #ffffff;
  --brand-soft: #e3f0ec;
  --amber: #c27a12;
  --amber-ink: #8a5208;
  --amber-soft: #fbf0de;
  --ok: #2c7a4b;
  --ok-soft: #e5f3ea;
  --grey-soft: #eef1ef;
  --danger: #b3382f;
  --shadow: 0 1px 2px rgba(20, 32, 27, .06), 0 8px 24px rgba(20, 32, 27, .06);
  --radius: 16px;
  --font: "Figtree", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1513; --surface: #17201c; --ink: #e8efeb; --muted: #9aa8a1; --line: #2a3530;
    --brand: #4fb393; --brand-ink: #08130f; --brand-soft: #18322a;
    --amber: #f0a43a; --amber-ink: #f6c27a; --amber-soft: #33270f;
    --ok: #6cc893; --ok-soft: #173023; --grey-soft: #1d2723; --danger: #f08a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

/* Top bar */
.bar {
  position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 12px max(18px, env(safe-area-inset-left));
  max-width: 600px; margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.mark { width: 28px; height: 28px; color: var(--brand); }
.back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 16px; padding: 8px 6px; cursor: pointer; }
.back svg { width: 20px; height: 20px; }
.progress { max-width: 600px; margin: 0 auto; height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: 4px; transition: width .35s ease; }

main { max-width: 600px; margin: 0 auto; padding: 8px max(18px, env(safe-area-inset-right)) calc(40px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); outline: none; }
.screen { display: flex; flex-direction: column; gap: 20px; animation: in .28s ease both; }
@keyframes in { from { transform: translateY(6px); } to { transform: none; } }

h1 { font-size: clamp(40px, 11vw, 56px); line-height: 1.02; letter-spacing: -.03em; margin: 12px 0 0; font-weight: 800; text-wrap: balance; }
h2 { font-size: 28px; line-height: 1.12; letter-spacing: -.02em; margin: 0; font-weight: 800; text-wrap: balance; }
h3 { font-size: 18px; margin: 0; font-weight: 700; }
p { margin: 0; }
.lead { font-size: 19px; color: var(--muted); max-width: 32ch; }
.muted { color: var(--muted); }
.small { font-size: 14.5px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 58px; padding: 14px 20px; border-radius: 14px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 18px; text-decoration: none; transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: scale(.985); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn.link { background: none; color: var(--brand); min-height: 44px; font-size: 16px; padding: 8px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Home */
.trust { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14.5px; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }
.how { display: grid; gap: 10px; counter-reset: s; list-style: none; padding: 0; margin: 0; }
.how li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-weight: 600; }
.how li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.example { position: relative; }
.example .tag { position: absolute; top: 14px; right: 14px; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--grey-soft); padding: 3px 8px; border-radius: 999px; }
.fine { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.fine button { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* Photos */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shot { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--grey-soft); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot button { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.shot button svg { width: 16px; height: 16px; }
.add { aspect-ratio: 1; border-radius: 14px; border: 2px dashed var(--line); background: none; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 600; font-size: 14px; cursor: pointer; }
.add svg { width: 26px; height: 26px; }
.tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tips li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15.5px; }
.tips svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }

/* Questions */
.q-count { font-size: 14px; font-weight: 700; color: var(--muted); }
.options { display: grid; gap: 10px; }
.options.two { grid-template-columns: 1fr 1fr; }
.options.two .opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.opt {
  display: flex; align-items: center; gap: 14px; min-height: 60px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: 17px; cursor: pointer; transition: border-color .15s, background .15s;
}
.opt:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.opt[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.opt .sub { display: block; font-weight: 500; font-size: 14.5px; color: var(--muted); }
.opt .check { margin-left: auto; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; flex: none; }
.opt[aria-pressed="true"] .check { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.opt .check svg { width: 15px; height: 15px; opacity: 0; }
.opt[aria-pressed="true"] .check svg { opacity: 1; }
.scale { width: 56px; height: 44px; flex: none; display: grid; place-items: center; }
.scale i { display: block; background: var(--amber-soft); border: 2px solid var(--amber); border-radius: 4px; }

/* Analyzing */
.scan { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--grey-soft); }
.scan img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--brand) 35%, transparent), transparent); animation: sweep 1.8s ease-in-out infinite; }
@keyframes sweep { to { top: 100%; } }
.steps-live { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps-live li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-weight: 600; transition: color .3s; }
.steps-live li.on { color: var(--ink); }
.steps-live li .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.steps-live li.on .dot { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.steps-live li .dot svg { width: 13px; height: 13px; opacity: 0; }
.steps-live li.on .dot svg { opacity: 1; }

/* Result */
.verdict { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 15px; }
.verdict::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.v-mold { background: var(--amber-soft); color: var(--amber-ink); }
.v-mildew { background: var(--amber-soft); color: var(--amber-ink); }
.v-not_mold { background: var(--ok-soft); color: var(--ok); }
.v-unclear { background: var(--grey-soft); color: var(--muted); }
.result-head { display: grid; grid-template-columns: 1fr 96px; gap: 16px; align-items: start; }
.result-head img { width: 96px; height: 96px; object-fit: cover; border-radius: 14px; }
.result-head .verdict { justify-self: start; }
.result-head h2 { font-size: 26px; }
.sure { font-size: 14px; color: var(--muted); font-weight: 600; }
.seen { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.seen li { display: flex; gap: 10px; align-items: flex-start; }
.seen li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-top: 9px; flex: none; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 15.5px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
.next { border: 2px solid var(--brand); }
.next.sev-high { border-color: var(--amber); }
.next .why { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15.5px; }
.next .why li { display: flex; gap: 10px; }
.next .why svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--brand); }
.next.sev-high .why svg { color: var(--amber); }
.others { display: grid; gap: 10px; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 16.5px; }
.row .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.row .ico svg { width: 22px; height: 22px; }
.row .sub { display: block; font-weight: 500; font-size: 14.5px; color: var(--muted); }
.row .chev { margin-left: auto; width: 20px; height: 20px; color: var(--muted); flex: none; }
.note { border-radius: 14px; padding: 14px 16px; font-size: 15.5px; display: flex; gap: 10px; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.note.warn { background: var(--amber-soft); color: var(--amber-ink); }
.note.info { background: var(--grey-soft); color: var(--muted); }
.demo { background: var(--grey-soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; font-size: 15.5px; }
.field input[type=text], .field input[type=tel] {
  min-height: 56px; padding: 12px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font-size: 19px;
}
.field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 46px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
#quote-rest { display: grid; gap: 18px; margin-top: 4px; }
.consent { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.consent input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--brand); }
.error { color: var(--danger); font-weight: 600; font-size: 15px; }
.pro { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.pro .badge { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.stars { color: var(--amber); font-weight: 700; font-size: 14.5px; }
.done { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.done svg { width: 40px; height: 40px; }
.phone { font-size: 26px; font-weight: 800; letter-spacing: .01em; }

/* Guide */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li label { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
.checklist input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }
.checklist b { font-weight: 700; }
.items { display: grid; gap: 8px; }
.item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.item a, .item span.soon { font-weight: 700; font-size: 15px; white-space: nowrap; }
.item span.soon { color: var(--muted); font-weight: 600; }

dialog { border: 0; border-radius: 20px; padding: 0; max-width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(10, 16, 13, .45); }
dialog .inner { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
@media (prefers-reduced-motion: reduce) {
  .screen { animation: none; }
  .scan::after { animation: none; display: none; }
  .progress i { transition: none; }
}
