/* Duff's Pool Service — redesign demo
   One family (Archivo, variable width) · cool water palette · test-strip yellow for actions */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"), url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-display: swap;
}
/* Archivo by Omnibus-Type, SIL Open Font License 1.1 */

:root {
  --ink: #0B3A47;        /* deep water: text, dark bands */
  --ink-2: #0E5468;      /* raised surfaces on dark */
  --line: #136F8A;       /* links on light */
  --aqua: #7FD3DA;       /* accents on dark */
  --aqua-soft: #B9DDE2;  /* secondary text on dark */
  --sun: #F2C230;        /* primary action (test-strip yellow) */
  --sun-hover: #FFD447;
  --paper: #F3F8F8;      /* page background */
  --white: #FFFFFF;
  --muted: #4A6670;      /* secondary text on light */
  --rule: #D3E3E5;
  --error: #B42318;

  --step--1: 0.889rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.3rem);
  --step-4: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  --step-5: clamp(2.5rem, 1.6rem + 3.8vw, 4.4rem);

  --wrap: 74rem;
  --gutter: 1rem;
  --radius: 10px;
  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (min-width: 48rem) { :root { --gutter: 2rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-stretch: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--line); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--line); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--sun); }

h1, h2, h3, .display {
  font-family: var(--font);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-stretch: 112%; line-height: 1.15; }
p { margin: 0 0 1em; max-width: 65ch; text-wrap: pretty; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 36ch; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.section--white { background: var(--white); }
.section--ink { background: var(--ink); color: var(--white); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section--ink .section-head p { color: var(--aqua-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--sun); color: var(--ink); padding: 0.75rem 1rem; font-weight: 700; border-radius: 0 0 8px 8px;
}
.skip:focus { top: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.75rem 1.4rem;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-stretch: 108%; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: var(--sun-hover); }
.btn--ghost { border-color: var(--aqua-soft); color: var(--white); }
.btn--ghost:hover { background: var(--ink-2); border-color: var(--white); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 2.25rem; height: 2.25rem; flex: none; }
.brand span { font-stretch: 125%; font-weight: 800; font-size: 1.12rem; line-height: 1; letter-spacing: -0.01em; }
.brand small { display: block; font-stretch: 100%; font-weight: 500; font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; letter-spacing: 0; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.primary-nav a { display: block; padding: 0.6rem 0.8rem; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 6px; }
.primary-nav a:hover { background: var(--paper); }
.primary-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--sun); border-radius: 0; }
.header-phone { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 0.4rem; }
.header-phone svg { width: 1.1rem; height: 1.1rem; }
.header-phone small { display: block; font-weight: 500; font-size: 0.75rem; color: var(--muted); }
.menu-toggle {
  display: none; align-items: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0.5rem 0.9rem; border-radius: 999px;
  border: 2px solid var(--ink); background: var(--white); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer;
}
.menu-toggle svg { width: 1.1rem; height: 1.1rem; }
@media (max-width: 63.99rem) {
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-phone .phone-text { display: none; }
  .header-phone { width: 2.75rem; height: 2.75rem; justify-content: center; border-radius: 999px; background: var(--sun); }
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 12px 24px rgba(11,58,71,.12); }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
  .primary-nav a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--rule); border-radius: 0; font-size: 1.1rem; }
  .primary-nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--sun); padding-left: 0.9rem; }
}

/* Hero */
.hero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 2.5rem; padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) 0; }
.hero h1 { color: var(--white); max-width: 13ch; }
.hero .lede { color: var(--aqua-soft); }
.hero-note { color: var(--aqua-soft); font-size: var(--step--1); margin-top: 1rem; }
.hero-media { position: relative; margin-inline: calc(var(--gutter) * -1); }
.hero-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 64rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; padding-bottom: 0; }
  .hero-copy { padding-bottom: 5.5rem; }
  .hero-media { margin-inline: 0 calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gutter)); align-self: stretch; }
  .hero-media img { height: 100%; aspect-ratio: auto; min-height: 36rem; border-top-left-radius: 28px; }
}

/* Water card: the signature element (a test-strip reading card) */
.water-card {
  background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 18px 40px rgba(4, 30, 38, .28);
  max-width: 24rem; width: calc(100% - 2rem);
  position: relative; margin: -4.5rem auto 0; z-index: 2;
}
@media (min-width: 64rem) { .water-card { position: absolute; left: -3rem; bottom: 2.5rem; margin: 0; } }
.water-card h2 { font-size: 1.15rem; font-stretch: 115%; margin: 0 0 0.15rem; }
.water-card > p { font-size: var(--step--1); color: var(--muted); margin-bottom: 0.85rem; }
.reading { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; align-items: baseline; padding-block: 0.6rem; border-top: 1px solid var(--rule); }
.reading dt { font-weight: 600; font-size: 0.95rem; }
.reading dd { margin: 0; font-weight: 700; font-stretch: 110%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.strip { grid-column: 1 / -1; height: 0.8rem; border-radius: 3px; position: relative; }
.strip::after {
  content: ""; position: absolute; top: -4px; bottom: -4px;
  left: var(--from); width: calc(var(--to) - var(--from));
  border: 2px solid var(--ink); border-radius: 4px; background: rgba(255,255,255,.18);
}
.strip--ph { background: linear-gradient(90deg, #F4D35E, #F3A33A 35%, #E2574C 65%, #C2306A); }
.strip--cl { background: linear-gradient(90deg, #FBF1F4, #F2B6C9 30%, #DE6F98 65%, #A3245A); }
.strip--ta { background: linear-gradient(90deg, #E9D96B, #A9C66A 35%, #4FA89A 65%, #2A6F8F); }
.strip--ch { background: linear-gradient(90deg, #7FA7D9, #8E85CE 40%, #9C5DB8 70%, #7A2E8E); }
.water-card .card-foot { font-size: 0.8rem; color: var(--muted); margin: 0.5rem 0 0; }

/* Facts row under hero */
.facts { background: var(--ink-2); color: var(--white); }
.facts ul { list-style: none; margin: 0; padding: 1.1rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.5rem; }
.facts li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.97rem; line-height: 1.35; }
.facts svg { width: 1.25rem; height: 1.25rem; color: var(--aqua); flex: none; margin-top: 0.1rem; }
.facts strong { font-stretch: 112%; }
@media (min-width: 48rem) { .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Visit checklist */
.visit { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .visit { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 40rem) { .checklist { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.checklist li { display: flex; gap: 0.8rem; padding: 0.95rem 0; border-top: 1px solid var(--rule); }
.checklist svg { width: 1.4rem; height: 1.4rem; flex: none; color: var(--line); margin-top: 0.15rem; }
.checklist strong { display: block; font-stretch: 110%; }
.checklist span { color: var(--muted); font-size: 0.95rem; }

/* Price list (menu, not cards) */
.price-list { border-top: 2px solid var(--ink); }
.price-row { display: grid; gap: 0.35rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 48rem) { .price-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(9rem, auto); align-items: baseline; } }
.price-row h3 { margin: 0; font-size: var(--step-1); }
.price-row h3 a { color: var(--ink); text-decoration-color: var(--rule); text-decoration-thickness: 2px; }
.price-row h3 a:hover { text-decoration-color: var(--sun); }
.price-row p { margin: 0; color: var(--muted); }
.price { font-stretch: 112%; font-weight: 800; font-size: var(--step-1); white-space: nowrap; }
.price small { display: block; font-stretch: 100%; font-weight: 500; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 48rem) { .price { text-align: right; } }
.price-note { color: var(--muted); font-size: var(--step--1); margin-top: 1rem; }

/* Steps (real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 2px solid var(--aqua); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-stretch: 125%; font-weight: 800; font-size: 3rem; line-height: 1; color: var(--aqua); margin-bottom: 0.75rem; }
.steps h3 { color: var(--white); font-size: var(--step-1); }
.steps p { color: var(--aqua-soft); margin: 0; }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .split { grid-template-columns: 1fr 1fr; align-items: center; } }
.split img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Towns */
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.towns li { font-stretch: 118%; font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.35; color: var(--ink); }
.towns a { color: var(--ink); text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.towns-note { color: var(--muted); margin-top: 1.5rem; font-size: var(--step--1); }

/* FAQ */
.faq { border-top: 2px solid var(--ink); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-stretch: 110%; font-weight: 700; font-size: var(--step-1); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.25rem; top: 50%; width: 1rem; height: 1rem; margin-top: -0.5rem;
  background: linear-gradient(var(--ink), var(--ink)) center / 100% 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.25rem; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Quote block + form */
.quote-block { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) { .quote-block { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 0.8rem; }
.contact-list svg { width: 1.3rem; height: 1.3rem; color: var(--line); flex: none; margin-top: 0.2rem; }
.contact-list strong { display: block; }
.contact-list a { font-weight: 700; }
.form-card { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.form-card h2, .form-card h3 { font-size: var(--step-2); }
.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.85rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid #8AA6AD; border-radius: 8px;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field .error { display: none; color: var(--error); font-size: 0.9rem; font-weight: 600; margin-top: 0.35rem; }
.field .error:not(:empty) { display: block; }
.req { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.form-foot { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.form-foot p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 8px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { background: #FDECEA; color: var(--error); }
.form-status.is-ok { background: #E3F4F1; color: #0B5345; }
.hp { position: absolute; left: -9999px; }

/* Inner page hero */
.page-hero { background: var(--ink); color: var(--white); }
.page-hero .wrap { padding-block: clamp(2.25rem, 1.8rem + 3vw, 4.5rem); display: grid; gap: 2rem; }
.page-hero h1 { color: var(--white); font-size: var(--step-4); max-width: 18ch; }
.page-hero .lede { color: var(--aqua-soft); max-width: 44ch; }
.page-hero--media .wrap { align-items: center; }
@media (min-width: 64rem) { .page-hero--media .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.page-hero img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.breadcrumbs ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; font-size: 0.9rem; color: var(--aqua-soft); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--aqua); }
.breadcrumbs a { color: var(--white); }

/* Prose + aside layout for service/area pages */
.with-aside { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .with-aside { grid-template-columns: minmax(0, 1fr) 21rem; } }
.prose h2 { font-size: var(--step-3); margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; max-width: 60ch; }
.prose li { margin-bottom: 0.4rem; }
.aside-card { background: var(--white); border: 1px solid var(--rule); border-radius: 16px; padding: 1.5rem; position: sticky; top: 6rem; }
.aside-card .price { font-size: var(--step-3); text-align: left; }
.aside-card .btn { width: 100%; margin-top: 0.75rem; }
.aside-card p { font-size: 0.95rem; color: var(--muted); }
.related { list-style: none; padding: 0; margin: 0; }
.related li { border-top: 1px solid var(--rule); }
.related a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; font-weight: 700; color: var(--ink); text-decoration: none; }
.related a span { color: var(--muted); font-weight: 500; }
.related a:hover { color: var(--line); }

.photo-row { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .photo-row { grid-template-columns: 1.4fr 1fr; } }
.photo-row img { border-radius: 14px; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.values { display: grid; gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 48rem) { .values { grid-template-columns: 1fr 1fr; column-gap: 3rem; } }
.values div { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.values h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.values p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--sun); color: var(--ink); }
.cta-band .wrap { padding-block: 3rem; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0; font-size: var(--step-3); max-width: 22ch; }
.cta-band .btn--line:hover { background: var(--ink); color: var(--sun); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: var(--aqua-soft); font-size: 0.95rem; }
.site-footer .wrap { padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h2 { color: var(--white); font-size: 1rem; font-stretch: 112%; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--white); }
.site-footer .brand { color: var(--white); margin-bottom: 1rem; }
.site-footer .brand svg > circle:first-child { fill: var(--ink-2); stroke: var(--aqua-soft); stroke-width: 1; }
.site-footer .brand small { color: var(--aqua-soft); }
.footer-base { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(185,221,226,.25); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; font-size: 0.85rem; }
.social { display: flex; gap: 0.5rem; margin-top: 1rem; }
.social a { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid rgba(185,221,226,.4); }
.social a:hover { background: var(--ink-2); }
.social svg { width: 1.2rem; height: 1.2rem; }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 47.99rem) {
  body { padding-bottom: 4.75rem; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--rule); box-shadow: 0 -8px 20px rgba(11,58,71,.1);
  }
  .action-bar .btn { min-height: 3.1rem; padding-inline: 0.75rem; }
}

@media (min-width: 64rem) { .nav-quote { display: none; } }
@media (max-width: 30rem) {
  .site-header .brand small { display: none; }
  .site-header .brand span { font-size: 1rem; font-stretch: 110%; }
  .site-header .brand svg { width: 2rem; height: 2rem; }
  .water-card { margin-top: -3rem; }
}
@media (max-width: 63.99rem) { .hero-media { padding-bottom: 2.5rem; } }
.placeholder { border: 2px dashed #8AA6AD; border-radius: 14px; padding: 1.5rem; margin: 1.5rem 0 0.5rem; color: var(--muted); background: var(--paper); max-width: 60ch; }
.placeholder strong { color: var(--ink); display: block; margin-bottom: 0.25rem; }

/* Audit report page */
.audit-hero .lede { max-width: 52ch; }
.scores { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2rem; }
@media (min-width: 48rem) { .scores { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.score { background: var(--ink-2); border-radius: 12px; padding: 1rem 1.1rem; }
.score h2 { font-size: 1rem; font-stretch: 110%; color: var(--aqua-soft); margin: 0 0 0.4rem; }
.score p { margin: 0; color: var(--white); }
.score .num { font-stretch: 125%; font-weight: 800; font-size: 2.2rem; line-height: 1; }
.score .num span { font-size: 1rem; color: var(--aqua-soft); font-weight: 600; }
.meter { height: 6px; border-radius: 3px; background: rgba(185,221,226,.25); margin: 0.6rem 0 0.5rem; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--sun); }
.score small { color: var(--aqua-soft); font-size: 0.85rem; line-height: 1.4; display: block; }
.top-issues { list-style: none; margin: 0; padding: 0; counter-reset: t; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.top-issues > li { counter-increment: t; display: grid; grid-template-columns: 3rem 1fr; gap: 0.5rem 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.top-issues > li::before { content: counter(t); font-stretch: 125%; font-weight: 800; font-size: 2rem; line-height: 1; color: var(--line); }
.top-issues h3 { font-size: var(--step-1); margin-bottom: 0.4rem; }
.top-issues p { color: var(--muted); margin-bottom: 0.5rem; }
.top-issues .fix { color: var(--ink); }
.sev { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.1rem 0.5rem; border-radius: 4px; vertical-align: middle; margin-left: 0.4rem; font-stretch: 100%; letter-spacing: 0; }
.sev--critical { background: #FDE2E0; color: #8A1C12; }
.sev--high { background: #FFF0C9; color: #6B4E00; }
.sev--medium { background: #DDEFF2; color: #0B4A5C; }
.sev--low { background: #ECEFF0; color: #3D5058; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--white); }
.table-wrap:focus-visible { outline: 3px solid var(--line); }
table.report { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 46rem; }
table.report caption { text-align: left; padding: 1rem 1rem 0.5rem; font-weight: 700; font-stretch: 110%; font-size: 1.1rem; }
table.report th, table.report td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-top: 1px solid var(--rule); }
table.report thead th { background: var(--paper); font-weight: 700; font-stretch: 105%; border-top: 0; }
table.report tbody th { font-weight: 700; }
table.report td.yes { color: #0B5345; font-weight: 600; }
table.report td.no { color: #8A1C12; font-weight: 600; }
.findings-group { margin-top: 3rem; }
.findings-group:first-child { margin-top: 0; }
.status { font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.roadmap { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .roadmap { grid-template-columns: repeat(3, 1fr); } }
.roadmap section { border-top: 2px solid var(--ink); padding-top: 1rem; }
.roadmap h3 { font-size: var(--step-1); }
.roadmap ul { padding-left: 1.1rem; margin: 0; }
.roadmap li { margin-bottom: 0.5rem; }
.before-after { display: grid; gap: 1.5rem; }
@media (min-width: 64rem) { .before-after { grid-template-columns: 1fr 1fr; } }
.before-after figure { margin: 0; }
.before-after img { border-radius: 12px; border: 1px solid var(--rule); width: 100%; height: auto; }
.before-after figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.6rem; }
.asks { columns: 1; padding-left: 1.2rem; }
@media (min-width: 48rem) { .asks { columns: 2; column-gap: 3rem; } }
.asks li { break-inside: avoid; margin-bottom: 0.6rem; }
.sources { font-size: 0.9rem; color: var(--muted); }
.sources li { margin-bottom: 0.3rem; }


/* ---- Added for the full site ---- */
.aside-label { margin: 0; font-weight: 700; color: var(--ink); }
.aside-heading { font-size: 1.2rem; margin-top: 2rem; }
.byline { color: var(--aqua-soft); font-size: 0.95rem; margin: 1rem 0 0; }
.prose h3 { font-size: var(--step-1); margin: 1.75rem 0 0.4rem; }
.prose ol { padding-left: 1.3rem; max-width: 60ch; }
.prose ol li { margin-bottom: 0.6rem; }
.prose .price-list { margin-top: 1rem; }
.prose .faq { margin-top: 1rem; }
.legal h2 { font-size: var(--step-2); margin-top: 2.25rem; }
.legal h2:first-of-type { margin-top: 1.5rem; }
.guide-row { grid-template-columns: 1fr; }
@media (min-width: 48rem) { .guide-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); } }
.split-faq { display: grid; gap: 3rem; }
@media (min-width: 64rem) { .split-faq { grid-template-columns: minmax(0, 1fr) 20rem; } }
.guide-teaser { align-self: start; }
.guide-teaser h2 { font-size: var(--step-2); }
.guide-teaser .related a { font-weight: 600; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.legal-links a { color: var(--aqua-soft); }

.gallery { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.gallery figcaption { color: var(--muted); font-size: 0.92rem; margin-top: 0.6rem; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.owner { display: grid; gap: 1.5rem; margin: 2rem 0; align-items: center; }
@media (min-width: 48rem) { .owner { grid-template-columns: 16rem 1fr; } }
.owner img { border-radius: 14px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.owner h2 { margin-top: 0; }

.reviews[hidden] { display: none; }
.review-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .review-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { border-top: 2px solid var(--ink); padding-top: 1rem; }
.review .stars { color: #8A6400; letter-spacing: 0.1em; margin: 0 0 0.5rem; font-size: 1.1rem; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0 0 0.75rem; }
.review-by { color: var(--muted); font-size: 0.92rem; margin: 0; }
.reviews-attrib { margin-top: 1.5rem; font-size: 0.92rem; }

/* Audit notes overlay (pitch only — remove before launch) */
.notes-toggle {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 70;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.55rem 1rem; border-radius: 999px;
  background: var(--ink); color: var(--white); border: 2px solid var(--sun);
  font: inherit; font-weight: 700; font-size: 0.92rem; cursor: pointer;
  box-shadow: 0 8px 22px rgba(4,30,38,.3);
}
.notes-toggle b { background: var(--sun); color: var(--ink); border-radius: 999px; min-width: 1.5rem; height: 1.5rem; display: inline-grid; place-items: center; font-size: 0.8rem; }
@media (max-width: 47.99rem) { .notes-toggle { bottom: 5.4rem; } }
.notes-panel {
  position: fixed; z-index: 80; right: 0; top: 0; bottom: 0; width: min(26rem, 100%);
  background: var(--white); color: var(--ink); box-shadow: -12px 0 32px rgba(4,30,38,.25);
  display: flex; flex-direction: column;
}
.notes-panel[hidden] { display: none; }
.notes-panel header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--rule); }
.notes-panel header h2 { font-size: 1.2rem; margin: 0; }
.notes-panel .close { min-height: 2.75rem; padding: 0.4rem 1rem; border-radius: 999px; border: 2px solid var(--ink); background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.notes-panel ol { list-style: none; margin: 0; padding: 0.5rem 1.25rem 1.5rem; overflow-y: auto; counter-reset: n; }
.notes-panel li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; font-size: 0.95rem; line-height: 1.5; }
.notes-panel li > span:first-child { width: 1.75rem; height: 1.75rem; border-radius: 999px; background: var(--sun); display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; }
.notes-panel li button { all: unset; cursor: pointer; text-decoration: underline; color: var(--line); font-weight: 700; }
.notes-panel li button:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; }
.notes-panel .tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.05rem 0.45rem; border-radius: 4px; background: #FFF3C4; color: #6B5200; margin-left: 0.25rem; }
.notes-panel footer { margin-top: auto; padding: 1rem 1.25rem; border-top: 1px solid var(--rule); font-size: 0.9rem; }
body.notes-on [data-note] { outline: 2px dashed var(--sun); outline-offset: 4px; }
body.notes-on [data-note]:not(.water-card):not(.aside-card) { position: relative; }
body.notes-on [data-note]::before {
  content: attr(data-note); position: absolute; z-index: 40; top: -0.9rem; left: -0.9rem;
  width: 1.8rem; height: 1.8rem; border-radius: 999px; display: grid; place-items: center;
  background: var(--sun); color: var(--ink); font: 800 0.85rem/1 var(--font); box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
body.notes-on .hero-media[data-note]::before { left: 1rem; top: 1rem; }
.flash { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { outline-color: var(--line); outline-width: 4px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  .btn { border-color: ButtonText; }
  .strip::after { border-color: CanvasText; }
}

/* Price list inside narrow prose columns: name and price on one line, summary below */
.prose .price-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1.5rem; }
.prose .price-row h3 { grid-column: 1; grid-row: 1; margin: 0; }
.prose .price-row .price { grid-column: 2; grid-row: 1; text-align: right; }
.prose .price-row p:not(.price) { grid-column: 1 / -1; grid-row: 2; }
