/* ============================================================
   EDPillGuide.com — Master Design System
   Version 1.0 | Scout Theory LLC
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Colors */
  --clr-bg:           #090E1A;
  --clr-bg-2:         #0F1624;
  --clr-bg-3:         #151E2E;
  --clr-surface:      #1A2338;
  --clr-surface-2:    #1F2A40;
  --clr-border:       #2A3A52;
  --clr-border-light: #334260;

  --clr-teal:         #00C9AA;
  --clr-teal-dim:     #00A88D;
  --clr-teal-glow:    rgba(0, 201, 170, 0.15);
  --clr-teal-subtle:  rgba(0, 201, 170, 0.08);

  --clr-amber:        #F5A623;
  --clr-amber-dim:    #D4901E;
  --clr-amber-glow:   rgba(245, 166, 35, 0.15);

  --clr-red:          #FF4D6A;
  --clr-green:        #2ECC97;

  --clr-text:         #E8EDF5;
  --clr-text-muted:   #8B9CB8;
  --clr-text-subtle:  #5A6A82;
  --clr-white:        #FFFFFF;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-7xl:  4.5rem;

  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-loose:  1.8;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-w-sm:   640px;
  --max-w-md:   768px;
  --max-w-lg:   1024px;
  --max-w-xl:   1200px;
  --max-w-2xl:  1400px;

  /* Borders & Radii */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --shadow-xl:  0 16px 48px rgba(0,0,0,0.7);
  --shadow-teal: 0 0 24px rgba(0, 201, 170, 0.2);
  --shadow-amber: 0 0 24px rgba(245, 166, 35, 0.2);

  /* Transitions */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.64, 0, 0.78, 0);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast:   150ms;
  --duration-base:   250ms;
  --duration-slow:   400ms;
  --duration-slower: 600ms;

  /* Navigation */
  --nav-height: 68px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

table {
  border-collapse: collapse;
  width: 100%;
}

/* ── Noise Texture Overlay ────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--sm  { max-width: var(--max-w-sm); }
.container--md  { max-width: var(--max-w-md); }
.container--lg  { max-width: var(--max-w-lg); }
.container--2xl { max-width: var(--max-w-2xl); }

.section {
  padding-block: var(--space-24);
  position: relative;
  z-index: 1;
}

.section--sm  { padding-block: var(--space-16); }
.section--lg  { padding-block: var(--space-32); }

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--clr-white);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

.display-xl {
  font-family: var(--font-display);
  font-size: var(--text-7xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: var(--text-6xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.display-italic {
  font-style: italic;
  font-weight: 300;
  color: var(--clr-teal);
}

p {
  line-height: var(--leading-normal);
  color: var(--clr-text-muted);
}

p + p { margin-top: var(--space-4); }

.lead {
  font-size: var(--text-xl);
  line-height: var(--leading-loose);
  color: var(--clr-text);
  font-weight: 300;
}

.text-teal   { color: var(--clr-teal); }
.text-amber  { color: var(--clr-amber); }
.text-muted  { color: var(--clr-text-muted); }
.text-subtle { color: var(--clr-text-subtle); }
.text-white  { color: var(--clr-white); }

.font-display { font-family: var(--font-display); }
.font-light   { font-weight: 300; }
.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }

.text-sm  { font-size: var(--text-sm); }
.text-xs  { font-size: var(--text-xs); }
.text-lg  { font-size: var(--text-lg); }
.text-xl  { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.uppercase { text-transform: uppercase; letter-spacing: 0.1em; }

/* Eyebrow label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--clr-teal);
}

.eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--clr-teal);
  flex-shrink: 0;
}

/* Section heading with teal accent */
.section-heading {
  margin-bottom: var(--space-4);
}

.section-heading + p {
  margin-top: 0;
  font-size: var(--text-lg);
  max-width: 60ch;
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background var(--duration-slow) var(--ease-out),
              border-color var(--duration-slow) var(--ease-out),
              backdrop-filter var(--duration-slow) var(--ease-out);
}

.nav.scrolled {
  background: rgba(9, 14, 26, 0.9);
  border-color: var(--clr-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w-xl);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: -0.02em;
  transition: opacity var(--duration-fast);
}

.nav__logo:hover { opacity: 0.85; }

.nav__logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-teal);
  box-shadow: 0 0 8px var(--clr-teal);
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: color var(--duration-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--clr-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}

.nav__link:hover {
  color: var(--clr-white);
}

.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
}

.nav__link.active {
  color: var(--clr-white);
}

.nav__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  background: var(--clr-teal);
  color: var(--clr-bg);
  transition: background var(--duration-fast), transform var(--duration-fast), box-shadow var(--duration-fast);
}

.nav__cta:hover {
  background: var(--clr-teal-dim);
  transform: translateY(-1px);
  box-shadow: var(--shadow-teal);
}

/* Mobile hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: all var(--duration-base) var(--ease-out);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn:hover::after { opacity: 0.06; }
.btn:active::after { opacity: 0.1; }

.btn--primary {
  background: var(--clr-teal);
  color: var(--clr-bg);
  box-shadow: 0 2px 16px rgba(0, 201, 170, 0.25);
}

.btn--primary:hover {
  background: var(--clr-teal-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 201, 170, 0.35);
}

.btn--amber {
  background: var(--clr-amber);
  color: var(--clr-bg);
  box-shadow: 0 2px 16px rgba(245, 166, 35, 0.25);
}

.btn--amber:hover {
  background: var(--clr-amber-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(245, 166, 35, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--clr-teal);
  border: 1.5px solid var(--clr-teal);
}

.btn--outline:hover {
  background: var(--clr-teal-subtle);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--clr-surface);
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}

.btn--ghost:hover {
  background: var(--clr-surface-2);
  border-color: var(--clr-border-light);
}

.btn--sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-4);
}

.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-4) var(--space-8);
}

.btn--xl {
  font-size: var(--text-lg);
  padding: var(--space-5) var(--space-10);
  border-radius: var(--radius-xl);
}

.btn svg, .btn .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: border-color var(--duration-base),
              transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,201,170,0.3), transparent);
  opacity: 0;
  transition: opacity var(--duration-base);
}

.card:hover {
  border-color: var(--clr-border-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before { opacity: 1; }

.card--featured {
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 1px var(--clr-teal), var(--shadow-teal);
}

.card--featured::before { opacity: 1; }

.card--flat {
  background: var(--clr-bg-2);
  border-color: var(--clr-border);
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.card__body { flex: 1; }

.card__footer {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--clr-border);
}

/* ── Badges ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.badge--teal {
  background: var(--clr-teal-subtle);
  color: var(--clr-teal);
  border: 1px solid rgba(0, 201, 170, 0.2);
}

.badge--amber {
  background: var(--clr-amber-glow);
  color: var(--clr-amber);
  border: 1px solid rgba(245, 166, 35, 0.2);
}

.badge--green {
  background: rgba(46, 204, 151, 0.08);
  color: var(--clr-green);
  border: 1px solid rgba(46, 204, 151, 0.2);
}

.badge--red {
  background: rgba(255, 77, 106, 0.08);
  color: var(--clr-red);
  border: 1px solid rgba(255, 77, 106, 0.2);
}

.badge--muted {
  background: rgba(255,255,255,0.04);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
}

/* ── Star Rating ──────────────────────────────────────────── */
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--clr-amber);
  font-size: var(--text-sm);
}

.stars--sm { font-size: var(--text-xs); }
.stars--lg { font-size: var(--text-lg); }

.rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.rating__score {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-white);
}

.rating__count {
  font-size: var(--text-sm);
  color: var(--clr-text-subtle);
}

/* ── Comparison Table ─────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.compare-table th {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-4) var(--space-5);
  background: var(--clr-bg-3);
  border-bottom: 1px solid var(--clr-border);
  text-align: left;
}

.compare-table th:not(:first-child) {
  text-align: center;
}

.compare-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--clr-border);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  vertical-align: middle;
}

.compare-table td:not(:first-child) {
  text-align: center;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: var(--clr-surface-2);
}

.compare-table .col-label {
  font-weight: 500;
  color: var(--clr-text);
  font-size: var(--text-sm);
}

.compare-table .col-featured {
  background: var(--clr-teal-subtle);
  position: relative;
}

.compare-table .col-featured th {
  background: var(--clr-teal-glow);
  color: var(--clr-teal);
}

.check { color: var(--clr-green); font-size: 1rem; }
.cross { color: var(--clr-red); font-size: 1rem; }

/* ── Provider Card ────────────────────────────────────────── */
.provider-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  transition: all var(--duration-base) var(--ease-out);
  overflow: hidden;
}

.provider-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-teal-subtle) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-base);
  pointer-events: none;
}

.provider-card:hover {
  border-color: var(--clr-border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.provider-card:hover::after { opacity: 1; }

.provider-card--best {
  border-color: var(--clr-teal);
  box-shadow: 0 0 0 1px var(--clr-teal);
}

.provider-card__rank {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--clr-border-light);
  line-height: 1;
}

.provider-card__logo {
  height: 36px;
  width: auto;
  margin-bottom: var(--space-4);
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.provider-card__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--clr-white);
  margin-bottom: var(--space-2);
}

.provider-card__tagline {
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  margin-bottom: var(--space-4);
}

.provider-card__price {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--clr-teal);
  line-height: 1;
}

.provider-card__price-label {
  font-size: var(--text-xs);
  color: var(--clr-text-subtle);
  margin-top: var(--space-1);
}

.provider-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--clr-border);
}

/* ── Score Bar ────────────────────────────────────────────── */
.score-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.score-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.score-bar__label {
  font-size: var(--text-xs);
  color: var(--clr-text-muted);
  width: 100px;
  flex-shrink: 0;
}

.score-bar__track {
  flex: 1;
  height: 4px;
  background: var(--clr-surface-2);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar__fill {
  height: 100%;
  background: var(--clr-teal);
  border-radius: var(--radius-full);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.8s var(--ease-out);
}

.score-bar__value {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--clr-teal);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 201, 170, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 30%, rgba(0, 201, 170, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(245, 166, 35, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--space-32);
}

.hero__eyebrow {
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s var(--ease-out) forwards;
  opacity: 0;
  animation-delay: 0.1s;
}

.hero__title {
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.7s var(--ease-out) forwards;
  opacity: 0;
  animation-delay: 0.2s;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--clr-text-muted);
  max-width: 54ch;
  line-height: var(--leading-loose);
  margin-bottom: var(--space-10);
  font-weight: 300;
  animation: fadeInUp 0.7s var(--ease-out) forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
  animation: fadeInUp 0.7s var(--ease-out) forwards;
  opacity: 0;
  animation-delay: 0.4s;
}

.hero__trust-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-10);
  border-top: 1px solid var(--clr-border);
  animation: fadeInUp 0.7s var(--ease-out) forwards;
  opacity: 0;
  animation-delay: 0.5s;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.trust-item__icon {
  width: 20px;
  height: 20px;
  color: var(--clr-teal);
  flex-shrink: 0;
}

/* ── Quick Comparison (Homepage) ──────────────────────────── */
.quick-compare {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.quick-compare__header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--clr-border);
  background: var(--clr-bg-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Feature List ─────────────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.feature-item__icon {
  width: 18px;
  height: 18px;
  color: var(--clr-teal);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Pros / Cons ──────────────────────────────────────────── */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.pros-cons__col {
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

.pros-cons__title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.pros-cons__col--pros .pros-cons__title { color: var(--clr-green); }
.pros-cons__col--cons .pros-cons__title { color: var(--clr-red); }

.pros-cons__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.pros-cons__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: var(--leading-snug);
}

.pros-cons__col--pros .pros-cons__item::before {
  content: '+';
  color: var(--clr-green);
  font-weight: 700;
  flex-shrink: 0;
  font-size: var(--text-sm);
}

.pros-cons__col--cons .pros-cons__item::before {
  content: '−';
  color: var(--clr-red);
  font-weight: 700;
  flex-shrink: 0;
  font-size: var(--text-sm);
}

/* ── Disclaimer / Alert ───────────────────────────────────── */
.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--clr-text-muted);
}

.alert--teal {
  background: var(--clr-teal-subtle);
  border: 1px solid rgba(0, 201, 170, 0.15);
}

.alert--amber {
  background: var(--clr-amber-glow);
  border: 1px solid rgba(245, 166, 35, 0.15);
}

.alert--muted {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
}

.alert__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.alert--teal .alert__icon  { color: var(--clr-teal); }
.alert--amber .alert__icon { color: var(--clr-amber); }

/* ── Affiliate Disclosure ─────────────────────────────────── */
.disclosure {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-left: 3px solid var(--clr-amber);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  color: var(--clr-text-subtle);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-8);
}

.disclosure strong {
  color: var(--clr-text-muted);
  font-weight: 600;
}

/* ── Medical Review Bar ───────────────────────────────────── */
.review-bar {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
}

.review-bar__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--clr-teal-glow);
  border: 1.5px solid var(--clr-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-teal);
}

.review-bar__name {
  font-weight: 600;
  color: var(--clr-text);
  font-size: var(--text-sm);
}

.review-bar__meta {
  font-size: var(--text-xs);
  color: var(--clr-text-subtle);
}

.review-bar__divider {
  width: 1px;
  height: 32px;
  background: var(--clr-border);
  margin-inline: var(--space-2);
}

/* ── Stat Block ───────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--clr-border);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.stat-item {
  background: var(--clr-surface);
  padding: var(--space-6);
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-item__label {
  font-size: var(--text-xs);
  color: var(--clr-text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-item__number .accent { color: var(--clr-teal); }

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--duration-base);
}

.faq-item.open {
  border-color: var(--clr-border-light);
}

.faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-weight: 500;
  color: var(--clr-text);
  font-size: var(--text-base);
  transition: color var(--duration-fast);
  user-select: none;
  gap: var(--space-4);
}

.faq-item__trigger:hover { color: var(--clr-white); }

.faq-item__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--clr-text-muted);
  transition: transform var(--duration-base) var(--ease-out), color var(--duration-fast);
}

.faq-item.open .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--clr-teal);
}

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out);
}

.faq-item.open .faq-item__body {
  max-height: 500px;
}

.faq-item__content {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  line-height: var(--leading-loose);
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--clr-text-subtle);
  margin-bottom: var(--space-8);
}

.breadcrumb__sep {
  color: var(--clr-border-light);
}

.breadcrumb a {
  color: var(--clr-text-subtle);
  transition: color var(--duration-fast);
}

.breadcrumb a:hover { color: var(--clr-teal); }

.breadcrumb__current {
  color: var(--clr-text-muted);
}

/* ── Table of Contents ────────────────────────────────────── */
.toc {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
}

.toc__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-4);
}

.toc__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  counter-reset: toc;
}

.toc__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--clr-text-muted);
  counter-increment: toc;
  transition: color var(--duration-fast);
}

.toc__item::before {
  content: counter(toc, decimal-leading-zero);
  font-size: var(--text-xs);
  color: var(--clr-text-subtle);
  font-weight: 600;
  flex-shrink: 0;
}

.toc__item:hover, .toc__item a:hover { color: var(--clr-teal); }

/* ── Article Content ──────────────────────────────────────── */
.prose {
  font-size: var(--text-base);
  line-height: var(--leading-loose);
  color: var(--clr-text-muted);
  max-width: 72ch;
}

.prose h2 {
  font-size: var(--text-3xl);
  color: var(--clr-white);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
}

.prose h3 {
  font-size: var(--text-2xl);
  color: var(--clr-white);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}

.prose p {
  margin-bottom: var(--space-4);
}

.prose strong {
  color: var(--clr-text);
  font-weight: 600;
}

.prose a {
  color: var(--clr-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0,201,170,0.3);
  transition: text-decoration-color var(--duration-fast);
}

.prose a:hover {
  text-decoration-color: var(--clr-teal);
}

.prose ul, .prose ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: var(--space-2);
}

.prose blockquote {
  border-left: 3px solid var(--clr-teal);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
  color: var(--clr-text);
  font-style: italic;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.prose sup {
  color: var(--clr-teal);
  font-size: var(--text-xs);
  font-weight: 600;
}

.prose .citation-link {
  color: var(--clr-teal);
  text-decoration: none;
  font-size: var(--text-xs);
  vertical-align: super;
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--clr-bg-2);
  border-top: 1px solid var(--clr-border);
  padding-block: var(--space-16);
  position: relative;
  z-index: 1;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer__brand .nav__logo {
  margin-bottom: var(--space-4);
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--clr-text-subtle);
  line-height: var(--leading-loose);
  max-width: 32ch;
  margin-bottom: var(--space-6);
}

.footer__heading {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--clr-text-subtle);
  transition: color var(--duration-fast);
}

.footer__link:hover { color: var(--clr-teal); }

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--clr-text-subtle);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--clr-text-subtle);
  transition: color var(--duration-fast);
}

.footer__legal a:hover { color: var(--clr-text-muted); }

.footer__disclaimer {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--clr-border);
  font-size: var(--text-xs);
  color: var(--clr-text-subtle);
  line-height: var(--leading-loose);
  max-width: 90ch;
}

/* ── Dividers ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-border), transparent);
  margin-block: var(--space-8);
}

.divider--glow {
  background: linear-gradient(90deg, transparent, var(--clr-teal-dim), transparent);
  height: 1px;
  opacity: 0.4;
}

/* ── Utility Spacing ──────────────────────────────────────── */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.pt-8  { padding-top: var(--space-8); }
.pb-8  { padding-bottom: var(--space-8); }

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.7s var(--ease-out) forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Scroll-triggered reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1.visible { transition-delay: 0.1s; }
.reveal-delay-2.visible { transition-delay: 0.2s; }
.reveal-delay-3.visible { transition-delay: 0.3s; }
.reveal-delay-4.visible { transition-delay: 0.4s; }

/* ── Scroll Reveal JS ─────────────────────────────────────── */
/* (JS snippet goes in each page's <script> tag) */

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 2.25rem;
    --text-6xl: 2.75rem;
    --text-7xl: 3rem;
  }

  .nav__links { display: none; }
  .nav__cta   { display: none; }
  .nav__toggle { display: flex; }

  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    padding: var(--space-6);
    gap: var(--space-6);
    animation: fadeInUp 0.3s var(--ease-out) forwards;
    z-index: 99;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .pros-cons { grid-template-columns: 1fr; }

  .hero__actions { flex-direction: column; width: 100%; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }

  .compare-table { font-size: var(--text-xs); }
  .compare-table th,
  .compare-table td { padding: var(--space-3); }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .section { padding-block: var(--space-16); }
  .card { padding: var(--space-4); }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Focus Styles (Accessibility) ────────────────────────── */
:focus-visible {
  outline: 2px solid var(--clr-teal);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background: var(--clr-teal-glow);
  color: var(--clr-white);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--clr-bg-2); }
::-webkit-scrollbar-thumb {
  background: var(--clr-border-light);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--clr-text-subtle); }

/* ── Page Header (inner pages) ────────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-height) + var(--space-20));
  padding-bottom: var(--space-16);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(0, 201, 170, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-header__content {
  position: relative;
  z-index: 1;
}

/* ── Sticky Sidebar Layout ────────────────────────────────── */
.layout-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}

.sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

@media (max-width: 1024px) {
  .layout-sidebar {
    grid-template-columns: 1fr;
  }
  .sidebar { position: static; }
}

/* ── Inline CTA Box ───────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, var(--clr-teal-subtle), var(--clr-surface));
  border: 1px solid rgba(0, 201, 170, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
}

.cta-box h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-3);
}

.cta-box p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

/* ── Pill Tag ─────────────────────────────────────────────── */
.pill {
  display: inline-block;
  background: var(--clr-surface-2);
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
}

.pill--teal {
  background: var(--clr-teal-subtle);
  color: var(--clr-teal);
  border-color: rgba(0,201,170,0.2);
}

/* ── Loading Skeleton ─────────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--clr-surface) 25%,
    var(--clr-surface-2) 50%,
    var(--clr-surface) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ── Back to Top ──────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-base) var(--ease-out);
  z-index: 50;
  color: var(--clr-text-muted);
}

.back-to-top.visible {
  opacity: 1;
  transform: none;
}

.back-to-top:hover {
  background: var(--clr-surface-2);
  border-color: var(--clr-teal);
  color: var(--clr-teal);
}

/* ── No-js fallback ───────────────────────────────────────── */
.no-js .reveal { opacity: 1; transform: none; }
.no-js .hero__title,
.no-js .hero__subtitle,
.no-js .hero__eyebrow,
.no-js .hero__actions,
.no-js .hero__trust-bar { opacity: 1; }
