/* ==========================================================================
   DRINKINGWATERFILTER.ORG - UNIFIED MASTER DESIGN SYSTEM & STYLESHEET
   Aesthetics: Oceanic Glassmorphism, Deep Obsidian, Precision Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800;900&display=swap');

:root {
  /* Surface & Base Colors */
  --color-bg-base: #030712;
  --color-bg-surface: #071326;
  --color-bg-elevated: #0d1f38;
  --color-bg-glass: rgba(7, 19, 38, 0.75);
  --color-bg-glass-hover: rgba(13, 31, 56, 0.9);
  --color-bg-card: rgba(11, 27, 51, 0.65);

  /* Borders & Glows */
  --color-border: rgba(56, 189, 248, 0.18);
  --color-border-glow: rgba(0, 240, 255, 0.45);
  --color-border-hover: rgba(0, 240, 255, 0.65);

  /* Radiant Accents */
  --color-cyan-glow: #00f0ff;
  --color-cyan-light: #67e8f9;
  --color-cyan-dim: #0284c7;

  --color-blue-primary: #0284c7;
  --color-blue-light: #38bdf8;

  --color-emerald-safe: #10b981;
  --color-emerald-light: #34d399;
  --color-amber-warn: #f59e0b;
  --color-amber-light: #fbbf24;
  --color-rose-danger: #f43f5e;
  --color-sky: #38bdf8;

  /* Typography */
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing & Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-glass: 0 10px 35px 0 rgba(0, 10, 25, 0.45);
  --shadow-cyan-glow: 0 0 30px rgba(0, 240, 255, 0.25);
  --shadow-blue-glow: 0 0 35px rgba(56, 189, 248, 0.2);
  --shadow-card-hover: 0 18px 45px -8px rgba(0, 240, 255, 0.25);
}

/* ==========================================================================
   RESET & FOUNDATIONS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(0, 240, 255, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 30%, rgba(2, 132, 199, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
    var(--color-bg-base);
  overflow-x: hidden;
}

main {
  flex: 1;
  padding-top: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  vertical-align: middle;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section-padding {
  padding: 5rem 0 6rem;
}

.text-center { text-align: center; }
.text-cyan { color: var(--color-cyan-glow) !important; }
.text-emerald { color: var(--color-emerald-safe) !important; }
.text-amber { color: var(--color-amber-warn) !important; }
.text-sky { color: var(--color-sky) !important; }
.text-danger { color: var(--color-rose-danger) !important; }

.bg-elevated {
  background: rgba(7, 19, 38, 0.55);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  max-width: 850px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-header h1,
.section-header h2 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.18rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Glass Panels */
.glass-panel {
  background: var(--color-bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.glass-panel-glow {
  background: var(--color-bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border-glow);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass), var(--shadow-cyan-glow);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 72px;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.nav-container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
  flex-shrink: 0;
}

.brand-logo .water-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex-shrink: 0;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.7));
}

.brand-logo span.tld {
  color: var(--color-cyan-glow);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--color-text-main);
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.2);
}

.nav-links a.active {
  color: var(--color-cyan-glow);
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.35);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.lang-selector {
  display: flex;
  background: rgba(13, 31, 56, 0.8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-selector a {
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-dim);
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.lang-selector a.active {
  background: var(--color-cyan-glow);
  color: #030810;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   BADGES & BUTTONS
   ========================================================================== */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-cyan {
  background: rgba(0, 240, 255, 0.12);
  color: var(--color-cyan-glow);
  border: 1px solid rgba(0, 240, 255, 0.35);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-amber-warn);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-cyan-glow);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-cyan-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 240, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

/* Primary Cyan CTA */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  color: #020710;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 25px rgba(0, 240, 255, 0.38);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(0, 240, 255, 0.55);
  background: linear-gradient(135deg, #38bdf8 0%, #00f0ff 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(13, 31, 56, 0.7);
  color: var(--color-text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--color-cyan-glow);
  transform: translateY(-1px);
}

/* Amazon Affiliate Button */
.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #050b14;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-amazon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 158, 11, 0.5);
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

/* ==========================================================================
   HERO SECTION & METRICS
   ========================================================================== */
.hero-section {
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  position: relative;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  max-width: 960px;
  margin: 1.25rem auto 1.5rem;
  text-wrap: balance;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  max-width: 740px;
  margin: 0 auto 2.75rem;
  line-height: 1.65;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

/* 4-Column Clinical Metrics Grid */
.metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem !important;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.metric-card {
  padding: 1.8rem 1.25rem;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(7, 19, 38, 0.65);
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.metric-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   INTERACTIVE DIAGNOSTIC WIZARD (HOMEPAGE & FILTER FINDER)
   ========================================================================== */
.diagnostic-card,
.diagnostic-main-box {
  max-width: 1040px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
}

.steps-nav,
.steps-progress-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
  gap: 1.25rem;
}

.step-item,
.step-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.45;
  transition: all 0.3s ease;
  color: var(--color-text-dim);
}

.step-item.active,
.step-badge.active {
  opacity: 1;
  color: var(--color-cyan-glow);
}

.step-num,
.step-badge .num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(13, 31, 56, 0.9);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.step-item.active .step-num,
.step-badge.active .num {
  background: var(--color-cyan-glow);
  color: #030810;
  border-color: var(--color-cyan-glow);
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
}

.step-text,
.step-badge .label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.step-line,
.progress-separator {
  width: 50px;
  height: 2px;
  background: rgba(56, 189, 248, 0.25);
}

.quiz-step h2,
.quiz-step h3,
.wizard-panel h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 0.65rem;
}

.quiz-help,
.panel-sub {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* 3-Column Selection Grid for Source & Install */
.options-grid,
.select-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1.5rem !important;
  margin-bottom: 2.75rem;
}

.option-box,
.choice-card {
  cursor: pointer;
  display: block;
  position: relative;
}

.option-box input,
.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-content,
.choice-inner {
  background: rgba(11, 27, 51, 0.65);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.option-box:hover .option-content,
.choice-card:hover .choice-inner {
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(13, 31, 56, 0.85);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.option-box input:checked + .option-content,
.choice-card input:checked + .choice-inner {
  border-color: var(--color-cyan-glow);
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.28);
}

.opt-icon,
.choice-icon {
  font-size: 2.75rem;
  margin-bottom: 1.25rem;
}

.opt-title,
.choice-inner strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: var(--color-text-main);
  display: block;
}

.opt-sub,
.choice-inner p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 2-Column Checkbox Selector Grid */
.checkbox-grid,
.tags-selector-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.1rem !important;
  margin-bottom: 2.75rem;
}

.checkbox-pill,
.tag-checkbox {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(11, 27, 51, 0.65);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.checkbox-pill:hover,
.tag-checkbox:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.checkbox-pill input,
.tag-checkbox input {
  width: 22px;
  height: 22px;
  accent-color: var(--color-cyan-glow);
  flex-shrink: 0;
}

.tag-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-text-main);
  margin-bottom: 2px;
}

.tag-body small {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

.quiz-actions,
.wizard-footer {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

/* Result Cards */
.result-card,
.prescribed-system-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  padding: 2.5rem;
  align-items: center;
  margin-top: 2rem;
  text-decoration: none;
  color: inherit;
}

.result-image-wrapper,
.prescribed-img-col {
  background: rgba(13, 31, 56, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
}

.result-image-wrapper img,
.prescribed-img-col img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.result-info h3,
.result-info h4,
.prescribed-data-col h3 {
  font-size: 1.6rem;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.3;
}

.result-desc,
.prescribed-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.prescribed-clinical-reasons {
  background: rgba(13, 31, 56, 0.5);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
}

.prescribed-clinical-reasons ul {
  list-style: none;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.prescribed-clinical-reasons li::before {
  content: "✓ ";
  color: var(--color-cyan-glow);
  font-weight: 700;
}

.result-specs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.spec-bubble {
  background: rgba(13, 31, 56, 0.8);
  border: 1px solid var(--color-border);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
}

.bubble-title {
  color: var(--color-text-dim);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.bubble-val {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-text-main);
}

.result-pricing-cta,
.prescribed-action-bar {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1rem;
}

.result-price,
.prescribed-price-tag {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--color-cyan-glow);
}

/* ==========================================================================
   PRODUCT CARDS (HOMEPAGE & CATALOG) - 100% CLICKABLE
   ========================================================================== */
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2.25rem !important;
}

.product-card {
  padding: 1.85rem;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-glass);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.product-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
}

.product-image-container {
  background: rgba(13, 31, 56, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  max-height: 190px;
  overflow: hidden;
}

.product-image-container img {
  max-height: 155px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
  transform: scale(1.05);
}

.product-brand {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-cyan-glow);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
  color: var(--color-text-main);
}

.product-summary {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

.product-specs-list {
  background: rgba(13, 31, 56, 0.6);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.84rem;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

.spec-row:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 1rem;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-main);
}

/* FULL CATALOG PAGE (/products/) - 3 COLUMNS ON DESKTOP */
.catalog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 2.25rem !important;
}

.catalog-item {
  padding: 1.85rem;
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-glass);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.card-badge-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 28px;
  margin-bottom: 0.85rem;
}

.badge-placeholder {
  display: block;
  min-height: 24px;
}

.catalog-badge {
  position: static;
}

.item-img-box {
  background: rgba(13, 31, 56, 0.4);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  max-height: 200px;
  overflow: hidden;
}

.item-img-box img {
  max-width: 100%;
  max-height: 165px;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.catalog-item:hover .item-img-box img {
  transform: scale(1.05);
}

.item-brand {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--color-cyan-glow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.item-title {
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.35;
  color: var(--color-text-main);
}

.item-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1.35rem;
  line-height: 1.6;
}

.item-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: var(--color-text-main);
  margin-bottom: 1.35rem;
}

.item-features li {
  line-height: 1.45;
}

.item-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.cert-pill {
  background: rgba(13, 31, 56, 0.8);
  border: 1px solid var(--color-border);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-cyan-light);
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  gap: 1rem;
}

.item-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-main);
}

.item-store {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.tab-btn {
  background: rgba(13, 31, 56, 0.7);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--color-text-main);
  background: rgba(56, 189, 248, 0.15);
}

.tab-btn.active {
  background: var(--color-cyan-glow);
  color: #030812;
  border-color: var(--color-cyan-glow);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

/* ==========================================================================
   COMPARISON TABLE STYLES (FULL-WIDTH & READABLE)
   ========================================================================== */
.compare-header {
  max-width: 900px;
  margin: 0 auto 3.5rem;
}

.table-wrapper {
  overflow-x: auto;
  background: var(--color-bg-glass);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  margin-bottom: 3.5rem;
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 1rem;
}

.tech-table th,
.tech-table td {
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.tech-table th {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text-main);
  background: rgba(13, 31, 56, 0.85);
  white-space: nowrap;
}

.tech-table tr:hover td {
  background: rgba(0, 240, 255, 0.03);
}

.highlight-col {
  background: rgba(0, 240, 255, 0.06);
  border-left: 1px solid rgba(0, 240, 255, 0.25);
  border-right: 1px solid rgba(0, 240, 255, 0.25);
}

/* ==========================================================================
   BLOG & ARTICLE PAGES (2-COLUMN GRID & RICH INLINE CARDS)
   ========================================================================== */
.articles-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2.5rem !important;
  max-width: 1280px;
  margin: 0 auto;
}

.article-card {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-glass);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.35rem;
}

.article-read {
  font-size: 0.82rem;
  color: var(--color-text-dim);
  font-weight: 500;
}

.article-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.35;
  color: var(--color-text-main);
}

.article-card:hover .article-title {
  color: var(--color-cyan-glow);
}

.article-summary {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.article-footer {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-cyan-glow);
}

/* Individual Article Page */
.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 6rem;
}

.article-header {
  margin-bottom: 3rem;
  text-align: center;
}

.article-header h1 {
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.author-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

.article-body {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #cbd5e1;
}

.article-body p {
  margin-bottom: 1.85rem;
}

.article-body h2 {
  font-size: 1.85rem;
  margin: 3rem 0 1.25rem;
  color: var(--color-text-main);
}

.article-body h3 {
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
}

.callout-box {
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  margin: 2.75rem 0;
  border-left: 4px solid var(--color-rose-danger);
  background: rgba(244, 63, 94, 0.08);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.callout-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

/* Clickable Product Box Inside Blog Articles */
.product-inline-box {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  padding: 2.25rem;
  margin: 3rem 0;
  align-items: center;
  background: var(--color-bg-glass);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.product-inline-box:hover {
  transform: translateY(-3px);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
}

.product-inline-box .inline-img-frame {
  background: rgba(13, 31, 56, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
}

.product-inline-box .inline-img-frame img {
  max-width: 100%;
  max-height: 155px;
  object-fit: contain;
}

.product-inline-box h3 {
  font-size: 1.35rem;
  margin: 0.65rem 0;
  color: var(--color-text-main);
}

.product-inline-box p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   SAVINGS TEASER & CALCULATOR
   ========================================================================== */
.savings-teaser-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  font-size: 1.05rem;
  color: var(--color-text-main);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  line-height: 1.55;
}

.savings-preview-card {
  padding: 3.5rem 2.5rem;
  text-align: center;
}

.metric-label {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.savings-preview-sub {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--color-cyan-glow);
  font-weight: 600;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  margin-top: 2rem;
}

.calc-control-group {
  margin-bottom: 2rem;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.calc-range {
  width: 100%;
  accent-color: var(--color-cyan-glow);
  cursor: pointer;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  margin-top: auto;
  background: #02050b;
  border-top: 1px solid var(--color-border);
  padding: 4.5rem 0 2.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  margin-top: 1.25rem;
  max-width: 420px;
  color: var(--color-text-dim);
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--color-text-main);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--color-cyan-glow);
}

.footer-disclaimer {
  padding-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.8rem;
  color: var(--color-text-dim);
  line-height: 1.7;
}

.footer-copyright {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--color-text-dim);
}

/* ==========================================================================
   ANIMATIONS & MEDIA QUERIES
   ========================================================================== */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.animate-float {
  animation: floatSlow 4s ease-in-out infinite;
}

@media (max-width: 1200px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 1100px) {
  .nav-links a {
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .hero-title { font-size: 2.75rem; }
  .nav-links { display: none; }
  .options-grid, .select-grid { grid-template-columns: 1fr !important; }
  .checkbox-grid, .tags-selector-grid { grid-template-columns: 1fr !important; }
  .products-grid, .catalog-grid { grid-template-columns: 1fr !important; }
  .articles-grid { grid-template-columns: 1fr !important; }
  .result-card, .prescribed-system-card { grid-template-columns: 1fr; }
  .savings-teaser-container { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .product-inline-box { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 2.2rem; }
  .metrics-grid { grid-template-columns: 1fr !important; }
  .diagnostic-card, .diagnostic-main-box { padding: 2rem 1.25rem; }
  .steps-nav, .steps-progress-bar { flex-direction: column; gap: 0.5rem; }
  .step-line, .progress-separator { display: none; }
}
