/* ============================================
   WaterFilterPicker — Stylesheet
   Aesthetic: Clean natural / organic editorial
   Inspired by: Scandinavian kitchen products,
   honest consumer guides, water itself
   Fonts: Fraunces (display) + DM Sans (body)
   ============================================ */

:root {
  /* Water-inspired palette — deep teal, clean whites, natural stone */
  --deep:       #0d2b35;
  --teal:       #1a6b6b;
  --teal-mid:   #2a9090;
  --teal-light: #e8f4f4;
  --teal-pale:  #f0f8f8;
  --stone:      #6b7875;
  --stone-light:#c8d4d2;
  --stone-pale: #f5f7f6;
  --paper:      #fafcfb;
  --white:      #ffffff;
  --ink:        #141f1e;
  --ink-2:      #2d3f3e;
  --ink-3:      #5a706e;
  --warn:       #c07a1a;
  --warn-light: #fdf3e3;
  --safe:       #1a7a4a;
  --safe-light: #e8f5ee;
  --border:     #d8e4e3;
  --shadow-sm:  0 1px 3px rgba(13,43,53,0.07);
  --shadow-md:  0 4px 16px rgba(13,43,53,0.1);
  --shadow-lg:  0 12px 40px rgba(13,43,53,0.13);
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  20px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --max-w:      1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(250,252,251,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 62px;
}
.logo {
  font-family: var(--font-body);
  font-size: 18px; font-weight: 300;
  text-decoration: none; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
  letter-spacing: -0.01em;
}
.logo strong { font-weight: 500; }
.logo-drop { font-size: 20px; }
nav { display: flex; align-items: center; gap: 28px; }
nav a {
  font-size: 14px; font-weight: 400;
  color: var(--ink-3); text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: var(--teal); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  padding: 13px 26px;
  border-radius: 8px;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--teal-mid); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-block;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { background: var(--teal); color: #fff; }

.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ---- HERO ---- */
.hero {
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--deep) 0%, #0f3d47 50%, #1a5555 100%);
}
.hero-bg-ring {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.06);
  top: -200px; right: -150px;
  pointer-events: none;
}
.hero-bg-ring::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.04);
  top: 100px; left: 100px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px; align-items: center;
  position: relative; z-index: 1;
}
.eyebrow {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-mid); margin-bottom: 18px;
}
.hero .eyebrow { color: rgba(42,144,144,0.9); }
h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 300;
  margin-bottom: 22px;
}
h1 em { font-style: italic; color: var(--teal-mid); font-weight: 300; }
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,0.7);
  line-height: 1.65; max-width: 480px; margin-bottom: 36px;
}

/* Hero visual card */
.water-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.wc-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; gap: 7px; align-items: center;
}
.wc-dot {
  width: 10px; height: 10px;
  border-radius: 50%; display: block;
}
.wc-dot-1 { background: rgba(255,255,255,0.15); }
.wc-dot-2 { background: rgba(255,255,255,0.1); }
.wc-dot-3 { background: rgba(255,255,255,0.07); }
.wc-body { padding: 22px; }
.wc-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wc-row:last-of-type { border-bottom: none; }
.wc-label { font-size: 12px; color: rgba(255,255,255,0.45); font-weight: 400; }
.wc-val { font-size: 14px; color: rgba(255,255,255,0.85); font-weight: 500; }
.wc-val.hard { color: var(--warn); }
.wc-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 14px 0; }
.wc-result { display: flex; flex-direction: column; gap: 6px; }
.wc-result-label { font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; }
.wc-result-val { font-family: var(--font-display); font-size: 18px; color: var(--teal-mid); font-weight: 300; font-style: italic; line-height: 1.3; }

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--teal-light);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex; gap: 32px;
  padding: 14px 0; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--teal);
}
.trust-icon { font-weight: 700; }

/* ---- SECTION HEADERS ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
  font-weight: 300; margin-bottom: 10px;
}
.section-header p { color: var(--ink-3); font-size: 16px; }

h2 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 300;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 300;
  letter-spacing: -0.01em; margin-bottom: 8px;
}

/* ---- PICKER ---- */
.picker-section { padding: 80px 0; }

.picker-shell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Progress */
.picker-progress {
  padding: 20px 32px;
  background: var(--stone-pale);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.progress-track {
  flex: 1; height: 4px;
  background: var(--border);
  border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 2px;
  background: var(--teal);
  transition: width 0.4s ease;
  width: 25%;
}
.progress-label { font-size: 13px; color: var(--ink-3); white-space: nowrap; }

/* Questions */
.questions-wrap { padding: 48px 48px 40px; }
.question { display: none; }
.question.active { display: block; }
.question h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.q-sub { font-size: 15px; color: var(--ink-3); margin-bottom: 32px; }

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.option-btn {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 4px;
  padding: 20px;
  background: var(--stone-pale);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; text-align: left;
  transition: all 0.18s; font-family: var(--font-body);
}
.option-btn:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.option-btn.selected {
  border-color: var(--teal);
  background: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(26,107,107,0.12);
}
.opt-icon { font-size: 22px; margin-bottom: 4px; }
.opt-title { font-size: 15px; font-weight: 500; color: var(--ink); }
.opt-sub { font-size: 12px; color: var(--ink-3); line-height: 1.45; }

/* Results */
.results-wrap { padding: 48px; }
.result-header { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.result-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.result-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300; letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.result-why { font-size: 15px; color: var(--ink-3); line-height: 1.65; }

.result-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }
.result-main { display: flex; flex-direction: column; gap: 16px; }

.rec-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.primary-rec {
  border-color: var(--teal);
  background: var(--teal-pale);
}
.rec-badge {
  position: absolute; top: -1px; left: 20px;
  background: var(--teal); color: #fff;
  font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 0 0 6px 6px;
  letter-spacing: 0.04em;
}
.alt-badge { background: var(--stone); }
.rec-type { font-family: var(--font-display); font-size: 20px; font-weight: 300; margin: 16px 0 8px; }
.rec-desc { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-bottom: 16px; }
.rec-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 16px;
}
.rec-meta-item {
  background: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.primary-rec .rec-meta-item { background: rgba(255,255,255,0.6); }
.meta-l { display: block; font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.meta-v { font-size: 13px; font-weight: 500; color: var(--ink); }

.rec-products { display: flex; flex-direction: column; gap: 8px; }
.product-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.15s;
  font-size: 13px;
}
.product-link:hover { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.product-link .pl-name { flex: 1; color: var(--ink); font-weight: 500; }
.product-link .pl-price { color: var(--ink-3); }
.product-link .pl-arrow { color: var(--teal); }

/* Result sidebar */
.result-sidebar { display: flex; flex-direction: column; gap: 14px; }
.sidebar-card {
  background: var(--stone-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 300;
  margin-bottom: 10px;
}
.sidebar-card p { font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.warn-card {
  background: var(--warn-light);
  border-color: rgba(192,122,26,0.3);
  display: flex; gap: 10px; align-items: flex-start;
}
.warn-icon { font-size: 18px; flex-shrink: 0; }
.warn-card p { font-size: 13px; color: var(--ink-2); line-height: 1.55; }

.cost-compare { display: flex; flex-direction: column; gap: 8px; }
.cost-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.cost-row .cr-label { color: var(--ink-3); }
.cost-row .cr-val { font-weight: 500; color: var(--ink); }
.cost-row.best .cr-val { color: var(--safe); }

.restart-btn {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px;
  font-family: var(--font-body); font-size: 13px;
  color: var(--ink-3); cursor: pointer;
  transition: all 0.15s; text-align: center;
}
.restart-btn:hover { border-color: var(--teal); color: var(--teal); }

/* ---- FILTER TYPES SECTION ---- */
.types-section { padding: 80px 0; background: var(--stone-pale); border-top: 1px solid var(--border); }
.types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-bottom: 32px;
}
.type-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-decoration: none;
  transition: all 0.18s;
  display: flex; flex-direction: column; gap: 6px;
}
.type-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.type-icon { font-size: 28px; margin-bottom: 6px; }
.type-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 400; color: var(--ink); margin: 0; }
.type-card p { font-size: 13px; color: var(--ink-3); line-height: 1.55; flex: 1; }
.type-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.tm-cost, .tm-annual {
  font-size: 11px; padding: 2px 8px;
  border-radius: 99px; font-weight: 500;
}
.tm-cost { background: var(--teal-light); color: var(--teal); }
.tm-annual { background: var(--stone-pale); color: var(--stone); border: 1px solid var(--border); }
.types-cta { text-align: center; }

/* ---- CONTAMINANTS BANNER ---- */
.contaminants-banner {
  padding: 72px 0;
  background: var(--deep);
}
.banner-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.banner-text h2 {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 300;
  color: var(--white); margin-bottom: 14px;
}
.banner-text p { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 24px; }
.contaminant-list { display: flex; flex-direction: column; gap: 8px; }
.cl-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 400;
}
.cl-item span { font-size: 14px; min-width: 16px; font-weight: 700; }
.cl-item.safe { background: rgba(26,122,74,0.2); color: rgba(255,255,255,0.8); }
.cl-item.warn { background: rgba(192,122,26,0.2); color: rgba(255,255,255,0.8); }
.cl-item.info { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.55); }

/* ---- FAQ ---- */
.faq-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.faq-title {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 300;
  text-align: center; margin-bottom: 40px;
}
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  padding: 20px 0; background: none; border: none;
  font-family: var(--font-body); font-size: 16px;
  font-weight: 500; color: var(--ink); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after {
  content: '+'; font-size: 22px; color: var(--teal);
  transition: transform 0.2s; flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 20px; }
.faq-item.open .faq-a { display: block; }
.faq-a p { font-size: 15px; color: var(--ink-2); line-height: 1.75; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--ink);
  padding: 48px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.footer-brand .logo { color: var(--paper); font-size: 16px; }
.footer-brand p { font-size: 13px; color: var(--stone); margin-top: 4px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: 14px; color: var(--stone-light); text-decoration: none; }
.footer-nav a:hover { color: var(--white); }
.footer-legal {
  font-size: 12px; color: var(--stone); line-height: 1.65;
  max-width: 680px; border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px; text-align: center;
}
.footer-copyright { font-size: 12px; color: var(--stone); }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .water-card { display: none; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-inner { grid-template-columns: 1fr; gap: 36px; }
  .result-grid { grid-template-columns: 1fr; }
  .questions-wrap { padding: 32px; }
  .results-wrap { padding: 32px; }
}
@media (max-width: 640px) {
  nav a:not(:last-child) { display: none; }
  .types-grid { grid-template-columns: 1fr; }
  .options-grid { grid-template-columns: 1fr; }
  .trust-inner { gap: 12px; }
  .rec-meta { grid-template-columns: 1fr; }
}
