/* page.css — WhatsInIt.co Review Page Component Styles */

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.logo-link .logo-text {
  font-family: 'Zodiak', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  transition: background var(--transition-interactive);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}

/* === DESKTOP NAV === */
.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
}
@media (min-width: 769px) {
  .site-nav {
    display: flex;
  }
}
.nav-item {
  position: relative;
}
.nav-item > a,
.nav-item > button {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive), background var(--transition-interactive);
  display: flex;
  align-items: center;
  gap: var(--space-1);
  white-space: nowrap;
}
.nav-item > a:hover,
.nav-item > button:hover {
  color: var(--color-text);
  background: oklch(from var(--color-text) l c h / 0.04);
}
.nav-item.active > a,
.nav-item.active > button {
  color: var(--color-primary);
}
.nav-chevron {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-interactive);
  opacity: 0.5;
}
.nav-item.open .nav-chevron {
  transform: rotate(180deg);
}

/* === NAV DROPDOWN === */
.nav-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  left: 0;
  min-width: 260px;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}
.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.nav-dropdown a:hover {
  background: oklch(from var(--color-text) l c h / 0.04);
  color: var(--color-primary);
}
.nav-dropdown .dropdown-score {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* === MOBILE MENU TOGGLE === */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive);
}
.mobile-menu-toggle:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* === MOBILE MENU DRAWER === */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.4);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 250ms;
}
.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--color-bg);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  flex-shrink: 0;
}
.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-text) l c h / 0.1);
  color: var(--color-text-muted);
  transition: background var(--transition-interactive);
}
.mobile-menu-close:hover {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}
.mobile-menu-body {
  flex: 1;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.mobile-menu-section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.mobile-menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text);
  transition: background var(--transition-interactive);
}
.mobile-menu-links a:hover {
  background: oklch(from var(--color-text) l c h / 0.04);
}
.mobile-menu-links .dropdown-score {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* === HOMEPAGE SECTIONS === */
.homepage-hero {
  background: linear-gradient(135deg, #0a4f54, #01696f, #0c6b5e);
  color: #f0f0ee;
  padding: clamp(var(--space-16), 10vw, var(--space-32)) var(--space-4);
  position: relative;
  overflow: hidden;
  text-align: center;
}
[data-theme="dark"] .homepage-hero {
  background: linear-gradient(135deg, #0a2e30, #0f4448, #0a3a35);
}
.homepage-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.homepage-hero-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.homepage-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}
.homepage-hero .hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  opacity: 0.85;
  margin-bottom: var(--space-6);
  max-width: 46ch;
  margin-inline: auto;
  line-height: 1.5;
}
.homepage-hero .hero-description {
  font-size: var(--text-sm);
  opacity: 0.65;
  max-width: 56ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* Category Cards */
.section-container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: clamp(var(--space-10), 6vw, var(--space-20)) var(--space-4);
}
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}
.section-subheading {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 52ch;
  line-height: 1.6;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-4);
}
@media (max-width: 700px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}
.category-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive), transform 0.2s ease;
}
.category-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.category-card-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
}
.category-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  line-height: 1.2;
}
.category-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.category-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: auto;
  padding-top: var(--space-2);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

/* Review Cards (small) */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .review-grid {
    grid-template-columns: 1fr;
  }
}
.review-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive), transform 0.2s ease;
}
.review-card:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.review-card-score {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1;
  flex-shrink: 0;
  width: 50px;
  text-align: center;
}
.review-card-score.high { color: var(--color-success); }
.review-card-score.mid { color: var(--color-warning); }
.review-card-score.low { color: var(--color-error); }
.review-card-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}
.review-card-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
}
.review-card-subtitle {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Guides Cards */
.guides-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.guide-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.guide-link:hover {
  border-color: oklch(from var(--color-primary) l c h / 0.3);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
}
.guide-link-arrow {
  margin-left: auto;
  color: var(--color-text-faint);
  flex-shrink: 0;
  transition: transform var(--transition-interactive), color var(--transition-interactive);
}
.guide-link:hover .guide-link-arrow {
  transform: translateX(3px);
  color: var(--color-primary);
}

/* How We're Different */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
@media (max-width: 600px) {
  .approach-grid {
    grid-template-columns: 1fr;
  }
}
.approach-item {
  padding: var(--space-4);
  border-left: 3px solid var(--color-primary);
  background: var(--color-surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.approach-item p {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0;
}
.approach-links {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.approach-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.approach-links a:hover {
  color: var(--color-primary-hover);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, #0a4f54, #01696f, #0c6b5e);
  color: #f0f0ee;
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-4);
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0a2e30, #0f4448, #0a3a35);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.hero-overline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-bottom: var(--space-3);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: var(--space-4);
  max-width: 18ch;
}
.hero-meta {
  font-size: var(--text-sm);
  opacity: 0.7;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}
.hero-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.hero-product-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  margin-top: var(--space-4);
  backdrop-filter: blur(4px);
}

/* === LAYOUT === */
.article-layout {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-8) var(--space-4);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 200px 1fr;
    gap: var(--space-10);
    padding: var(--space-12) var(--space-6);
  }
}

/* === TABLE OF CONTENTS (Sidebar) === */
.toc-sidebar {
  display: none;
}
@media (min-width: 1024px) {
  .toc-sidebar {
    display: block;
    position: sticky;
    top: calc(var(--space-16) + var(--space-4));
    align-self: start;
    max-height: calc(100vh - var(--space-20));
    overflow-y: auto;
  }
}
.toc-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.toc-list a {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  border-left: 2px solid transparent;
  display: block;
  transition: all var(--transition-interactive);
  line-height: 1.4;
}
.toc-list a:hover {
  color: var(--color-text);
}
.toc-list a.active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  font-weight: 500;
}

/* Mobile TOC */
.toc-mobile {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-divider);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.toc-mobile::-webkit-scrollbar { display: none; }
.toc-mobile a {
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  transition: all var(--transition-interactive);
  flex-shrink: 0;
}
.toc-mobile a:hover,
.toc-mobile a.active {
  color: var(--color-primary);
  background: var(--color-primary-highlight);
}
@media (min-width: 1024px) {
  .toc-mobile { display: none; }
}

/* === MAIN ARTICLE CONTENT === */
.article-content {
  max-width: var(--content-prose);
  min-width: 0;
}
.article-content > section {
  margin-bottom: clamp(var(--space-10), 5vw, var(--space-16));
}
.section-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}
.article-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.article-content h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
  color: var(--color-text);
}
.article-content p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.article-content ul, .article-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.article-content li {
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}

/* === QUICK VERDICT CARD === */
.verdict-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 600px) {
  .verdict-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.verdict-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.verdict-score-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-warning);
}
.verdict-score-total {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 500;
}
.verdict-label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-warning);
  background: var(--color-warning-highlight);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
.verdict-label--poor {
  color: var(--color-error);
  background: var(--color-error-highlight);
}
.verdict-body h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  margin-top: 0;
}
.verdict-summary {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.verdict-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .verdict-pros-cons { grid-template-columns: 1fr; }
}
.verdict-pros-cons h4 {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-2);
}
.verdict-pros h4 { color: var(--color-success); }
.verdict-cons h4 { color: var(--color-warning); }
.verdict-pros-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.verdict-pros-cons li {
  font-size: var(--text-sm);
  line-height: 1.5;
  padding: var(--space-1) 0;
  padding-left: var(--space-5);
  position: relative;
}
.verdict-pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}
.verdict-cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--color-warning);
  font-weight: 700;
}

/* === RATING BREAKDOWN === */
.rating-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.rating-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: var(--space-3);
  align-items: center;
}
@media (max-width: 500px) {
  .rating-row {
    grid-template-columns: 1fr auto;
  }
  .rating-label { grid-column: 1 / -1; }
}
.rating-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.rating-bar-track {
  height: 6px;
  background: oklch(from var(--color-text) l c h / 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.rating-bar-fill.high { background: oklch(0.55 0.18 145); }
.rating-bar-fill.mid { background: oklch(0.6 0.16 70); }
.rating-bar-fill.low { background: oklch(0.55 0.2 25); }
[data-theme="dark"] .rating-bar-fill.high { background: var(--color-success); }
[data-theme="dark"] .rating-bar-fill.mid { background: var(--color-warning); }
[data-theme="dark"] .rating-bar-fill.low { background: var(--color-notification); }
.rating-value {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  min-width: 32px;
  text-align: right;
}

/* === INGREDIENT TABLE === */
.ingredient-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-4) calc(-1 * var(--space-4));
  padding: 0 var(--space-4);
  position: relative;
}
.ingredient-table {
  min-width: 700px;
  font-size: var(--text-sm);
}
.ingredient-table thead {
  position: sticky;
  top: 0;
}
.ingredient-table th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  text-align: left;
  padding: var(--space-3) var(--space-3);
  background: var(--color-surface-offset);
  border-bottom: 1px solid var(--color-divider);
}
.ingredient-table th:first-child { border-radius: var(--radius-md) 0 0 0; }
.ingredient-table th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.ingredient-table td {
  padding: var(--space-3);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  vertical-align: top;
  line-height: 1.5;
}
.ingredient-table tr:last-child td { border-bottom: none; }
.ingredient-name {
  font-weight: 600;
  color: var(--color-text);
}
.ingredient-benefits {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}
.dose-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  white-space: nowrap;
}
.dose-badge.caution {
  background: var(--color-dose-caution-bg);
  color: var(--color-dose-caution);
}
.dose-badge.unknown {
  background: var(--color-dose-unknown-bg);
  color: var(--color-dose-unknown);
}
.dose-badge.good {
  background: var(--color-dose-good-bg);
  color: var(--color-dose-good);
}
.dose-badge.underdosed {
  background: var(--color-error-highlight);
  color: var(--color-error);
}
.dose-badge.info {
  background: oklch(from var(--color-primary) l c h / 0.1);
  color: var(--color-primary);
}

/* === BEST FOR HEALTH GOALS === */
.best-for-section {
  margin-top: var(--space-6);
}
.best-for-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-3);
  margin-top: var(--space-4);
}
@media (max-width: 600px) {
  .best-for-grid {
    grid-template-columns: 1fr;
  }
}
.best-for-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.best-for-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.best-for-goal {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.best-for-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.best-for-score {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1;
  font-weight: 400;
}
.best-for-score.high { color: var(--color-success); }
.best-for-score.mid { color: var(--color-warning); }
.best-for-score.low { color: var(--color-error); }
.best-for-bar-track {
  width: 100%;
  height: 4px;
  background: oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.best-for-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.best-for-bar-fill.high { background: var(--color-success); }
.best-for-bar-fill.mid { background: var(--color-warning); }
.best-for-bar-fill.low { background: var(--color-error); }
.best-for-evidence {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.best-for-evidence strong {
  color: var(--color-text);
  font-weight: 600;
}
.article-content p.best-for-intro {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-2);
}
.article-content p.best-for-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  line-height: 1.5;
}

/* === COMPARISON TABLE === */
.comparison-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-4) calc(-1 * var(--space-4));
  padding: 0 var(--space-4);
  position: relative;
}
.comparison-table {
  min-width: 650px;
  font-size: var(--text-sm);
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-3);
  text-align: left;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  vertical-align: top;
}
.comparison-table thead th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  background: var(--color-surface-offset);
  position: sticky;
  top: 0;
}
.comparison-table thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
.comparison-table thead th:last-child { border-radius: 0 var(--radius-md) 0 0; }
.comparison-table tbody th {
  font-weight: 600;
  color: var(--color-text);
  font-size: var(--text-sm);
  background: var(--color-surface);
  position: sticky;
  left: 0;
  z-index: 1;
}
.comparison-table tr:last-child td,
.comparison-table tr:last-child th { border-bottom: none; }
.comparison-highlight {
  background: var(--color-primary-highlight);
}
.check-icon { color: var(--color-success); }
.cross-icon { color: var(--color-notification); }
.partial-icon { color: var(--color-warning); }

/* === PROS/CONS SECTION === */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) {
  .pros-cons-grid { grid-template-columns: 1fr; }
}
.pros-card, .cons-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.pros-card { border-top: 3px solid var(--color-success); }
.cons-card { border-top: 3px solid var(--color-warning); }
.pros-card h3, .cons-card h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
  margin-top: 0;
}
.pros-card h3 { color: var(--color-success); }
.cons-card h3 { color: var(--color-warning); }
.pros-card ul, .cons-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pros-card li, .cons-card li {
  font-size: var(--text-sm);
  line-height: 1.6;
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.04);
}
.pros-card li:last-child, .cons-card li:last-child { border-bottom: none; }
.pros-card li::before {
  content: '+';
  position: absolute;
  left: var(--space-1);
  color: var(--color-success);
  font-weight: 700;
  font-size: var(--text-base);
}
.cons-card li::before {
  content: '−';
  position: absolute;
  left: var(--space-1);
  color: var(--color-warning);
  font-weight: 700;
  font-size: var(--text-base);
}

/* === FAQ ACCORDION === */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.faq-item {
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-base);
  font-weight: 600;
  text-align: left;
  color: var(--color-text);
  transition: background var(--transition-interactive);
  min-height: 48px;
}
.faq-question:hover {
  background: var(--color-surface-offset);
}
.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition-interactive);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* === INFO CALLOUT === */
.callout {
  background: var(--color-surface-offset);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-4) 0;
}
.callout-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.callout p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.callout--critical {
  border-left-color: var(--color-error);
}
.callout--critical .callout-title {
  color: var(--color-error);
}

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--color-divider);
  padding: var(--space-8) var(--space-4);
  text-align: center;
}
.footer-inner {
  max-width: var(--content-default);
  margin-inline: auto;
}
.footer-brand {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.footer-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.6;
  margin-bottom: var(--space-4);
}
.footer-legal {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-bottom: var(--space-3);
}
.footer-legal a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-legal a:hover {
  color: var(--color-primary);
}
.footer-copyright {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-attribution {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-attribution a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-attribution a:hover {
  color: var(--color-primary);
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
}
/* Fallback: show content if JS hasn't loaded or observer hasn't run */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; }
}

/* === MOBILE TABLE SCROLL HINT === */
@media (max-width: 767px) {
  .ingredient-table-wrapper,
  .comparison-table-wrapper {
    background:
      linear-gradient(to right, var(--color-bg) 30%, transparent) left / 40px 100% no-repeat,
      linear-gradient(to left, var(--color-bg) 30%, transparent) right / 40px 100% no-repeat,
      radial-gradient(farthest-side at 0 50%, oklch(from var(--color-text) l c h / 0.12), transparent) left / 14px 100% no-repeat,
      radial-gradient(farthest-side at 100% 50%, oklch(from var(--color-text) l c h / 0.12), transparent) right / 14px 100% no-repeat;
    background-attachment: local, local, scroll, scroll;
  }
}

/* === MISC === */
a { color: var(--color-primary); }
a:hover { color: var(--color-primary-hover); }

.product-image-placeholder {
  background: linear-gradient(135deg, #0a4f54, #01696f, #0c6b5e);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: var(--text-sm);
  font-weight: 500;
  margin: var(--space-4) 0;
}
[data-theme="dark"] .product-image-placeholder {
  background: linear-gradient(135deg, #0a2e30, #0f4448, #0a3a35);
}

/* Study callout */
.study-callout {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-4) 0;
}
.study-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-3);
}
@media (max-width: 500px) {
  .study-stats { grid-template-columns: 1fr; }
}
.study-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  line-height: 1;
}
.study-stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

/* Price card */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0;
}
.price-card {
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
}
.price-card-name {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}
.price-card-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
}
.price-card-detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
