:root {
  --ink: #13211f;
  --muted: #5b6763;
  --paper: #f7f8f3;
  --panel: #ffffff;
  --aqua: #1b8092;
  --deep: #0f5362;
  --green: #4b7f52;
  --amber: #9f5f16;
  --amber-light: #f0b45d;
  --line: rgba(19, 33, 31, 0.14);
  --shadow: 0 22px 60px rgba(12, 50, 55, 0.16);
}

* {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  background: rgba(6, 30, 34, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.header-cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--deep);
  background: #fff;
}

.nav {
  gap: 22px;
  font-size: 14px;
}

.header-cta {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(6, 26, 28, 0.84) 0%, rgba(6, 26, 28, 0.64) 38%, rgba(6, 26, 28, 0.16) 74%),
    linear-gradient(0deg, rgba(7, 22, 20, 0.7), transparent 34%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 150px clamp(18px, 7vw, 88px) 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero .eyebrow,
.request .eyebrow,
.diagnostics-result .eyebrow,
.price-card.featured .price {
  color: var(--amber-light);
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.16;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.primary {
  color: #fff;
  background: var(--aqua);
}

.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(6, 30, 34, 0.36);
}

.trust-row {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.86);
}

.trust-row span {
  padding-left: 14px;
  border-left: 3px solid var(--amber);
}

section:not(.hero) {
  padding: 84px clamp(18px, 5vw, 72px);
  scroll-margin-top: 82px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.insights,
.service-grid,
.price-grid,
.audience-grid,
.steps,
.review-grid,
.equipment-grid {
  display: grid;
  gap: 18px;
}

.compact {
  margin-bottom: 24px;
}

.audience {
  background: #fff;
}

.audience-grid {
  grid-template-columns: repeat(4, 1fr);
}

.audience-grid article {
  padding: 24px;
  border-left: 4px solid var(--aqua);
  background: #f3f7f6;
}

.audience-grid ul {
  margin-top: 16px;
}

.audience-grid li {
  margin-bottom: 6px;
}

.audience-grid strong {
  display: block;
  margin-top: 18px;
  color: var(--deep);
}

.scoreboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.scoreboard div {
  display: grid;
  gap: 4px;
  min-height: 132px;
  align-content: center;
  padding: 24px;
  background: #fff;
}

.scoreboard strong {
  color: var(--deep);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
}

.scoreboard span {
  color: var(--muted);
}

.system-visual {
  background: #eef5f2;
}

.waterline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.waterline::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 12%;
  right: 12%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--deep), var(--aqua), var(--green));
}

.waterline article {
  position: relative;
  z-index: 1;
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.visual-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #e7f3f4;
  box-shadow: 0 0 0 2px rgba(27, 128, 146, 0.32);
}

.visual-icon::before,
.visual-icon::after,
.visual-icon span {
  content: "";
  position: absolute;
  display: block;
}

.well-icon::before {
  left: 31px;
  top: 13px;
  width: 12px;
  height: 50px;
  border-radius: 999px;
  background: var(--deep);
}

.well-icon span {
  left: 22px;
  bottom: 12px;
  width: 30px;
  height: 10px;
  border-radius: 999px;
  background: var(--aqua);
}

.pump-icon::before {
  left: 18px;
  top: 24px;
  width: 40px;
  height: 26px;
  border-radius: 6px;
  background: var(--deep);
}

.pump-icon::after {
  right: 10px;
  top: 31px;
  width: 18px;
  height: 12px;
  border-radius: 999px;
  background: var(--amber);
}

.filter-icon::before,
.filter-icon::after {
  top: 14px;
  width: 16px;
  height: 48px;
  border-radius: 999px;
  background: var(--deep);
}

.filter-icon::before {
  left: 20px;
}

.filter-icon::after {
  right: 20px;
  background: var(--green);
}

.tap-icon::before {
  left: 20px;
  top: 20px;
  width: 38px;
  height: 16px;
  border: 8px solid var(--deep);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
}

.tap-icon span {
  left: 35px;
  top: 46px;
  width: 10px;
  height: 18px;
  border-radius: 999px 999px 50% 50%;
  background: var(--aqua);
}

.insights {
  grid-template-columns: repeat(3, 1fr);
}

.insights article,
.service-card,
.price-card,
.comparison,
.steps article,
.review-grid article,
.faq-list details,
.calc-panel,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(18, 46, 44, 0.07);
}

.insights article {
  padding: 26px;
}

.number {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--aqua);
  font-weight: 800;
}

.positioning {
  background: #fbfcf7;
}

.comparison {
  overflow: hidden;
  background: #fff;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.comparison-row:last-child {
  border-bottom: 0;
}

.comparison-row span {
  padding: 20px 22px;
}

.comparison-row span:first-child {
  color: var(--muted);
  background: #f5f2ea;
}

.comparison-row span:last-child {
  font-weight: 800;
}

.comparison-row.head span {
  color: #fff;
  background: var(--deep);
  font-weight: 900;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  overflow: hidden;
  padding: 30px;
}

.service-photo {
  width: calc(100% + 60px);
  height: 190px;
  margin: -30px -30px 24px;
  display: block;
  object-fit: cover;
  background: #dfe8e4;
}

.service-card.accent {
  border-color: rgba(75, 127, 82, 0.42);
  background: #f4faf4;
}

.quality-map {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(26px, 6vw, 72px);
  align-items: center;
  background: #fff;
}

.map-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(19, 33, 31, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(19, 33, 31, 0.07) 1px, transparent 1px),
    #f3f7f6;
  background-size: 42px 42px;
  box-shadow: var(--shadow);
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 46px 70px 78px 52px;
  border: 3px solid rgba(27, 128, 146, 0.35);
  border-radius: 48% 52% 44% 56%;
  background: rgba(255, 255, 255, 0.74);
}

.map-card::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 12%;
  top: 50%;
  height: 4px;
  border-radius: 999px;
  background: rgba(215, 139, 44, 0.6);
  transform: rotate(-18deg);
}

.map-region {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 2px;
  min-width: 124px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--deep);
  box-shadow: 0 10px 24px rgba(15, 83, 98, 0.22);
}

.map-region span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.region-north {
  top: 58px;
  left: 38%;
}

.region-west {
  top: 190px;
  left: 12%;
  background: var(--green);
}

.region-east {
  top: 160px;
  right: 12%;
  background: var(--aqua);
}

.region-south {
  bottom: 78px;
  left: 42%;
  background: #7f6134;
}

.map-legend {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--deep);
}

.legend-dot.filter {
  background: var(--green);
}

.legend-dot.delivery {
  background: var(--amber);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--deep);
  font-size: 24px;
}

ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.prices {
  background: #eef5f2;
}

.price-grid {
  grid-template-columns: repeat(3, 1fr);
}

.price-card {
  padding: 30px;
}

.price-card.featured {
  color: #fff;
  background: var(--deep);
  box-shadow: var(--shadow);
}

.price-card.featured p {
  color: rgba(255, 255, 255, 0.82);
}

.price {
  margin-bottom: 14px;
  color: var(--amber);
  font-size: 34px;
  font-weight: 900;
}

.price-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--aqua);
  font-weight: 800;
}

.price-card.featured a {
  color: #fff;
}

.directory-insights {
  background: #fff;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.directory-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f8f4;
  box-shadow: 0 10px 30px rgba(18, 46, 44, 0.07);
}

.directory-card.strong {
  color: #fff;
  background: var(--deep);
}

.directory-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.directory-card.strong p {
  color: rgba(255, 255, 255, 0.82);
}

.directory-card strong {
  display: block;
  color: var(--deep);
  line-height: 1.35;
}

.directory-card.strong strong {
  color: #fff;
}

.directory-meta {
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--aqua);
  font-size: 13px;
  font-weight: 900;
}

.directory-card.strong .directory-meta {
  color: var(--ink);
  background: var(--amber-light);
}

.market-picks {
  display: grid;
  grid-template-columns: 0.9fr 0.7fr 1.2fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f2;
}

.market-picks-copy p,
.pick-panel p {
  color: var(--muted);
}

.pick-buttons {
  display: grid;
  gap: 10px;
}

.pick-button {
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--deep);
  background: #fff;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.pick-button.active {
  color: #fff;
  border-color: var(--deep);
  background: var(--deep);
}

.pick-panel {
  padding: 24px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.pick-panel span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.pick-panel h4 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.12;
}

.pick-panel ul {
  margin-top: 16px;
}

.package-builder {
  background: #fbfcf7;
}

.segment-control {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segment {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.segment.active {
  color: #fff;
  background: var(--deep);
}

.package-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 24px;
  align-items: start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.package-includes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.package-includes span {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--deep);
  background: #e8f3ef;
  font-weight: 800;
}

.package-total {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.package-total span {
  color: var(--muted);
  font-weight: 800;
}

.package-total strong {
  color: var(--amber);
  font-size: 32px;
  line-height: 1;
}

.equipment {
  background: #eef5f2;
}

.photo-proof {
  background: #fff;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 18px;
}

.photo-grid figure {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8e4;
  box-shadow: var(--shadow);
}

.photo-grid figure.wide {
  grid-row: span 2;
  min-height: 540px;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.photo-grid figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  color: #fff;
  background: rgba(6, 30, 34, 0.82);
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.equipment-grid {
  grid-template-columns: repeat(4, 1fr);
}

.equipment-grid article {
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 46, 44, 0.07);
}

.device {
  position: relative;
  height: 130px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: #f3f7f6;
  overflow: hidden;
}

.device::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 83, 98, 0.22);
}

.device span {
  position: absolute;
  display: block;
}

.device-column span {
  bottom: 30px;
  width: 26px;
  height: 72px;
  border-radius: 999px;
  background: var(--deep);
}

.device-column span:nth-child(1) {
  left: 28px;
}

.device-column span:nth-child(2) {
  left: 70px;
  background: var(--aqua);
}

.device-column span:nth-child(3) {
  left: 112px;
  background: var(--green);
}

.device-softener span:nth-child(1) {
  left: 34px;
  bottom: 28px;
  width: 66px;
  height: 78px;
  border-radius: 18px;
  background: var(--deep);
}

.device-softener span:nth-child(2) {
  right: 34px;
  bottom: 28px;
  width: 40px;
  height: 64px;
  border-radius: 999px;
  background: var(--amber);
}

.device-osmosis span {
  top: 38px;
  width: 42px;
  height: 42px;
  border: 10px solid var(--aqua);
  border-radius: 50%;
}

.device-osmosis span:nth-child(1) {
  left: 24px;
}

.device-osmosis span:nth-child(2) {
  left: 78px;
  border-color: var(--green);
}

.device-osmosis span:nth-child(3) {
  left: 132px;
  border-color: var(--deep);
}

.device-bottle span {
  left: 50%;
  bottom: 24px;
  width: 58px;
  height: 92px;
  border-radius: 16px 16px 26px 26px;
  background: linear-gradient(180deg, #c9edf1, var(--aqua));
  transform: translateX(-50%);
}

.device-bottle span::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -18px;
  width: 22px;
  height: 22px;
  border-radius: 6px 6px 2px 2px;
  background: var(--deep);
}

.process {
  background: #fff;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
}

.steps article {
  padding: 26px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}

.proof,
.calculator,
.request {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(26px, 6vw, 72px);
  align-items: start;
}

.proof-list {
  display: grid;
  gap: 14px;
}

.proof-list div {
  display: grid;
  gap: 3px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.proof-list span,
.market p,
.services p,
.prices p,
.audience p,
.package-builder p,
.process p,
.reviews p,
.diagnostics p,
.faq p,
.calculator p,
.request p {
  color: var(--muted);
}

.diagnostics {
  background: #fff;
}

.diagnostics-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.diagnostics-form {
  display: grid;
  gap: 14px;
}

.diagnostics-source {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.diagnostics-source select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink);
  font: inherit;
}

.symptom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.symptom-grid label {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
  color: var(--ink);
  cursor: pointer;
}

.symptom-grid label:has(input:checked) {
  border-color: rgba(27, 128, 146, 0.6);
  background: #e8f5f4;
}

.diagnostics-result {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--deep);
  color: #fff;
}

.diagnostics-result p,
.diagnostics-result ul {
  color: rgba(255, 255, 255, 0.78);
}

.diagnostics-next {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.diagnostics-next strong {
  color: #fff;
}

.diagnostics-next span {
  color: rgba(255, 255, 255, 0.78);
}

.risk-badge {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 900;
}

.quality-chart {
  background: #fbfcf7;
}

.chart-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 24px;
  align-items: stretch;
}

.bar-chart,
.chart-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 46, 44, 0.07);
}

.bar-chart {
  display: grid;
  gap: 22px;
  padding: 30px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
}

.bar-row > span {
  color: var(--muted);
  font-weight: 900;
}

.bars {
  display: grid;
  gap: 7px;
}

.bars i,
.bars b {
  display: block;
  width: var(--w);
  height: 14px;
  border-radius: 999px;
}

.bars i {
  background: #b36b3d;
}

.bars b {
  background: var(--aqua);
}

.chart-note {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 30px;
}

.chart-note div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.chart-note span {
  width: 34px;
  height: 14px;
  border-radius: 999px;
}

.chart-note .before {
  background: #b36b3d;
}

.chart-note .after {
  background: var(--aqua);
}

.reviews {
  background: #eef5f2;
}

.review-grid {
  grid-template-columns: repeat(3, 1fr);
}

.review-grid article {
  padding: 28px;
  background: #fff;
}

.calculator {
  background: #fff;
}

.calc-panel,
.lead-form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.advanced-calc {
  gap: 22px;
}

.calc-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f7f6;
}

.calc-tab {
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.calc-tab.active {
  color: #fff;
  background: var(--deep);
  box-shadow: 0 10px 24px rgba(15, 83, 98, 0.2);
}

.calc-pane {
  display: none;
  gap: 16px;
}

.calc-pane.active {
  display: grid;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.range-value {
  color: var(--deep);
  font-size: 15px;
}

.options {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 8px;
  background: #f3f7f6;
}

.options label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.calc-summary {
  display: grid;
  gap: 12px;
}

.calc-total {
  display: grid;
  gap: 8px;
}

.calc-total > span {
  color: var(--muted);
  font-weight: 900;
}

#calcBreakdown {
  display: grid;
  gap: 8px;
  margin: 0;
}

#calcBreakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

#calcBreakdown dt {
  color: var(--muted);
}

#calcBreakdown dd {
  margin: 0;
  font-weight: 900;
}

.calc-note {
  margin-bottom: 0;
  padding: 14px;
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fff7ea;
  color: var(--muted);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 104px;
  padding-top: 12px;
  resize: vertical;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--aqua);
}

input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--aqua);
}

output {
  display: block;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 22px;
  font-weight: 900;
}

.request {
  background: var(--deep);
  color: #fff;
}

.request-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.lead-form .form-note {
  color: var(--muted);
}

.lead-form button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--amber);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.form-note {
  margin-bottom: 0;
  font-size: 13px;
}

.field-error {
  min-height: 18px;
  color: #e16d3d;
  font-size: 13px;
}

.lead-preview {
  padding: 16px;
  border: 1px solid rgba(75, 127, 82, 0.35);
  border-radius: 8px;
  color: var(--ink);
  background: #f3f7f0;
  font-size: 14px;
}

.lead-preview strong {
  display: block;
  margin-bottom: 8px;
}

.faq {
  background: #fbfcf7;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 20px 24px;
  background: #fff;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin: 12px 0 0;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
}

.quality-copy {
  max-width: 640px;
}

.quality-copy p,
.system-visual p,
.quality-map p,
.equipment p,
.quality-chart p {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .waterline,
  .equipment-grid,
  .audience-grid,
  .directory-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .waterline::before {
    display: none;
  }
}

@media (max-width: 860px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
  }

  .nav {
    display: none;
  }

  .header-cta {
    font-size: 13px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 120px;
  }

  .insights,
  .service-grid,
  .price-grid,
  .audience-grid,
  .scoreboard,
  .package-panel,
  .steps,
  .review-grid,
  .waterline,
  .quality-map,
  .equipment-grid,
  .photo-grid,
  .chart-layout,
  .diagnostics-layout,
  .symptom-grid,
  .calc-grid,
  .market-picks,
  .proof,
  .calculator,
  .request {
    grid-template-columns: 1fr;
  }

  .comparison-row {
    grid-template-columns: 1fr;
  }

  .map-card {
    min-height: 520px;
  }

  .photo-grid figure.wide {
    min-height: 360px;
  }

  section:not(.hero) {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .topbar {
    gap: 12px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 10px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .segment-control {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .calc-tabs {
    grid-template-columns: 1fr;
  }

  .package-panel,
  .market-picks,
  .calc-panel,
  .lead-form {
    padding: 20px;
  }

  .directory-grid {
    grid-template-columns: 1fr;
  }

  .directory-card {
    min-height: auto;
  }

  output {
    font-size: 19px;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .map-region {
    min-width: 112px;
  }

  .region-north {
    left: 28%;
  }

  .region-west {
    left: 8%;
  }

  .region-east {
    right: 8%;
  }

  .region-south {
    left: 30%;
  }
}
