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

:root {
  --bg: #f5f8fb;
  --surface: #ffffff;
  --text: #1a2332;
  --text-muted: #5a6470;
  --primary: #0b2a4a;
  --accent: #ffc107;
  --accent-hover: #ffd23f;
  --accent-shadow: #c79a00;
  --border: #e6ecf2;
  --success: #00a86b;
  --soft: #f0f4f8;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Trust bar */
.trust-bar {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
}
.trust-divider { margin: 0 0.6rem; opacity: 0.4; }
@media (max-width: 480px) {
  .trust-bar { font-size: 0.72rem; padding: 0.5rem; }
  .trust-divider { margin: 0 0.3rem; }
}

/* Container */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
}

article > header,
article > section,
.disclaimer {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 16px rgba(11, 42, 74, 0.06);
}

/* Hero */
.hero { text-align: center; }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.25;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
.subhead {
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.subhead strong { color: var(--text); font-weight: 600; }
.product-img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}
.cta-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Quick facts grid */
.quick-facts { background: var(--soft) !important; padding: 1.5rem !important; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.fact {
  background: var(--surface);
  padding: 0.75rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 0.15rem;
}
.fact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 600;
}
.fact-value {
  font-size: 0.92rem;
  color: var(--text);
  font-weight: 700;
}
@media (max-width: 480px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Content sections */
.content-section h2 {
  font-size: clamp(1.2rem, 3.5vw, 1.4rem);
  color: var(--primary);
  margin-bottom: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
}
.content-section h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 0.35rem;
  font-weight: 700;
}
.content-section p {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 0.85rem;
}
.content-section p:last-child { margin-bottom: 0; }
.content-section a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.content-section sup a {
  text-decoration: none;
  font-size: 0.7rem;
  background: var(--soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 2px;
}

/* Ingredient list */
.ingredient-list {
  list-style: none;
  margin-top: 0.5rem;
}
.ingredient-list > li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.ingredient-list > li:last-child { border-bottom: none; }
.ingredient-list p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* Comparison table */
.comparison {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.comparison th, .comparison td {
  padding: 0.75rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comparison th {
  background: var(--soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.82rem;
}
.comparison tr:last-child td { border-bottom: none; }
@media (max-width: 480px) {
  .comparison { font-size: 0.82rem; }
  .comparison th, .comparison td { padding: 0.5rem 0.4rem; }
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.faq details:last-of-type { border-bottom: none; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
  font-size: 0.98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 400;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA */
.cta-section {
  text-align: center;
}
.cta-section.secondary {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.5rem 0 1.5rem !important;
}
.cta-lead {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-weight: 500;
}
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  padding: 1.1rem 2.25rem;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--accent-shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  letter-spacing: 0.01em;
  min-width: 240px;
}
.cta-btn:hover { background: var(--accent-hover); transform: translateY(2px); box-shadow: 0 2px 0 var(--accent-shadow); }
.cta-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--accent-shadow); }
.guarantee { margin-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }

/* About / References */
.about { background: var(--soft) !important; }
.references ol {
  margin-top: 0.5rem;
  padding-left: 1.25rem;
}
.references li {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.55;
}
.references em { color: var(--text); }

/* Disclaimer */
.disclaimer {
  background: rgba(11, 42, 74, 0.04) !important;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.55;
  box-shadow: none !important;
}
.disclaimer p { margin-bottom: 0.65rem; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer strong { color: var(--text); }
.copyright { text-align: center; margin-top: 0.85rem; font-size: 0.72rem; }

/* Footer navigation (legal pages) */
.footer-nav {
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 0 0.15rem;
}
.footer-nav a:hover { color: var(--primary); text-decoration: underline; }
.footer-nav span { margin: 0 0.15rem; opacity: 0.5; }
