/* ==========================================================================
   HOME WATER ANALYZER — light blue water design system
   Separate from the main green Ashborn site on purpose (own product look).
   Every color pair used for text passes WCAG AA contrast (checked).
   ========================================================================== */

:root {
  --w-bg: #EEF6FC;
  --w-bg-2: #E3F0FA;
  --w-card: #FFFFFF;
  --w-card-tint: #F7FBFE;
  --w-primary: #1D6FB8;
  --w-primary-hover: #155A96;
  --w-deep: #0F3F6B;
  --w-deep-2: #0B3257;
  --w-ink: #0F2438;
  --w-ink-2: #4A5D70;
  --w-border: #CFE2F1;
  --w-border-strong: #A9CBE6;
  --w-on-deep: #FFFFFF;
  --w-on-deep-2: #CFE6F7;

  --s-good: #1E7A4C;   --s-good-bg: #E6F4EC;
  --s-amber: #8A5A00;  --s-amber-bg: #FFF4DE;
  --s-info: #1D6FB8;   --s-info-bg: #E6F1FB;
  --s-alert: #B42318;  --s-alert-bg: #FDECEA;
  --s-none: #5B6B7A;   --s-none-bg: #EEF2F5;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 1px 2px rgba(15, 36, 56, 0.05), 0 10px 28px -14px rgba(15, 63, 107, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--w-bg);
  color: var(--w-ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.hwa-sticky-on { padding-bottom: 88px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.5em; color: var(--w-ink); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--w-primary); text-underline-offset: 3px; }
a:hover { color: var(--w-primary-hover); }
img { max-width: 100%; height: auto; }
button { font: inherit; }
:focus-visible { outline: 3px solid #F5B400; outline-offset: 2px; border-radius: 4px; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--w-deep); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.hwa-header { background: rgba(255, 255, 255, 0.85); border-bottom: 1px solid var(--w-border); position: relative; z-index: 5; }
.hwa-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.hwa-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--w-ink); }
.hwa-brand img { height: 34px; width: auto; }
.hwa-brand-divider { width: 1px; height: 28px; background: var(--w-border-strong); }
.hwa-product { font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; letter-spacing: 0.08em; color: var(--w-deep); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hwa-back { font-size: 0.92rem; font-weight: 500; text-decoration: none; color: var(--w-ink-2); }
.hwa-back:hover { color: var(--w-primary); }
/* Header is the Ashborn logo only (Enevive co-brand removed 2026-10-02 at
   Giovanni's request; Enevive is still named where it matters: the consent
   text, the free-test note, the FAQ and "Water Research Partner" line). */
@media (max-width: 560px) { .hwa-brand-divider, .hwa-back { display: none; } .hwa-brand img { height: 28px; } }
/* Small phones: shrink the product name so logo + name always fit on one
   line with no sideways scrolling (checked down to 320px wide). */
@media (max-width: 560px) { .hwa-brand { gap: 10px; } .hwa-product { font-size: 0.8rem; letter-spacing: 0.05em; gap: 6px; } }
@media (max-width: 400px) { .hwa-brand img { height: 24px; } .hwa-product { font-size: 0.7rem; letter-spacing: 0.03em; } }

/* ---------- Drop icon ---------- */
.drop { display: inline-block; width: 1em; height: 1.25em; vertical-align: -0.2em; }
.drop path { fill: currentColor; }

/* ---------- Hero ---------- */
.hwa-hero { position: relative; overflow: hidden; padding: 64px 0 88px; background:
  radial-gradient(1200px 500px at 85% -10%, rgba(29, 111, 184, 0.14), transparent 60%),
  radial-gradient(900px 400px at -10% 110%, rgba(29, 111, 184, 0.10), transparent 60%),
  linear-gradient(180deg, #F4FAFE 0%, var(--w-bg) 100%); }
.hwa-hero .wrap { position: relative; z-index: 1; max-width: 760px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-primary); margin: 0 0 6px; }
.hwa-tagline { color: var(--w-ink-2); font-weight: 500; margin: 0 0 22px; }
.hwa-hero h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 18px; }
.hwa-hero .lede { font-size: 1.08rem; color: var(--w-ink-2); max-width: 620px; margin: 0 auto 28px; }
.wave-bottom { position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; width: 100%; display: block; }
.wave-bottom path { fill: var(--w-bg); }

.zip-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto 14px; background: var(--w-card); padding: 8px; border-radius: 18px; border: 1px solid var(--w-border); box-shadow: var(--shadow-card); }
.zip-form label { position: absolute; left: -9999px; }
.zip-form input { flex: 1; min-width: 0; border: 0; font-size: 1.25rem; padding: 12px 14px; border-radius: 12px; color: var(--w-ink); background: transparent; letter-spacing: 0.08em; }
.zip-form input::placeholder { color: #8195A8; letter-spacing: 0.02em; }
.zip-form input:focus { outline: none; }
.zip-form:focus-within { border-color: var(--w-primary); box-shadow: 0 0 0 4px rgba(29, 111, 184, 0.18), var(--shadow-card); }
.zip-error { color: var(--s-alert); font-weight: 600; font-size: 0.95rem; margin: 6px 0 0; min-height: 1.4em; }
.fine { font-size: 0.9rem; color: var(--w-ink-2); }
@media (max-width: 480px) {
  .zip-form { flex-direction: column; }
  .zip-form input { text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 14px 26px; border-radius: 14px; border: 2px solid transparent; font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease); position: relative; overflow: hidden; }
.btn-primary { background: var(--w-primary); color: #fff; box-shadow: 0 8px 20px -10px rgba(29, 111, 184, 0.8); }
.btn-primary:hover { background: var(--w-primary-hover); color: #fff; transform: translateY(-1px); }
.btn-secondary { background: #fff; color: var(--w-primary); border-color: var(--w-primary); }
.btn-secondary:hover { background: var(--w-card-tint); color: var(--w-primary-hover); }
.btn-white { background: #fff; color: var(--w-deep); }
.btn-white:hover { background: #EAF4FC; color: var(--w-deep); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, 0.45); animation: ripple 0.6s var(--ease); pointer-events: none; }
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }
.link-btn { background: none; border: 0; color: var(--w-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px 2px; min-height: 44px; }

/* ---------- Generic sections ---------- */
.section { padding: 44px 0; }
.section-head { max-width: 720px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.5rem, 4vw, 2rem); text-transform: uppercase; letter-spacing: 0.02em; }
.level-tag { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--w-ink-2); margin-bottom: 6px; }
.card { background: var(--w-card); border: 1px solid var(--w-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 22px; }
.flow-divider { display: block; width: 100%; height: 26px; margin: 8px 0; }
.flow-divider path { fill: none; stroke: var(--w-border-strong); stroke-width: 2; }

/* ---------- Processing ---------- */
.processing { max-width: 560px; margin: -48px auto 0; position: relative; z-index: 2; }
.processing ol { list-style: none; margin: 0; padding: 0; }
.processing li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--w-ink-2); font-weight: 500; }
.processing li .dot { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 2px solid var(--w-border-strong); display: grid; place-items: center; font-size: 0.8rem; }
.processing li.active { color: var(--w-ink); }
.processing li.active .dot { border-color: var(--w-primary); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.processing li.done { color: var(--w-ink); }
.processing li.done .dot { border-color: var(--s-good); background: var(--s-good); color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Notices ---------- */
.notice { max-width: 640px; margin: -48px auto 0; position: relative; z-index: 2; text-align: center; }
.notice h2 { font-size: 1.5rem; }
.notice .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* ---------- Provider choice ---------- */
.choose { max-width: 720px; margin: -48px auto 0; position: relative; z-index: 2; }
.choose h2 { font-size: 1.6rem; }
.choice-list { display: grid; gap: 12px; margin: 18px 0 8px; }
.choice { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--w-border); border-radius: var(--radius-md); padding: 18px 20px; min-height: 72px; cursor: pointer; color: var(--w-ink); transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.choice:hover { border-color: var(--w-primary); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.choice .radio { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; border: 2px solid var(--w-border-strong); }
.choice:hover .radio { border-color: var(--w-primary); box-shadow: inset 0 0 0 5px #fff; background: var(--w-primary); }
.choice strong { display: block; font-size: 1.08rem; }
.choice span.sub { display: block; color: var(--w-ink-2); font-size: 0.95rem; }
.choice.unsure { border-style: dashed; }
.share-bar { display: block; height: 6px; border-radius: 6px; background: var(--w-bg-2); margin-top: 8px; overflow: hidden; max-width: 260px; }
.share-bar i { display: block; height: 100%; background: var(--w-primary); border-radius: 6px; }

/* ---------- Report header ---------- */
.report-top { padding: 36px 0 8px; }
.report-top .card { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; }
.report-top h2 { font-size: clamp(1.3rem, 3.6vw, 1.7rem); margin: 0; }
.report-top .meta { color: var(--w-ink-2); font-size: 0.95rem; margin: 4px 0 0; }
.report-top .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.unserved-note { margin-top: 12px; background: var(--s-info-bg); color: var(--w-ink); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.97rem; }

/* ---------- Status badges (icon + words + color, never color alone) ---------- */
.badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; line-height: 1.2; }
.badge .ic { font-size: 1rem; line-height: 1; font-weight: 800; }
.tone-good { color: var(--s-good); background: var(--s-good-bg); }
.tone-amber { color: var(--s-amber); background: var(--s-amber-bg); }
.tone-info { color: var(--s-info); background: var(--s-info-bg); }
.tone-alert { color: var(--s-alert); background: var(--s-alert-bg); }
.tone-none { color: var(--s-none); background: var(--s-none-bg); }

/* ---------- CTA blocks ---------- */
.cta-inline { margin-top: 26px; background: linear-gradient(135deg, #FFFFFF 0%, #EAF4FC 100%); border: 1px solid var(--w-border); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between; }
.cta-inline p { margin: 0; font-size: 1.08rem; }
.cta-inline > div:first-child, .cta-inline > p { flex: 1 1 380px; }
.cta-inline p.big { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.cta-inline .cta-btn-wrap { text-align: center; }
.microcopy { display: block; font-size: 0.88rem; color: var(--w-ink-2); margin-top: 8px; letter-spacing: 0.02em; }
@media (max-width: 640px) { .cta-inline { flex-direction: column; align-items: stretch; text-align: center; } .cta-inline > div:first-child, .cta-inline > p { flex: none; } .cta-inline .btn { width: 100%; } }

/* ---------- Hardness ---------- */
.hardness-hero { text-align: center; padding: 30px 22px; }
.hardness-hero .k { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--w-ink-2); }
.hardness-hero .v { font-family: var(--font-display); font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 700; text-transform: uppercase; color: var(--w-deep); line-height: 1.05; margin: 6px 0; }
.hardness-hero .n { font-size: 1.15rem; font-weight: 600; }
.hscale { position: relative; margin: 44px 4px 8px; }
.hscale .track { display: flex; height: 18px; border-radius: 999px; overflow: hidden; }
.hscale .seg { height: 100%; }
.hscale .seg.soft { background: #CFE8F8; }
.hscale .seg.moderate { background: #9CCBEC; }
.hscale .seg.hard { background: #5A9FD6; }
.hscale .seg.veryhard { background: #1D6FB8; }
.hscale .labels { position: relative; height: 58px; margin-top: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--w-ink-2); }
.hscale .labels span { position: absolute; transform: translateX(-50%); text-align: center; width: 25%; line-height: 1.2; }
.hscale .labels small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: 0.72rem; margin-top: 2px; }
.hscale .marker { position: absolute; top: -36px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; transition: left 1s var(--ease); }
.hscale .marker b { background: var(--w-deep); color: #fff; font-size: 0.8rem; padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
.hscale .marker i { width: 3px; height: 30px; background: var(--w-deep); margin-top: 2px; border-radius: 3px; }
@media (max-width: 520px) { .hscale .labels { height: 70px; } .hscale .labels span { font-size: 0.66rem; letter-spacing: 0.02em; } .hscale .labels small { font-size: 0.64rem; } }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
.home-card { background: #fff; border: 1px solid var(--w-border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-card); }
.home-card .e { font-size: 1.7rem; line-height: 1; }
.home-card h3 { font-size: 1rem; margin: 10px 0 4px; }
.home-card p { margin: 0; color: var(--w-ink-2); font-size: 0.95rem; }

/* ---------- Quiz ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--w-border-strong); background: #fff; color: var(--w-ink); cursor: pointer; font-weight: 500; }
.chip[aria-pressed="true"] { border-color: var(--w-primary); background: var(--s-info-bg); color: var(--w-deep); font-weight: 700; }
.chip[aria-pressed="true"]::before { content: '✓'; font-weight: 800; }
.quiz-result { background: var(--s-info-bg); border-radius: var(--radius-sm); padding: 14px 16px; }

/* ---------- Detailed results (expandable) ---------- */
.results-list { display: grid; gap: 12px; }
.result { background: #fff; border: 1px solid var(--w-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden; }
.result > button { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.result > button:focus-visible { outline: 3px solid #F5B400; outline-offset: -3px; }
.result .rname { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; }
.result .rline { color: var(--w-ink-2); font-size: 0.95rem; grid-column: 1 / 2; }
.result .chev { grid-row: 1 / span 2; grid-column: 2; transition: transform 0.25s var(--ease); font-size: 1.1rem; color: var(--w-primary); }
.result[data-open="true"] .chev { transform: rotate(180deg); }
.result .rbadge { grid-column: 1 / -1; }
.result .panel { padding: 0 20px 20px; }
.meter { margin: 8px 0 16px; }
.meter .bar { height: 14px; border-radius: 999px; background: var(--w-bg-2); overflow: hidden; position: relative; }
.meter .bar i { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 0.9s var(--ease); }
.meter .bar i.tone-good { background: #3FA172; }
.meter .bar i.tone-alert { background: #D8483C; }
.meter .cap { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--w-ink-2); margin-top: 6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 14px; }
.fact { background: var(--w-card-tint); border: 1px solid var(--w-border); border-radius: var(--radius-sm); padding: 10px 12px; }
.fact dt { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--w-ink-2); }
.fact dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.note { font-size: 0.93rem; color: var(--w-ink-2); background: var(--w-card-tint); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 10px; }
.pfas-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 8px 0; }
.pfas-table th, .pfas-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--w-border); vertical-align: top; }
.pfas-table th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--w-ink-2); }
.nd-list { columns: 2 160px; font-size: 0.9rem; color: var(--w-ink-2); padding-left: 18px; }
.viol-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.viol-list li { background: var(--w-card-tint); border: 1px solid var(--w-border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 0.95rem; }

/* ---------- Final CTA ---------- */
.final-cta { background: linear-gradient(160deg, var(--w-deep) 0%, var(--w-deep-2) 100%); color: var(--w-on-deep); padding: 64px 0 70px; position: relative; overflow: hidden; text-align: center; margin-top: 28px; }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 5vw, 2.7rem); text-transform: uppercase; letter-spacing: 0.02em; }
.final-cta p { color: var(--w-on-deep-2); max-width: 620px; margin: 0 auto 26px; font-size: 1.1rem; }
.final-cta .microcopy { color: var(--w-on-deep-2); }
.final-cta .wave-top { position: absolute; top: -1px; left: 0; width: 100%; height: 44px; }
.final-cta .wave-top path { fill: var(--w-bg); }

/* ---------- Disclaimer, education, FAQ, footer ---------- */
.disclaimer { font-size: 0.9rem; color: var(--w-ink-2); border-top: 1px solid var(--w-border); padding-top: 16px; margin-top: 28px; }
.edu { background: #fff; border-top: 1px solid var(--w-border); border-bottom: 1px solid var(--w-border); }
.edu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px 32px; }
.edu-grid h3 { font-size: 1.1rem; }
.edu-grid p { color: var(--w-ink-2); }
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item { background: #fff; border: 1px solid var(--w-border); border-radius: var(--radius-md); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; min-height: 56px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--w-primary); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .a { padding: 0 20px 18px; color: var(--w-ink-2); }
.faq-item .a p:last-child { margin: 0; }
.hwa-footer { padding: 32px 0 40px; font-size: 0.92rem; color: var(--w-ink-2); }
.hwa-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
.hwa-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hwa-footer a { color: var(--w-ink-2); }
.powered { display: flex; align-items: center; gap: 10px; }
.powered img { height: 22px; width: auto; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--w-border); box-shadow: 0 -10px 24px -16px rgba(15, 63, 107, 0.45); display: flex; gap: 10px; align-items: center; transform: translateY(110%); transition: transform 0.3s var(--ease); }
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .btn { flex: 1; min-height: 50px; font-size: 0.95rem; }
.sticky-cta .x { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--w-border); background: #fff; color: var(--w-ink-2); font-size: 1.3rem; cursor: pointer; }
@media (min-width: 900px) { .sticky-cta { display: none; } body.hwa-sticky-on { padding-bottom: 0; } }

/* ---------- Lead form modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(11, 50, 87, 0.55); display: grid; place-items: center; padding: 16px; }
.modal-card { background: #fff; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; border-radius: var(--radius-lg); padding: 28px 24px 24px; position: relative; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.5); }
.modal-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--w-bg); font-size: 1.4rem; cursor: pointer; color: var(--w-ink); }
.steps-dots { display: flex; gap: 6px; margin-bottom: 14px; padding-right: 52px; }
.steps-dots i { height: 6px; flex: 1; border-radius: 6px; background: var(--w-bg-2); }
.steps-dots i.on { background: var(--w-primary); }
.modal-card h2 { font-size: 1.45rem; margin-bottom: 16px; padding-right: 40px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; font-size: 1.05rem; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--w-border-strong); color: var(--w-ink); background: #fff; min-height: 52px; }
.field input:focus { outline: none; border-color: var(--w-primary); box-shadow: 0 0 0 4px rgba(29, 111, 184, 0.16); }
.field input[aria-invalid="true"] { border-color: var(--s-alert); }
.field .err { color: var(--s-alert); font-size: 0.9rem; font-weight: 600; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.86rem; color: var(--w-ink-2); line-height: 1.5; margin: 6px 0 16px; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--w-primary); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.form-actions .btn-primary { flex: 1; }
.form-error { background: var(--s-alert-bg); color: var(--s-alert); border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 600; margin-bottom: 12px; }
.success { text-align: center; padding: 10px 0; }
.success .big-drop { font-size: 3rem; color: var(--w-primary); }
.addr-suggest { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid var(--w-border); border-radius: 12px; background: #fff; box-shadow: var(--shadow-card); }
.addr-suggest li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 0.95rem; }
.addr-suggest li[aria-selected="true"], .addr-suggest li:hover { background: var(--s-info-bg); }

/* ---------- Area (not sure) comparison ---------- */
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.area-card h3 { font-size: 1.1rem; }
.area-card ul { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 8px; }
.area-card li { display: flex; flex-direction: column; gap: 4px; font-size: 0.95rem; }

/* ==========================================================================
   REPORT REDESIGN (2026-10-02): area ID, recommendation meter, Top 3
   findings, home test CTA, about. Meter colors are only used together with
   words (never color alone). Text colors on tints pass WCAG AA.
   ========================================================================== */
:root {
  --rm-green: #2FA36B; --rm-yellow: #F2C230; --rm-orange: #EE8A2E; --rm-red: #D9473D;
  --rm-yellow-ink: #6E5000; --rm-yellow-bg: #FFF6D3;
  --rm-orange-ink: #8F4300; --rm-orange-bg: #FFEBD9;
  --rm-red-ink: #9E2419;   --rm-red-bg: #FDE5E2;
}

/* ---- Area water report ---- */
.area-id { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; padding: 26px; }
.area-id-main { flex: 1 1 420px; min-width: 0; }
.area-kicker, .rec-kicker { display: block; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--w-primary); margin-bottom: 4px; }
.area-zip { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 8vw, 3rem); line-height: 1; color: var(--w-deep); letter-spacing: 0.04em; }
.area-id h2 { font-size: clamp(1.3rem, 4.2vw, 1.8rem); margin: 8px 0 4px; }
.area-sub { color: var(--w-ink-2); margin: 0 0 12px; font-size: 0.98rem; }
.area-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0 0 12px; }
.area-facts dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w-ink-2); }
.area-facts dd { margin: 2px 0 0; font-weight: 600; }
.area-note { font-size: 0.86rem; color: var(--w-ink-2); margin: 0; }
.area-id .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.area-id .actions .btn { min-height: 44px; padding: 10px 16px; font-size: 0.85rem; }
.area-id .unserved-note { width: 100%; margin-top: 0; }
@media (max-width: 560px) {
  .report-top { padding-top: 20px; }
  .area-id { padding: 18px; gap: 12px; }
  .area-zip { font-size: 2.1rem; }
  .area-id h2 { font-size: 1.25rem; margin-top: 4px; }
  .area-sub { font-size: 0.92rem; margin-bottom: 10px; }
  .area-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-bottom: 10px; }
  .area-facts dd { font-size: 0.93rem; }
  .area-note { font-size: 0.8rem; }
  .area-id .actions { width: 100%; }
  .area-id .actions .btn { flex: 1 1 140px; min-height: 44px; padding: 8px 10px; font-size: 0.78rem; }
  .sec-meter { padding-top: 12px; }
}

/* ---- Water test recommendation meter ---- */
.sec-meter { padding-top: 18px; padding-bottom: 10px; }
.rec-card { text-align: center; padding: 28px 22px 22px; border-width: 2px; }
.rec-gauge { max-width: 380px; margin: 4px auto 0; }
.rm-svg { display: block; width: 100%; height: auto; overflow: visible; }
.rm-seg { fill: none; stroke-width: 30; stroke-linecap: butt; opacity: 0.38; transition: opacity 0.4s var(--ease); }
.rm-seg.on { opacity: 1; }
.rm-seg.rm-green { stroke: var(--rm-green); } .rm-seg.rm-yellow { stroke: var(--rm-yellow); }
.rm-seg.rm-orange { stroke: var(--rm-orange); } .rm-seg.rm-red { stroke: var(--rm-red); }
.rm-tick { stroke: #fff; stroke-width: 0; }
.rm-needle { transform-box: view-box; transform-origin: 160px 150px; transition: transform 1.3s cubic-bezier(0.34, 1.3, 0.64, 1); }
.rm-needle path, .rm-needle circle { fill: var(--w-deep); }
.rm-needle .rm-hub { fill: #fff; }
.rec-scale { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px auto 18px; padding: 0; max-width: 520px; }
.rec-scale li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; line-height: 1.2; color: var(--w-ink-2); text-transform: uppercase; letter-spacing: 0.04em; }
.rec-scale li i { width: 100%; max-width: 70px; height: 6px; border-radius: 6px; opacity: 0.4; }
.rec-scale li.rm-green i { background: var(--rm-green); } .rec-scale li.rm-yellow i { background: var(--rm-yellow); }
.rec-scale li.rm-orange i { background: var(--rm-orange); } .rec-scale li.rm-red i { background: var(--rm-red); }
.rec-scale li.on { color: var(--w-ink); font-weight: 800; }
.rec-scale li.on i { opacity: 1; height: 8px; }
.rec-title { display: inline-flex; align-items: center; gap: 12px; font-size: clamp(1.45rem, 5.4vw, 2.2rem); letter-spacing: 0.03em; padding: 10px 20px; border-radius: 16px; margin: 0 0 12px; }
.rec-dot { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; display: inline-block; }
.rec-copy { max-width: 600px; margin: 0 auto 12px; font-size: 1.06rem; }
.rec-note { max-width: 600px; margin: 0 auto 12px; font-size: 0.92rem; color: var(--w-ink-2); }
.rec-yellow { border-color: #F3D77A; } .rec-yellow .rec-title, .rec-chip.rec-yellow { background: var(--rm-yellow-bg); color: var(--rm-yellow-ink); } .rec-yellow .rec-dot { background: var(--rm-yellow); }
.rec-orange { border-color: #F5B47A; } .rec-orange .rec-title, .rec-chip.rec-orange { background: var(--rm-orange-bg); color: var(--rm-orange-ink); } .rec-orange .rec-dot { background: var(--rm-orange); }
.rec-red { border-color: #EE9C95; } .rec-red .rec-title, .rec-chip.rec-red { background: var(--rm-red-bg); color: var(--rm-red-ink); } .rec-red .rec-dot { background: var(--rm-red); }
.rec-chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 999px; margin: 0 0 6px; }
.rec-chip .rec-dot { width: 10px; height: 10px; flex-basis: 10px; }
@media (max-width: 480px) { .rec-card { padding: 22px 14px 16px; } .rec-scale { grid-template-columns: repeat(2, 1fr); gap: 10px 14px; max-width: 300px; } .rec-scale li { font-size: 0.72rem; } .rec-title { padding: 8px 14px; } }
#reportTop:focus, #reportTop:focus-visible { outline: none; }

/* ---- Top 3 findings ---- */
.sec-stands { padding-top: 26px; }
.tf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.tf-grid.tf-count-1 { grid-template-columns: minmax(0, 560px); }
.tf-grid.tf-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .tf-grid, .tf-grid.tf-count-2 { grid-template-columns: 1fr; } }
.tf-card { background: #fff; border: 1px solid var(--w-border); border-top: 6px solid var(--s-info); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tf-card.tf-amber { border-top-color: var(--rm-orange); }
.tf-card.tf-alert { border-top-color: var(--rm-red); background: linear-gradient(180deg, #FFF8F7 0%, #FFFFFF 40%); }
.tf-card.tf-quality, .tf-card.tf-none { border-top-color: var(--w-border-strong); }
.tf-head h3 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 6px; }
.tf-tag { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--s-info-bg); color: var(--s-info); }
.tf-amber .tf-tag { background: var(--rm-orange-bg); color: var(--rm-orange-ink); }
.tf-alert .tf-tag { background: var(--rm-red-bg); color: var(--rm-red-ink); }
.tf-quality .tf-tag, .tf-none .tf-tag { background: var(--s-none-bg); color: var(--s-none); }
.tf-values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tf-val { background: var(--w-card-tint); border: 1px solid var(--w-border); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.tf-val .l { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--w-ink-2); line-height: 1.3; }
.tf-val .n { display: block; font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--w-deep); margin-top: 4px; overflow-wrap: anywhere; }
.tf-val .n small { font-size: 0.9rem; font-weight: 600; margin-left: 4px; color: var(--w-ink-2); }
.tf-val .n.n-word { font-size: 1.15rem; line-height: 1.25; }
.tf-val.std .n { color: var(--w-ink-2); }
.tf-alert .tf-val:not(.std) .n { color: var(--rm-red-ink); }
.tf-values .tf-val:only-child { grid-column: 1 / -1; }
.tf-bar { position: relative; height: 10px; border-radius: 999px; background: var(--w-bg-2); }
.tf-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--w-primary); transition: width 1s var(--ease); }
.tf-amber .tf-bar i { background: var(--rm-orange); } .tf-alert .tf-bar i { background: var(--rm-red); }
.tf-bar b { position: absolute; top: -4px; width: 3px; height: 18px; margin-left: -2px; background: var(--w-ink-2); border-radius: 2px; }
.tf-card p { margin: 0; }
.tf-status { font-weight: 700; }
.tf-why { font-size: 0.97rem; }
.tf-faucet { font-size: 0.92rem; color: var(--w-ink-2); border-left: 3px solid var(--w-border-strong); padding-left: 10px; }
.tf-fine { font-size: 0.84rem; color: var(--w-ink-2); }
.tf-more { align-self: flex-start; margin-top: auto; padding-left: 0; }
@media (max-width: 380px) { .tf-values { grid-template-columns: 1fr; } }
.meaning-box { margin-top: 18px; border-left: 5px solid var(--w-primary); background: #fff; border-radius: var(--radius-sm); padding: 16px 20px; box-shadow: var(--shadow-card); }
.meaning-box h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.meaning-box ul { margin: 0; padding-left: 20px; }
.meaning-box li + li { margin-top: 6px; }

/* ---- Home water test CTA ---- */
.home-test { padding-top: 20px; }
.home-test-card { background: linear-gradient(150deg, var(--w-deep) 0%, #155A96 100%); color: #fff; border-radius: var(--radius-lg); padding: 34px 28px; text-align: center; box-shadow: 0 24px 50px -28px rgba(11, 50, 87, 0.8); }
.ht-kicker { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 3.6vw, 1.3rem); text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 8px; color: #fff; }
.ht-lead { color: var(--w-on-deep-2); max-width: 620px; margin: 0 auto 20px; font-size: 1.06rem; }
.ht-split { display: flex; align-items: stretch; justify-content: center; gap: 12px; max-width: 640px; margin: 0 auto 20px; }
.ht-col { flex: 1 1 0; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--radius-md); padding: 14px 16px; text-align: left; }
.ht-col.ht-home { background: #fff; color: var(--w-ink); border-color: #fff; }
.ht-label { display: block; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 4px; }
.ht-col p { margin: 0; font-size: 0.95rem; }
.ht-col:not(.ht-home) p { color: var(--w-on-deep-2); }
.ht-arrow { align-self: center; font-size: 1.5rem; color: var(--w-on-deep-2); }
.ht-factors-title { color: var(--w-on-deep-2); font-size: 0.95rem; margin: 0 0 10px; }
.ht-factors { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 0 auto 24px; max-width: 680px; }
.ht-factors li { font-size: 0.86rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); color: #fff; }
.home-test-card h2 { color: #fff; font-size: clamp(1.5rem, 5vw, 2.2rem); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 18px; }
.btn-big { min-height: 60px; padding: 16px 34px; font-size: 1.08rem; background: #fff; color: var(--w-deep); box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.5); }
.btn-big:hover { background: #EAF4FC; color: var(--w-deep); }
.home-test-card .microcopy { color: var(--w-on-deep-2); }
@media (max-width: 560px) { .home-test-card { padding: 28px 18px; } .ht-split { flex-direction: column; } .ht-arrow { transform: rotate(90deg); } .btn-big { width: 100%; } }

/* ---- Full report text + about ---- */
.rpart + .rpart { margin-top: 12px; }
.rpart h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w-ink-2); margin: 0 0 4px; font-family: var(--font-body); }
.rtext p { margin: 0 0 8px; }
.rtext p:last-child { margin-bottom: 0; }
ul.plain { margin: 10px 0 0; padding-left: 20px; }
.no-data { border-style: dashed; }
.about-report { padding-top: 10px; }
.about-card { max-width: 820px; }
.about-card h2 { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.partner-line { font-size: 0.92rem; color: var(--w-ink-2); border-top: 1px solid var(--w-border); padding-top: 12px; }

/* ---------- Print ---------- */
@media print {
  .hwa-header, .zip-form, .sticky-cta, .cta-inline, .final-cta, .home-test, .modal, .hwa-footer, .area-id .actions, .tf-more { display: none !important; }
  body { background: #fff; }
  .result .panel[hidden] { display: block !important; }
}
