/* Fresh Water Systems homepage. Palette: blue, orange, white only. */

:root {
  --blue: #0e60ba;
  --orange: #f55c07;
  --white: #ffffff;
  --font-display: "Fredoka", "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 16px;
  --container: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--blue);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.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;
}

/* Bands */
.band-blue { background: var(--blue); color: var(--white); }
.band-white { background: var(--white); color: var(--blue); }
.band-blue + .band-blue { border-top: 1px solid rgba(255, 255, 255, 0.28); }
.pad { padding: 56px 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.17rem;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--white); color: var(--orange); border-color: var(--orange); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--blue); }
.btn-small { min-height: 44px; padding: 8px 16px; font-size: 1rem; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta-number {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--white);
  text-decoration: none;
}

/* Header */
.site-header { background: var(--white); border-bottom: 3px solid var(--blue); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 20px; max-width: var(--container); margin: 0 auto;
}
.header-inner img { height: 56px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-number {
  display: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blue);
  text-decoration: none;
}

/* Hero */
.hero { padding: 40px 0 48px; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 8vw, 3.9rem); margin-bottom: 14px; }
.hero .subline { font-size: 1.25rem; margin-bottom: 26px; }
.hero-art img { width: 100%; max-width: 320px; margin: 0 auto; }

/* Stakes */
.stakes h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 22px; }
.stakes-cols { display: grid; grid-template-columns: 1fr; gap: 40px; }
.stakes-list { display: grid; gap: 14px; }
.stakes-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.1rem; }
.stakes-list li::before {
  content: "";
  flex-shrink: 0;
  width: 14px; height: 14px; margin-top: 9px;
  border-radius: 50%;
  background: var(--orange);
}
.stakes-list.positive li::before {
  width: 22px; height: 22px; margin-top: 3px;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 12.5 10 16.5 18 8'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.stakes-band { padding: 26px 0; }
.stakes-band p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  line-height: 1.25;
  max-width: 820px;
}

/* Value props */
.value-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.value-card {
  border: 2px solid var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2px solid var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon-circle svg { width: 32px; height: 32px; }
.value-card h3 { font-size: 1.5rem; margin-bottom: 8px; }

/* Guide */
.guide p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 4.5vw, 2rem);
  line-height: 1.3;
  max-width: 820px;
}

/* Plan */
.plan-title { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 32px; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 44px; margin-bottom: 40px; list-style: none; }
.plan-step {
  position: relative;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  padding: 24px 24px 28px;
}
.plan-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.plan-num {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.plan-top .icon-circle { width: 56px; height: 56px; margin: 0; background: transparent; border-color: var(--white); }
.plan-top .icon-circle svg { width: 28px; height: 28px; }
.plan-step h3 { font-size: 1.45rem; margin-bottom: 8px; }
/* Connector between steps: down arrow on phones, right arrow on wide screens */
.plan-step:not(:last-child)::after {
  content: "";
  position: absolute; left: 50%; bottom: -30px;
  width: 16px; height: 16px; margin-left: -8px;
  border-right: 5px solid var(--white); border-bottom: 5px solid var(--white);
  transform: rotate(45deg);
}

/* Explanatory paragraph */
.explain p { max-width: 780px; font-size: 1.1rem; margin-bottom: 18px; }
.explain-steps { counter-reset: n; display: grid; gap: 12px; margin: 6px 0 22px; max-width: 780px; list-style: none; }
.explain-steps li {
  counter-increment: n;
  display: flex; align-items: center; gap: 16px;
  border: 2px solid var(--blue); border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.explain-steps li::before {
  content: counter(n);
  flex-shrink: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--orange); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.explain .lead-in { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }

/* Pricing */
.pricing h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 24px; }
.price-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.price-table th, .price-table td { text-align: left; padding: 16px 12px; vertical-align: top; }
.price-table thead th {
  font-family: var(--font-display);
  border-bottom: 2px solid var(--white);
}
.price-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.price-table td:first-child { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.price-table td:last-child { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.price-note { font-style: italic; margin-bottom: 28px; }

details {
  border: 2px solid var(--white);
  border-radius: var(--radius);
  padding: 4px 20px;
  max-width: 760px;
}
summary {
  cursor: pointer;
  min-height: 52px;
  display: flex; align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}
details ul { padding: 4px 0 18px 4px; display: grid; gap: 8px; }
details li::before { content: "+ "; font-weight: 700; }

/* Final CTA */
.final h2 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 22px; }

/* Footer */
.site-footer { font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 44px 0 28px; }
.site-footer h3 { font-size: 1.15rem; margin-bottom: 12px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { padding: 18px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.92rem; }

/* Sticky mobile call/text bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: var(--blue);
  border-top: 2px solid var(--white);
}
.sticky-cta .btn { min-height: 52px; padding: 10px 12px; }
body { padding-bottom: 76px; }

/* Tablet and up */
@media (min-width: 768px) {
  .hero-art img { max-width: 420px; }
  .stakes-cols { grid-template-columns: 1fr 1fr; gap: 56px; }
  .pad { padding: 80px 0; }
  .hero { padding: 64px 0 72px; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 48px; }
  .value-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .plan-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
  .plan-step:not(:last-child)::after {
    left: auto; right: -34px; bottom: auto; top: 50px; margin: 0;
    transform: rotate(-45deg);
  }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-number, .header-number { display: inline; }
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
}

/* Small phones: stack the pricing table into cards */
@media (max-width: 639px) {
  .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .price-table, .price-table tbody, .price-table tr, .price-table td { display: block; width: 100%; }
  .price-table tr { padding: 16px 0; }
  .price-table td { padding: 2px 0; }
  .price-table td:last-child { margin-top: 6px; }
  .header-inner img { height: 48px; }
  .btn-small { padding: 8px 12px; font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Header button text counts as large text so white-on-orange stays readable */
.btn-small { font-size: 1.17rem; }
@media (max-width: 639px) {
  .btn-small { font-size: 1.17rem; padding: 8px 12px; max-width: 190px; line-height: 1.1; }
}

/* Shared across every page */
.band-blue h1, .band-blue h2, .band-blue h3, .site-footer h3 { color: var(--white); }

/* ---- Orange bands and accents (keeps the page from being blue on blue) ---- */
.band-orange { background: var(--orange); color: var(--white); }
.band-orange h1, .band-orange h2, .band-orange h3 { color: var(--white); }
.guide p { font-weight: 700; }
.icon-circle { background: var(--orange); border-color: var(--orange); }
.price {
  display: inline-block;
  background: var(--orange); color: var(--white);
  padding: 6px 16px; border-radius: 999px;
  white-space: nowrap;
}
.price-table thead th { border-bottom: 3px solid var(--orange); }
.btn-white { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn-white:hover { background: var(--blue); color: var(--white); border-color: var(--white); }
.final .cta-number { color: var(--white); }

/* ---- Call to action always visible: sticky header on every page ---- */
.site-header { position: sticky; top: 0; z-index: 60; }
section[id] { scroll-margin-top: 96px; }

/* "Imagine instead" panel: breaks up the white stakes section */
.stakes-panel { background: var(--blue); color: var(--white); border-radius: var(--radius); padding: 28px 24px; }
.stakes-panel h2 { color: var(--white); }
.stakes-panel .stakes-list.positive li::before {
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e60ba' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 12.5 10 16.5 18 8'/%3E%3C/svg%3E") center / 80% no-repeat;
}
@media (min-width: 768px) { .explain.band-white .pad { padding: 44px 0; } .stakes .pad { padding: 52px 0; } .stakes-panel { padding: 36px 32px; } }
@media (min-width: 1400px) { .explain.band-white .pad { padding: 34px 0; } .stakes .pad { padding: 40px 0; } }
@media (min-width: 1800px) { .explain.band-white .pad { padding: 26px 0; } .stakes .pad { padding: 30px 0; } }
