/* ClearPantry — landing page styles */

/* ── Tokens — Restro POS palette ──────────────────────── */
:root {
  --bg:         #FFF2E8;  /* Linen — warm, food-forward */
  --card-bg:    #F5F5F5;  /* Cultured White — card/row bg */
  --text:       #171826;  /* Raisin Black — body text */
  --text-muted: #9F9F9E;  /* Spanish Gray — faded text */
  --danger:     #FC8019;  /* Amber — contamination / danger */
  --clean:      #09AA29;  /* Green — clean / certified */
  --white:      #ffffff;
  --cream-dark: #ede7da;
  --ink-faint:  #9F9F9E;
  /* Typography — Agrandir-style via Plus Jakarta Sans (geometric bold),
     Caveat Bold as raw handwritten accent. Inter stays for body/tables. */
  --font-display: 'Plus Jakarta Sans', 'Archivo Black', system-ui, sans-serif;
  --font-accent:  'Caveat', 'Permanent Marker', cursive;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius-pill: 999px;
  --shadow-card: 0 2px 12px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────── */
h1 { font-family: var(--font-display); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; }

/* ── Navigation ──────────────────────────────────────── */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 900px;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-logo {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
  background: var(--cream-dark);
  color: var(--text);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 0;
}

/* Full-bleed hero image — no margins, no padding */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Cinematic dark overlay for video */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 40%, rgba(0,0,0,0.7) 100%);
}

/* Data overlay — grid lines + corner markers */
.hero-data-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-data-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,220,120,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,220,120,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-data-overlay::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(255,220,120,0.08);
}

/* SVG warning / data symbols */
.hero-symbol {
  position: absolute;
  z-index: 3;
  opacity: 0.65;
}

.hero-symbol--tl { top: 80px; left: 5%; }
.hero-symbol--tr { top: 90px; right: 6%; }
.hero-symbol--bl { bottom: 100px; left: 8%; }
.hero-symbol--br { bottom: 90px; right: 7%; }

.hero-content {
  position: relative;
  z-index: 4;
  max-width: 700px;
  padding: 140px 24px 90px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
  line-height: 1.05;
}

.hero p {
  font-size: 0.95rem;
  color: rgba(255,235,190,0.85);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  font-weight: 400;
}

/* ── CTA Button ───────────────────────────────────────── */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* ── Scroll indicator ─────────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255,220,140,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Section common ────────────────────────────────────── */
.section {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  /* Display font for section titles — geometric bold, confident */
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

/* ── Product Cards Grid ───────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Product Card ─────────────────────────────────────── */
.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,0.04);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

/* ── Risk Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-high   { background: rgba(252,128,25,0.12); color: var(--danger); }
.badge-medium { background: rgba(252,128,25,0.08); color: #c07010; }
.badge-low    { background: rgba(9,170,41,0.1); color: var(--clean); }

.product-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.product-card .btn-swap {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--clean);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
  width: 100%;
}

.btn-swap:hover {
  background: #078520;
  transform: translateY(-1px);
}

/* ── Fear/Awareness Callout Band ────────────────────────── */
.fear-callout {
  background: #1a0d00;
  border-top: 3px solid #FC8019;
  border-bottom: 3px solid #FC8019;
  padding: 0;
}

.fear-callout-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.fear-callout-text {
  flex: 1 1 0;
  min-width: 0;
}

.fear-callout-headline {
  /* Accent font — raw, marker-style urgency for above-the-fold callout */
  font-family: var(--font-accent);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: #fff8e8;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}

.fear-callout-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}

.fear-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fear-stat-number {
  /* Handwritten accent — raw urgency on key stats */
  font-family: var(--font-accent);
  font-size: 2rem;
  font-weight: 700;
  color: #FC8019;
  line-height: 1;
}

.fear-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 248, 232, 0.55);
  line-height: 1.4;
  max-width: 140px;
}

.fear-callout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FC8019;
  color: #1a0d00;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  align-self: center;
}

.fear-callout-link:hover {
  background: #e07010;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .fear-callout-inner {
    flex-direction: column;
    gap: 20px;
    padding: 24px 20px;
  }

  .fear-callout-stats {
    gap: 16px;
  }

  .fear-stat-number {
    font-size: 1.3rem;
  }

  .fear-callout-link {
    align-self: flex-start;
  }
}

/* ── Context Strip ─────────────────────────────────────── */
.context-strip {
  background: var(--cream-dark);
  padding: 40px 24px;
  text-align: center;
}

.context-strip p {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.context-strip strong {
  color: var(--text);
}

/* ── Divider ───────────────────────────────────────────── */
.divider {
  width: 32px;
  height: 2px;
  background: var(--yellow);
  border-radius: 1px;
  margin: 0 auto 16px;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
  text-decoration: none;
}

.footer p {
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-disclosure {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.75rem;
}

.footer-disclosure a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
}

.footer-disclosure a:hover {
  color: var(--white);
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .nav {
    top: 12px;
    padding: 10px 16px;
    width: calc(100% - 24px);
  }

  .nav-logo {
    font-size: 0.95rem;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: 90vh;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.5rem);
  }

  .hero p {
    font-size: 0.95rem;
  }

  .section {
    padding: 56px 20px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--cream);
    border-radius: 16px;
    padding: 16px;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    gap: 4px;
  }
}

/* ── Alert Band — email capture ─────────────────────────── */
.alert-band {
  background: linear-gradient(135deg, #2a1800 0%, #4a2e00 50%, #2a1800 100%);
  padding: 72px 24px;
}

.alert-band-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.alert-band-copy {
  flex: 1 1 0;
  min-width: 0;
}

.alert-band-eyebrow {
  /* Accent font — hand-drawn eyebrow above the email band headline */
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--yellow);
  margin-bottom: 8px;
}

.alert-band-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #fff8e8;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.alert-band-sub {
  font-size: 0.95rem;
  color: rgba(255, 235, 190, 0.75);
  line-height: 1.65;
  max-width: 380px;
}

.alert-band-form {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-band-input-row {
  display: flex;
  gap: 8px;
}

.alert-input {
  flex: 1 1 0;
  min-width: 0;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 160, 23, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #fff8e8;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.alert-input::placeholder { color: rgba(255, 220, 140, 0.4); }

.alert-input:focus {
  border-color: var(--yellow);
  background: rgba(255,255,255,0.1);
}

.alert-btn {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  color: #1a0e00;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.alert-btn:hover:not(:disabled) {
  background: #c9901a;
  transform: translateY(-1px);
}

.alert-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.alert-band-msg {
  font-size: 0.82rem;
  min-height: 18px;
  padding: 0 4px;
}

.alert-band-fine {
  font-size: 0.75rem;
  color: rgba(255, 220, 140, 0.35);
  padding: 0 4px;
}

/* ── Footer subscribe form ─────────────────────────────── */
.footer-subscribe {
  margin: 20px 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-subscribe-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 10px;
}

.footer-sub-row {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}

.footer-sub-input {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.footer-sub-input::placeholder { color: rgba(255,255,255,0.3); }

.footer-sub-input:focus { border-color: rgba(212,160,23,0.5); }

.footer-sub-btn {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(212,160,23,0.8);
  color: #1a0e00;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.footer-sub-btn:hover:not(:disabled) { background: var(--yellow); }
.footer-sub-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.footer-sub-msg {
  font-size: 0.78rem;
  min-height: 16px;
  margin-top: 6px;
}

/* Alert band responsive */
@media (max-width: 768px) {
  .alert-band {
    padding: 52px 20px;
  }

  .alert-band-inner {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }

  .alert-band-form {
    flex: none;
    width: 100%;
  }

  .alert-band-sub {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .alert-band-input-row {
    flex-direction: column;
  }

  .alert-btn {
    width: 100%;
    padding: 13px;
  }
}

/* ── Data Table — Buy This, Not That ─────────────────── */
.data-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 48px;
}

/* Sort / filter bar */
.table-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
}

.filter-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  /* Accent font on category filter pills — energetic, not corporate */
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid rgba(0,0,0,0.12);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.18s ease;
}

/* Restro POS — amber active pill (matches "Lunch" active style) */
.filter-pill:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.filter-pill.active {
  border-color: var(--danger);
  background: var(--danger);
  color: var(--white);
}

.filter-pill.active.extreme { background: var(--danger); border-color: var(--danger); }
.filter-pill.active.high    { background: #e06010; border-color: #e06010; }
.filter-pill.active.moderate { background: #d07820; border-color: #d07820; }
.filter-pill.active.low    { background: var(--clean); border-color: var(--clean); }

.sort-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.sort-label select {
  margin-left: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(0,0,0,0.15);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  outline: none;
}

/* The table */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

/* Header */
.data-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 2px solid rgba(0,0,0,0.08);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
  position: sticky;
  top: 0;
  z-index: 2;
}

.data-table thead th:hover { color: var(--text); }

.data-table thead th .sort-arrow {
  display: inline-block;
  margin-left: 4px;
  opacity: 0.4;
  transition: opacity 0.15s;
}

.data-table thead th.sorted .sort-arrow { opacity: 1; color: var(--text); }
.data-table thead th.sorted.desc .sort-arrow { transform: rotate(180deg); }

/* Rows */
.data-table tbody tr {
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.15s;
  border-left: 4px solid transparent;
}

/* Tier visual hierarchy — left border color tells the story */
.data-table tbody tr.tier-extreme {
  border-left-color: var(--danger);
  background: rgba(252,128,25,0.06);
}
.data-table tbody tr.tier-extreme:hover {
  background: rgba(252,128,25,0.1);
}

.data-table tbody tr.tier-high {
  border-left-color: #e06010;
  background: rgba(252,128,25,0.04);
}
.data-table tbody tr.tier-high:hover {
  background: rgba(252,128,25,0.07);
}

.data-table tbody tr.tier-moderate {
  border-left-color: #c07818;
  background: rgba(200,120,24,0.03);
}
.data-table tbody tr.tier-moderate:hover {
  background: rgba(200,120,24,0.05);
}

.data-table tbody tr.tier-low {
  border-left-color: var(--clean);
  background: rgba(9,170,41,0.04);
}
.data-table tbody tr.tier-low:hover {
  background: rgba(9,170,41,0.07);
}

.data-table tbody td {
  padding: 13px 14px;
  vertical-align: middle;
  color: var(--text);
}

/* Rank column */
.td-rank {
  font-size: 1.4rem;
  font-weight: 700;
  color: rgba(0,0,0,0.15);
  font-family: var(--font-display);
  min-width: 48px;
  text-align: right;
  padding-right: 20px !important;
}

/* Product column */
.td-product {
  min-width: 220px;
  max-width: 280px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card-bg);
  transition: transform 0.2s ease;
  overflow: hidden;
  display: block;
}

.product-thumb:hover {
  transform: scale(1.05);
}

.product-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e8d5b0 0%, #d4b88a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb-placeholder::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}

.product-info { flex: 1; min-width: 0; }

.product-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  display: block;
}

.product-brand {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Glyphosate / PPB column */
.td-glyph {
  white-space: nowrap;
}

.ppb-value {
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 3px;
}

/* Severity tiers — Restro palette */
.ppb-extreme  { color: var(--danger); }
.ppb-high     { color: #e06010; }
.ppb-moderate { color: #c07818; }
.ppb-low      { color: var(--clean); }

.ppb-unit {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
}

.ppb-badge {
  /* Accent font — handwritten urgency on contamination level labels */
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  margin-top: 3px;
}

.ppb-badge-extreme  { background: rgba(252,128,25,0.12); color: var(--danger); }
.ppb-badge-high     { background: rgba(224,96,16,0.1); color: #e06010; }
.ppb-badge-moderate { background: rgba(192,120,24,0.1); color: #c07818; }
.ppb-badge-low      { background: rgba(9,170,41,0.1); color: var(--clean); }

.ppb-source {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 3px;
}

/* Category column */
.td-category { white-space: nowrap; }

.category-tag {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text);
}

.category-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1px;
}

/* Clean alt column */
.td-alt { min-width: 200px; }

.alt-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* Per-link FTC affiliate disclosure — small gray text below CTA */
.affil-disclosure {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.75;
  font-style: italic;
  line-height: 1;
}

/* Restro "Proceed" button style — solid green pill */
.btn-clean {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--clean);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.btn-clean:hover {
  background: #078520;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(9,170,41,0.3);
}

.cert-logos {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.cert-logo {
  height: 22px;
  width: auto;
  border-radius: 3px;
}

/* ── About / benchmark callout ──────────────────────────── */
.benchmark-callout {
  background: var(--card-bg);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.benchmark-callout h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.benchmark-callout p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.benchmark-stat {
  display: inline-block;
  background: rgba(252,128,25,0.08);
  border: 1px solid rgba(252,128,25,0.25);
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 700;
  color: var(--danger);
  font-size: 0.85rem;
}

/* ── Mobile card view (replaces table) ─────────────────── */
@media (max-width: 768px) {
  .data-table-wrap {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  .data-table { display: none; }

  /* Mobile: card list */
  .mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(0,0,0,0.06);
  }

  .mobile-card {
    background: var(--white);
    padding: 18px 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: background 0.15s;
    border-left: 4px solid transparent;
  }

  .mobile-card.tier-extreme { border-left-color: var(--danger); background: rgba(252,128,25,0.06); }
  .mobile-card.tier-high    { border-left-color: #e06010; background: rgba(252,128,25,0.04); }
  .mobile-card.tier-moderate { border-left-color: #c07818; background: rgba(200,120,24,0.03); }
  .mobile-card.tier-low     { border-left-color: var(--clean); background: rgba(9,170,41,0.04); }

  .mobile-card:hover { background: var(--card-bg); }

  .mobile-rank {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: rgba(0,0,0,0.15);
    min-width: 36px;
    text-align: right;
    padding-top: 2px;
  }

  .mobile-card-body { flex: 1; min-width: 0; }

  .mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
  }

  .mobile-card-name {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
  }

  .mobile-ppb {
    font-size: 0.88rem;
    font-weight: 800;
    font-family: var(--font-display);
    flex-shrink: 0;
  }

  .mobile-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 10px;
  }

  .mobile-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
  }

  .mobile-card .cert-logos { margin-top: 6px; }
}

@media (min-width: 769px) {
  .mobile-cards { display: none; }
}

/* Table responsive */
@media (max-width: 600px) {
  .table-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-pills { gap: 6px; }

  .td-rank { padding-right: 10px !important; font-size: 1.1rem; }
  .td-glyph .ppb-value { font-size: 0.88rem; }
}

/* Source badge (inline pill) */
.source-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(0,0,0,0.06);
  color: var(--text-muted);
  margin-left: 4px;
  vertical-align: middle;
}

/* Empty state */
.no-results {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Product name links — table + mobile cards link to detail page */
a.product-name-link {
  color: inherit;
  text-decoration: none;
}
a.product-name-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Category nav strip — deep-linkable pills above the filter controls */
.category-nav-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.category-nav-link {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.category-nav-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(212,160,23,0.06);
}

/* ═══════════════════════════════════════════════════════════════
   MOTION SYSTEM — ClearPantry
   Mobile-safe (< 768px): all animations disabled
   Respects prefers-reduced-motion
   ═══════════════════════════════════════════════════════════════ */

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Section scroll-triggered reveals ─────────────────────── */
@media (min-width: 768px) {
  .section-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── PPB Bar fill animation (reinforces data severity) ──────── */
.ppb-bar-wrap {
  height: 6px;
  background: rgba(0,0,0,0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 5px;
}

.ppb-fill {
  height: 100%;
  border-radius: 3px;
  transform-origin: left center;
  /* Scale from 0 → 1 when .fill-animate is added by JS */
  transform: scaleX(0);
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.ppb-fill.fill-animate { transform: scaleX(1); }

.ppb-fill-tier-extreme  { background: var(--danger); }
.ppb-fill-tier-high     { background: #e06010; }
.ppb-fill-tier-moderate { background: #c07818; }
.ppb-fill-tier-low      { background: var(--clean); }

/* ── Table row entrance animation (draws eye down the table) ── */
@media (min-width: 768px) {
  .data-table tbody tr.animate-row {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  .data-table tbody tr.animate-row.revealed {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── Product card hover — tilt + lift (indicates interactivity) */
@media (min-width: 768px) {
  .product-card {
    transform-style: preserve-3d;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
  }

  .product-card:hover {
    transform: translateY(-5px) rotateX(1deg) rotateY(-0.5deg);
    box-shadow: 0 16px 40px rgba(0,0,0,0.13);
  }
}

/* ── Buy Clean CTA micro-press on hover ─────────────────────── */
@media (min-width: 768px) {
  .btn-clean:focus-visible,
  .btn-clean:hover {
    animation: micro-press 0.18s ease-out;
  }
}

@keyframes micro-press {
  0%   { transform: translateY(-1px) scale(1.02); }
  100% { transform: translateY(-1px) scale(1); }
}

/* ── Fear callout floating micro-animation ─────────────────── */
/* Pulse glow on the number to draw eye to the key stat */
@media (min-width: 768px) {
  .fear-stat-number {
    animation: fear-pulse 3s ease-in-out infinite;
    transform-origin: center bottom;
  }

  .fear-stat-number:nth-child(2) { animation-delay: 0.5s; }
  .fear-stat-number:nth-child(3) { animation-delay: 1s; }
}

@keyframes fear-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.75; transform: scale(1.04); }
}

/* ── Hero CTA button subtle pulse ────────────────────────────── */
@media (min-width: 768px) {
  .btn-cta:not(:hover) {
    animation: cta-glow 3.5s ease-in-out infinite;
  }
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.25); }
  50%       { box-shadow: 0 4px 32px rgba(0,0,0,0.4), 0 0 0 3px rgba(255,255,255,0.08); }
}

/* ── Nav link hover micro-slide ─────────────────────────────── */
@media (min-width: 768px) {
  .nav-links a {
    position: relative;
    overflow: hidden;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--text);
    transition: width 0.25s ease, left 0.25s ease;
    border-radius: 1px;
  }

  .nav-links a:hover::after {
    width: calc(100% - 24px);
    left: 12px;
  }
}

/* ── Mobile: disable all motion ─────────────────────────────── */
@media (max-width: 767px) {
  .animate-row,
  .section-reveal,
  .ppb-fill {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .ppb-fill { transform: scaleX(1) !important; }
  .fear-stat-number { animation: none !important; }
  .btn-cta:not(:hover) { animation: none !important; }
}