/* ============================================================
   HEME — Shared Design System
   Tokens, reset, base typography, nav, footer, shared components
   ============================================================ */

/* =========================================================
   Canela (Commercial Type) — full Trial family.
   License before production.
   Three optical sizes:
     - Canela Deck   → display / hero h1 (50–120px)
     - Canela        → section h2 / quotes (28–48px)
     - Canela Text   → body serif moments (14–22px)
   Six weights × roman + italic = 12 faces per family.
   ========================================================= */

/* ---- Canela Deck (display) ---- */
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-Thin-Trial.otf")          format("opentype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-ThinItalic-Trial.otf")    format("opentype"); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-Light-Trial.otf")         format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-LightItalic-Trial.otf")   format("opentype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-Regular-Trial.otf")       format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-RegularItalic-Trial.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-Medium-Trial.otf")        format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-MediumItalic-Trial.otf")  format("opentype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-Bold-Trial.otf")          format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-BoldItalic-Trial.otf")    format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-Black-Trial.otf")         format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Deck"; src: url("../fonts/CanelaDeck-BlackItalic-Trial.otf")   format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }

/* ---- Canela (standard / section headlines) ---- */
@font-face { font-family: "Canela"; src: url("../fonts/Canela-Thin-Trial.otf")          format("opentype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-ThinItalic-Trial.otf")    format("opentype"); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-Light-Trial.otf")         format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-LightItalic-Trial.otf")   format("opentype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-Regular-Trial.otf")       format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-RegularItalic-Trial.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-Medium-Trial.otf")        format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-MediumItalic-Trial.otf")  format("opentype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-Bold-Trial.otf")          format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-BoldItalic-Trial.otf")    format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-Black-Trial.otf")         format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela"; src: url("../fonts/Canela-BlackItalic-Trial.otf")   format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }

/* ---- Canela Text (small serif) ---- */
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-Thin-Trial.otf")          format("opentype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-ThinItalic-Trial.otf")    format("opentype"); font-weight: 100; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-Light-Trial.otf")         format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-LightItalic-Trial.otf")   format("opentype"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-Regular-Trial.otf")       format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-RegularItalic-Trial.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-Medium-Trial.otf")        format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-MediumItalic-Trial.otf")  format("opentype"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-Bold-Trial.otf")          format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-BoldItalic-Trial.otf")    format("opentype"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-Black-Trial.otf")         format("opentype"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Text"; src: url("../fonts/CanelaText-BlackItalic-Trial.otf")   format("opentype"); font-weight: 900; font-style: italic; font-display: swap; }

/* ---- Canela Condensed (reserved — accent-only, do not use as default) ---- */
@font-face { font-family: "Canela Condensed"; src: url("../fonts/CanelaCondensed-Regular-Trial.otf")       format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Condensed"; src: url("../fonts/CanelaCondensed-RegularItalic-Trial.otf") format("opentype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Canela Condensed"; src: url("../fonts/CanelaCondensed-Medium-Trial.otf")        format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Canela Condensed"; src: url("../fonts/CanelaCondensed-Bold-Trial.otf")          format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

/* =========================================================
   Söhne (Klim Type Foundry) — PLACEHOLDER @font-face declarations.
   Drop the .woff2 files into /fonts/ once licensed from klim.co.nz/buy/sohne
   and these will be picked up automatically. License required.
   ========================================================= */
@font-face {
  font-family: "Söhne";
  src: url("../fonts/Sohne-Buch.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("../fonts/Sohne-Kraftig.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("../fonts/Sohne-Halbfett.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Söhne";
  src: url("../fonts/Sohne-BuchKursiv.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  /* Palette — luxury editorial ($100M women's health intelligence) */
  --ivory: #F6F1E9;           /* warm ivory — page ground */
  --stone: #E9DFD2;            /* soft stone — secondary surfaces */
  --warm-cream: #EFE5D6;       /* between ivory and stone */
  --soft-sand: #D6C6B2;        /* tertiary surface accent */
  --bone: #F6F1E9;             /* legacy alias → ivory */
  --bone-2: #EFE5D6;           /* legacy alias → warm-cream */
  --bone-3: #D6C6B2;           /* legacy alias → soft-sand */
  --card-warm: #FBF6ED;        /* lifted card */
  --espresso-deep: #161210;    /* deep espresso — near-black, warm */
  --charcoal: #161210;         /* primary text */
  --espresso: #161210;         /* legacy alias */
  --espresso-2: #3A332E;
  /* UNIFIED RED — all red usage on the site uses this single bright red. */
  --oxblood: #E63946;          /* the brand red */
  --oxblood-dark: #C5303C;     /* deeper for hover */
  --rust: #E63946;             /* legacy alias — same red */
  --rust-soft: rgba(230, 57, 70, 0.06);
  --taupe: #A89682;            /* muted taupe — secondary text */
  --taupe-soft: #D9CFC2;
  --blush: #F4C9CC;            /* warm pink derived from new red */
  --coral: #E63946;            /* same red — kept as alias for legacy CSS */
  --coral-deep: #C5303C;       /* coral hover — same as oxblood-dark */
  --forest: #10251F;           /* tiny data accent — rare */
  --clay: #C9866A;             /* legacy */
  --clay-soft: #E0B59E;
  --iron-glow: #C8893D;        /* legacy */
  --iron-gold: #C8893D;
  --iron-soft: #ECCB9C;
  --line-warm: #DFD0BB;
  --line: rgba(22, 18, 16, 0.10);
  --line-soft: rgba(22, 18, 16, 0.06);
  --shadow-card: 0 1px 0 rgba(230,57,70,.02), 0 6px 18px rgba(230,57,70,.04);
  --shadow-card-lg: 0 1px 0 rgba(230,57,70,.03), 0 12px 32px rgba(230,57,70,.06);
  --shadow-warm-float: 0 1px 0 rgba(230,57,70,.03), 0 10px 28px rgba(230,57,70,.05);

  /* Type — three-tier Canela system */
  --font-display: "Canela Deck", "Canela", Georgia, "Times New Roman", serif; /* hero h1s, biggest display */
  --font-serif: "Canela", Georgia, "Times New Roman", serif;                  /* section h2s, dek, pull quotes — DEFAULT serif */
  --font-text: "Canela Text", "Canela", Georgia, "Times New Roman", serif;    /* h3s, small serif moments */
  --font-sans: "Söhne", "Sohne", "Söhne Buch", "GT America", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;
  --radius-xl: 8px;
  --radius-button: 999px;

  /* Motion */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bone);
  color: var(--espresso);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

/* UTILITIES */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rust);
  font-weight: 600;
}
.eyebrow.muted { color: rgba(36,28,25,.5); font-weight: 500; }
.eyebrow.oxblood { color: var(--oxblood); }
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.015em; }
.italic { font-style: italic; }
.text-muted { color: rgba(36, 28, 25, 0.6); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--oxblood);
  color: var(--bone);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 6px 18px rgba(90,31,31,.18);
}
.btn-primary:hover { background: var(--oxblood-dark); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 28px rgba(90,31,31,.25); }
.btn-secondary {
  background: transparent;
  color: var(--espresso);
  border: 1px solid rgba(36,28,25,.20);
}
.btn-secondary:hover { border-color: var(--espresso); background: var(--bone-2); }
.btn-ghost {
  background: transparent;
  color: var(--oxblood);
  padding: 0;
  height: auto;
  font-weight: 500;
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 13.5px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 15px; }
.arrow { width: 14px; height: 14px; }

/* LINK ARROW */
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; font-size: 14px; color: var(--oxblood);
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ICON BUTTON */
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { background: var(--bone-2); border-color: rgba(36,28,25,.18); }
.icon-btn svg { width: 16px; height: 16px; }

/* NAV — editorial masthead.
   Default: sticky + cream backdrop (used on all sub-pages).
   Homepage adds .nav--over-hero to make it float transparently over the hero,
   and toggles .is-scrolled once the user scrolls past the hero. */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 241, 233, 0.88);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
  animation: navFadeIn 0.8s var(--ease) both;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), border-color .35s var(--ease);
}
/* Homepage: float over hero */
.nav.nav--over-hero {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}
/* Homepage: once user scrolls past the hero, the floating nav goes solid */
.nav.nav--over-hero.is-scrolled {
  background: rgba(246, 241, 233, 0.88);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
@keyframes navFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
/* HEME wordmark — image-based brand mark.
   Uses !important to override the many page-local font-size rules that exist
   across the site from when the wordmark was text-based. */
.wordmark {
  display: inline-block !important;
  width: auto !important;
  height: 26px !important;
  background-image: url("/photos/heme-wordmark-dark.png") !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  background-size: contain !important;
  aspect-ratio: 394 / 157 !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
  color: transparent !important;
}
.wordmark .dot { display: none; }
/* Mobile-menu drawer uses dark on cream */
.mobile-menu-panel .wordmark { background-image: url("/photos/heme-wordmark-dark.png") !important; }
/* Footer is on charcoal — use light variant */
footer .wordmark { background-image: url("/photos/heme-wordmark-light.png") !important; height: 32px !important; }
/* Homepage hero nav — slightly larger */
.nav--pills .wordmark { height: 28px !important; }
@media (max-width: 720px) {
  .wordmark { height: 22px !important; }
  footer .wordmark { height: 26px !important; }
}
.nav-links { display: flex; gap: 44px; align-items: center; list-style: none; padding: 0; margin: 0; }
.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--espresso);
  font-weight: 400;
  letter-spacing: 0.04em;
  position: relative;
  transition: color .25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--oxblood);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--oxblood); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-mobile-toggle { display: none; }

/* SECTION SCAFFOLD — more breathing room */
section { padding: 120px 0; position: relative; }
section.tight { padding: 72px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between; gap: 32px;
  margin-bottom: 56px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line-soft);
}
.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.024em;
}
.section-head h2 em { font-style: italic; color: var(--oxblood-dark); font-weight: 400; }
.section-head .lead { font-size: 15px; color: var(--espresso-2); max-width: 420px; line-height: 1.6; }

/* GENERIC TYPE */
h1.display, h2.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
h1.display em, h2.display em {
  font-style: italic;
  color: var(--oxblood-dark);
  font-weight: 500;
}
.lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--espresso-2);
}

/* BADGES + PILLS */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 12px;
  border-radius: 999px;
  background: var(--bone-2);
  font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--espresso);
}
.badge.oxblood { background: var(--oxblood); color: var(--bone); }
.badge.outline { background: transparent; border: 1px solid var(--line); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oxblood); }

/* DISCLAIMER ROW */
.disclaimer-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(36,28,25,.55);
}
.disclaimer-row svg { flex-shrink: 0; margin-top: 2px; color: rgba(36,28,25,.5); }

/* GENERIC CARDS — restrained, editorial */
.card {
  background: var(--ivory);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: background .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { background: var(--card-warm); border-color: rgba(230,57,70,.10); }

/* SCORE BAR */
.score-row { display: flex; flex-direction: column; gap: 6px; }
.score-row .lbl-row { display: flex; justify-content: space-between; font-size: 13px; }
.score-row .lbl { color: var(--espresso); font-weight: 500; }
.score-row .val { color: var(--espresso-2); font-variant-numeric: tabular-nums; }
.score-track { height: 4px; background: var(--bone-3); border-radius: 999px; overflow: hidden; }
.score-fill { height: 100%; background: var(--oxblood); border-radius: 999px; }
.score-fill.iron { background: var(--iron-glow); }
.score-fill.clay { background: var(--clay); }

/* FOOTER */
footer {
  background: var(--oxblood);
  color: var(--ivory);
  border-top: 1px solid var(--oxblood-dark);
  padding: 80px 0 40px;
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr) 1.2fr;
  gap: 32px;
  margin-bottom: 56px;
}
.footer-brand .wordmark { display: block; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.72); max-width: 240px; line-height: 1.55; }
.footer-col h5 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
  font-size: 13.5px;
  color: rgba(255,255,255,.82);
  transition: color .2s var(--ease), transform .2s var(--ease);
  display: inline-block;
}
.footer-col a:hover { color: var(--ivory); transform: translateX(2px); }
.footer-legal {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.16);
  font-size: 12px; color: rgba(255,255,255,.6);
}
.footer-legal a { color: rgba(255,255,255,.7); }
.footer-legal a:hover { color: var(--ivory); }
.footer-socials { display: flex; gap: 10px; align-items: center; }
.footer-socials a {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.footer-socials a:hover {
  color: var(--oxblood);
  background: var(--ivory);
  border-color: var(--ivory);
}
.footer-socials svg { width: 15px; height: 15px; }

/* MOBILE STICKY CTA — appears at 40% scroll on mobile only */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: rgba(247, 242, 236, 0.96);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-top: 1px solid var(--line-warm);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(230,57,70,.10);
}
.mobile-sticky-cta.is-visible { display: block; }
.mobile-sticky-cta .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 600px; margin: 0 auto;
}
.mobile-sticky-cta .label {
  font-size: 12.5px; color: var(--espresso); font-weight: 500; line-height: 1.3;
  display: flex; flex-direction: column;
}
.mobile-sticky-cta .label .eyebrow {
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--rust); font-weight: 600; margin-bottom: 2px;
}
.mobile-sticky-cta .btn { height: 42px; padding: 0 18px; font-size: 13.5px; }
@media (min-width: 981px) { .mobile-sticky-cta { display: none !important; } }

/* MOBILE — shared chrome */
@media (max-width: 980px) {
  .container, .container-narrow { padding: 0 22px; }
  .nav-links, .nav-right .icon-btn { display: none; }
  .nav-mobile-toggle { display: inline-flex; }
  .nav-right .btn-primary { display: none; }
  .nav-inner { height: 64px; }
  section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; gap: 16px; align-items: flex-start; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   MINI-REPORT HERO FRAME (biomarker pages)
   Used at the top of every /biomarkers/*.html page.
   ============================================ */
.bm-hero { padding: 36px 0 72px; }
.bm-report {
  background: var(--ivory);
  border: 1px solid var(--line-warm);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 30px 80px -20px rgba(36,28,25,.18),
    0 60px 120px -40px rgba(230,57,70,.10);
  overflow: hidden;
  position: relative;
  transform: rotate(-0.15deg);
}
.bm-report::before {
  content: ""; position: absolute;
  inset: 0 0 auto 0; height: 4px;
  background: var(--oxblood);
}
.bm-report-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 36px;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.5), transparent);
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.bm-report-head .mast { color: var(--oxblood); font-weight: 500; }
.bm-report-head .meta { color: var(--taupe); letter-spacing: 0.08em; }
.bm-report-head .meta strong { color: var(--charcoal); font-weight: 500; }
.bm-report-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.bm-report-left {
  padding: 48px 44px 40px;
  border-right: 1px solid var(--line-soft);
}
.bm-report-right {
  padding: 48px 44px 40px;
  background: rgba(230,57,70,.025);
}
.bm-marker-name {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 14px;
  font-weight: 500;
}
.bm-value {
  font-family: var(--font-display);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(96px, 11vw, 156px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--charcoal);
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 4px;
}
.bm-value small {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 18px;
  font-weight: 400;
  color: var(--taupe);
  margin-left: 8px;
  letter-spacing: 0;
}
.bm-flag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 16px;
}
.bm-flag::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .85;
}
.bm-flag.low      { background: var(--oxblood); color: var(--ivory); }
.bm-flag.borderline { background: rgba(216,161,93,.15); color: #9C6A2E; border: 1px solid rgba(216,161,93,.32); }
.bm-flag.optimal  { background: rgba(96,128,84,.12); color: #5C7344; border: 1px solid rgba(96,128,84,.28); }
.bm-flag.high     { background: var(--oxblood); color: var(--ivory); }
.bm-range { margin-top: 40px; }
.bm-range-bar {
  position: relative;
  height: 6px;
  background: var(--bone-2);
  border-radius: 999px;
}
.bm-range-fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--oxblood), rgba(216,161,93,.7) 50%, rgba(96,128,84,.6));
  opacity: .42;
}
.bm-range-dot {
  position: absolute;
  top: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--oxblood);
  border: 2px solid var(--ivory);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(36,28,25,.25);
}
.bm-range-dot.borderline { background: #C58B45; }
.bm-range-dot.optimal { background: #6E8A55; }
.bm-range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 10.5px;
  color: var(--taupe);
  letter-spacing: 0.06em;
}
.bm-range-labels span strong { color: var(--charcoal); font-weight: 500; }
.bm-ranges-key {
  margin-top: 18px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 11px;
}
.bm-ranges-key .pill {
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.bm-ranges-key .pill.lab {
  background: rgba(184,169,154,.18);
  color: var(--taupe);
}
.bm-ranges-key .pill.heme {
  background: rgba(230,57,70,.10);
  color: var(--oxblood);
  border: 1px solid rgba(230,57,70,.2);
  font-weight: 500;
}
.bm-card-label {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 14px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.bm-card-label::before {
  content: ""; width: 24px; height: 1px; background: var(--oxblood);
}
.bm-translation {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--charcoal);
  margin-bottom: 32px;
}
.bm-translation em { font-style: italic; color: var(--oxblood); }
.bm-questions ol {
  list-style: none;
  counter-reset: q;
  padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.bm-questions li {
  counter-increment: q;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--charcoal);
}
.bm-questions li::before {
  content: counter(q, decimal-leading-zero);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--oxblood);
  line-height: 1.1;
  min-width: 30px;
  letter-spacing: -0.02em;
}
.bm-report-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  background: var(--bone-2);
  border-top: 1px solid var(--line-warm);
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--taupe);
  gap: 16px;
  flex-wrap: wrap;
}
.bm-report-foot strong { color: var(--charcoal); font-weight: 500; }
.bm-report-foot a { color: var(--oxblood); }
@media (max-width: 980px) {
  .bm-report-body { grid-template-columns: 1fr; }
  .bm-report-left { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 32px 24px 28px; }
  .bm-report-right { padding: 32px 24px 28px; }
  .bm-report-head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 22px; }
  .bm-report-foot { flex-direction: column; align-items: flex-start; padding: 14px 22px; gap: 6px; }
  .bm-report { transform: none; border-radius: 4px; }
}

/* ============================================
   SYMPTOM BRIEF — reuses .bm-report frame
   but with symptom-specific elements
   ============================================ */
.sm-headline {
  font-family: var(--font-display);
  font-weight: 200;
  font-style: italic;
  font-size: clamp(56px, 7.5vw, 96px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  color: var(--charcoal);
  display: block;
  margin-bottom: 18px;
}
.sm-headline em {
  font-style: italic;
  color: var(--oxblood);
}
.sm-subline {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.5;
  color: var(--taupe);
  margin-bottom: 32px;
  max-width: 380px;
}
.sm-constellation-label {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 14px;
  font-weight: 500;
  display: flex; align-items: center; gap: 10px;
}
.sm-constellation-label::before {
  content: ""; width: 24px; height: 1px; background: var(--oxblood);
}
.sm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sm-pills a {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--charcoal);
  background: rgba(184,169,154,.14);
  border: 1px solid var(--line-warm);
  padding: 7px 13px;
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  text-decoration: none;
}
.sm-pills a:hover {
  background: var(--oxblood);
  color: var(--ivory);
  border-color: var(--oxblood);
}
