/* Pumpendium — Engineering Blueprint Design System
   Technical reference for home pumps & basement water defense. */

@font-face {
  font-family: "Inter";
  src: url(/fonts/inter-latin.woff2) format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plex Mono";
  src: url(/fonts/ibm-plex-mono-500-latin.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --card-alt: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-muted: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --navy: #0a192f;
  --navy-light: #112240;
  --blue: #0284c7;
  --blue-hover: #0369a1;
  --blue-tint: #e0f2fe;
  --blue-text: #0369a1;
  --cyan: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.15);

  --amber: #d97706;
  --amber-tint: #fef3c7;
  --red: #dc2626;
  --red-tint: #fee2e2;
  --green: #059669;
  --green-tint: #dcfce7;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", "SFMono-Regular", Consolas, Menlo, monospace;
  --wrap: 1240px;
  --radius: 8px;
  --radius-sm: 4px;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 100; border-radius: 4px; }
.skip:focus { left: 16px; }

.num, .fig { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.proto-bar {
  background: #1e293b;
  color: var(--cyan);
  font: 600 11.5px/1 var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__word { font: 800 1.35rem/1 var(--sans); letter-spacing: -0.03em; color: var(--navy); text-transform: uppercase; }
.brand__word span { color: var(--blue); }
.brand__tag { display: block; font: 500 10.5px/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

/* Footer Brand Overrides - Ensure full logo visibility on dark navy background */
.site-footer .brand__word { color: #ffffff; }
.site-footer .brand__word span { color: var(--cyan); }
.site-footer .brand__tag { color: #94a3b8; }

.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  color: var(--ink-muted);
  font: 500 14px/1 var(--sans);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.nav a:hover { background: var(--card-alt); color: var(--ink); }
.nav a[aria-current=page] { color: var(--blue); background: var(--blue-tint); font-weight: 600; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

@media (max-width: 1040px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px 20px 20px;
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 15px; }
}

/* Blueprint Hero with Engineering Accents */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 68px 0 76px;
  overflow: hidden;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  border-bottom: 3px solid #1e293b;
}

/* Technical Calibration Ruler Stripe */
.hero-ruler {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 35%, #06b6d4 70%, #0284c7 100%);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
}
.hero-ruler::after {
  content: "";
  position: absolute;
  top: 6px; left: 0; right: 0; height: 4px;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0 1px, transparent 1px 16px);
  opacity: 0.6;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 85% 25%, rgba(2, 132, 199, 0.28), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(14, 165, 233, 0.12), transparent 45%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

/* Technical Crosshair Accents */
.crosshair {
  position: absolute;
  width: 14px;
  height: 14px;
  pointer-events: none;
  opacity: 0.45;
}
.crosshair::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--cyan); }
.crosshair::after { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--cyan); }
.crosshair--tl { top: 20px; left: 20px; }
.crosshair--tr { top: 20px; right: 20px; }
.crosshair--bl { bottom: 20px; left: 20px; }
.crosshair--br { bottom: 20px; right: 20px; }

.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.5rem + 2.9vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.15; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero p.lede { font-size: 1.16rem; color: #cbd5e1; max-width: 620px; line-height: 1.65; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* Architectural Basement Cutaway Schematic */
.hero-schematic {
  position: relative;
  background: rgba(10, 25, 47, 0.92);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.08);
  backdrop-filter: blur(12px);
}
.hero-schematic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.hero-schematic h2 { color: #fff; font-size: 1.15rem; margin: 0; font-family: var(--sans); }
.schematic-badge {
  font: 600 10.5px/1 var(--mono);
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.hero-interactive-controls {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.hero-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px/1 var(--mono);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  animation: pulseNeon 1.5s infinite ease-in-out;
}
@keyframes pulseNeon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.slider-display {
  font-size: 12.5px;
  color: #cbd5e1;
}
.slider-display strong {
  font-family: var(--mono);
  font-size: 14.5px;
  color: #00e5ff;
}
.hero-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #1e293b;
  outline: none;
  margin: 6px 0 10px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.hero-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00e5ff;
  border: 2px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
  transition: transform 0.1s ease;
}
.hero-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.hero-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #00e5ff;
  border: 2px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}
.hero-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.preset-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-right: 4px;
}
.preset-pill {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #94a3b8;
  font: 500 11.5px/1 var(--sans);
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
  border-color: #38bdf8;
}
.preset-pill.active {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border-color: #00e5ff;
  font-weight: 600;
}

.cutaway-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #061121;
  border: 1px solid rgba(56, 189, 248, 0.15);
}

@keyframes waterFlowUp {
  0% { stroke-dashoffset: 24; }
  100% { stroke-dashoffset: 0; }
}
#hero_flow_stream, #hero_flow_horiz {
  animation: waterFlowUp 1.2s linear infinite;
}

.schematic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.schematic-box { border-left: 2px solid var(--cyan); padding-left: 10px; }
.schematic-box b { display: block; font: 600 1.25rem/1.2 var(--mono); color: #fff; word-break: break-word; }
.schematic-box span { font-size: 11px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; }

.schematic-action-bar {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  text-align: right;
}
.schematic-tool-link {
  font-size: 12px;
  color: #38bdf8;
  text-decoration: none;
  transition: color 0.15s ease;
}
.schematic-tool-link:hover {
  color: #00e5ff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 54px; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 6px;
  font: 600 14.5px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}
.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; text-decoration: none; }
.btn--secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--card-alt); border-color: var(--ink-muted); text-decoration: none; }
.btn--amazon { background: #fffbeb; color: #92400e; border-color: #f59e0b; }
.btn--amazon:hover { background: #fef3c7; border-color: #d97706; text-decoration: none; }
.btn__arrow { width: 15px; height: 15px; flex: none; }

/* Breadcrumbs & Eyebrow */
.crumbs { margin: 20px 0 12px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; font: 500 13px/1.4 var(--sans); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.eyebrow { font: 600 12px/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }

/* Product Page Hero */
.p-hero {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 40px;
  margin-top: 16px;
  margin-bottom: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .p-hero { grid-template-columns: 1fr; }
}

.gallery {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.gallery__main {
  width: 100%;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
}
.gallery__main img { max-height: 100%; object-fit: contain; }
.gallery__credit { font-size: 11.5px; color: var(--faint); margin-top: 12px; text-align: center; }

.finding {
  background: var(--blue-tint);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: 14px 18px;
  margin: 18px 0;
}
.finding__label { font: 600 11.5px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-text); display: block; margin-bottom: 6px; }
.finding p { margin: 0; font-size: 15px; color: var(--ink-muted); }

/* Keyspecs Grid */
.keyspecs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 20px 0;
  padding: 0;
}
.keyspec {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 14px;
}
.keyspec dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 4px; }
.keyspec dd { margin: 0; font: 600 1.15rem/1.2 var(--mono); color: var(--navy); }

/* Fit Checks */
.fit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 680px) { .fit { grid-template-columns: 1fr; } }
.fit--yes, .fit--no {
  border-radius: 8px;
  padding: 16px 18px;
}
.fit--yes { background: var(--green-tint); border: 1px solid #bbf7d0; }
.fit--no { background: var(--red-tint); border: 1px solid #fecaca; }
.fit h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; font-weight: 700; }
.fit--yes h2 { color: #166534; }
.fit--no h2 { color: #991b1b; }
.fit ul { margin: 0; padding-left: 20px; font-size: 14px; }
.fit li { margin-bottom: 6px; }

/* Buy Box */
.buy {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 24px;
  box-shadow: var(--shadow);
}
.buy__price { margin-bottom: 14px; }
.buy__amount { font: 700 1.8rem/1 var(--mono); color: var(--navy); margin-right: 12px; }
.buy__note { font-size: 13px; color: var(--muted); }
.buy__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.buy__disclose { font-size: 12px; color: var(--muted); margin-top: 14px; line-height: 1.4; }

/* Table of Contents */
.toc {
  background: var(--card-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 36px;
}
.toc ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; font-size: 14px; }
.toc a { color: var(--ink-muted); font-weight: 500; }
.toc a:hover { color: var(--blue); }

/* Body Layout */
.body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px;
  min-width: 0;
}
@media (max-width: 960px) {
  .body-grid { grid-template-columns: minmax(0, 1fr); }
}
.prose { font-size: 16px; line-height: 1.7; min-width: 0; max-width: 100%; }
.prose section { margin-bottom: 44px; scroll-margin-top: 96px; min-width: 0; }
.prose h2 { font-size: 1.5rem; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 18px; color: var(--navy); }
.prose h3 { font-size: 1.2rem; margin: 24px 0 10px; }

/* Spec Tables */
.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0 24px;
  display: block;
}
table.spec {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table.spec th, table.spec td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
table.spec th { background: var(--card-alt); font-weight: 600; color: var(--ink-muted); width: 40%; }
table.spec td { font-family: var(--mono); color: var(--navy); }

/* Source Tiers */
.tier {
  display: inline-block;
  font: 600 10.5px/1 var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 4px;
}
.tier--doc { background: #dbeafe; color: #1e40af; }
.tier--mfr { background: #e0e7ff; color: #3730a3; }
.tier--retail { background: #f1f5f9; color: #475569; }
.tier--calc { background: #dcfce7; color: #166534; }
.tier--unknown { background: #fee2e2; color: #991b1b; }

.spec-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* Flow Curve Chart */
.flow-curve-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}
.flow-curve-svg { display: block; border-radius: 6px; }

/* Calculators */
.calc-card {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 28px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
@media (max-width: 820px) { .calc-grid { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.form-group small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font: 500 15px/1.4 var(--sans);
  background: #fff;
  box-sizing: border-box;
}
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }

.calc-results {
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 24px;
}
.calc-results h3 { color: #fff; font-size: 1.15rem; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 8px; }
.res-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 8px; }
.res-row span { font-size: 13.5px; color: #94a3b8; }
.res-row b { font: 600 1.25rem/1 var(--mono); color: var(--cyan); }
.res-row.highlight b { font-size: 1.5rem; color: #38bdf8; }

/* Grid Cards (Best-of, hubs, related) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
  margin: 28px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.card__media {
  aspect-ratio: 4/3;
  background: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}
.card__media img { max-height: 100%; object-fit: contain; }
.card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card__kicker { font: 600 11px/1 var(--mono); text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.card p { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 14px; flex: 1; }
.card__meta { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; color: var(--muted); }
.card__meta strong { font: 700 1.1rem/1 var(--mono); color: var(--navy); }

/* Comparison Table */
.compare-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 16px 0 24px;
  font-size: 14.5px;
}
.compare-table th, .compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.compare-table th { background: var(--card-alt); font-weight: 600; color: var(--ink-muted); }
.compare-table .winner { background: #f0fdf4; font-weight: 600; color: #166534; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 64px 0 36px;
  margin-top: 80px;
  border-top: 2px solid #1e293b;
  font-size: 14px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h2 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}
