/* Element Health Labs — Design System (Peptide IQ product line)
   Brand Kit A · "Modern Science" — navy/teal palette, Montserrat headings +
   Inter body, finalized by Booker 2026-08-16. See docs/BRAND_GUIDELINES.md
   for the full rationale, logo spec, and source swatches. */

:root {
  --charcoal: #0d1b2a;       /* was #14181f — Brand Kit A navy */
  --charcoal-soft: #1e3a4e;  /* was #1f2937 — Brand Kit A secondary navy */
  --ink: #0d1b2a;            /* body copy; same navy as --charcoal */
  --muted: #5b6b78;          /* derived blue-gray for muted text — not one of
                                 the 6 source swatches, picked for contrast */
  --line: #e6eaee;
  --offwhite: #f6f8fa;
  --white: #ffffff;
  --accent: #2ba6a0;         /* was #0f6fcb — Brand Kit A teal */
  --accent-dark: #22857f;    /* derived hover-state darken of --accent */
  --accent-light: #7dcbc5;   /* Brand Kit A secondary teal — illustrative use */
  --accent-soft: #e3f4f2;    /* derived pale teal tint for chip/badge backgrounds */
  --warn: #b45309;
  --radius: 14px;
  --maxw: 1120px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "Montserrat", var(--font-sans);
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
/* Note: intentionally no backdrop-filter here — it would create a new
   containing block for the fixed-position mobile .nav below it, breaking
   the off-canvas menu positioning. */
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--charcoal); }
.brand-mark { flex-shrink: 0; display: block; }
.brand-word { font-family: var(--font-heading); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--charcoal-soft); }
.nav a:hover { color: var(--accent); }
.nav-cta { font-family: var(--font-heading); background: var(--charcoal); color: var(--white) !important; padding: 10px 18px; border-radius: 999px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--accent) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

@media (max-width: 860px) {
  .nav { position: fixed; inset: 72px 0 0 0; background: var(--white); flex-direction: column; padding: 28px 24px; gap: 20px; transform: translateX(100%); transition: transform .25s ease; }
  .nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero { padding: 88px 0 72px; background: linear-gradient(180deg, var(--offwhite), var(--white)); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-family: var(--font-heading); font-weight: 700; font-size: 46px; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--charcoal); max-width: 720px; }
.lede { font-size: 19px; color: var(--muted); max-width: 620px; margin: 0 0 32px; }
@media (max-width: 640px) { h1 { font-size: 32px; } .lede { font-size: 16.5px; } .hero { padding: 56px 0 48px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font-family: var(--font-heading); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--charcoal); color: var(--white); }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: var(--white); color: var(--charcoal); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head .eyebrow { margin-bottom: 12px; }
h2 { font-family: var(--font-heading); font-weight: 700; font-size: 30px; letter-spacing: -0.01em; margin: 0 0 12px; color: var(--charcoal); }
h3 { font-family: var(--font-heading); font-weight: 600; font-size: 20px; margin: 0 0 8px; color: var(--charcoal); }
.muted { color: var(--muted); }
.alt-bg { background: var(--offwhite); }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow .18s ease, transform .18s ease; }
.card:hover { box-shadow: 0 12px 32px rgba(17,24,39,.08); transform: translateY(-2px); }
.card .tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
a.card-link { text-decoration: none; color: inherit; display: block; }
a.card-link * { text-decoration: none; }

.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .03em; }
.badge-approved { background: #e7f6ec; color: #1a7a3c; }
.badge-investigational { background: #fff4e0; color: #92600a; }
.badge-preclinical { background: #eef0ff; color: #3f4bd1; }
.badge-cosmetic { background: #f1eefb; color: #6a3fd1; }

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 28px; }
.stat { }
.stat .num { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--charcoal); letter-spacing: -0.01em; }
.stat .label { font-size: 13.5px; color: var(--muted); }

/* ---------- Product / pricing cards ---------- */
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--white); display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 16px 40px rgba(15,111,203,.12); }
.price-card .price { font-family: var(--font-heading); font-size: 34px; font-weight: 700; color: var(--charcoal); }
.price-card .price span { font-size: 15px; color: var(--muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--charcoal-soft); }
.price-card li:before { content: "✓ "; color: var(--accent); font-weight: 700; }

/* ---------- Article / long-form ---------- */
article.longform { max-width: 760px; margin: 0 auto; font-family: var(--font-serif); font-size: 18px; line-height: 1.75; color: var(--ink); }
article.longform h1 { font-family: var(--font-sans); }
article.longform h2 { font-family: var(--font-sans); margin-top: 40px; }
article.longform p { margin: 0 0 20px; }
article.longform table { width: 100%; border-collapse: collapse; font-family: var(--font-sans); font-size: 14.5px; margin: 24px 0; }
article.longform th, article.longform td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
article.longform th { background: var(--offwhite); }

.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 18px 22px; border-radius: 8px; font-family: var(--font-sans); font-size: 15px; margin: 28px 0; }
.disclaimer-box { background: var(--offwhite); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; font-size: 13.5px; color: var(--muted); font-family: var(--font-sans); }

/* ---------- Email capture ---------- */
.capture { background: var(--charcoal); color: var(--white); border-radius: 20px; padding: 52px; text-align: center; }
.capture h2 { color: var(--white); }
.capture p { color: rgba(255,255,255,.7); max-width: 520px; margin: 0 auto 26px; }
.capture-form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.capture-form input { flex: 1; min-width: 200px; padding: 13px 16px; border-radius: 999px; border: none; font-size: 15px; }
.capture-form button { padding: 13px 22px; border-radius: 999px; border: none; background: var(--accent); color: var(--white); font-weight: 600; cursor: pointer; }
.capture-form button:hover { background: #1580e6; }
.capture .fine { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--offwhite); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { text-decoration: none; font-size: 14px; color: var(--charcoal-soft); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); }
.footer-disclaimer { font-size: 12px; color: var(--muted); max-width: 900px; margin-top: 18px; line-height: 1.6; }

/* ---------- Breadcrumb / small bits ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.kicker { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
