/* Catawba Valley Water — site styles
   Approved palette (Directive 001): warm ivory #F5F1E8, deep teal #173F43, soft sage #A9B9A7,
   brushed copper #B97D58, charcoal #262D2D. Derived tints/shades below exist only where the
   base colour can't meet WCAG AA contrast for text (noted on each).
   Hand-written CSS, no build step. */

/* ---------- Fonts: self-hosted (two families), metric-matched fallbacks so the swap doesn't shift layout ---------- */
@font-face { font-family: "DM Serif Display"; src: url("/assets/fonts/dm-serif-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); ascent-override: 102.7%; descent-override: 28.9%; line-gap-override: 0%; size-adjust: 103.4%; }
@font-face { font-family: "DM Serif Fallback"; src: local("Georgia"); ascent-override: 96%; descent-override: 31%; line-gap-override: 0%; size-adjust: 104%; }

:root {
  /* approved palette */
  --ivory: #F5F1E8;
  --teal: #173F43;
  --sage-base: #A9B9A7;
  --copper: #B97D58;
  --charcoal: #262D2D;

  /* working tokens (existing names kept so every page picks up the palette) */
  --cream: var(--ivory);
  --paper: #FBF9F4;        /* lighter ivory for raised surfaces */
  --river: var(--teal);
  --river-2: #1F4F54;      /* teal hover */
  --river-3: #10302F;      /* deepest teal: footer */
  --ink: var(--charcoal);
  --muted: #4F5A58;        /* charcoal at reduced strength, 6.3:1 on ivory */
  --rule: #DDD8CC;
  --rule-2: #EAE5DA;
  --sage: var(--sage-base);
  --sage-wash: #E6EBE3;    /* sage tint for highlights */
  --brass: #8C5634;        /* copper shade for small text on ivory (5.3:1); base copper is 3.0:1 */
  --brass-btn: var(--copper);
  --brass-lite: #D2A07F;   /* copper tint for text on teal (5.0:1) */
  --flag: #A4402A;
  --ok: #2F6B4F;
  --caution: #EAD7BC;

  --serif: "DM Serif Display", "DM Serif Fallback", Georgia, serif;
  --sans: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  /* type scale */
  --fs-body: 1.0625rem;
  --fs-lede: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 2vw, 2.85rem);
  --fs-h3: clamp(1.3rem, 1.2rem + .4vw, 1.5rem);

  /* spacing scale (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(64px, 8vw, 112px);

  --r-photo: 6px;
  --r-surface: 12px;
  --gutter: 20px;
  --max: 1240px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; font-feature-settings: "ss01"; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -0.005em; text-wrap: balance; color: var(--river); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.15; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--river); color: var(--paper); padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (max-width: 359px) { :root { --gutter: 16px; } }
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--rule); }
.lede { font-size: var(--fs-lede); line-height: 1.6; color: var(--muted); max-width: 60ch; }
.kicker { font-size: .9375rem; font-weight: 700; color: var(--brass); }
.note { font-size: .875rem; color: var(--muted); }
.head { display: grid; gap: 14px; max-width: 46rem; margin-bottom: clamp(32px, 5vw, 52px); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1.0625rem; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--river); color: var(--paper); }
.btn-primary:hover { background: var(--river-2); }
.btn-quiet { border-color: var(--river); color: var(--river); background: transparent; }
.btn-quiet:hover { background: var(--river); color: var(--paper); }
.btn-on-dark, .btn-brass { background: var(--ivory); color: var(--teal); }
.btn-on-dark:hover, .btn-brass:hover { background: #fff; }
.btn-text { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--teal); text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.btn-text:hover { text-decoration-color: var(--teal); }
.btn-light { border-color: rgba(245,241,232,.5); color: var(--paper); background: transparent; }
.btn-light:hover { border-color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245,241,232,.95); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.35rem; color: var(--river); text-decoration: none; white-space: nowrap; }
.nav { display: none; margin-left: auto; gap: 26px; font-weight: 600; font-size: .98rem; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 8px; }
.nav a:hover { color: var(--river); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.head-phone { display: none; font-weight: 700; color: var(--river); text-decoration: none; }
.head-actions .btn { display: none; min-height: 44px; padding: 0 20px; font-size: .98rem; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 16px; border: 2px solid var(--river); border-radius: 999px; background: transparent; color: var(--river); font-weight: 700; cursor: pointer; }
.mobile-nav { border-top: 1px solid var(--rule); background: var(--cream); }
.mobile-nav a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid var(--rule-2); font-family: var(--serif); font-size: 1.35rem; color: var(--river); text-decoration: none; }
@media (min-width: 768px) { .head-actions .btn { display: inline-flex; } }
@media (min-width: 1080px) {
  .nav { display: flex; }
  .head-actions { margin-left: 0; }
  .menu-btn, .mobile-nav { display: none !important; }
  body[data-phone-ready="true"] .head-phone { display: inline; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(72px, 9vw, 112px); }
.hero .wrap { display: grid; gap: 48px; }
.hero h1 { font-size: clamp(2.6rem, 5.1vw, 4.05rem); line-height: 1.0; letter-spacing: -0.012em; }
.hero h1 span { display: block; }
.hero .lede { margin-top: 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.source { margin-top: 34px; padding: 0; border: 0; max-width: 34rem; }
.source legend { font-weight: 700; color: var(--river); padding: 0; margin-bottom: 12px; }
.source-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.source-opt { position: relative; cursor: pointer; }
.source-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.source-opt > span { display: grid; gap: 2px; min-height: 72px; align-content: center; padding: 12px 16px; border: 1.5px solid var(--rule); border-radius: var(--r-surface); background: var(--paper); transition: border-color .15s, background-color .15s; }
.source-opt b { font-size: 1.05rem; color: var(--river); }
.source-opt small { font-size: .85rem; color: var(--muted); line-height: 1.35; }
.source-opt:hover > span { border-color: var(--sage); }
.source-opt input:checked + span { border-color: var(--river); background: var(--sage-wash); box-shadow: inset 0 0 0 1px var(--river); }
.source-opt input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 3px; }
.source-help { margin-top: 12px; min-height: 3.3em; font-size: .975rem; color: var(--muted); line-height: 1.5; }
.source-help a { color: var(--brass); font-weight: 700; }
[data-source-summary] { display: none; }
body:not([data-water]) [data-source-summary="none"],
body[data-water="city"] [data-source-summary="city"],
body[data-water="well"] [data-source-summary="well"] { display: block; }

.hero-photo img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 58% 50%; border-radius: var(--r-photo); }
@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 56px; }
  .hero-photo img { aspect-ratio: 4 / 4.2; }
}

/* sample lab report: a standalone card on the testing page (never laid over a photo) */
.report { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-surface); box-shadow: 0 20px 40px -28px rgba(21,58,57,.35); padding: 18px 20px 14px; font-size: .9rem; }
.report-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.report-head b { font-family: var(--serif); font-weight: 400; font-size: 1.25rem; color: var(--river); display: block; line-height: 1.1; }
.report-head small { color: var(--muted); font-size: .82rem; }
.stamp { flex-shrink: 0; font-size: .75rem; font-weight: 700; color: var(--brass); border: 1.5px solid currentColor; border-radius: 4px; padding: 2px 7px; }
.report table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.report th { text-align: left; font-size: .75rem; font-weight: 700; color: var(--muted); padding: 9px 0 4px; }
.report td { padding: 7px 0; border-top: 1px solid var(--rule-2); }
.report .n { text-align: right; padding-left: 10px; white-space: nowrap; }
.report .lim { color: var(--muted); }
.report-foot { margin-top: 8px; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; line-height: 1.5; }
.pill-over { background: #F3DDD5; color: var(--flag); }
.pill-watch { background: var(--caution); color: #6E4A22; }
.pill-ok { background: var(--sage-wash); color: var(--ok); }
.hide-sm { display: none; }
@media (min-width: 400px) { .hide-sm { display: table-cell; } }

/* ---------- Trust line ---------- */
.trust { border-block: 1px solid var(--rule); background: var(--paper); }
.trust ul { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; padding-block: 20px; font-size: .95rem; font-weight: 600; color: var(--river); }
.trust li { display: flex; gap: 10px; align-items: center; line-height: 1.3; }
.trust svg { flex-shrink: 0; color: var(--ok); }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, auto); justify-content: space-between; } }

/* ---------- Problems: field guide ---------- */
.guide-top { display: grid; gap: 24px; margin-bottom: 36px; }
.filter { display: inline-flex; gap: 4px; padding: 4px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper); justify-self: start; margin: 0; }
.filter label { position: relative; cursor: pointer; }
.filter input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.filter span { display: block; min-height: 44px; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--muted); }
.filter input:checked + span { background: var(--river); color: var(--paper); }
.filter input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
@media (min-width: 900px) { .guide-top { grid-template-columns: 1fr auto; align-items: end; } .guide-top .head { margin-bottom: 0; } }

.guide { display: grid; column-gap: 56px; border-top: 2px solid var(--river); }
.guide-item { position: relative; display: grid; align-content: start; gap: 6px; padding: 22px 14px 22px 0; border-bottom: 1px solid var(--rule); transition: opacity .2s, background-color .2s; }
.guide-item h3 { font-size: 1.35rem; padding-right: 92px; }
.guide-item p { color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 52ch; }
.guide-item .fix { color: var(--ink); font-size: .95rem; }
.guide-item .fix b { color: var(--brass); }
.where { position: absolute; top: 25px; right: 14px; font-size: .78rem; font-weight: 700; color: var(--muted); }
@media (min-width: 900px) { .guide { grid-template-columns: 1fr 1fr; } }

/* segmenter states: highlight matches, fade the rest (opacity/colour only — nothing moves) */
[data-source-card] .match { visibility: hidden; }
body[data-water="city"] [data-source-card]:not([data-source-card~="city"]),
body[data-water="well"] [data-source-card]:not([data-source-card~="well"]) { opacity: .35; }
body[data-water="city"] .guide-item[data-source-card~="city"],
body[data-water="well"] .guide-item[data-source-card~="well"] { background: linear-gradient(90deg, var(--sage-wash), rgba(228,236,232,0)); padding-left: 14px; }
body[data-water] .guide-item { padding-left: 14px; }
body[data-water="city"] [data-source-card~="city"] .match,
body[data-water="well"] [data-source-card~="well"] .match { visibility: visible; }
.match { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--ok); }
.guide-item .match { position: absolute; top: 25px; right: 14px; }
body[data-water="city"] .guide-item[data-source-card~="city"] .where,
body[data-water="well"] .guide-item[data-source-card~="well"] .where { visibility: hidden; }

/* ---------- Testing ---------- */
.testing-grid { display: grid; gap: 40px; }
.testing-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-photo); }
.photo-caption { margin-top: 10px; font-size: .875rem; color: var(--muted); }
.tiers { border-top: 2px solid var(--river); }
.tier { display: grid; align-content: start; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.tier-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.tier h3 { font-size: 1.5rem; }
.tier .when { font-size: .9rem; font-weight: 600; color: var(--muted); }
.tier ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tier li { font-size: .9rem; padding: 4px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--rule); }
.tier .note { margin-top: 4px; }
.tier-feature { margin-top: 12px; padding: 26px 24px; border-radius: var(--r-surface); background: var(--river); border-bottom: 0; color: var(--paper); }
.tier-feature h3 { color: var(--paper); }
.tier-feature .when { color: var(--sage); }
.tier-feature li { background: var(--river-2); border-color: #2F5653; color: var(--paper); }
.tier-feature .btn { justify-self: start; margin-top: 12px; }
.tag-ok { font-size: .8rem; font-weight: 700; color: var(--river); background: var(--sage); padding: 2px 10px; border-radius: 999px; }
.lab-band { display: grid; gap: 18px; margin-top: clamp(48px, 7vw, 80px); align-items: center; }
.lab-band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-photo); }
.lab-band p { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; color: var(--river); max-width: 22ch; }
@media (min-width: 960px) {
  .testing-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
  .testing-photo { position: sticky; top: 104px; }
  .lab-band { grid-template-columns: 1.5fr 1fr; gap: 48px; }
}

/* ---------- Who should test ---------- */
.panorama img { width: 100%; aspect-ratio: 1916 / 821; min-height: 240px; object-fit: cover; border-radius: var(--r-photo); }
.facts { display: grid; gap: 0; margin-top: 36px; border-top: 2px solid var(--river); }
.fact { display: grid; align-content: start; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.fact .fig { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--river); }
.fact h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--ink); }
.fact p { font-size: .975rem; color: var(--muted); line-height: 1.55; }
.fact .src { font-size: .8rem; color: var(--muted); }
@media (min-width: 720px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1080px) { .facts { grid-template-columns: repeat(4, 1fr); } .fact { border-bottom: 0; padding-right: 8px; } }

/* ---------- Treatment / equipment ---------- */
.equip { display: grid; gap: 20px; }
.unit { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-surface); overflow: hidden; }
.unit img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.unit-body { display: grid; align-content: start; gap: 10px; padding: 22px 22px 24px; }
.unit .kind { font-size: .875rem; font-weight: 700; color: var(--brass); }
.unit h3 { font-size: 1.6rem; }
.unit p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge { display: inline-flex; align-items: center; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; line-height: 1.4; }
.badge-cert { background: var(--sage); color: var(--river); }
.badge-line { border: 1px solid var(--rule); color: var(--muted); }
.specs { margin-top: 6px; border-top: 1px solid var(--rule); font-size: .925rem; }
.specs div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid var(--rule-2); }
.specs dt { color: var(--muted); white-space: nowrap; }
.specs dd { text-align: right; font-weight: 600; color: var(--ink); }
.stages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.stages li { font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--rule); background: var(--cream); }
.stages li:last-child { border-color: var(--river); color: var(--river); }
.unit-text { background: transparent; border-style: dashed; }
.unit-text .unit-body { padding-top: 24px; }
.unit-feature img { aspect-ratio: 4 / 4.4; }
.equip-note { display: grid; gap: 6px; margin-top: 28px; padding: 18px 20px; border-left: 3px solid var(--sage); background: var(--paper); border-radius: 0 var(--r-surface) var(--r-surface) 0; font-size: .95rem; color: var(--muted); max-width: 60rem; }
.equip-note b { color: var(--river); }
@media (min-width: 720px) { .equip { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) {
  .equip { grid-template-columns: 1.15fr 1fr 1fr; }
  .unit-feature { grid-row: span 2; }
  .unit-feature picture { flex: 1 1 auto; display: block; min-height: 320px; }
  .unit-feature img { height: 100%; aspect-ratio: auto; }
  .unit-text { grid-column: 1 / -1; }
  .unit-text .unit-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); column-gap: 48px; align-items: start; }
  .unit-text .unit-body > * { grid-column: 1; }
  .unit-text .unit-body > p:last-child { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

/* ---------- Process ---------- */
.process { background: var(--sage-wash); }
.process ol { display: grid; gap: 28px; counter-reset: step; }
.process li { display: grid; gap: 8px; padding-top: 18px; border-top: 2px solid var(--river); }
.process .num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--brass); }
.process h3 { font-size: 1.5rem; }
.process p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
@media (min-width: 720px) { .process ol { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .process ol { grid-template-columns: repeat(4, 1fr); gap: 36px; } }

/* ---------- Contaminant library ---------- */
.library { display: grid; gap: 40px; }
.acc { border-top: 2px solid var(--river); }
.acc details { border-bottom: 1px solid var(--rule); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding-block: 16px; }
.acc summary b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.55rem; color: var(--river); line-height: 1.15; }
.acc summary small { display: block; font-size: .925rem; color: var(--muted); margin-top: 2px; }
.plus { position: relative; flex-shrink: 0; width: 38px; height: 38px; border: 1.5px solid var(--river); border-radius: 999px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--river); transform: translate(-50%, -50%); transition: transform .2s; }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] > summary .plus { background: var(--river); }
details[open] > summary .plus::before, details[open] > summary .plus::after { background: var(--paper); }
details[open] > summary .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.learn { display: grid; gap: 20px; padding-bottom: 28px; }
.learn dt { font-weight: 700; color: var(--brass); font-size: .95rem; }
.learn dd { margin-top: 4px; color: var(--ink); line-height: 1.62; max-width: 62ch; }
.learn-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-photo); }
@media (min-width: 720px) { .learn { grid-template-columns: 1fr 1fr; column-gap: 36px; } .learn.with-photo { grid-template-columns: 1.4fr 1fr; } }
@media (min-width: 1000px) { .library { grid-template-columns: .8fr 1.7fr; gap: 64px; } .library .head { position: sticky; top: 108px; align-self: start; } }

.epa { margin-bottom: 30px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-surface); overflow: hidden; }
.epa-head { padding: 18px 20px; border-bottom: 1px solid var(--rule); }
.epa-head b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--river); display: block; }
.epa-head small { color: var(--muted); font-size: .875rem; }
.scroll-x { overflow-x: auto; }
.epa table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: .925rem; font-variant-numeric: tabular-nums; }
.epa th { text-align: left; font-size: .8rem; color: var(--muted); padding: 10px 20px 6px; font-weight: 700; }
.epa td { padding: 9px 20px; border-top: 1px solid var(--rule-2); }
.epa .n { text-align: right; white-space: nowrap; }
.epa td:first-child { min-width: 10rem; }
.epa-notes { display: grid; gap: 14px; padding: 18px 20px; border-top: 1px solid var(--rule); font-size: .925rem; color: var(--muted); line-height: 1.55; }
.epa-notes b { color: var(--river); }
.epa-src { padding: 10px 20px 14px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--rule-2); }
@media (min-width: 900px) { .epa-notes { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* ---------- Booking band (the one dark section) ---------- */
.book { background: var(--river); color: var(--paper); }
.book .wrap { display: grid; gap: 40px; }
.book h2 { color: var(--paper); font-size: clamp(2.3rem, 4.6vw, 3.3rem); }
.book .lede { color: #CFDCD8; margin-top: 16px; }
.book-photo { margin-top: 30px; }
.book-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-photo); }
.book-list { display: grid; gap: 10px; margin-top: 26px; color: #E3ECE9; }
.book-list li { display: flex; gap: 10px; align-items: start; }
.book-list svg { flex-shrink: 0; margin-top: 4px; color: var(--sage); }
.book-alt { margin-top: 26px; font-size: .975rem; color: #CFDCD8; }
.book-alt a { color: var(--brass-lite); font-weight: 700; }
@media (min-width: 1000px) { .book .wrap { grid-template-columns: 1fr minmax(0, 520px); gap: 64px; align-items: start; } }

/* quote wizard card */
.quote { background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.55); overflow: hidden; scroll-margin-top: 96px; }
.quote-head { padding: 24px 24px 0; display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.quote-head h3 { font-size: 1.75rem; }
.quote-head p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.quote-count { font-weight: 700; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 24px 0; }
.bars li { height: 5px; border-radius: 999px; background: var(--rule); transition: background-color .2s; }
.bars li[data-on="true"] { background: var(--river); }
.bars[data-done="true"] li { background: var(--ok); }
#lead { padding: 22px 24px 26px; }
.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-weight: 700; font-size: 1.125rem; color: var(--river); padding: 0; }
.choices { display: grid; gap: 10px; margin-top: 14px; }
.choices-icons { grid-template-columns: 1fr 1fr; }
@media (min-width: 520px) { .choices-icons { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span { display: flex; height: 100%; gap: 12px; border: 1.5px solid var(--rule); border-radius: 10px; background: var(--cream); padding: 12px; transition: border-color .15s, background-color .15s; }
.choices-icons .choice > span { flex-direction: column; min-height: 104px; }
.choices-rows .choice > span { align-items: center; min-height: 66px; }
.choice:hover > span { border-color: var(--sage); }
.choice input:checked + span { border-color: var(--river); background: var(--sage-wash); box-shadow: inset 0 0 0 1px var(--river); }
.choice input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.choice-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--paper); color: var(--brass); flex-shrink: 0; border: 1px solid var(--rule); }
.choice input:checked + span .choice-icon { background: var(--river); color: var(--paper); border-color: var(--river); }
.choice-label { font-weight: 700; line-height: 1.25; color: var(--river); }
.choice-sub { display: block; font-size: .875rem; font-weight: 500; color: var(--muted); }
.step-error { margin-top: 10px; font-size: .925rem; font-weight: 700; color: var(--flag); }
.step-nav { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 20px; }
.step-nav.single { grid-template-columns: 1fr; }
.back { min-width: 52px; padding: 0 18px; }
.fields { display: grid; gap: 14px; margin-top: 14px; }
.fields-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.fields label { display: block; font-weight: 700; font-size: .95rem; color: var(--river); }
.field { display: block; width: 100%; min-height: 52px; margin-top: 6px; padding: 0 14px; border: 1.5px solid var(--rule); border-radius: 10px; background: #fff; font-size: 1.0625rem; color: var(--ink); }
.field::placeholder { color: #667572; }
.field:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 3px rgba(21,58,57,.15); }
.field[aria-invalid="true"] { border-color: var(--flag); }
.reassure { margin-top: 14px; text-align: center; font-size: .925rem; font-weight: 600; color: var(--muted); }
.done { display: grid; gap: 12px; }
.done-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--sage-wash); color: var(--ok); }
.done h4 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--river); }
.done p { color: var(--muted); }
.honey { position: absolute; left: -9999px; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; }
.about-photo img { width: 100%; aspect-ratio: 3 / 2.3; object-fit: cover; object-position: 60% 50%; border-radius: var(--r-photo); }
.about-copy h2 { max-width: 20ch; }
.about-copy .lede { margin-top: 18px; }
.about-copy p + p { margin-top: 14px; }
.pillars { display: grid; gap: 0; margin-top: 40px; border-top: 2px solid var(--river); }
.pillars div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.pillars dt { font-family: var(--serif); font-size: 1.35rem; color: var(--river); line-height: 1.15; }
.pillars dd { margin-top: 6px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
@media (min-width: 720px) { .pillars { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1000px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } .pillars { grid-template-columns: repeat(4, 1fr); } .pillars div { border-bottom: 0; padding-right: 8px; } }

/* ---------- Service area ---------- */
.area { display: grid; gap: 0; border-radius: var(--r-surface); overflow: hidden; background: var(--paper); border: 1px solid var(--rule); }
.area-copy { padding: clamp(24px, 4vw, 44px); }
.area-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.towns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.towns h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; color: var(--brass); }
.towns ul { margin-top: 8px; display: grid; gap: 2px; color: var(--ink); }
.area-photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
@media (min-width: 640px) { .towns { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .area { grid-template-columns: 1.1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 32px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 64px; padding-block: 14px; font-weight: 700; font-size: 1.1rem; color: var(--river); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq { border-top: 2px solid var(--river); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 64ch; }
.faq .plus { width: 32px; height: 32px; }
.faq .plus::before, .faq .plus::after { width: 12px; }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: .8fr 1.7fr; gap: 64px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--river-3); color: #B9CCC7; font-size: .925rem; }
.site-footer .wrap { display: grid; gap: 28px; padding-block: 48px 56px; }
.site-footer .brand { color: var(--paper); }
.site-footer p { max-width: 62ch; line-height: 1.6; }
.site-footer a { color: #E3ECE9; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr; } .foot-right { text-align: right; } .legal-links { justify-content: flex-end; } }

/* ---------- Mobile call bar ---------- */
.callbar { position: fixed; inset: auto 0 0 0; z-index: 50; display: flex; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(245,241,232,.97); backdrop-filter: blur(8px); border-top: 1px solid var(--rule); }
.callbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.call-now { background: var(--river); color: var(--paper); }
.call-quote { border: 2px solid var(--river); color: var(--river); background: var(--paper); }
body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { .callbar { display: none; } body { padding-bottom: 0; } }

/* phone gate: every call link stays hidden until the real number is in */
body[data-phone-ready="false"] .needs-phone { display: none !important; }

/* ---------- Legal pages ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) 32px; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(2.6rem, 5.6vw, 4rem); }
.page-head .lede { margin-top: 14px; }
.legal-body { max-width: 46rem; padding-block: 40px 88px; }
.legal-body h2 { font-size: 1.6rem; margin-top: 40px; }
.legal-body p, .legal-body li { margin-top: 12px; line-height: 1.65; }
.legal-body ul { list-style: disc; padding-left: 22px; }
.legal-body a { color: var(--brass); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* grid children may shrink below their content (tables scroll inside instead of widening the page) */
.hero .wrap > *, .testing-grid > *, .library > *, .book .wrap > *, .about-grid > *, .faq-grid > *, .equip > *, .area > * { min-width: 0; }
@media (max-width: 400px) { .brand { font-size: 1.15rem; } .menu-btn { padding: 0 12px; } .site-header .wrap { gap: 12px; } }
/* "Applies to your water" sits in flow on phones, top-right on wider screens */
.guide-item .match { position: static; display: none; }
body[data-water="city"] .guide-item[data-source-card~="city"] .match,
body[data-water="well"] .guide-item[data-source-card~="well"] .match { display: inline-flex; }
@media (min-width: 640px) {
  .guide-item .match { position: absolute; top: 25px; right: 14px; }
  body[data-water] .guide-item h3 { padding-right: 170px; }
}


/* ================= multi-page additions ================= */
.nav a[aria-current="page"] { color: var(--river); box-shadow: inset 0 -2px 0 var(--brass-btn); }
.mobile-nav a[aria-current="page"] { color: var(--brass); }

/* page hero: copy beside a photo, side by side */
.page-hero { padding-block: clamp(36px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
.page-hero .wrap { display: grid; gap: 32px; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); line-height: 1.02; }
.page-hero .lede { margin-top: 18px; }
.hero-more { margin-top: 14px; color: var(--ink); max-width: 60ch; }
.page-hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-photo); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--rule); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: .95rem; color: var(--river); text-decoration: none; }
.jump a:hover { border-color: var(--river); }
@media (min-width: 960px) { .page-hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; } }
.page-hero > .wrap > * { min-width: 0; }

/* testing page: tiers beside the sample report */
.tests-layout { display: grid; gap: 48px; }
.report-aside { display: grid; gap: 22px; align-content: start; }
.aside-label { font-weight: 700; color: var(--river); }
.lab-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-photo); }
@media (min-width: 1000px) { .tests-layout { grid-template-columns: 1.15fr 1fr; gap: 64px; } .report-aside { position: sticky; top: 100px; } }
.tests-layout > * { min-width: 0; }

/* home: three doorways into the other pages */
.doors { display: grid; gap: 20px; }
.door { display: grid; grid-template-rows: auto 1fr; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-surface); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s; }
.door:hover { border-color: var(--river); }
.door img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.door-body { display: grid; gap: 6px; padding: 20px 22px 24px; }
.door-body b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--river); line-height: 1.1; }
.door-body span { color: var(--muted); font-size: 1rem; line-height: 1.5; }
@media (min-width: 760px) { .doors { grid-template-columns: repeat(3, 1fr); } }
.guide-top .btn { justify-self: start; }

/* closing call to action on every page */
.cta-band { background: var(--river); color: var(--paper); padding-block: clamp(48px, 7vw, 80px); }
.cta-band .wrap { display: grid; gap: 24px; align-items: center; }
.cta-band h2 { color: var(--paper); font-size: clamp(1.9rem, 3.6vw, 2.6rem); max-width: 22ch; }
.cta-band p { margin-top: 10px; color: #CFDCD8; max-width: 52ch; }
.cta-band .btn { justify-self: start; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

/* book page */
.book-page { padding-block: clamp(36px, 6vw, 80px) clamp(64px, 8vw, 100px); }
.book-page .wrap { display: grid; gap: 40px; }
.book-page h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); line-height: 1.02; }
.book-page .lede { margin-top: 16px; }
.next-steps { display: grid; gap: 0; margin-top: 28px; border-top: 2px solid var(--river); counter-reset: n; }
.next-steps li { display: grid; grid-template-columns: 2.2rem 1fr; column-gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--rule); counter-increment: n; }
.next-steps li::before { content: counter(n); grid-row: span 2; font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--brass); }
.next-steps b { color: var(--river); }
.next-steps span { color: var(--muted); font-size: .975rem; }
.book-page .book-photo { margin-top: 28px; }
.book-page .book-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-photo); }
.book-page .book-alt { margin-top: 20px; color: var(--muted); font-size: .975rem; }
.book-page .book-alt a { color: var(--brass); font-weight: 700; }
.book-page .quote { border: 1px solid var(--rule); box-shadow: 0 30px 60px -36px rgba(21,58,57,.4); }
@media (min-width: 1000px) {
  .book-page .wrap { grid-template-columns: 1fr minmax(0, 520px); grid-template-areas: "copy quote" "more quote"; column-gap: 64px; row-gap: 0; align-items: start; }
  .book-copy { grid-area: copy; } .book-page .quote { grid-area: quote; position: sticky; top: 100px; } .book-more { grid-area: more; }
}
.next-steps { margin-top: 0; }
@media (min-width: 1000px) { .book-more { margin-top: 28px; } }
.book-page .wrap > * { min-width: 0; }


/* ================= Directive 001: homepage + shared components ================= */
.site-header .brand svg { flex-shrink: 0; }
@media (max-width: 359px) { .brand { font-size: 1.05rem; gap: 8px; } .menu-btn { padding: 0 12px; } .menu-btn .menu-label { display: none; } }

/* Home hero: copy left, photo right; photo bleeds to the right edge on wide screens */
.h-hero { padding-block: clamp(32px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.h-hero .wrap { display: grid; gap: var(--s-6); align-items: center; }
.h-hero h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.01em; max-width: 12ch; }
.h-hero .lede { margin-top: var(--s-5); max-width: 34rem; color: var(--ink); }
.h-hero .ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }
.h-hero .reach { margin-top: var(--s-5); font-size: .95rem; color: var(--muted); }
.h-hero .reach a { color: var(--teal); font-weight: 700; text-decoration: none; white-space: nowrap; }
.h-hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 55% 50%; border-radius: var(--r-photo); }
@media (min-width: 960px) {
  .h-hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); }
  .h-hero-photo img { aspect-ratio: 5 / 5.2; }
}

/* Section heading block */
.sec-head { display: grid; gap: var(--s-3); max-width: 44rem; margin-bottom: var(--s-7); }
.sec-head > p { color: var(--muted); font-size: var(--fs-lede); line-height: 1.6; }
.sec-head-row { display: grid; gap: var(--s-4); margin-bottom: var(--s-7); }
.sec-head-row .sec-head { margin-bottom: 0; }
@media (min-width: 900px) { .sec-head-row { grid-template-columns: 1fr auto; align-items: end; } }

/* Services: three image-led entries, editorial rather than icon cards */
.services { display: grid; gap: var(--s-7); }
.service { display: grid; gap: var(--s-4); align-content: start; text-decoration: none; color: inherit; }
.service img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-photo); transition: opacity .2s; }
.service:hover img { opacity: .92; }
.service h3 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.85rem); }
.service p { color: var(--muted); }
.service .more { font-weight: 700; color: var(--teal); text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.service:hover .more { text-decoration-color: var(--teal); }
@media (min-width: 760px) { .services { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

/* Why water quality matters: source toggle + concerns */
.matters { background: var(--paper); border-block: 1px solid var(--rule); }
.matters-grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .matters-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--s-8); } .matters-grid .sec-head { position: sticky; top: 104px; align-self: start; } }
.matters .source { margin-top: var(--s-5); }
.concerns { display: grid; gap: 0; border-top: 2px solid var(--teal); }
.concern { position: relative; display: grid; align-content: start; gap: var(--s-1); padding: var(--s-5) var(--s-3) var(--s-5) 0; border-bottom: 1px solid var(--rule); transition: opacity .2s, background-color .2s; }
.concern h3 { font-size: 1.3rem; }
.concern p { color: var(--muted); font-size: 1rem; line-height: 1.55; max-width: 56ch; }
.concern .where { position: static; display: inline-block; font-size: .8rem; font-weight: 700; color: var(--brass); margin-bottom: 2px; }
.concern .match { display: none; }
body[data-water="city"] .concern[data-source-card~="city"],
body[data-water="well"] .concern[data-source-card~="well"] { background: linear-gradient(90deg, var(--sage-wash), rgba(230,235,227,0)); padding-left: var(--s-3); }
body[data-water] .concern { padding-left: var(--s-3); }
@media (min-width: 640px) { .concerns { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.matters-foot { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; margin-top: var(--s-6); }
.matters-foot p { color: var(--muted); font-size: .95rem; max-width: 46ch; }

/* Process */
.steps { display: grid; gap: var(--s-6); }
.steps li { display: grid; gap: var(--s-2); padding-top: var(--s-4); border-top: 2px solid var(--teal); align-content: start; }
.steps .num { font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--copper); }
.steps p { color: var(--muted); font-size: 1rem; line-height: 1.55; }
@media (min-width: 720px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s-6); } }

/* Why choose: photo beside a short list of commitments */
.choose { display: grid; gap: var(--s-7); align-items: center; }
.choose-photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: 60% 50%; border-radius: var(--r-photo); }
.commit { border-top: 2px solid var(--teal); }
.commit li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s-1) var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.commit svg { grid-row: span 2; margin-top: 4px; color: var(--copper); }
.commit b { color: var(--teal); font-size: 1.05rem; }
.commit span { color: var(--muted); font-size: 1rem; line-height: 1.55; }
@media (min-width: 960px) { .choose { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); } }

/* Service area (compact) */
.area-band { display: grid; gap: var(--s-6); align-items: center; }
.area-band .towns { margin-top: var(--s-5); }
.area-band-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-photo); }
@media (min-width: 960px) { .area-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); } }

/* Closing CTA */
.closing { background: var(--teal); color: var(--ivory); padding-block: var(--section); }
.closing .wrap { display: grid; gap: var(--s-5); justify-items: start; }
.closing h2 { color: var(--ivory); font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.25rem); max-width: 18ch; }
.closing p { color: #D5DEDB; font-size: var(--fs-lede); max-width: 44ch; line-height: 1.6; }
.closing .ctas { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; margin-top: var(--s-2); }
.closing .ctas a.call { color: var(--ivory); font-weight: 700; text-decoration: none; }
.closing .ctas a.call:hover { text-decoration: underline; }

/* Shared inquiry form (one component, used on Testing, Systems and About) */
.inquiry { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px -40px rgba(23,63,67,.35); }
.inquiry h3 { font-size: 1.6rem; }
.inquiry .intro { color: var(--muted); margin-top: var(--s-2); font-size: .975rem; }
.inquiry form { display: grid; gap: var(--s-4); margin-top: var(--s-5); }
.inquiry .row2 { display: grid; gap: var(--s-4); }
@media (min-width: 520px) { .inquiry .row2 { grid-template-columns: 1fr 1fr; } }
.inquiry label, .inquiry legend { display: block; font-weight: 700; font-size: .95rem; color: var(--teal); }
.inquiry .opt { font-weight: 500; color: var(--muted); }
.inquiry .field { display: block; width: 100%; min-height: 50px; margin-top: 6px; padding: 0 14px; border: 1.5px solid #CFC9BC; border-radius: 10px; background: #fff; font-size: 1rem; color: var(--ink); }
.inquiry select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23173F43' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.inquiry textarea.field { min-height: 96px; padding: 12px 14px; resize: vertical; }
.inquiry .field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(23,63,67,.18); }
.inquiry .field[aria-invalid="true"] { border-color: var(--flag); }
.inquiry fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.inquiry .pills { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: 6px; }
.inquiry .pills label { position: relative; font-weight: 600; color: var(--ink); }
.inquiry .pills input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.inquiry .pills span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid #CFC9BC; border-radius: 999px; background: #fff; }
.inquiry .pills input:checked + span { border-color: var(--teal); background: var(--sage-wash); box-shadow: inset 0 0 0 1px var(--teal); }
.inquiry .pills input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.inquiry .form-error { font-size: .95rem; font-weight: 700; color: var(--flag); }
.inquiry button[type=submit] { width: 100%; }
.inquiry .assure { font-size: .9rem; color: var(--muted); text-align: center; }
.inquiry .done { display: grid; gap: var(--s-3); padding-block: var(--s-4); }
.inquiry .done h4 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--teal); }
.inquiry .done p { color: var(--muted); }
.inquiry .honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* page section that hosts the inquiry form beside a short explanation */
.inquire-band .wrap { display: grid; gap: var(--s-7); align-items: start; }
.inquire-band .sec-head { margin-bottom: 0; }
.inquire-band .contact-lines { display: grid; gap: var(--s-2); margin-top: var(--s-5); }
.inquire-band .contact-lines a { color: var(--teal); font-weight: 700; text-decoration: none; }
@media (min-width: 1000px) { .inquire-band .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: var(--s-8); } }
.inquire-band > .wrap > * { min-width: 0; }

/* Pre-launch state (Amendment A): site-wide notice + inquiry forms switched off until launch */
.prelaunch-bar { background: var(--teal); color: var(--ivory); font-size: .875rem; line-height: 1.4; }
.prelaunch-bar .wrap { padding-block: 9px; text-align: center; }
body[data-launch="live"] .prelaunch-bar, body[data-launch="live"] .prelaunch-note { display: none; }
.prelaunch-note { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-left: 3px solid var(--copper); background: #F3ECE1; border-radius: 0 8px 8px 0; font-size: .95rem; color: var(--ink); }
.prelaunch-note b { color: var(--teal); }
.lead-fields { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--s-4); }
.lead-fields:disabled { opacity: .55; }
.lead-fields:disabled .btn { cursor: not-allowed; }
.contact-lines a, .h-hero .reach a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a { display: inline-block; padding-block: 4px; }

/* ================= Directive 002: Testing, Systems, About ================= */
.hero-note { margin-top: var(--s-4); display: inline-block; padding: 6px 12px; border-radius: 999px; background: #EFE7DA; color: var(--ink); font-size: .9rem; font-weight: 600; }
.page-hero h1 { max-width: 14ch; }

/* reasons: two-column editorial list, not cards */
.reasons { display: grid; gap: 0; border-top: 2px solid var(--teal); }
.reasons li { display: grid; gap: var(--s-1); padding: var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.reasons b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--teal); line-height: 1.2; }
.reasons span { color: var(--muted); max-width: 52ch; }
@media (min-width: 760px) { .reasons { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
.wide-figure { margin-top: var(--s-7); }
.wide-figure img { width: 100%; aspect-ratio: 1916 / 821; min-height: 220px; object-fit: cover; border-radius: var(--r-photo); }

/* testing options: three columns divided by rules; the lab panel gets the teal treatment */
.options { display: grid; gap: var(--s-5); }
.option { display: grid; gap: var(--s-3); align-content: start; padding-top: var(--s-5); border-top: 2px solid var(--teal); }
.option h3 { font-size: 1.6rem; }
.option-when { font-size: .95rem; font-weight: 700; color: var(--brass); }
.option p { color: var(--ink); }
.option-best { color: var(--muted) !important; font-size: .975rem; }
.option-best b { color: var(--teal); }
.option-main { background: var(--teal); color: var(--ivory); border-top: 0; padding: var(--s-6); border-radius: var(--r-surface); }
.option-main h3 { color: var(--ivory); }
.option-main .option-when { color: var(--brass-lite); }
.option-main p, .option-main .option-best { color: #DCE4E2 !important; }
.option-main .option-best b { color: var(--ivory); }
@media (min-width: 960px) { .options { grid-template-columns: 1fr 1.15fr 1fr; gap: var(--s-6); align-items: start; } }

/* comparison tables */
.methods { background: var(--paper); border-block: 1px solid var(--rule); }
.methods-grid { display: grid; gap: var(--s-6); }
.methods-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-photo); }
@media (min-width: 960px) { .methods-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; } }
.methods-grid > * { min-width: 0; }
.compare { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .975rem; border-top: 2px solid var(--teal); }
.compare th, .compare td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-size: .9rem; font-weight: 700; color: var(--teal); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td { color: var(--muted); }
.compare-3 { min-width: 640px; }
.compare-3 tbody th { width: 20%; }
.mark { display: inline-block; font-size: .82rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.mark.yes { background: var(--sage-wash); color: var(--ok); }
.mark.no { background: #F1ECE4; color: #6B6460; }
.mark.ind { background: var(--caution); color: #6E4A22; }

/* results */
.results-grid { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .results-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: var(--s-8); align-items: start; } .results-grid aside { position: sticky; top: 104px; } }
.results-grid > * { min-width: 0; }
.facts-list { border-top: 2px solid var(--teal); }
.facts-list div { display: grid; gap: var(--s-1); padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.facts-list dt { font-weight: 700; color: var(--teal); }
.facts-list dd { color: var(--muted); line-height: 1.6; max-width: 58ch; }
@media (min-width: 640px) { .facts-list div { grid-template-columns: 150px 1fr; gap: var(--s-5); } }
.next-title { margin-top: var(--s-6); font-size: 1.35rem; }
.next-list { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.next-list li { padding-left: 22px; position: relative; color: var(--muted); line-height: 1.6; }
.next-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--copper); }
.next-list b { color: var(--teal); }
.next-list a { color: var(--teal); font-weight: 700; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* systems: image + text features, alternating */
.feature .wrap { display: grid; gap: var(--s-6); align-items: center; }
.feature-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-photo); }
#reverse-osmosis .feature-photo img { aspect-ratio: 4 / 4.4; }
.feature-kicker { font-size: .95rem; font-weight: 700; color: var(--brass); }
.feature-copy h2 { margin-top: var(--s-2); }
.feature-lede { margin-top: var(--s-4); margin-bottom: var(--s-5); font-size: var(--fs-lede); line-height: 1.6; color: var(--ink); max-width: 40rem; }
@media (min-width: 960px) {
  .feature .wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-8); }
  .feature.flip .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 5fr); }
  .feature.flip .feature-photo { order: 2; }
}
.feature + .feature { border-top: 1px solid var(--rule); }
.feature .wrap > * { min-width: 0; }

/* compact expandable technical details */
.more-details { margin-top: var(--s-5); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.more-details summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 56px; font-weight: 700; color: var(--teal); }
.more-details .plus { width: 30px; height: 30px; }
.more-details .plus::before, .more-details .plus::after { width: 12px; }
.more-body { padding-bottom: var(--s-5); display: grid; gap: var(--s-4); color: var(--muted); }
.more-body .epa { margin: 0; }

/* whole-home: the one dark band on Systems, so it reads as a different category */
.whole-band { background: var(--teal); color: var(--ivory); padding-block: var(--section); }
.whole-band .wrap { display: grid; gap: var(--s-6); align-items: center; }
.whole-band h2 { color: var(--ivory); margin-top: var(--s-2); }
.whole-band .feature-kicker { color: var(--brass-lite); }
.whole-band .feature-lede { color: #E4EBE9; }
.whole-photo img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--r-photo); }
.whole-options { border-top: 1px solid rgba(245,241,232,.35); }
.whole-options div { padding: var(--s-4) 0; border-bottom: 1px solid rgba(245,241,232,.2); }
.whole-options dt { font-family: var(--serif); font-size: 1.35rem; color: var(--ivory); }
.whole-options dd { margin-top: 4px; color: #D5DEDB; line-height: 1.6; }
@media (min-width: 960px) { .whole-band .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-8); } }
.whole-band .wrap > * { min-width: 0; }

/* two-column text sections */
.two-col { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--s-8); } .two-col-text { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.two-col > * { min-width: 0; }
.steps-tight { grid-template-columns: 1fr !important; gap: var(--s-4); }
.maint-lede { color: var(--ink); font-size: var(--fs-lede); line-height: 1.6; }
.prose p { color: var(--ink); font-size: var(--fs-lede); line-height: 1.65; max-width: 60ch; }
.prose p + p { margin-top: var(--s-4); }
.principles { border-top: 2px solid var(--teal); }
.principles li { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); color: var(--muted); line-height: 1.6; }
.principles b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--teal); margin-bottom: 2px; }

/* pre-launch contact */
.prelaunch-contact { background: var(--paper); border-top: 1px solid var(--rule); }
.prelaunch-contact .wrap { display: grid; gap: var(--s-6); align-items: center; }
.prelaunch-contact .sec-head { margin-bottom: 0; }
.prelaunch-card { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-6); border-radius: 16px; background: var(--ivory); border: 1px solid var(--rule); }
.pl-label { font-size: .85rem; font-weight: 700; color: var(--brass); }
.pl-main { font-family: var(--serif); font-size: 1.6rem; line-height: 1.15; color: var(--teal); }
.prelaunch-card p:not(.pl-label):not(.pl-main) { color: var(--muted); }
@media (min-width: 960px) { .prelaunch-contact .wrap { grid-template-columns: 1fr minmax(0, 520px); gap: var(--s-8); } }
.prelaunch-contact .wrap > * { min-width: 0; }
body[data-launch="prelaunch"] .launch-only { display: none; }
body[data-launch="live"] .prelaunch-card { display: none; }
.swipe-hint { font-size: .875rem; color: var(--muted); margin-bottom: var(--s-2); } @media (min-width: 720px) { .swipe-hint { display: none; } }
.page-hero .reach { margin-top: var(--s-5); font-size: .95rem; color: var(--muted); }
.page-hero .reach a { color: var(--teal); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.closing .ctas a.call + a.call { font-weight: 600; }

/* Home: "what's real" facts */
.truths { display: grid; gap: 0; border-top: 2px solid var(--teal); }
.truth { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-5) var(--s-2) var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.truth h3 { font-size: 1.5rem; }
.truth p { color: var(--muted); line-height: 1.6; max-width: 56ch; }
.truth .truth-fix { color: var(--ink); }
.truth .truth-fix b { color: var(--teal); }
.truth .truth-src { font-size: .82rem; color: var(--muted); }
@media (min-width: 760px) { .truths { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
.h-hero h1 { max-width: 13ch; }
.process-band { background: var(--paper); border-block: 1px solid var(--rule); }

/* Home: product benefits list */
.perks { display: grid; gap: 0; border-top: 2px solid var(--teal); }
.perks li { display: grid; gap: 2px; padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.perks b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; color: var(--teal); line-height: 1.2; }
.perks span { color: var(--muted); line-height: 1.55; }
@media (min-width: 640px) { .perks { grid-template-columns: 1fr 1fr; column-gap: var(--s-6); } }
.choose .ctas { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }
.whole-band .ctas { display: flex; }
.matters-foot .btn-text { min-height: auto; display: inline; }
@media (min-width: 720px) { .steps-3 { grid-template-columns: repeat(3, 1fr) !important; } }
#perks-title + p, .choose .sec-head > p { max-width: 40rem; }
.choose-photo img[alt^="A reverse osmosis"] { aspect-ratio: 4 / 4.6; }

/* Packages */
.pkgs { display: grid; gap: var(--s-5); }
.pkg { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6) var(--s-5); background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--teal); border-radius: var(--r-surface); }
.pkg h3 { font-size: 1.6rem; }
.pkg-line { font-weight: 700; color: var(--brass); }
.pkg-who { color: var(--muted); font-size: .975rem; line-height: 1.55; }
.pkg-list { display: grid; gap: var(--s-2); margin: var(--s-2) 0 var(--s-4); }
.pkg-list li { position: relative; padding-left: 22px; font-size: .975rem; color: var(--ink); line-height: 1.45; }
.pkg-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--copper); border-bottom: 2px solid var(--copper); transform: rotate(-45deg); }
.pkg .btn { margin-top: auto; }
.pkg-premium { background: var(--teal); border-color: var(--teal); }
.pkg-premium h3, .pkg-premium .pkg-list li { color: var(--ivory); }
.pkg-premium .pkg-line { color: var(--brass-lite); }
.pkg-premium .pkg-who { color: #D5DEDB; }
.pkg-premium .pkg-list li::before { border-color: var(--brass-lite); }
@media (min-width: 720px) { .pkgs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1140px) { .pkgs { grid-template-columns: repeat(4, 1fr); } }
.pkg-extra { margin-top: var(--s-5); color: var(--muted); }
.pkg-extra b { color: var(--teal); }
.pkg-extra .btn-text { min-height: auto; display: inline; }
.assess { background: var(--paper); border-block: 1px solid var(--rule); }
.assess .ctas { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: center; }

/* Research list */
.studies { display: grid; gap: 0; border-top: 2px solid var(--teal); }
.study { display: grid; align-content: start; gap: var(--s-2); padding: var(--s-5) var(--s-2) var(--s-5) 0; border-bottom: 1px solid var(--rule); }
.study h3 { font-size: 1.35rem; }
.study p { color: var(--muted); line-height: 1.6; max-width: 58ch; }
.study .study-cite { font-size: .9rem; color: var(--ink); }
.study-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-5); }
.study-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--teal); text-decoration: underline; text-decoration-color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (min-width: 760px) { .studies { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); } }
