/* Water Safe Home — clean professional water-safety aesthetic */

:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #eef5f9;
  --ink: #0f2433;
  --muted: #4a6578;
  --line: #d4e3ed;
  --teal: #0d7a8c;
  --teal-dark: #0a5f6d;
  --teal-soft: #e0f2f5;
  --accent: #1a9bb0;
  --warn-bg: #fff8e8;
  --warn-border: #e8c96a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(15, 36, 51, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --max: 880px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--teal-dark); }

img { max-width: 100%; height: auto; display: block; }

code {
  font-size: 0.9em;
  background: var(--surface-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo span { color: var(--teal); }
.logo:hover { color: var(--teal-dark); text-decoration: none; }

.nav {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--teal); }


main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  background: linear-gradient(145deg, #0d7a8c 0%, #0a5f6d 55%, #0f2433 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.hero p { color: rgba(255,255,255,0.92); max-width: 38rem; }
.hero .hero-meta {
  margin-top: 1rem;
  font-size: 0.88rem;
  opacity: 0.85;
}

.section { margin-bottom: 2.5rem; }
.section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.section h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.4rem;
  color: var(--ink);
}
.section p, .section li { color: var(--muted); }
.section ul, .section ol {
  margin: 0.5rem 0 0.75rem 1.25rem;
}
.section li { margin-bottom: 0.35rem; }

.callout {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  color: var(--ink);
  margin: 1rem 0;
}
.callout strong { color: var(--ink); }

.checklist {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.checklist li { color: var(--ink); }

/* Product cards */
.product-grid {
  display: grid;
  gap: 1rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.5rem;
}
.product-card .badge {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  width: fit-content;
}
.product-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink);
}
.product-card .price {
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 0.95rem;
}
.product-card .meta {
  font-size: 0.88rem;
  color: var(--muted);
}
.product-card ul {
  margin: 0.25rem 0 0.5rem 1.1rem;
  font-size: 0.9rem;
}
.product-card li { color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  width: fit-content;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--teal-dark); }
.btn-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}
table.compare th,
table.compare td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare th {
  background: var(--surface-soft);
  color: var(--ink);
  font-weight: 650;
  white-space: nowrap;
}
table.compare tr:last-child td { border-bottom: none; }
table.compare td { color: var(--muted); }
table.compare a.btn-sm {
  display: inline-block;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 650;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
}
table.compare a.btn-sm:hover { background: var(--teal-dark); }

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 0.55rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}
.faq details[open] summary { margin-bottom: 0.4rem; }
.faq p { color: var(--muted); font-size: 0.95rem; }

.disclaimer {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 2rem 1.25rem;
  margin-top: auto;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.site-footer a { color: #7fd4e0; }
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0.75rem 0;
}
.footer-note { font-size: 0.82rem; opacity: 0.8; margin-top: 0.75rem; }

@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-card.span-2 {
    grid-column: 1 / -1;
  }
  .hero { padding: 2.5rem 2rem; }
}
