/* ==========================================================================
   Pivotal Biolabs — Design tokens & base
   Palette: graphite/ink neutrals lifted from the vial cap + a single
   "verification gold" accent (the color of a certificate seal, not a UI hue).
   Type: Space Grotesk (display) / IBM Plex Sans (body) / IBM Plex Mono (data,
   batch codes, eyebrows) — a lab-report register, not a marketing one.
   ========================================================================== */

:root {
  /* Color */
  --ink: #000000;
  --graphite: #1a1c1f;
  --graphite-soft: #24272b;
  --steel: #8a9199;
  --steel-light: #c9cdd2;
  --paper: #f5f3ee;
  --paper-dim: #ebe8e1;
  --white: #ffffff;
  --gold: #b8873a;
  --gold-bright: #d6a856;
  --line-on-dark: rgba(255, 255, 255, 0.14);
  --line-on-light: rgba(11, 12, 14, 0.12);
  --text-body: #35383c;
  --text-muted: #6b6f74;

  /* Type */
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;

  --fs-h1: clamp(2.6rem, 4.4vw + 1rem, 4.7rem);
  --fs-h2: clamp(2rem, 2.6vw + 1rem, 3rem);
  --fs-h3: clamp(1.3rem, 1vw + 1rem, 1.7rem);
  --fs-lead: clamp(1.05rem, 0.4vw + 1rem, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --pad: clamp(20px, 4vw, 40px);
  --radius-card: 20px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); }

p { margin: 0; }

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad);
}
.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding-inline: var(--pad);
}

section { position: relative; }

/* Focus states — visible everywhere, no exceptions */
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Eyebrow / label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* Buttons */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: var(--graphite-soft); }

.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-bright); }

.btn-outline-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: var(--white); }

/* Border needs ~3:1 against the ink background to read as a control, so this
   is deliberately stronger than --line-on-dark (which is for hairline rules). */
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.42); }
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }

.btn-white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-white:hover { background: var(--paper-dim); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px var(--pad) 0;
}
.nav-pill {
  max-width: var(--container-wide);
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px 10px 20px;
  box-shadow: 0 10px 30px rgba(11, 12, 14, 0.06);
}
/* Brand lockup: vial mark + two-tone wordmark.
   Gold is reserved site-wide for verification signals, so the wordmark never
   uses it — the second word drops to steel instead. */
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.11em;
  white-space: nowrap;
}
.brand-name .bl { font-weight: 400; color: var(--steel); }
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 7px;
}
.brand-lg .brand-name { font-size: 1.05rem; }
@media (max-width: 420px) {
  .brand-name { font-size: 0.8rem; letter-spacing: 0.07em; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--text-body);
}
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 9px;   /* sits under the text, not the 44px hit area */
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.main-nav a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-on-light);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { background: var(--paper-dim); }

.cart-chip {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 8px 4px;
}
.cart-chip .badge {
  background: var(--ink); color: var(--white);
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}

.mobile-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-on-light);
  background: transparent;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.mobile-nav-toggle span, .mobile-nav-toggle span::before, .mobile-nav-toggle span::after {
  content: ""; display: block; width: 16px; height: 1.6px; background: var(--ink);
  position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.mobile-nav-toggle span::before { position: absolute; top: -5px; }
.mobile-nav-toggle span::after { position: absolute; top: 5px; }
.mobile-nav-toggle[aria-expanded="true"] span { background: transparent; }
.mobile-nav-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.mobile-nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav-panel {
  display: none;
  max-width: var(--container-wide);
  margin: 8px auto 0;
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--line-on-light);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(11, 12, 14, 0.08);
}
.mobile-nav-panel.open { display: block; }
.mobile-nav-panel ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav-panel a {
  display: block; padding: 14px 16px; border-radius: 12px;
  font-family: var(--font-display); font-weight: 600;
}
.mobile-nav-panel a:hover { background: var(--paper-dim); }
.mobile-nav-panel .mobile-cta { padding: 10px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
}
@media (max-width: 560px) {
  .icon-btn.search-icon { display: none; }
}

/* ==========================================================================
   Curved section divider (paper -> ink)
   ========================================================================== */
.curve-transition {
  display: block;
  width: 100%;
  height: clamp(40px, 6vw, 90px);
  margin-bottom: -1px;
}
.curve-transition path { fill: var(--ink); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--steel-light); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 30px; }
.footer-brand p { color: var(--steel); font-size: 0.92rem; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; font-size: 0.92rem; }
/* 44px rows instead of 12px gaps — same visual rhythm, thumb-sized targets. */
.footer-col ul li:not(.contact-line) > a { display: flex; align-items: center; min-height: 44px; }
.footer-col .contact-line { padding: 6px 0; }
.footer-col a:hover { color: var(--white); }
.footer-col .contact-line { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; }
.footer-col .contact-line svg { flex-shrink: 0; margin-top: 3px; color: var(--gold); }

.footer-bottom {
  padding: 28px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-bottom .copyright { font-size: 0.85rem; color: var(--steel); }
.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.7;
  color: #565a5f;
  max-width: 100ch;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Shared utility blocks used across pages (CTA band, page hero, cards)
   ========================================================================== */
.page-hero {
  background: var(--ink);
  color: var(--white);
  padding: 200px 0 90px;
  margin-top: -84px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--steel);
  margin-top: 14px;
}
/* Inline links in a text trail — WCAG's inline exception applies, but the
   padding still makes them easier to hit. */
.page-hero .breadcrumb a { display: inline-block; padding: 8px 2px; }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); }

.grid-field {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line-on-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
  opacity: 0.6;
}

.cta-band {
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); max-width: 20ch; margin: 0 auto; }
.cta-band p { color: var(--steel-light); max-width: 56ch; margin: 18px auto 0; font-size: var(--fs-lead); }
.cta-band .cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

.section { padding: clamp(56px, 8vw, 110px) 0; }
.section-tight { padding: clamp(36px, 5vw, 60px) 0; }

/* Curve dividers between ink / paper sections */
.curve-transition {
  display: block;
  width: 100%;
  height: clamp(36px, 5.5vw, 80px);
}
.curve-transition path { fill: var(--ink); }
.curve-transition.fill-paper path { fill: var(--paper); }
.curve-transition.flip { transform: rotate(180deg); }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.home-hero {
  background: var(--ink);
  color: var(--white);
  padding: 210px 0 0;
  margin-top: -84px;
  position: relative;
  overflow: hidden;
}
.home-hero .container-wide { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-bottom: 90px;
}
/* Sized so each sentence of the headline holds its own line at every width —
   measured against the longest line, "Trust the certificate." */
.hero-copy h1 {
  color: var(--white);
  margin-top: 18px;
  font-size: clamp(2.05rem, 4.6vw, 4.1rem);
}
.hero-copy .lead {
  color: var(--steel-light);
  font-size: var(--fs-lead);
  max-width: 46ch;
  margin-top: 22px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Hero signature: the Certificate of Analysis panel.
   The tagline is "don't trust the label, trust the certificate" — so the hero
   shows the certificate. The chromatogram is the lab's own output, drawn live.
   -------------------------------------------------------------------------- */
.hero-visual { position: relative; }

.coa-panel {
  position: relative;
  z-index: 1;
  margin: 0;
  background: #0f1012;
  border: 1px solid var(--line-on-dark);
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.coa-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-on-dark);
}
.coa-panel-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}
.coa-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  padding: 3px 9px;
}
.coa-panel-id { padding: 16px 0 4px; }
.coa-compound {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
}
.coa-compound span { color: var(--steel); font-weight: 400; }
.coa-batch {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-bright);
  margin-top: 5px;
  letter-spacing: 0.04em;
}

.coa-chart { margin: 10px 0 18px; }
.coa-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.coa-axis line { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; }
.coa-ticks text {
  fill: var(--steel);
  font-family: var(--font-mono);
  font-size: 7px;
  text-anchor: middle;
}
.coa-trace {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.coa-rows {
  margin: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-on-dark);
}
.coa-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.coa-rows dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.coa-rows dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel-light);
  text-align: right;
}

.coa-purity {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
}
.coa-purity-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
}
.coa-purity-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.coa-purity-val .pct { font-size: 0.5em; margin-left: 2px; }

/* One orchestrated page-load moment: the trace draws, then the number lands. */
@media (prefers-reduced-motion: no-preference) {
  .coa-panel[data-coa-ready] .coa-trace {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: coa-draw 1.5s cubic-bezier(0.33, 0.9, 0.4, 1) 0.25s forwards;
  }
}
@keyframes coa-draw { to { stroke-dashoffset: 0; } }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 60px; }
  .home-hero { padding-top: 170px; }
  .coa-panel { max-width: 460px; }
}
@media (max-width: 560px) {
  .home-hero { padding-top: 150px; }
  .coa-rows > div { flex-direction: column; align-items: flex-start; gap: 3px; }
  .coa-rows dd { text-align: left; }
}

/* Trust strip */
.trust-strip { padding: 46px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.trust-item h3 { font-size: 1rem; margin-bottom: 4px; }
.trust-item p { font-size: 0.88rem; color: var(--text-muted); }
@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .trust-grid { grid-template-columns: 1fr; }
}

/* Spotlight — statement left, support copy right, then the vial label band. */
.spotlight { background: var(--paper-dim); }
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
}
.spotlight-copy .statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 16px;
}
.spotlight-copy .statement .accent { color: var(--gold); }
.spotlight-grid p.support { color: var(--text-muted); max-width: 46ch; }

/* Three real SKUs as whole product shots — same framing as the shop cards, so
   the vial reads as a vial rather than a cropped strip. */
.label-band { margin: clamp(34px, 5vw, 56px) 0 0; }
.label-band-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 20px);
}
.label-vial {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  border: 1px solid var(--line-on-light);
  background: #8ba6c4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.label-vial:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(11, 12, 14, 0.2);
}
/* Direct child only — the vial figures nested inside have their own
   figcaption (.vp-label) that must not inherit this. */
.label-band > figcaption {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 54ch;
}
@media (max-width: 900px) {
  .spotlight-grid { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 560px) {
  /* Three stacked would be a wall of vials, and three across would make the
     printed label unreadable — so swipe through them instead. */
  .label-band-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .label-band-row::-webkit-scrollbar { display: none; }
  .label-vial { flex: 0 0 62%; scroll-snap-align: center; }
}

/* Verification process (asymmetric text + stacked cards) */
.process-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
.process-copy .lead { margin-top: 18px; color: var(--text-muted); max-width: 42ch; }
.process-copy .btn { margin-top: 30px; }
.process-cards { display: grid; gap: 20px; }
.process-card {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: 30px 32px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.process-card .step {
  font-family: var(--font-mono);
  color: var(--gold);
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 4px;
}
.process-card h3 { color: var(--white); font-size: 1.15rem; }
.process-card p { color: var(--steel-light); font-size: 0.92rem; margin-top: 8px; }
@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .process-card { flex-direction: column; gap: 8px; padding: 26px; }
}

/* About card */
.about-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 72px);
  position: relative;
  overflow: hidden;
}
.about-card .container-inner { position: relative; z-index: 2; max-width: 62ch; }
.about-card h2 { color: var(--white); }
.about-card p { color: var(--steel-light); margin-top: 18px; font-size: var(--fs-lead); }
.about-card .btn { margin-top: 30px; }

/* FAQ preview */
.faq-preview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
}
.faq-preview-media { border-radius: 20px; overflow: hidden; aspect-ratio: 4/5; }
.faq-preview-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .faq-preview-grid { grid-template-columns: 1fr; }
  .faq-preview-media { order: -1; max-width: 340px; margin: 0 auto; }
}

/* Accordion (shared: home preview, FAQ page, COA rows) */
.accordion-item {
  border-bottom: 1px solid var(--line-on-light);
}
.accordion-item:first-child { border-top: 1px solid var(--line-on-light); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.accordion-item.is-open .accordion-trigger { color: var(--gold); }
.accordion-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.accordion-icon::before, .accordion-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.accordion-icon::before { width: 10px; height: 1.6px; }
.accordion-icon::after { width: 1.6px; height: 10px; transition: transform 0.2s ease; }
.accordion-item.is-open .accordion-icon::after { transform: scaleY(0); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel-inner { padding: 0 30px 24px 4px; color: var(--text-muted); font-size: 0.96rem; max-width: 68ch; }

/* Molecule / network decoration (SVG dots+lines, reused across pages) */
.molecule-field circle { fill: var(--steel); }
.molecule-field line, .molecule-field path { stroke: var(--steel); stroke-width: 1; }
.molecule-field.on-light circle { fill: var(--steel); opacity: 0.5; }
.molecule-field.on-light line { stroke: var(--steel); opacity: 0.35; }

/* ==========================================================================
   Shop
   ========================================================================== */
.shop-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line-on-light);
  margin-bottom: 36px;
}
.shop-header-row .results-count { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.sort-select {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-light);
  background: var(--white);
  color: var(--ink);
}

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.filter-panel { display: flex; flex-direction: column; gap: 32px; }
.filter-search { display: flex; gap: 8px; }
.filter-search input {
  flex: 1; min-width: 0;
  padding: 11px 16px;
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.filter-group h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.filter-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.filter-group li { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 0.9rem; color: var(--text-body); }
.filter-group .count { color: var(--steel); font-family: var(--font-mono); font-size: 0.8rem; }
.filter-group a.cat-link {
  display: block;
  padding: 4px 0;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--text-body);
}
.filter-group a.cat-link:hover { color: var(--gold); }
.filter-group a.cat-link.active { color: var(--gold); font-weight: 600; }

.trust-line {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #131417;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.product-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
}
.product-thumb {
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #8ba6c4;
  position: relative;
  overflow: hidden;
}

/* Photoreal vial.
   The figure keeps the render's own 1024x1536 ratio and fills its parent's
   width; the parent crops top and bottom. That way every overlay below can be
   expressed as a straight percentage of the source image, whatever shape the
   parent happens to be (card thumb, detail panel, 60px cart thumb). */
.vial-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1024 / 1536;
  flex-shrink: 0;
  container-type: inline-size;
  margin: 0;
}
.vp-img { width: 100%; height: 100%; display: block; object-fit: cover; }
.vp-label {
  position: absolute;
  left: 29.59%;
  width: 40.43%;
  top: 58.92%;
  height: 9.44%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6cqi;
  text-align: center;
  line-height: 1;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  color: #0d0f12;
  /* Repaints the name/dose area of the printed label, sampled from the render's
     own paper shading so the patch is invisible against the rest of the label. */
  background-image: linear-gradient(90deg,
    rgb(200,219,240) 0%, rgb(202,221,242) 7%, rgb(180,201,228) 23%,
    rgb(179,200,225) 40%, rgb(199,216,237) 50%, rgb(219,233,249) 62%,
    rgb(229,241,253) 79%, rgb(205,225,243) 96%, rgb(200,220,238) 100%);
}
.vp-name { font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; }
.vp-dose { font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }

/* Brand band. The render has the lockup printed on it with a small vial icon;
   this repaints the whole band so the lettering can stand alone, centred, with
   no icon. The horizontal gradient is sampled from the render's own cylindrical
   shading — glass highlight at each edge — so the patch sits flush with the
   glass either side. */
.vp-brand {
  position: absolute;
  left: 31.05%;
  width: 38.87%;
  top: 42.77%;
  height: 15.04%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: linear-gradient(90deg,
    rgb(75,92,116) 0%, rgb(36,43,54) 8%, rgb(34,41,55) 17%, rgb(8,9,15) 25%,
    rgb(5,7,11) 33%, rgb(6,10,15) 42%, rgb(11,14,22) 50%, rgb(27,35,46) 58%,
    rgb(69,77,95) 67%, rgb(62,71,86) 75%, rgb(23,30,43) 83%, rgb(10,16,25) 92%,
    rgb(45,71,106) 100%);
}
.vp-brand-name {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  font-size: 4.2cqi;
  line-height: 1.16;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
  white-space: nowrap;
}

/* Cart and order-summary thumbs are ~60px wide: the band still has to cover the
   printed icon, but nothing inside it would be legible at that size. */
.co-item-thumb .vp-brand-name { display: none; }
.purity-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--white);
  background: rgba(8, 8, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
}
.quick-view {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, 8px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(11, 12, 14, 0.86);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.product-card:hover .quick-view,
.product-link:focus-visible .quick-view {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (hover: none) { .quick-view { display: none; } }

/* Realistic vial illustration (gradient glass + metallic cap + printed label) */
.vial-art { display: block; }
.vial-brand-text { fill: #ffffff; font-family: var(--font-mono); font-size: 4.6px; letter-spacing: 0.15px; font-weight: 600; }
.vial-name-text { fill: var(--ink); font-family: var(--font-mono); font-weight: 700; }
.vial-sub-text { fill: var(--steel); font-family: var(--font-mono); font-size: 6.5px; letter-spacing: 0.5px; }
.vial-dose-text { fill: var(--gold); font-family: var(--font-mono); font-size: 9px; font-weight: 700; }
.vial-caption-text { fill: var(--steel); font-family: var(--font-mono); font-size: 4.3px; }
.product-link { display: block; color: inherit; }
.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 16px 18px 0;
  margin: 0;
}
.product-link h3 {
  font-size: 1.02rem;
  color: var(--white);
  padding: 6px 18px 0;
  transition: color 0.15s ease;
}
.product-card:hover .product-link h3 { color: var(--gold-bright); }
.product-body { padding: 10px 18px 18px; }
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.product-price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--white);
  margin: 0;
}
.stock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc74;
  box-shadow: 0 0 6px rgba(61, 220, 116, 0.7);
  flex-shrink: 0;
}
.product-controls { display: flex; flex-direction: column; gap: 8px; }
.product-card .dose-select {
  background: #1d1f24;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.14);
}
.dose-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-on-light);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: var(--white);
  color: var(--ink);
}
.add-to-cart-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.85rem;
  min-height: auto;
}
.add-to-cart-btn:disabled { opacity: 0.7; cursor: default; }

@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-panel { flex-direction: row; flex-wrap: wrap; gap: 24px; }
  .filter-group { min-width: 45%; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .filter-group { min-width: 100%; }
}

/* ==========================================================================
   FAQ page
   ========================================================================== */
.faq-intro { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
.faq-intro p { color: var(--text-muted); margin-top: 14px; font-size: var(--fs-lead); }
.faq-list-wrap { max-width: 860px; margin: 0 auto; }

/* ==========================================================================
   COA Library page
   ========================================================================== */
.coa-search-block { max-width: 640px; margin: 0 auto 20px; text-align: center; }
.coa-search-block form {
  display: flex; gap: 10px; margin-top: 24px;
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-light);
}
.coa-search-block input {
  flex: 1; min-width: 0; border: none; background: transparent;
  padding: 10px 16px; font-family: var(--font-mono); font-size: 0.95rem;
}
.coa-search-block input:focus { outline: none; }
.coa-search-block input:focus-visible { outline: 2px solid var(--gold); border-radius: var(--radius-pill); }
.coa-filter { max-width: 640px; margin: 0 auto 56px; }
.coa-filter input {
  width: 100%;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-on-light);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.coa-group { margin-bottom: 44px; }
.coa-group h3 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-on-light);
}
.coa-row-list { display: flex; flex-direction: column; }
.coa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line-on-light);
  font-size: 0.95rem;
}
.coa-row:hover { color: var(--gold); cursor: pointer; }
.coa-row .chev { color: var(--steel); flex-shrink: 0; }
.coa-row-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.coa-batch-code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--steel); }
.coa-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.cart-chip {
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius-pill);
  background: transparent;
  cursor: pointer;
}
.cart-chip:hover { background: var(--paper-dim); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 14, 0.45);
  z-index: 200;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--white);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -20px 0 50px rgba(11, 12, 14, 0.2);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--line-on-light);
}
.cart-drawer-header h2 { font-size: 1.2rem; }
.cart-close {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-on-light);
  background: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.cart-close:hover { background: var(--paper-dim); }

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cart-empty { color: var(--text-muted); font-size: 0.92rem; padding: 30px 0; text-align: center; }

.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-on-light);
}
.cart-line-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.cart-line-dose { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.cart-line-qty { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.cart-line-qty input {
  width: 52px;
  padding: 6px 8px;
  border: 1px solid var(--line-on-light);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.cart-line-qty button {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.cart-line-qty button:hover { color: var(--ink); }
.cart-line-price { font-family: var(--font-mono); font-size: 0.9rem; white-space: nowrap; }

.cart-drawer-footer {
  padding: 20px 24px 26px;
  border-top: 1px solid var(--line-on-light);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.cart-note { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 560px) {
  .cart-drawer { width: 100%; }
}

/* ==========================================================================
   Product detail page
   ========================================================================== */
.pd-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}
.pd-visual {
  position: relative;
  background: #8ba6c4;
  border: 1px solid var(--line-on-light);
  border-radius: 20px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pd-visual .molecule-field { display: none; }

.pd-info {
  background: var(--white);
  border: 1px solid var(--line-on-light);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 36px);
}
.pd-info .eyebrow { margin-bottom: 14px; }
.pd-price { font-family: var(--font-mono); font-size: 1.3rem; color: var(--gold); margin-top: 10px; }
.pd-lead { color: var(--text-muted); margin-top: 20px; max-width: 56ch; font-size: 1.02rem; }

.pd-controls {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  max-width: 420px;
}
.pd-controls .dose-select { flex: 1; padding: 14px 16px; font-size: 0.92rem; border-radius: 12px; }
.pd-controls .add-to-cart-btn { flex-shrink: 0; padding: 14px 26px; font-size: 0.95rem; }

.pd-trust {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-trust li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-muted); }
.pd-trust svg { color: var(--gold); flex-shrink: 0; }

.pd-coa-link {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
}
.pd-coa-link:hover { color: var(--gold); border-color: var(--gold); }

.related-heading { margin-bottom: 28px; }

@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; }
  .pd-visual { width: 100%; max-width: 380px; margin: 0 auto; }
}

/* ==========================================================================
   Dark shop section (matches glowing-vial card reference)
   ========================================================================== */
.shop-dark { background: var(--ink); padding-top: clamp(28px, 4vw, 48px); }
.shop-dark .shop-header-row { border-color: rgba(255, 255, 255, 0.12); }
.shop-dark .results-count { color: var(--steel); }
.shop-dark .sort-select {
  background: #17181b;
  color: var(--steel-light);
  border-color: rgba(255, 255, 255, 0.14);
}
.shop-dark .filter-group h4 { color: var(--white); }
.shop-dark .filter-group a.cat-link { color: var(--steel-light); }
.shop-dark .filter-group a.cat-link:hover,
.shop-dark .filter-group a.cat-link.active { color: var(--gold-bright); }
.shop-dark .filter-group .count { color: #6b6f74; }
.shop-dark .filter-search input {
  background: #17181b;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
}
.shop-dark .filter-search input::placeholder { color: #6b6f74; }
.shop-dark .trust-line { color: var(--steel); border-color: rgba(255, 255, 255, 0.12); }

/* ==========================================================================
   Scroll-reveal animations
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }
  .reveal.in-view {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 560px) {
  .pd-controls { flex-direction: column; max-width: none; }
}

/* ==========================================================================
   Checkout flow (review / payment / confirmation)
   ========================================================================== */
.checkout-steps {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--steel);
  flex-wrap: wrap;
}
.checkout-steps .step { display: inline-flex; align-items: center; gap: 8px; }
.checkout-steps .step .num {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-on-dark); font-size: 0.72rem;
}
.checkout-steps .step.active { color: var(--gold-bright); }
.checkout-steps .step.active .num { border-color: var(--gold-bright); color: var(--gold-bright); }
.checkout-steps .sep { color: #4a4d52; }

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.checkout-col { display: flex; flex-direction: column; gap: 22px; }

.co-card {
  background: var(--white);
  border: 1px solid var(--line-on-light);
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 30px);
}
.co-card h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.co-card .co-card-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }
.co-section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* Line items */
.co-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-on-light);
}
.co-item:last-of-type { border-bottom: none; }
.co-item-thumb {
  width: 60px; height: 72px; flex-shrink: 0;
  background: #8ba6c4; border-radius: 10px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.co-item-thumb .vp-label { display: none; }
.co-item-info { flex: 1; min-width: 0; }
.co-item-name { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.co-item-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
.co-item-price { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.qty-stepper { display: inline-flex; align-items: center; gap: 0; margin-top: 8px; border: 1px solid var(--line-on-light); border-radius: 8px; overflow: hidden; }
.qty-stepper button {
  width: 28px; height: 28px; border: none; background: var(--paper-dim);
  cursor: pointer; font-size: 1rem; line-height: 1; color: var(--ink);
}
.qty-stepper button:hover { background: var(--steel-light); }
.qty-stepper .qty-val { min-width: 34px; text-align: center; font-family: var(--font-mono); font-size: 0.88rem; }
.co-item-remove { background: none; border: none; color: var(--text-muted); font-size: 0.78rem; text-decoration: underline; cursor: pointer; margin-top: 8px; margin-left: 12px; padding: 0; }
.co-item-remove:hover { color: var(--ink); }
.co-edit-cart { display: inline-block; margin-top: 14px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--gold); text-decoration: underline; }

/* Add-on (reconstitution water) */
.co-addon {
  background: #fbf7ec;
  border: 1px solid #ecdcae;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.co-addon .addon-icon { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.co-addon h3 { font-size: 0.98rem; color: var(--ink); }
.co-addon p { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }
.co-addon-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.addon-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold);
  background: transparent;
  color: #8a6a24;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.addon-btn:hover { background: var(--gold); color: var(--ink); }
.addon-btn.added { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Forms */
.co-field { margin-bottom: 16px; }
.co-field label { display: block; font-size: 0.82rem; color: var(--text-body); margin-bottom: 6px; font-weight: 500; }
.co-field label .req { color: #c0392b; }
.co-field input,
.co-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-on-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
.co-field input::placeholder { color: #9aa0a6; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-row-3 { display: grid; grid-template-columns: 1.3fr 1fr 0.9fr; gap: 14px; }
.co-check { display: flex; gap: 12px; align-items: flex-start; }
.co-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); flex-shrink: 0; }
.co-check label { font-size: 0.9rem; color: var(--text-body); }

/* Discount */
.co-discount { display: flex; gap: 10px; }
.co-discount input { flex: 1; }
.co-discount .btn { flex-shrink: 0; }
.co-discount-msg { font-size: 0.82rem; margin-top: 10px; font-family: var(--font-mono); }
.co-discount-msg.ok { color: #2f8f4e; }
.co-discount-msg.err { color: #c0392b; }

/* Order summary (dark, sticky) */
.order-summary {
  position: sticky;
  top: 100px;
  background: var(--ink);
  color: var(--steel-light);
  border-radius: 18px;
  padding: clamp(22px, 2.6vw, 30px);
}
.order-summary h2 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 20px;
}
.os-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.92rem;
}
.os-line .os-label { color: var(--steel); }
.os-line .os-val { color: var(--steel-light); font-family: var(--font-mono); }
.os-line .os-val.free { color: #3ddc74; }
.os-line .os-val.discount { color: #3ddc74; }
.os-divider { height: 1px; background: var(--line-on-dark); margin: 12px 0; }
.os-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
}
.os-total .os-total-label { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--white); }
.os-total .os-total-val { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--white); }
.os-note { font-size: 0.78rem; color: var(--steel); margin-top: 6px; }
.order-summary .btn { width: 100%; margin-top: 22px; }
.os-badges { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.os-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel-light);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--radius-pill);
  padding: 5px 11px;
  display: inline-flex; align-items: center; gap: 6px;
}
.os-badge svg { color: var(--gold); }
.os-item-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.88rem; padding: 6px 0; color: var(--steel-light); }
.os-item-line .os-item-name { color: var(--white); }

/* Payment methods */
.pay-method {
  border: 1px solid var(--line-on-light);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}
.pay-method.selected { border-color: var(--ink); }
.pay-method-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 500;
}
.pay-method-head input { width: 18px; height: 18px; accent-color: var(--ink); }
.pay-method-head .pay-name { flex: 1; color: var(--ink); }
.pay-method-head .pay-tag { font-family: var(--font-mono); font-size: 0.76rem; color: #2f8f4e; background: #e9f6ed; padding: 3px 9px; border-radius: var(--radius-pill); }
.pay-method-head .pay-icons { display: inline-flex; gap: 5px; align-items: center; }
.pay-method-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.pay-method.selected .pay-method-body { max-height: 400px; }
.pay-method-body-inner { padding: 0 18px 20px; }
.pay-method-body-inner p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 14px; }
.pay-note-box {
  background: var(--paper-dim);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.86rem;
  color: var(--text-body);
  line-height: 1.5;
}
.pay-ack {
  background: #fbf7ec;
  border: 1px solid #ecdcae;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.pay-ack .co-check label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.pay-ack .ack-detail { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; margin-left: 30px; line-height: 1.5; }

.demo-banner {
  background: #eef4ff;
  border: 1px solid #c7d9f5;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #33507d;
  margin-bottom: 22px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.demo-banner svg { flex-shrink: 0; margin-top: 2px; }

/* Confirmation */
.confirm-hero { text-align: center; max-width: 640px; margin: 0 auto; }
.confirm-check {
  width: 64px; height: 64px; border-radius: 50%;
  background: #e9f6ed; color: #2f8f4e;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.confirm-order-no { font-family: var(--font-mono); color: var(--gold); font-size: 0.95rem; margin-top: 12px; }
.confirm-panel { max-width: 640px; margin: 36px auto 0; }
.confirm-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 560px) {
  .co-row, .co-row-3 { grid-template-columns: 1fr; }
}

.co-empty-state { text-align: center; padding: 40px 0; }
.co-empty-state p { color: var(--text-muted); margin: 14px 0 24px; }

/* ==========================================================================
   Researcher-access gate — a full page, not a modal card.
   ========================================================================== */
html[data-age-gate="pending"] body > *:not(#age-gate-overlay) { display: none !important; }
html[data-age-gate="pending"] { overflow: hidden; }

.gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  overflow-y: auto;
  display: flex;
  align-items: center;
}
.gate .grid-field { position: fixed; }
.gate-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) var(--pad);
}
.gate-rule {
  width: 64px;
  height: 1px;
  border: 0;
  background: var(--gold);
  margin: 20px 0 0;
}
.gate h1 {
  color: var(--white);
  max-width: 20ch;
  margin-top: 24px;
  font-size: clamp(2rem, 3.4vw + 1rem, 3.4rem);
}
.gate-lead {
  color: var(--steel-light);
  font-size: var(--fs-lead);
  max-width: 56ch;
  margin-top: 22px;
}
.gate-checks {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-dark);
  max-width: 62ch;
}
.gate-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  cursor: pointer;
}
.gate-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
.gate-check span { font-size: 0.92rem; color: var(--steel-light); line-height: 1.6; }
.gate-check a { color: var(--gold-bright); text-decoration: underline; }
.gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.gate .btn:disabled { opacity: 0.35; cursor: not-allowed; }
.gate-exit {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.gate-exit:hover { color: var(--steel-light); }
.gate-note {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--steel);
  max-width: 86ch;
}
@media (max-width: 560px) {
  .gate-actions .btn { width: 100%; }
}

/* ==========================================================================
   Researcher accounts — auth.html / account.html
   ========================================================================== */
.setup-notice {
  background: #fbf7ec;
  border: 1px solid #ecdcae;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 32px;
}
.setup-notice p { font-size: 0.9rem; color: var(--text-body); margin-top: 8px; line-height: 1.6; }
.setup-notice code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(11, 12, 14, 0.07);
  padding: 2px 6px;
  border-radius: 5px;
}

.auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.auth-panel {
  background: var(--white);
  border: 1px solid var(--line-on-light);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 36px);
}
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--paper-dim);
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
}
.auth-tab {
  flex: 1;
  min-height: 44px;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.auth-tab.is-active { background: var(--ink); color: var(--white); }
.auth-tab:not(.is-active):hover { color: var(--ink); }

.auth-intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}
.auth-form .btn { margin-top: 8px; }
.auth-msg {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 4px 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
}
.auth-msg.err { color: #8d2b20; background: #fdeeec; }
.auth-msg.ok { color: #1f6b3d; background: #e9f6ed; }
.auth-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  min-height: 44px;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.auth-link:hover { color: var(--ink); }

.auth-aside { padding-top: 6px; }
.auth-steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  counter-reset: none;
}
.auth-steps li { display: flex; gap: 16px; align-items: flex-start; }
.auth-steps .step-n {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}
.auth-steps h3 { font-size: 1rem; margin-bottom: 5px; }
.auth-steps p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.auth-aside-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-on-light);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-aside-note a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-aside { order: -1; }
}

/* ---- account.html ---- */
.account-wrap { max-width: 720px; }
.account-loading { font-family: var(--font-mono); font-size: 0.86rem; color: var(--text-muted); }
.account-card {
  background: var(--white);
  border: 1px solid var(--line-on-light);
  border-left: 3px solid var(--steel-light);
  border-radius: 18px;
  padding: clamp(24px, 3vw, 38px);
}
.account-card.is-approved { border-left-color: #2f8f4e; }
.account-card.is-pending { border-left-color: var(--gold); }
.account-card.is-rejected { border-left-color: #c0392b; }
.account-card h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-top: 12px; }
.account-card p { margin-top: 14px; color: var(--text-muted); line-height: 1.65; }
.account-card a:not(.btn) { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.account-card code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--paper-dim);
  padding: 2px 6px;
  border-radius: 5px;
}
.account-note {
  background: var(--paper-dim);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--text-body) !important;
}
.account-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.account-rows {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line-on-light);
  display: grid;
  gap: 0;
}
.account-rows > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-on-light);
}
.account-rows > div:last-child { border-bottom: none; }
.account-rows dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.account-rows dd { margin: 0; font-size: 0.92rem; color: var(--ink); text-align: right; }
@media (max-width: 560px) {
  .account-rows > div { flex-direction: column; align-items: flex-start; gap: 3px; }
  .account-rows dd { text-align: left; }
  .account-actions .btn { width: 100%; }
}

/* The gate hides protected pages while the approval check runs, so a prices
   page never flashes before the redirect. */
html[data-gate="checking"] body { visibility: hidden; }

/* Account link injected into the header when signed in. */
.account-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  white-space: nowrap;
}
.account-link:hover { color: var(--ink); }
@media (max-width: 900px) {
  .header-actions .account-link { display: none; }
}
