/* Whole Home Water — conversion components (dirty vs clean compare, LP chrome, test steps).
   Owned by the conversion agent. Loaded after site.css on: /, /free-water-test/, /lp/dirty-filter/, /what-your-filter-catches/ */
:root{--silt:#7A5C3E;--rust:#A0522D;--murk:#C9B79C}

/* ---------- Dirty vs clean compare ---------- */
.dvc{margin:0;display:flex;flex-direction:column;gap:12px;min-width:0}
.dvc-stage{position:relative;border-radius:36px;overflow:hidden;aspect-ratio:3/2;background:var(--spray);box-shadow:0 30px 60px -30px rgba(10,37,64,.45);touch-action:pan-y;user-select:none;-webkit-user-select:none}
.dvc-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.dvc-dirty{clip-path:inset(0 calc(100% - var(--pos,50%)) 0 0)}
.dvc-lbl{position:absolute;top:16px;z-index:3;display:inline-flex;align-items:center;gap:6px;padding:8px 13px;border-radius:999px;font:800 13px/1 var(--sans);letter-spacing:.01em;white-space:nowrap;pointer-events:none}
.dvc-lbl-dirty{left:16px;background:var(--silt);color:#fff}
.dvc-lbl-clean{right:16px;background:#fff;color:var(--deep)}
.dvc-lbl i{width:8px;height:8px;border-radius:50%;background:currentColor;opacity:.7}
.dvc-handle{position:absolute;top:0;bottom:0;left:var(--pos,50%);width:4px;margin-left:-2px;background:#fff;z-index:2;pointer-events:none;box-shadow:0 0 0 1px rgba(10,37,64,.12)}
.dvc-handle::after{content:"";position:absolute;top:50%;left:50%;width:54px;height:54px;margin:-27px 0 0 -27px;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A2540' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/26px no-repeat;box-shadow:0 10px 24px -6px rgba(10,37,64,.5)}
.dvc-range{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;z-index:4;-webkit-appearance:none;appearance:none;background:transparent}
.dvc-range::-webkit-slider-thumb{-webkit-appearance:none;width:60px;height:400px}
.dvc-range::-moz-range-thumb{width:60px;height:400px;border:0}
.dvc:has(.dvc-range:focus-visible) .dvc-handle::after{outline:4px solid var(--splash);outline-offset:3px}
.dvc-hint{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:3;background:rgba(10,37,64,.82);color:#fff;font:700 13px/1 var(--sans);padding:9px 14px;border-radius:999px;pointer-events:none;white-space:nowrap;transition:opacity .3s}
.dvc.touched .dvc-hint{opacity:0}
.dvc figcaption{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:13px;line-height:1.45;color:var(--muted)}
.dvc figcaption b{color:var(--ink);font-weight:700}
.band-deep .dvc figcaption{color:#9DB7D3}.band-deep .dvc figcaption b{color:#fff}

/* No-JS fallback: two static panels side by side */
.dvc:not(.dvc-on) .dvc-stage{display:grid;grid-template-columns:1fr 1fr;aspect-ratio:auto}
.dvc:not(.dvc-on) .dvc-img{position:relative;inset:auto;aspect-ratio:3/4;object-position:center}
.dvc:not(.dvc-on) .dvc-dirty{clip-path:none;order:-1}
.dvc:not(.dvc-on) .dvc-range,.dvc:not(.dvc-on) .dvc-handle,.dvc:not(.dvc-on) .dvc-hint{display:none}
.dvc:not(.dvc-on) .dvc-lbl-clean{right:auto;left:calc(50% + 12px)}
@media (max-width:560px){.dvc-stage{border-radius:26px}.dvc-lbl{top:12px;font-size:12px;padding:7px 10px}.dvc-lbl-dirty{left:12px}.dvc-lbl-clean{right:12px}.dvc-handle::after{width:46px;height:46px;margin:-23px 0 0 -23px}}

/* ---------- Hero (home + LP) ---------- */
.cv-hero{padding-block:44px 72px;background:linear-gradient(180deg,#fff 0%,var(--mist) 100%)}
.cv-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:56px;align-items:center}
@media (max-width:980px){.cv-hero-grid{grid-template-columns:1fr;gap:28px}}
.cv-h1{font-size:clamp(42px,6vw,78px);line-height:.98;letter-spacing:-.035em}
.cv-h1 .hl{display:block;margin-top:.1em}
.cv-h1 .dirt{color:var(--silt)}
.cv-sub{font-size:clamp(17px,1.6vw,20px);line-height:1.55;color:var(--body);max-width:52ch}
.cv-sub a{color:var(--current);font-weight:600}
.cv-ctas{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.cv-trust{display:flex;gap:8px 18px;flex-wrap:wrap;font-size:15px;font-weight:600;color:var(--ink)}
.cv-trust span{display:inline-flex;gap:7px;align-items:center}
.cv-trust span::before{content:"";width:18px;height:18px;border-radius:50%;flex:none;background:#e3f3eb url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D5B' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat}
@media (max-width:640px){.cv-hero{padding-block:24px 52px}.cv-ctas .btn{width:100%}}
.cv-hero-copy{display:flex;flex-direction:column;gap:22px}

/* ---------- Bands / cards ---------- */
.cv-catch{border-radius:44px;background:var(--deep);color:#fff;padding:56px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;align-items:center}
.cv-catch h2{color:#fff}.cv-catch p{color:var(--onDark)}
.cv-catch .eyebrow{color:var(--splash)}
@media (max-width:980px){.cv-catch{grid-template-columns:1fr;padding:32px 22px;border-radius:32px}}
.cv-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.cv-list li{display:flex;gap:12px;align-items:flex-start}
.cv-list li::before{content:"";flex:none;width:12px;height:12px;border-radius:50%;margin-top:8px;background:var(--murk);box-shadow:0 0 0 4px rgba(201,183,156,.25)}
.cv-list.ok li::before{background:var(--splash);box-shadow:0 0 0 4px rgba(90,169,230,.2)}
.cv-proof{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:860px){.cv-proof{grid-template-columns:1fr}}
.cv-proof .card{gap:8px}
.cv-proof .k{font:800 clamp(30px,3.4vw,42px)/1 var(--display);letter-spacing:-.03em;color:var(--current)}
.src{font-size:13px;color:var(--muted)}
.src a{color:inherit}
.band-deep .src,.cv-catch .src{color:#9DB7D3}

/* 4-step test visual */
.tsteps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;counter-reset:ts}
@media (max-width:980px){.tsteps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.tsteps{grid-template-columns:1fr}}
.tstep{background:#fff;border-radius:30px;box-shadow:inset 0 0 0 2px var(--line);overflow:hidden;display:flex;flex-direction:column}
.tstep .art{background:var(--spray);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;position:relative}
.tstep .art svg{width:78%;height:auto}
.tstep .art::before{counter-increment:ts;content:counter(ts);position:absolute;left:14px;top:14px;width:34px;height:34px;border-radius:50%;background:var(--deep);color:#fff;font:800 16px/34px var(--display);text-align:center}
.tstep .tb{padding:20px 22px 24px;display:flex;flex-direction:column;gap:8px}
.tstep h3{font-size:22px}
.tstep p{font-size:15px;color:var(--body)}

/* compare table */
.cmp td,.cmp th{text-align:center}.cmp td:first-child,.cmp th:first-child{text-align:left}
.yes,.no,.part{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 10px;border-radius:999px;font:800 13px/1 var(--sans);white-space:nowrap}
.yes{background:#e3f3eb;color:var(--ok)}.no{background:#FBEAE8;color:var(--act)}.part{background:#F6EFE4;color:#7A5C3E}

/* Catch section blocks */
.catch-sec{display:grid;grid-template-columns:120px minmax(0,1fr);gap:28px;padding:36px 0;border-bottom:2px solid var(--line);scroll-margin-top:100px}
.catch-sec:last-child{border-bottom:0}
.catch-ico{width:110px;height:110px;border-radius:32px;display:flex;align-items:center;justify-content:center}
.catch-sec h2{font-size:clamp(28px,3vw,40px)}
.catch-sec .prose{gap:14px}
@media (max-width:640px){.catch-sec{grid-template-columns:1fr;gap:16px}.catch-ico{width:76px;height:76px;border-radius:22px}.catch-ico svg{width:40px}}

.photo-drop{border:3px dashed var(--line2);border-radius:36px;padding:40px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.photo-slot{aspect-ratio:4/3;border-radius:24px;background:#fff;box-shadow:inset 0 0 0 2px var(--line);flex-direction:column;gap:8px;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--muted);font-weight:600;font-size:14px;padding:16px}
@media (max-width:760px){.photo-drop{grid-template-columns:1fr 1fr;padding:18px}.photo-drop>.stack{grid-column:1/-1}}

/* ---------- Paid landing page chrome ---------- */
.lp-head{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.lp-head .head-row{min-height:66px;gap:14px}
.lp-phone{margin-left:auto;display:inline-flex;align-items:center;gap:8px;font-weight:800;text-decoration:none;white-space:nowrap}
.lp-phone svg{flex:none}
@media (max-width:420px){.lp-phone span{display:none}.lp-head .logo b{font-size:19px}}
.pc-start{background:#fff;border-radius:28px;padding:20px;box-shadow:0 20px 50px -24px rgba(10,37,64,.4);display:flex;flex-direction:column;gap:12px;max-width:520px}
.pc-start .inline-form input{font-size:20px;letter-spacing:.06em}
.lp-foot{background:var(--deep);color:var(--onDark);padding:40px 0 120px;font-size:13px;line-height:1.6}
.lp-foot a{color:#fff}
.sticky-cta{position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;border-top:1px solid var(--line);box-shadow:0 -12px 30px -16px rgba(10,37,64,.35);padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));display:none;gap:10px;align-items:center;transform:translateY(110%);transition:transform .25s}
.sticky-cta.show{transform:none}
.sticky-cta .btn{flex:1;min-height:52px;padding:0 16px}
.sticky-cta .btn-secondary{flex:0 0 auto}
@media (max-width:760px){.sticky-cta{display:flex}}
@media (prefers-reduced-motion:reduce){.sticky-cta{transition:none}}
/* hero tuning */
.cv-hero-grid{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)}
.cv-h1{font-size:clamp(40px,5vw,68px)}
@media (max-width:980px){.cv-hero-grid{grid-template-columns:1fr;gap:18px}.cv-hero-copy{display:contents}.cv-hero-copy>*{order:5}.cv-hero-grid .pill{order:1;justify-self:start}.cv-hero-grid .cv-h1{order:2}.cv-hero-grid>.dvc{order:3;margin:6px 0}.cv-hero-grid .cv-sub{order:4}.cv-hero-grid .cv-trust{order:6}}
@media (max-width:640px){.cv-h1{font-size:clamp(38px,11vw,52px)}}
.cv-catch a:not(.btn){color:#fff;font-weight:600}
.cv-catch .dvc figcaption{color:#9DB7D3}.cv-catch .dvc figcaption b{color:#fff}
@media (max-width:640px){.stat b{font-size:26px}}
@media (max-width:440px){.cv-hero .inline-form,.pc-start .inline-form{flex-direction:column}.cv-hero .inline-form .btn,.pc-start .inline-form .btn{width:100%}}
@media (max-width:640px){.cmp th,.cmp td{padding:12px 8px}.cmp td,.cmp th[scope=row]{font-size:14px!important}.cmp .yes,.cmp .no,.cmp .part{font-size:11px;padding:5px 6px;height:auto;min-width:0;white-space:normal;text-align:center;line-height:1.1}.cmp th[scope=col]{font-size:10px;letter-spacing:.04em}a.chip{min-height:38px;padding:0 14px;font-size:14px}}
@media (max-width:640px){.cmp th:first-child,.cmp td:first-child{width:34%}}
@media (max-width:640px){.cmp{table-layout:fixed}}
@media (max-width:520px){.tstep .art{aspect-ratio:16/9}.tstep .art svg{width:52%}}
