/* ===========================================================================
 * Nordic Biolabs advertorials — shared styles. Mobile-first (designed at
 * 390px), scales to desktop. Editorial, fast, accessible.
 * ========================================================================= */
:root {
  --ink: #111111;
  --body: #252525;
  --muted: #626262;
  --line: #d7d2c8;
  --bg: #fffdf8;
  --bg-soft: #f4efe5;
  --paper: #ffffff;
  --accentA: #0c5b51;
  --accentA-d: #083f38;
  --accentB: #8d2f16;
  --accentB-d: #65200e;
  --cta: #ffd84d;
  --cta-d: #ffc400;
  --cta-text: #111111;
  --maxw: 760px;
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.66;
  /* room for sticky mobile CTA bar */
  padding-bottom: 84px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accentA-d); }

/* ---- Top advertorial disclosure bar ---- */
.ad-bar {
  background: #111;
  border-bottom: 1px solid #111;
  color: #f3eee4;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}
.ad-bar strong { color: #fff; font-weight: 800; }

/* ---- Masthead ---- */
.masthead {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 16px 14px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
}
.masthead .brand { font-family: var(--serif); font-weight: 800; letter-spacing: 0; color: var(--ink); font-size: 30px; line-height: 1; }
.masthead .tagline { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---- Article shell ---- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }
article { max-width: var(--maxw); margin: 0 auto; padding: 0 16px 40px; background: var(--paper); }

/* ---- Hero ---- */
.hero { margin: 0 0 22px; }
.hero .kicker {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accentA-d); margin: 22px 0 10px;
}
.angle-b .hero .kicker { color: var(--accentB-d); }
.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.07;
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.hero .dek { font-size: 19px; color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.hero .byline {
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line);
  padding-top: 12px; margin-top: 4px;
}
.hero-media {
  width: 100%; border-radius: var(--radius);
  overflow: hidden; margin: 18px 0 10px; background: var(--bg-soft);
  border: 1px solid var(--line);
}
.hero-media img { width: 100%; height: auto; object-fit: contain; }
/* Gradient fallback hero (when no lifestyle photo present) */
.hero-media.gradient {
  background:
    radial-gradient(120% 90% at 15% 12%, rgba(255,255,255,0.16), transparent 55%),
    linear-gradient(135deg, var(--accentA-d), var(--navy) 70%);
  position: relative;
}
.angle-b .hero-media.gradient {
  background:
    radial-gradient(120% 90% at 15% 12%, rgba(255,255,255,0.16), transparent 55%),
    linear-gradient(135deg, var(--accentB-d), #5a2a30 75%);
}
.hero-media.gradient::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.4px);
  background-size: 16px 16px;
  mix-blend-mode: screen;
}
.hero-cap { display: none; }

.top-proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0 4px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.top-proof div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.top-proof strong { color: var(--ink); text-transform: uppercase; letter-spacing: .04em; }
.top-proof span { color: var(--muted); text-align: right; }

/* ---- Body copy ---- */
.prose p { margin: 0 0 18px; }
.prose > p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 62px;
  line-height: .84;
  padding-right: 8px;
  color: var(--ink);
}
.prose h2 {
  font-family: var(--serif);
  font-size: 23px; line-height: 1.25; color: var(--ink);
  margin: 30px 0 12px;
}
.prose a { color: var(--accentA-d); text-underline-offset: 2px; }
.prose .ref { font-size: 0.86em; white-space: nowrap; }
.ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  color: var(--accentA-d);
  background: #f8f3e8;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 7px;
  text-decoration: none;
  box-shadow: none;
}
.ref-chip::after { content: "↗"; font-size: 0.85em; }
.ref-chip:visited { color: var(--accentA-d); }
.ref-note {
  font-size: 10px;
  line-height: 0;
  color: var(--muted);
  font-weight: 700;
  margin-left: 2px;
  vertical-align: super;
  white-space: nowrap;
}

/* ---- CTAs ---- */
.cta-block { margin: 26px 0; text-align: center; position: relative; z-index: 2; }
.cta {
  display: block;
  background: var(--cta);
  color: var(--cta-text);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
  padding: 16px 26px;
  border-radius: 6px;
  box-shadow: 0 4px 0 #111111;
  border: 2px solid #000;
  transition: background 0.15s ease, transform 0.05s ease;
  cursor: pointer;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  text-shadow: none;
  animation: cta-breathe 2.7s ease-in-out infinite;
}
.cta:visited { color: var(--cta-text); }
.cta:hover { background: var(--cta-d); color: var(--cta-text); }
.cta:active { transform: translateY(1px); }
.cta-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 10px; }

.proof-block {
  margin: 30px -2px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
}
.proof-copy .eyebrow,
.offer .eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accentB-d);
  margin: 0 0 6px;
}
.proof-copy h2 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.12;
  margin: 0 0 8px;
  color: var(--ink);
}
.proof-copy p { font-size: 16px; color: var(--body); margin-bottom: 14px; }
.result-grid {
  display: grid;
  gap: 12px;
  align-items: start;
}
.result-grid figure,
.proof-media-pair figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  align-self: start;
  height: auto;
}
.result-grid img,
.proof-media-pair img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.result-grid figcaption,
.proof-media-pair figcaption {
  font-size: 12px;
  color: #333;
  padding: 8px 10px;
  background: #fff;
  font-weight: 700;
}
.proof-media-pair {
  display: grid;
  gap: 12px;
  align-items: start;
}

/* ---- Science proof modules ---- */
.science-proof {
  display: grid;
  gap: 12px;
  margin: 22px 0 26px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7ef;
  box-shadow: none;
  position: relative;
  z-index: 1;
}
.science-copy .eyebrow,
.refs-head .eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accentA-d);
  margin: 0 0 5px;
}
.science-copy h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.14;
  margin: 0 0 7px;
}
.science-copy p {
  font-size: 15px;
  line-height: 1.45;
  color: #333;
  margin: 0 0 10px;
}
.science-visual {
  min-height: 86px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #fffdf8;
  border: 1px solid var(--line);
  overflow: hidden;
}
.science-cycle {
  display: flex;
  align-items: center;
  width: 92%;
  gap: 6px;
}
.science-cycle .node {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid #222;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
  color: #111;
}
.science-cycle .dormant { background: #ffe8bd; }
.science-cycle .active { background: #d9f2de; animation: pop-node 2.6s ease-in-out infinite; }
.science-cycle .line {
  flex: 1 1 22px;
  height: 3px;
  background: #111;
  position: relative;
}
.science-cycle .line::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border-left: 9px solid #111;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.science-bars {
  width: 68%;
  height: 72px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 16px;
  border-bottom: 3px solid #111;
}
.science-bars span {
  width: 28px;
  height: var(--h);
  background: #0c5b51;
  border: 2px solid #111;
  border-bottom: 0;
  animation: rise-bar 2.8s ease-in-out infinite;
}
.science-bars span:nth-child(2) { animation-delay: .18s; background: #ffd84d; }
.science-bars span:nth-child(3) { animation-delay: .36s; background: #8d2f16; }
.science-follicle {
  position: relative;
  width: 150px;
  height: 78px;
}
.science-follicle .root {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 54px;
  height: 32px;
  transform: translateX(-50%);
  background: #ffd84d;
  border: 2px solid #111;
  border-radius: 50% 50% 42% 42%;
}
.science-follicle .strand {
  position: absolute;
  bottom: 36px;
  width: 6px;
  height: 46px;
  background: #111;
  border-radius: 999px 999px 0 0;
  transform-origin: bottom center;
  animation: strand-sway 2.6s ease-in-out infinite;
}
.science-follicle .s1 { left: 56px; transform: rotate(-12deg); }
.science-follicle .s2 { left: 72px; height: 70px; }
.science-follicle .s3 { left: 88px; transform: rotate(13deg); animation-delay: .25s; }
.science-compare {
  display: grid;
  grid-template-columns: 1fr 46px 1fr;
  align-items: center;
  gap: 8px;
  width: 92%;
  font-weight: 900;
  text-align: center;
  color: #111;
}
.science-compare span {
  border: 2px solid #111;
  background: #fff;
  border-radius: 8px;
  padding: 14px 8px;
}
.science-compare strong {
  height: 3px;
  background: #111;
  position: relative;
}
.science-compare strong::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border-left: 9px solid #111;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.study-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
}
.study-links span { font-weight: 800; color: var(--muted); }
.study-source-link {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  border: 0;
  background: transparent;
  padding: 0;
}
.study-source-link:visited { color: var(--muted); }

.image-break {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
}
.image-break figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(0,0,0,0.06);
}
.image-break img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}
.image-break figcaption {
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 800;
  color: #333;
}

/* ---- Offer box ---- */
.offer {
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fff8df;
  padding: 22px 20px;
  margin: 30px 0;
  box-shadow: 0 6px 0 rgba(0,0,0,0.08);
}
.offer h3 { font-family: var(--serif); font-size: 21px; color: var(--ink); margin: 0 0 14px; line-height: 1.25; }
.offer-lead { font-size: 15px; line-height: 1.45; color: var(--body); margin: -4px 0 14px; }
.offer-grid { display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.offer-figure {
  flex: 0 0 auto; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 10px; overflow: visible;
  background: #fff; border: 1px solid var(--line);
}
.offer-figure img { width: 100%; height: auto; object-fit: contain; }
.offer-body { flex: 1 1 auto; min-width: 0; }
.tiers { list-style: none; margin: 0 0 14px; padding: 0; }
.tiers li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 16px;
}
.tiers li:last-child { border-bottom: 0; }
.tiers .t-name { color: var(--ink); font-weight: 600; }
.tiers .t-note { color: var(--muted); font-size: 13px; display: block; font-weight: 400; }
.tiers .t-price { font-weight: 800; color: var(--ink); white-space: nowrap; }
.tiers li.best .t-name::after {
  content: "Best value"; display: inline-block; margin-left: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: #fff; background: var(--accentA-d); padding: 2px 7px; border-radius: 999px; vertical-align: middle;
}
.angle-b .tiers li.best .t-name::after { background: var(--accentB-d); }
.guarantee {
  font-size: 14px; color: var(--body); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 4px 0 16px;
}
.guarantee strong { color: var(--ink); }

/* ---- Disclaimer / footer ---- */
.disclaimer {
  font-size: 13px; line-height: 1.55; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px; margin: 26px 0 10px;
}
.disclaimer p { margin: 0 0 8px; }
.disclaimer p:last-child { margin: 0; }
.refs { margin: 20px 0 0; }
.refs {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 12px;
  color: var(--muted);
}
.refs summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}
.refs p {
  margin: 8px 0 8px;
  font-size: 12px;
  line-height: 1.4;
}
.refs ol {
  margin: 8px 0 0;
  padding-left: 18px;
}
.refs li { margin: 0 0 5px; }
.refs a { color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.refs strong {
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 26px; padding: 22px 0 8px;
  font-size: 12px; color: var(--muted);
}
.site-footer .row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 10px; }
.site-footer a { color: var(--muted); }

/* ---- Sticky mobile CTA bar ---- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255,253,248,0.98);
  backdrop-filter: saturate(140%) blur(6px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(11,42,74,0.10);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
}
.sticky-cta .sc-text { flex: 1 1 auto; min-width: 0; }
.sticky-cta .sc-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.sticky-cta .sc-sub { font-size: 11px; color: var(--muted); }
.sticky-cta .cta {
  flex: 0 0 auto;
  width: auto;
  min-width: 128px;
  font-size: 15px;
  padding: 12px 16px;
  box-shadow: none;
  margin: 0;
}

/* ---- Index page ---- */
.index-head { text-align: center; padding: 28px 0 6px; }
.index-head h1 { font-family: var(--serif); color: var(--ink); font-size: 26px; margin: 0 0 6px; }
.index-head p { color: var(--muted); margin: 0; }
.cards { display: grid; gap: 14px; padding: 22px 0 40px; }
.card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  transition: box-shadow 0.15s ease, transform 0.05s ease;
}
.card:hover { box-shadow: 0 6px 18px rgba(11,42,74,0.10); }
.card .tag {
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accentA-d);
}
.card.b .tag { color: var(--accentB-d); }
.card h2 { font-family: var(--serif); font-size: 19px; color: var(--ink); margin: 6px 0 6px; line-height: 1.25; }
.card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---- Desktop ---- */
@media (min-width: 768px) {
  body { font-size: 19px; padding-bottom: 0; }
  .hero h1 { font-size: 48px; }
  .hero .dek { font-size: 21px; }
  .prose h2 { font-size: 27px; }
  .sticky-cta { display: none; } /* desktop relies on inline CTAs */
  .offer-grid { flex-direction: row; }
  .offer-figure { flex: 0 0 220px; width: 220px; max-width: 220px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .top-proof { grid-template-columns: 1fr 1fr 1fr; }
  .top-proof div { display: block; }
  .top-proof span { display: block; text-align: left; margin-top: 2px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .proof-media-pair { grid-template-columns: 1fr 1fr; }
  .science-proof { grid-template-columns: 230px 1fr; align-items: center; }
  .image-break { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta, .card { transition: none; animation: none; }
  .science-cycle .active,
  .science-bars span,
  .science-follicle .strand {
    animation: none;
  }
}

@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 4px 0 #111111; }
  50% { box-shadow: 0 7px 0 #111111, 0 0 0 4px rgba(255,216,77,0.22); }
}
@keyframes pop-node {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes rise-bar {
  0%, 100% { transform: scaleY(.88); transform-origin: bottom; }
  50% { transform: scaleY(1.06); transform-origin: bottom; }
}
@keyframes strand-sway {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -4px; }
}
