/* Clear — site styles
   Palette: navy #14244D · cream #FFF6EA · sun #FFD978 · blue #2350D8
   Map fills: public #A8C4FF · small systems #FFD978 · private wells #FF8F66
   Fonts: Archivo (variable width + weight) and Yellowtail (script accent) */

:root {
  --navy: #14244D;
  --cream: #FFF6EA;
  --sun: #FFD978;
  --blue: #2350D8;
  --ink-2: #3C4C72;
  --ink-3: #4F5D80;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--navy);
  font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  font-stretch: 100%;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
a { color: inherit; }
option { color: var(--navy); background: #FFFFFF; }
[id] { scroll-margin-top: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.clear-display { font-family: 'Archivo', sans-serif; font-weight: 900; font-stretch: 118%; text-transform: uppercase; letter-spacing: -0.01em; line-height: .9; }
.clear-script { font-family: 'Yellowtail', cursive; font-weight: 400; font-stretch: 100%; text-transform: none; letter-spacing: 0; line-height: 1; }
.clear-caps { font-family: 'Archivo', sans-serif; font-weight: 800; font-stretch: 82%; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Mascots ---------- */
.nav-logo { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.nav-logo img { height: 68px; width: auto; display: block; }
.mascot-paw { width: 168px; height: auto; flex: 0 0 auto; }
.mascot-body { width: 230px; height: auto; display: block; margin-top: 28px; }

/* ---------- Hero ---------- */
.clear-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #1C5DEC;
}
.clear-sky-img {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: auto;
  aspect-ratio: 1024 / 576;
  background-image: url(assets/hero-scene.jpg?v=3);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 62%, transparent 100%);
}
.clear-photo { background-color: var(--blue); }

/* ---------- Components ---------- */
.clear-sticker { border: 2px solid var(--navy); box-shadow: 5px 5px 0 var(--navy); }
.clear-press { transition: transform .2s cubic-bezier(.34,1.56,.64,1), box-shadow .2s, background .2s; }
.clear-press:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--navy); }
.clear-btn { transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s; }
.clear-btn:active { transform: translateY(1px); }
.clear-navlink { transition: opacity .2s; }
@media (hover: hover) {
  .clear-press:hover { transform: translate(-2px,-2px); }
  .clear-sticker.clear-press:hover { box-shadow: 7px 7px 0 var(--navy); }
  .clear-btn:hover { transform: translateY(-2px); }
  .clear-navlink:hover { opacity: .75; }
}
.clear-field { transition: border-color .2s, box-shadow .2s; }
.clear-field::placeholder { color: #6B789A; }
.clear-field:focus { outline: none; box-shadow: 0 0 0 4px rgba(35,80,216,.25); }
.clear-dark-field:focus { outline: none; box-shadow: 0 0 0 4px rgba(255,217,120,.4); }
.clear-search:focus-within { box-shadow: 6px 6px 0 var(--navy), 0 0 0 5px rgba(255,217,120,.6) !important; }

.addr-field { position: relative; }
.addr-suggest {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  text-align: left;
  background: #FFFFFF;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--navy);
  max-height: 320px;
  overflow: auto;
}
.addr-suggest[hidden] { display: none; }
.addr-suggest button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  min-height: 48px;
}
.addr-suggest button[aria-selected="true"] { background: var(--sun); }
@media (hover: hover) {
  .addr-suggest button:hover { background: var(--sun); }
}
.addr-suggest .addr-main { display: block; font-weight: 800; font-size: 15px; line-height: 1.3; }
.addr-suggest .addr-sub { display: block; margin-top: 2px; font-weight: 600; font-size: 13px; line-height: 1.3; color: #3d4d73; }
.addr-suggest .addr-credit { padding: 6px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6B789A; }

.price-art {
  width: 100%;
  height: 196px;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}
.clear-featured .price-art {
  background: #FFF6EA;
  border-radius: 18px;
  box-sizing: border-box;
  height: 208px;
  padding: 22px 10px 6px;
}

.badge { align-self: flex-start; font-size: 12px; padding: 7px 13px; border-radius: 999px; color: var(--navy); }

.chip { font: inherit; font-size: 15px; font-weight: 700; min-height: 44px; padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 2px solid var(--navy); background: #FFFFFF; color: var(--navy); box-shadow: 2px 2px 0 var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--cream); box-shadow: none; }

/* Filtration: the section stays put while scrolling steps through the cards */
.stage-scroll {
  --stage-steps: 4;
  --stage-step: 72vh;
  position: relative;
  height: calc(100dvh + (var(--stage-steps) * var(--stage-step)));
  background: var(--blue);
  color: var(--cream);
  padding: 0 !important;
}
.stage-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.stage-pin-inner { width: 100%; max-width: 1200px; margin: 0 auto; padding: 64px 20px 36px; }
.stage-wave { position: absolute; left: 0; right: 0; width: 100%; height: 44px; display: block; pointer-events: none; }
.stage-wave-top { top: -1px; }
.stage-wave-bottom { bottom: -1px; }

/* Filtration stage cards */
.stage-card { text-align: left; font: inherit; cursor: pointer; border-radius: 24px; padding: 26px; min-height: 250px; display: flex; flex-direction: column; color: var(--navy); background: var(--cream); opacity: .72; transition: background .35s, opacity .35s, transform .35s; }
.stage-card.is-active { background: var(--sun); opacity: 1; }
.stage-num { font-size: 15px; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--navy); color: var(--navy); }
.stage-card.is-active .stage-num { background: var(--navy); color: var(--cream); }
.stage-name { display: block; font-size: 26px; line-height: 1; margin: 20px 0 10px; }
.stage-body { display: block; font-size: 15px; line-height: 1.5; color: #33456F; }
.stage-tag { margin-top: auto; padding-top: 16px; font-size: 12px; color: var(--blue); }
.stage-card.is-active .stage-tag { color: var(--navy); }
.progress-fill { height: 100%; width: 25%; border-radius: 999px; background: var(--sun); transition: width .6s cubic-bezier(.34,1.4,.64,1); }

/* Map */
.clear-map .map-ctx path { fill: var(--cream); fill-opacity: .13; stroke: var(--cream); stroke-opacity: .3; stroke-width: 1; vector-effect: non-scaling-stroke; }
.clear-map .clear-t { cursor: pointer; stroke: var(--navy); stroke-opacity: .7; stroke-width: .8; vector-effect: non-scaling-stroke; transition: fill-opacity .15s; }
.clear-map .clear-t:hover { fill-opacity: .7; }
.map-zoom { transform-origin: 0 0; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.sel-halo, .sel-line { fill: none; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.sel-halo { stroke: var(--navy); stroke-width: 5.5; }
.sel-line { stroke: var(--cream); stroke-width: 2.5; }
.sel-label { position: absolute; transform: translate(-6px,-6px); display: flex; align-items: center; gap: 6px; pointer-events: none; transition: left .8s cubic-bezier(.2,.8,.2,1), top .8s cubic-bezier(.2,.8,.2,1); }
.hover-tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); padding: 8px 13px; border-radius: 12px; background: var(--cream); color: var(--navy); border: 2px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); pointer-events: none; white-space: nowrap; }
.zoom-btn { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.zoom-btn + .zoom-btn { border-top: 2px solid var(--navy); }

/* Entrance motion */
@keyframes clearRise { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: translateY(0); } }
.clear-rise { animation: clearRise .9s cubic-bezier(.2,.8,.2,1) both; }
.clear-rise2 { animation: clearRise .9s .12s cubic-bezier(.2,.8,.2,1) both; }
.clear-rise3 { animation: clearRise .9s .4s cubic-bezier(.2,.8,.2,1) both; }

/* Mobile nav */
.clear-menubtn { display: none; align-items: center; justify-content: center; }
.clear-menusheet { display: none; flex-direction: column; }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  .clear-navlinks { display: none !important; }
  .clear-menubtn { display: inline-flex !important; }
  .clear-menusheet { display: flex !important; }
  .clear-navbook { display: none !important; }
  .clear-hero { min-height: 0 !important; }
  .nav-logo img { height: 52px; }
  .mascot-paw { width: 120px; }
  .mascot-body { width: 160px; margin-left: auto; margin-right: auto; margin-top: 18px; }

  h2.clear-display { font-size: clamp(32px, 9vw, 42px) !important; line-height: 1.05 !important; }
  h2 .clear-script { display: block; width: max-content; line-height: 1; margin: .16em 0 .22em; padding: 0; }
  #pricing h2 .clear-script, .clear-cta .clear-script { margin-left: auto; margin-right: auto; }

  .clear-hero h1 {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    font-size: 46px !important;
    line-height: .9 !important;
    gap: 0;
  }
  .clear-hero h1 .clear-script {
    font-size: .68em !important;
    line-height: 1;
    margin: 6px 0 8px;
    padding: 0;
  }
  .clear-rise2 { font-size: 16px !important; margin: 18px 0 20px !important; text-shadow: 0 0 14px #1C5DEC, 0 0 28px #1C5DEC, 0 1px 14px rgba(14,30,90,.45) !important; }
  .clear-hero-inner { padding: 12px 16px 84px !important; }
  .clear-search { border-radius: 24px !important; padding: 6px !important; }
  .clear-search input { flex: 1 1 100% !important; padding: 12px 14px !important; font-size: 16px !important; }
  .clear-search button { flex: 1 1 100% !important; }
  .clear-facts { flex-direction: column; align-items: center; font-size: 12px !important; gap: 4px !important; margin-top: 18px !important; }
  .clear-facts > [aria-hidden] { display: none; }
  .addr-suggest { max-height: min(280px, 42vh); }

  .clear-sec { padding-left: 16px !important; padding-right: 16px !important; padding-top: 48px !important; padding-bottom: 48px !important; }
  .clear-mapcard { padding: 8px !important; border-radius: 22px !important; gap: 8px !important; }
  .clear-panel { order: -1; padding: 20px !important; }
  .clear-mapcol { order: 0; padding: 4px !important; }
  .clear-legend { gap: 6px !important; }
  .clear-legend > span { font-size: 11px !important; padding: 5px 9px !important; }
  .map-zooms { left: 8px !important; right: auto !important; top: 8px !important; }
  .map-sound { font-size: 16px !important; left: 12px !important; bottom: 6px !important; }
  #panelHeadline { font-size: 22px !important; }
  .clear-panel a.clear-btn { font-size: 15px !important; }

  .clear-rail { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 4px 16px 8px !important; scroll-padding: 0 16px; scrollbar-width: none; }
  .clear-rail::-webkit-scrollbar { display: none; }
  .stage-scroll { --stage-step: 52vh; }
  .stage-pin { align-items: center; }
  .stage-pin-inner { padding: 20px 16px 16px; }
  .stage-pin .mascot-filtration { display: block !important; margin: 0 0 12px !important; text-align: left; }
  .stage-pin .mascot-filtration > div { text-align: left !important; }
  .stage-pin h2 { font-size: 28px !important; margin: 6px 0 8px !important; }
  .stage-pin p { font-size: 14px !important; line-height: 1.4 !important; }
  .stage-pin .mascot-paw { display: none; }
  .stage-meter { margin-bottom: 12px !important; }
  .stage-card { flex: 0 0 86%; scroll-snap-align: start; min-height: 0; padding: 18px; }
  .stage-name { font-size: 22px; margin: 12px 0 6px; }
  .stage-body { font-size: 14px; }
  .stage-tag { padding-top: 10px; }

  .clear-featured { order: -1; }
  .price-art { height: 140px; }
  .clear-featured .price-art { height: 152px; padding-top: 14px; }
  .clear-card { padding: 22px !important; }
  .clear-price { font-size: 42px !important; }
  .clear-formcard { padding: 18px !important; }
  input, select, textarea { font-size: 16px; }
  .clear-cta { padding: 40px 16px !important; border-radius: 26px !important; }
  .clear-cta h2 { font-size: 36px !important; }
  .clear-cta .clear-script { font-size: 44px !important; }
  .clear-cta-row { flex-direction: column; align-items: stretch; }
  .clear-cta-row a { width: 100%; justify-content: center; box-sizing: border-box; }
  .clear-foot { padding: 40px 20px calc(20px + env(safe-area-inset-bottom)) !important; }
  .clear-foot a { min-height: 44px; display: inline-flex; align-items: center; }
  .clear-foot .clear-display { font-size: 36px !important; }
}

@media (max-width: 720px) and (max-height: 740px) {
  .stage-pin-inner { padding-top: 14px; padding-bottom: 10px; }
  .stage-pin h2 { font-size: 26px !important; }
  .stage-card { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clear-rise, .clear-rise2, .clear-rise3 { animation: none; }
  .clear-press, .clear-btn, .map-zoom, .sel-label, .progress-fill, .stage-card { transition: none; }
  .stage-scroll { height: auto !important; }
  .stage-pin { position: relative; height: auto; overflow: visible; }
  .stage-pin-inner { padding-top: 88px; padding-bottom: 88px; }
}

/* Keep last so it beats the display rules above */
[hidden] { display: none !important; }
