/* ============================================================
     ClearWater — redesigned for a 65-75-year-old, non-technical
     audience (water-utility board members). Plain white ground,
     one civic navy, one brass accent used sparingly. Large type,
     high contrast, no motion, no monospace, no dark "dashboard"
     styling — reads like a well-made printed brochure, not a
     tech product. Single deliberate light world; no dark-mode
     variant, matching that intent.
     ============================================================ */

  :root {
    --bg: #ffffff;
    --bg-soft: #eef4f8;
    --bg-soft2: #e3edf3;
    --ink: #16283b;
    --ink-soft: #435465;
    --line: #d3dfe7;
    --primary: #1c4a72;
    --primary-dark: #123a5c;
    --accent: #a8722e;
    --accent-text: #7a4f1e;
    --white: #ffffff;
    --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-body: "Public Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  }

  * { box-sizing: border-box; }
  html { color-scheme: light; }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  ::selection { background: #cfe0ea; color: var(--ink); }

  a { color: var(--primary); }
  a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
  }

  h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    margin: 0;
    text-wrap: balance;
    color: var(--ink);
    line-height: 1.15;
  }

  p { margin: 0; }

  .wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
  }

  .prose { max-width: 62ch; }

  /* ---------- header ---------- */
  header.top {
    border-bottom: 2px solid var(--line);
  }
  header.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 22px;
    padding-bottom: 22px;
    flex-wrap: wrap;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--ink);
  }
  .brand svg { flex: none; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 1.08rem;
    font-weight: 700;
    text-decoration: none;
    padding: 15px 28px;
    border-radius: 6px;
    border: 2px solid var(--primary);
    color: var(--white);
    background: var(--primary);
    white-space: nowrap;
    min-height: 52px;
  }
  .btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
  .btn.secondary {
    background: var(--white);
    color: var(--primary);
    border-color: var(--primary);
  }
  .btn.secondary:hover { background: var(--bg-soft); }

  /* ---------- hero ---------- */
  .hero {
    padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
    text-align: left;
  }
  .hero .kicker {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-text);
    margin-bottom: 16px;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    max-width: none;
  }
  .hero .sub {
    margin-top: 22px;
    font-size: 1.3rem;
    color: var(--ink-soft);
    max-width: 75ch;
    line-height: 1.65;
  }
  .hero .cta-row {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  /* ---------- plain two-up intro (replaces old data-viz hero panel) ---------- */
  .intro-grid {
    margin-top: clamp(44px, 7vw, 64px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  @media (max-width: 680px) { .intro-grid { grid-template-columns: 1fr; } }
  .intro-card {
    background: var(--bg-soft);
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 26px 26px 28px;
  }
  .intro-card .icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }
  .intro-card h3 { font-size: 1.35rem; }
  .intro-card p { margin-top: 10px; color: var(--ink-soft); font-size: 1.05rem; line-height: 1.6; }

  /* ---------- sections ---------- */
  .section {
    padding: clamp(48px, 7vw, 80px) 0;
    border-top: 2px solid var(--line);
  }
  .section-head { margin-bottom: 26px; }
  .section-head .icon-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
  .section-head .icon-badge {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 2px solid var(--primary);
    display: flex; align-items: center; justify-content: center;
    flex: none;
  }
  .section-head .eyebrow {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-text);
  }
  .section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-top: 4px; }

  .section p.body-text { color: var(--ink-soft); font-size: 1.1rem; line-height: 1.75; max-width: 68ch; }
  .section p.body-text + p.body-text { margin-top: 16px; }

  .list-plain {
    margin-top: 26px;
    max-width: 68ch;
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .list-plain li {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ink);
  }
  .list-plain li:last-child { border-bottom: 1px solid var(--line); }
  .list-plain .bullet {
    flex: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 2px;
  }
  .list-plain b { color: var(--ink); }

  .callout-box {
    margin-top: 30px;
    background: var(--bg-soft);
    border-left: 6px solid var(--accent);
    border-radius: 6px;
    padding: 22px 26px;
  }
  .callout-box .label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-text);
    display: block;
    margin-bottom: 8px;
  }
  .callout-box p { color: var(--ink); font-size: 1.05rem; line-height: 1.65; }

  .shot-frame { margin-top: 30px; }
  .shot-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--line);
  }

  /* ---------- optional modules ---------- */
  .modules-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  @media (max-width: 640px) { .modules-grid { grid-template-columns: 1fr; } }
  .module {
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 8px;
    padding: 20px 22px;
  }
  .module h4 {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--ink);
    margin: 0;
  }
  .module p {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--ink-soft);
    line-height: 1.6;
  }
  .modules-note {
    margin-top: 22px;
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 62ch;
  }

  /* ---------- proof ---------- */
  .proof {
    background: var(--bg-soft);
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    padding: clamp(48px, 7vw, 76px) 0;
  }
  .proof-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 4vw, 36px);
    margin-top: 32px;
  }
  @media (max-width: 700px) { .proof-grid { grid-template-columns: 1fr; } }
  .proof-stat .n {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
  }
  .proof-stat .l {
    margin-top: 10px;
    font-size: 1.02rem;
    color: var(--ink-soft);
    line-height: 1.55;
    max-width: 30ch;
  }

  /* ---------- contact ---------- */
  .contact-section { padding: clamp(48px, 8vw, 88px) 0 clamp(56px, 8vw, 100px); }
  .contact-box {
    background: var(--bg-soft);
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: clamp(32px, 6vw, 52px);
  }
  .contact-box h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); max-width: 20ch; }
  .contact-box p.lede {
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 1.15rem;
    max-width: 54ch;
    line-height: 1.65;
  }
  .email-big {
    display: inline-block;
    margin-top: 28px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 700;
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-decoration-thickness: 2px;
    word-break: break-word;
  }
  .email-big:hover { color: var(--primary-dark); }
  .email-help {
    margin-top: 14px;
    font-size: 1.02rem;
    color: var(--ink-soft);
    line-height: 1.6;
    max-width: 56ch;
  }
  .email-help b { color: var(--ink); }
  .contact-details {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 28px 48px;
  }
  .contact-item .k {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink-soft);
  }
  .contact-item .v {
    margin-top: 4px;
    font-size: 1.2rem;
    font-weight: 700;
  }
  .contact-item .v a { color: var(--primary); text-decoration-color: var(--line); }

  footer.foot {
    padding: 30px clamp(20px, 5vw, 48px) 46px;
    font-size: 0.98rem;
    color: var(--ink-soft);
    text-align: center;
  }


  /* ---------- board / email facsimile ---------- */
  .email-demo {
    margin-top: 32px;
    max-width: 680px;
    border: 1px solid #d5dde5;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
    color: #16202b;
  }
  .email-demo .ed-band {
    background: #17405e;
    padding: 22px 24px;
  }
  .email-demo .ed-org {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255,255,255,.7);
    margin-bottom: 7px;
  }
  .email-demo .ed-title {
    font-family: var(--font-body);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
  }
  .email-demo .ed-date { font-size: 13px; color: rgba(255,255,255,.85); margin-top: 4px; }
  .email-demo .ed-body { padding: 18px 24px 22px; }
  .email-demo .ed-intro { margin: 0 0 18px; line-height: 1.5; color: #16202b; font-size: 14.5px; }
  .email-demo .ed-card {
    background: #ffffff;
    border: 1px solid #e3e8ec;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 16px;
  }
  .email-demo .ed-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
  }
  .email-demo .ed-card-title { font-size: 15px; font-weight: 700; color: #16283b; }
  .email-demo .ed-tag {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #17405e;
    background: #eef4f8;
    border-radius: 999px;
    padding: 3px 9px;
  }
  .email-demo .ed-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  @media (max-width: 560px) { .email-demo .ed-kpis { grid-template-columns: repeat(2, 1fr); } }
  .email-demo .ed-kpi {
    background: #f7f9fb;
    border: 1px solid #e3e8ec;
    border-left: 3px solid #17405e;
    border-radius: 8px;
    padding: 11px 13px;
  }
  .email-demo .ed-kpi.green { border-left-color: #2f9e6b; }
  .email-demo .ed-kpi.sky { border-left-color: #4a9fd4; }
  .email-demo .ed-kpi .k {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #5a6774;
    margin-bottom: 4px;
  }
  .email-demo .ed-kpi .v { font-size: 19px; font-weight: 700; color: #17405e; line-height: 1.2; }
  .email-demo .ed-kpi .v small { font-size: 12px; font-weight: 600; }
  .email-demo .ed-kpi .s { font-size: 11.5px; color: #5a6774; margin-top: 2px; }
  .email-demo .ed-bars { display: flex; flex-direction: column; gap: 7px; }
  .email-demo .ed-bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
  .email-demo .ed-bar-name { flex: none; width: 150px; color: #435465; }
  .email-demo .ed-bar-track { display: block; flex: 1; height: 14px; background: #eef2f5; border-radius: 3px; overflow: hidden; }
  /* The fill is a span inside a span: without display:block an inline box
     ignores height and width and the bar renders empty. */
  .email-demo .ed-bar-fill { display: block; height: 100%; background: #4a9fd4; }
  .email-demo .ed-bar-val { flex: none; width: 74px; text-align: right; font-weight: 700; color: #17405e; font-size: 12.5px; }
  .email-demo .ed-more {
    font-size: 13px;
    color: #5a6774;
    background: #f7f9fb;
    border: 1px dashed #d5dde5;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
  }
  .email-demo .ed-foot {
    border-top: 1px solid #d5dde5;
    margin-top: 4px;
    padding-top: 12px;
    font-size: 12px;
    color: #5a6774;
  }
  .demo-label {
    margin-top: 14px;
    font-size: 0.98rem;
    color: var(--ink-soft);
    max-width: 62ch;
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  }

/* ---------- top nav (added with the pricing page) ---------- */
.topnav { display: flex; align-items: center; gap: clamp(16px, 3vw, 28px); flex-wrap: wrap; }
.topnav a:not(.btn) {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 3px solid transparent;
}
.topnav a:not(.btn):hover { border-bottom-color: var(--accent); }
.topnav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ---------- pricing ---------- */
.price-grid {
  margin-top: clamp(28px, 5vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }

.tier {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 28px 26px 30px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier.featured { border-color: var(--primary); border-width: 3px; }
.tier .badge {
  display: inline-block;
  align-self: flex-start;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: #f6efe4;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.tier h3 { font-size: 1.5rem; }
.tier .who { margin-top: 8px; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; min-height: 3.1em; }
.tier .price { margin-top: 20px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.tier .price .amount {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.tier .price .per { font-size: 1.02rem; color: var(--ink-soft); font-weight: 600; }
.tier .annual { margin-top: 6px; font-size: .98rem; color: var(--ink-soft); }
.tier ul { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.tier li { display: flex; gap: 11px; font-size: 1.02rem; line-height: 1.5; }
.tier li .tick { flex: none; color: var(--primary); font-weight: 700; }
.tier .cta { margin-top: 26px; }

.addons { margin-top: clamp(30px, 5vw, 44px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .addons { grid-template-columns: 1fr; } }
.addon {
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 22px 24px;
}
.addon h4 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; margin: 0; }
.addon .amount { margin-top: 6px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.addon p { margin-top: 10px; font-size: 1.02rem; color: var(--ink-soft); line-height: 1.6; }

.faq { margin-top: clamp(30px, 5vw, 44px); max-width: 70ch; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 34px 18px 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent-text);
}
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; }
