/* peptide-child homepage styles — extracted from design/homepage.html */
/* ==========================================================================
   tokens — sunday variant: cooler/whiter paper, accent reserved more strictly
   ========================================================================== */
:root {
  color-scheme: light;
  /* Brand palette — source of truth (5 navy-spectrum colors) */
  --brand-900: #0D182A;   /* darkest navy   — primary ink */
  --brand-700: #1E3A5F;   /* deep navy      — pressed / strong accent */
  --brand-500: #4F7FAF;   /* mid blue       — accent */
  --brand-200: #A7B1BC;   /* light gray-blue — muted text, dividers */
  --brand-050: #F5F7FA;   /* near-white     — page paper */

  /* Semantic tokens — most map to brand, a few are derived for nuance */
  --color-paper:          var(--brand-050);
  --color-paper-elevated: #FFFFFF;
  --color-paper-recessed: #E9EEF3;              /* derived: brand-050 tinted darker */
  --color-ink:            var(--brand-900);
  --color-ink-strong:     #070C18;              /* derived: brand-900 a touch deeper */
  --color-ink-quiet:      #4A5A6E;              /* derived: between brand-500 and brand-200 */
  --color-ink-faint:      var(--brand-200);
  --color-rule:           #C9D2DC;              /* derived: between brand-200 and brand-050 */
  --color-rule-faint:     #DDE4EB;
  --color-accent:         var(--brand-500);
  --color-accent-strong:  var(--brand-700);
  --color-accent-quiet:   #DEE5EE;              /* derived: accent tint */
  --color-status-pass:    #3A7E5A;
  --color-status-warn:    #A66A1F;
  --color-status-flag:    #9C3127;
  --color-ruo:            #9C3127;              /* intentionally outside brand: compliance contrast */

  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-secondary:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --type-display-xl: clamp(1.95rem, 4.2vw, 3.85rem); /* -30% from 2.75/6vw/5.5 */
  --type-display-l:  clamp(2rem, 4vw, 3.5rem);
  --type-h1: clamp(1.75rem, 3vw, 2.5rem);
  --type-h2: clamp(1.5rem, 2.4vw, 2rem);
  --type-h3: 1.25rem;
  --type-body: 1.0625rem;
  --type-body-small: 0.9375rem;
  --type-caption: 0.8125rem;
  --type-eyebrow: 0.75rem;
  --type-mono: 0.875rem;
  --type-mono-small: 0.75rem;

  --leading-display: 1.06;
  --leading-body: 1.55;

  --tracking-display: -0.018em;
  --tracking-eyebrow: 0.18em;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px; --space-11: 192px; --space-12: 256px;

  --max-w-content: 1240px;
  --max-w-wide: 1440px;
  --max-w-narrow: 880px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 10vw, 9rem);

  --radius-sharp: 0;
  --radius-soft: 6px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur-base: 0ms; --dur-slow: 0ms; }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-paper);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }
img, svg { display: block; max-width: 100%; }

.container { max-width: var(--max-w-content); margin: 0 auto; padding: 0 var(--gutter); }
.container--wide { max-width: var(--max-w-wide); }
.container--narrow { max-width: var(--max-w-narrow); }
.section { padding: var(--section-y) 0; }
.hairline { height: 1px; background: var(--color-rule); border: 0; margin: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--type-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-ink-quiet);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.eyebrow .glyph { color: var(--color-accent); font-size: 0.875em; line-height: 1; }

/* ==========================================================================
   announce strip — single static centered notice
   ========================================================================== */
.announce {
  border-bottom: 0;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: #FFFFFF;
  background: var(--brand-500);
  font-weight: 500;
}
.announce__row {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 11px var(--gutter);
  display: flex;
  justify-content: center;
}
.announce__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  letter-spacing: 0.04em;
}
.announce__glyph { color: rgba(255, 255, 255, 0.85); }

/* ==========================================================================
   header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-rule);
}
.site-header__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-7);
  padding: var(--space-5) var(--gutter);
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  font-variation-settings: "opsz" 14;
  letter-spacing: -0.01em;
  color: var(--color-ink-strong);
}
.brand__glyph {
  display: inline-block;
  width: 14px; height: 14px;
  border: 1px solid var(--color-ink-strong);
  position: relative;
  transform: rotate(45deg);
}
.brand__glyph::after {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid var(--color-ink-strong);
}
.brand__placeholder {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-faint);
  font-weight: 400;
}
.nav { display: flex; gap: var(--space-7); justify-self: center; }
.nav a {
  font-size: var(--type-body-small);
  color: var(--color-ink);
  position: relative;
  padding: 4px 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--color-accent); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); }
.utility { display: flex; align-items: center; gap: var(--space-4); }
.utility__btn {
  background: none;
  border: 0;
  padding: 10px;
  color: var(--color-ink);
  border-radius: var(--radius-soft);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--type-body-small);
  min-width: 44px; min-height: 44px; /* WCAG 2.5.5 AAA touch target */
  transition: background var(--dur-fast) var(--ease-out);
}
.utility__btn:hover { background: var(--color-rule-faint); }
.utility__count {
  font-family: var(--font-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-paper-elevated);
  background: var(--color-accent);
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.utility__count--empty { background: var(--color-rule); color: var(--color-ink-quiet); }
@media (max-width: 880px) { .nav { display: none; } }

/* ==========================================================================
   buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-soft);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--type-body-small);
  line-height: 1;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-ink-strong);
  color: var(--color-paper-elevated);
  border-color: var(--color-ink-strong);
}
.btn--primary:visited { color: var(--color-paper-elevated); }
.btn--primary:hover {
  background: var(--color-accent-strong);
  color: var(--color-paper-elevated);
  border-color: var(--color-accent-strong);
}
.btn--primary .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn--primary:hover .arrow { transform: translateX(4px); }
.btn--secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}
.btn--secondary:visited { color: var(--color-ink); }
.btn--secondary:hover {
  background: var(--color-ink);
  color: var(--color-paper-elevated);
  border-color: var(--color-ink);
}
.btn--tertiary {
  padding: 6px 0; background: transparent; border: 0;
  color: var(--color-accent); border-bottom: 1px solid currentColor; border-radius: 0;
}
.btn--tertiary:hover { color: var(--color-accent-strong); }
.icon { width: 1em; height: 1em; vertical-align: -2px; }
.icon-arrow { width: 16px; height: 10px; }

/* ==========================================================================
   hero — Sunday-style left text / right image, light bg, animated vial
   ========================================================================== */
.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
  border-bottom: 1px solid var(--color-rule);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.5fr 1fr; gap: var(--space-8); }
}
.hero__head { max-width: 720px; position: relative; z-index: 2; }
.hero__eyebrow { margin-bottom: var(--space-5); }
.hero__h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  font-size: var(--type-display-xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--color-ink-strong);
  margin-bottom: var(--space-6);
}
.hero__h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-accent);
}
.hero__sub {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--color-ink-quiet);
  max-width: 56ch;
  margin-bottom: var(--space-7);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }

.hero__badges {
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
}
.hero__badges li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink);
  letter-spacing: 0.02em;
}
.hero__badges svg {
  width: 14px;
  height: 14px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero__guarantee {
  margin-top: var(--space-7);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--color-ink);
  background: var(--color-paper-elevated);
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  max-width: max-content;
  position: relative;
}
.hero__guarantee::before, .hero__guarantee::after {
  /* tiny corner ticks — echoes the editorial spec-stamp motif */
  content: "";
  position: absolute;
  width: 8px; height: 8px;
  border: 1px solid var(--color-ink);
}
.hero__guarantee::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero__guarantee::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero__guarantee__icon {
  width: 40px; height: 40px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--color-accent);
  flex-shrink: 0;
  background: var(--color-paper);
}
.hero__guarantee__icon svg { width: 20px; height: 20px; }
.hero__guarantee__text { display: flex; flex-direction: column; gap: 2px; }
.hero__guarantee__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.15;
  color: var(--color-ink-strong);
  letter-spacing: -0.005em;
}
.hero__guarantee__sub {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
  letter-spacing: 0.02em;
}

/* Visual / vial column */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 48vw, 540px);
  width: 100%;
}
.hero__visual::before {
  /* faint registration crosshair behind vial */
  content: "";
  position: absolute;
  width: 1px;
  height: 70%;
  background: linear-gradient(to bottom, transparent, var(--color-rule) 20%, var(--color-rule) 80%, transparent);
  z-index: 0;
}
.hero__visual::after {
  content: "";
  position: absolute;
  width: 70%;
  max-width: 320px;
  height: 1px;
  top: 50%;
  background: linear-gradient(to right, transparent, var(--color-rule) 20%, var(--color-rule) 80%, transparent);
  z-index: 0;
}
.hero__floor {
  position: absolute;
  bottom: clamp(10px, 3vw, 28px);
  left: 50%;
  width: 70%;
  max-width: 360px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(14,20,16,0.08), transparent 70%);
  filter: blur(10px);
  transform: translateX(-50%);
  z-index: 0;
}
.hero__vial-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  aspect-ratio: 1 / 1;
  animation: heroFloat 7s ease-in-out infinite;
}
.hero__vial-tilt {
  width: 100%;
  height: 100%;
  filter: drop-shadow(-10px 18px 26px rgba(14, 20, 16, 0.12));
}
.hero__vial { width: 100%; height: 100%; object-fit: contain; object-position: center; }
@media (max-width: 540px) {
  .hero__vial-stage { max-width: 380px; }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* moving glass shine */
.vial-shine {
  animation: shineSweep 8s ease-in-out infinite;
  animation-delay: 1.5s;
  transform-origin: 140px 240px;
}
@keyframes shineSweep {
  0%   { transform: translateX(0);    opacity: 0; }
  18%  { opacity: 0.65; }
  55%  { transform: translateX(120px); opacity: 0.35; }
  100% { transform: translateX(120px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__vial-stage, .vial-shine { animation: none !important; }
}

/* ==========================================================================
   product grid — Sunday-style: image-first, minimal text
   ========================================================================== */
.products {
  padding-top: var(--space-9);
  padding-bottom: var(--space-9);
}
.products__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}
.products__head h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  font-size: var(--type-display-l);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink-strong);
  margin-top: var(--space-3);
  max-width: 22ch;
}
.products__head h2 em { font-style: normal; font-weight: 700; color: var(--color-accent); }
.products__head .eyebrow { margin-bottom: var(--space-3); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-3);
}
@media (min-width: 420px) { .product-grid { gap: var(--space-5) var(--space-4); } }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-7) var(--space-6); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

/* Mobile card sizing — fit comfortably in the 2-col grid */
@media (max-width: 639.98px) {
  .product-grid .product { padding: var(--space-3); min-width: 0; }
  .product-grid .product__media { aspect-ratio: 1 / 1; min-width: 0; }
  .product-grid .product__name { font-size: var(--type-body-small); word-break: break-word; }
  .product-grid .product__desc { display: none; }
  .product-grid .product__foot { flex-direction: column; align-items: stretch; gap: 4px; }
  .product-grid .product__cta { font-size: var(--type-mono-small); }
}

.product {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  text-decoration: none;
  color: inherit;
  padding: var(--space-4);
  border: 1px solid var(--color-rule-faint);
  border-radius: var(--radius-soft);
  transition: border-color var(--dur-base) var(--ease-out);
}
/* Hover shadow lives on a pseudo-element with its own opacity transition:
   the reveal-stagger rules below override `transition` on grid children,
   so a shadow transitioned on the card itself would never animate. */
.product::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--radius-soft);
  box-shadow: 0 14px 34px rgba(13, 24, 42, 0.12);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.product:hover,
.product:focus-visible {
  border-color: var(--color-rule);
}
.product:hover::after,
.product:focus-visible::after {
  opacity: 1;
}
.product__media {
  background: transparent;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-soft);
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.product:hover .product__media { transform: translateY(-4px); }
.product__vial { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.product__pill {
  position: absolute;
  top: var(--space-4); left: var(--space-4);
  font-family: var(--font-secondary);
  font-size: 0.6875rem;
  background: var(--color-paper);
  color: var(--color-ink);
  padding: 4px 8px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft);
  font-variant-numeric: tabular-nums;
  display: inline-flex; align-items: center; gap: 5px;
}
.product__pill::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-status-pass);
}

.product__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.15;
  color: var(--color-ink-strong);
  letter-spacing: -0.01em;
}
.product__cas {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}
.product__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  margin-top: auto;
}
.product__price {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  color: var(--color-ink-strong);
  font-variant-numeric: tabular-nums;
}
.product__cta {
  font-family: var(--font-body);
  font-size: var(--type-body-small);
  color: var(--color-ink);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-soft);
  font-weight: 500;
  background: transparent;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}
.product:hover .product__cta { background: var(--color-ink); color: var(--color-paper); }

/* ==========================================================================
   manifesto / hero (mid-page, Sunday-style)
   ========================================================================== */
.manifesto {
  background: var(--color-ink-strong);
  color: var(--color-paper);
  padding: clamp(5rem, 12vw, 10rem) 0;
  position: relative;
  overflow: hidden;
}
.manifesto__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: left;
  position: relative;
  z-index: 2;
}
.manifesto__eyebrow {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247,245,238,0.55);
  margin-bottom: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}
.manifesto__eyebrow .glyph { color: var(--color-accent); font-family: var(--font-display); font-size: 1.25em; }
.manifesto__h1 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: var(--type-display-xl);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  color: var(--color-paper);
  margin-bottom: var(--space-6);
  max-width: 18ch;
}
.manifesto__h1 em { font-style: italic; font-weight: 400; color: var(--color-accent); }
.manifesto__sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
  line-height: 1.5;
  color: rgba(247,245,238,0.78);
  max-width: 56ch;
  margin-bottom: var(--space-7);
}
.manifesto__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.manifesto .btn--primary {
  background: transparent; color: var(--color-paper); border-color: var(--color-accent);
}
.manifesto .btn--primary:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-paper); }
.manifesto .btn--tertiary { color: rgba(247,245,238,0.85); border-color: rgba(247,245,238,0.4); }
.manifesto .btn--tertiary:hover { color: var(--color-paper); }

.manifesto__watermark {
  position: absolute;
  right: -5%;
  bottom: -30%;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-style: italic;
  font-weight: 400;
  font-size: 36rem;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}
@media (max-width: 1024px) { .manifesto__watermark { display: none; } }

/* ==========================================================================
   trust / why-us — three-up icon-led
   ========================================================================== */
.why { padding: var(--section-y) 0; }
.why__head { text-align: center; margin-bottom: var(--space-9); }
.why__head h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  font-size: var(--type-display-l);
  line-height: 1.15;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink-strong);
  max-width: 22ch;
  margin: var(--space-3) auto 0;
}
.why__head h2 em { font-style: italic; font-weight: 400; color: var(--color-accent); }
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  max-width: var(--max-w-content);
  margin: 0 auto;
}
@media (min-width: 768px) { .why__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-9); } }
.why__col { text-align: center; padding: 0 var(--space-3); }
.why__icon {
  width: 56px; height: 56px;
  border: 1px solid var(--color-ink-strong);
  margin: 0 auto var(--space-5);
  display: grid; place-items: center;
  border-radius: var(--radius-soft);
  background: var(--color-paper-elevated);
}
.why__icon svg { width: 28px; height: 28px; }
.why__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--color-ink-strong);
  margin-bottom: var(--space-3);
}
.why__body {
  color: var(--color-ink-quiet);
  font-size: var(--type-body-small);
  max-width: 32ch;
  margin: 0 auto;
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { background: var(--color-paper-recessed); border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); padding: var(--section-y) 0; }
.faq__inner { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.faq__head { text-align: center; margin-bottom: var(--space-8); }
.faq__head h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  font-size: var(--type-display-l);
  line-height: 1.1;
  color: var(--color-ink-strong);
  letter-spacing: var(--tracking-display);
  margin-top: var(--space-3);
  max-width: 18ch;
  margin-left: auto; margin-right: auto;
}
.faq__head h2 em { font-style: italic; font-weight: 400; color: var(--color-accent); }
.faq__list { border-top: 1px solid var(--color-rule); }
.faq__item { border-bottom: 1px solid var(--color-rule); }
.faq__summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  padding: var(--space-5) 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--color-ink-strong);
  list-style: none;
}
.faq__summary::-webkit-details-marker { display: none; }
.faq__plus {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--color-ink);
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  background: var(--color-ink);
}
.faq__plus::before { width: 10px; height: 1px; }
.faq__plus::after { width: 1px; height: 10px; transition: transform var(--dur-base) var(--ease-out); }
.faq__item[open] .faq__plus { background: var(--color-ink); }
.faq__item[open] .faq__plus::before, .faq__item[open] .faq__plus::after { background: var(--color-paper); }
.faq__item[open] .faq__plus::after { transform: scaleY(0); }
.faq__answer {
  padding: 0 0 var(--space-6);
  color: var(--color-ink-quiet);
  max-width: 64ch;
  font-size: var(--type-body);
  line-height: 1.6;
}
.faq__answer p + p { margin-top: var(--space-4); }

/* ==========================================================================
   newsletter
   ========================================================================== */
.newsletter { padding: var(--section-y) 0; }
.newsletter__inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
}
@media (min-width: 768px) { .newsletter__inner { grid-template-columns: 1fr 1fr; gap: var(--space-9); } }
.newsletter__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60;
  font-weight: 500;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--color-ink-strong);
  letter-spacing: var(--tracking-display);
  margin-bottom: var(--space-3);
}
.newsletter__title em { font-style: italic; font-weight: 400; color: var(--color-accent); }
.newsletter__body { color: var(--color-ink-quiet); font-size: var(--type-body-small); }
.newsletter__form {
  display: flex;
  border: 1px solid var(--color-ink);
  background: var(--color-paper-elevated);
  border-radius: var(--radius-soft);
  overflow: hidden;
}
.newsletter__input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  font: inherit;
  font-size: var(--type-body-small);
  color: var(--color-ink);
}
.newsletter__input::placeholder { color: var(--color-ink-faint); }
.newsletter__btn {
  border: 0;
  background: var(--color-ink);
  color: var(--color-paper);
  padding: 0 22px;
  font: inherit;
  font-weight: 500;
  font-size: var(--type-body-small);
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out);
}
.newsletter__btn:hover { background: var(--color-accent-strong); }
.newsletter__fine {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-faint);
  margin-top: var(--space-3);
}

/* ==========================================================================
   footer (same family as original, slightly cleaner)
   ========================================================================== */
.site-footer {
  background: var(--color-ink-strong);
  color: var(--color-paper);
  padding: var(--space-9) 0 var(--space-6);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr;
  gap: var(--space-7);
  padding-bottom: var(--space-9);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.fcol.fcol--policies ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: var(--space-6);
  row-gap: var(--space-3);
}
@media (max-width: 880px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .fcol.fcol--policies ul { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-4); max-width: 32ch; }
.site-footer__poweredby {
  margin: -8px 0 0;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.site-footer__brand .brand { color: var(--color-paper); }
.site-footer__brand .brand__glyph { border-color: var(--color-paper); }
.site-footer__brand .brand__glyph::after { border-color: var(--color-paper); }
.site-footer__tagline {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: rgba(247,245,238,0.78);
}

/* Newsletter signup (renders inside footer brand block when Klaviyo configured) */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-3);
}
.newsletter-form__label {
  font-family: var(--font-body);
  font-size: var(--type-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: rgba(247,245,238,0.7);
}
.newsletter-form__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}
.newsletter-form__input {
  flex: 1 1 200px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--color-paper);
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  min-width: 0;
}
.newsletter-form__input::placeholder { color: rgba(247,245,238,0.45); }
.newsletter-form__input:focus {
  outline: 0;
  border-color: var(--color-accent);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(91,166,229,0.25);
}
.newsletter-form__btn { padding: 10px 18px; }
.newsletter-form__btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.newsletter-form__status {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: rgba(247,245,238,0.7);
  margin: 0;
  min-height: 1em;
}
.newsletter-form__status[data-state="error"] { color: #f5b8b1; }
.newsletter-form__status[data-state="ok"]    { color: #b8e9c8; }
.newsletter-form__note {
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  color: rgba(247,245,238,0.45);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .newsletter-form__btn { width: 100%; }
}
.fcol__title {
  font-family: var(--font-body);
  font-size: var(--type-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: rgba(247,245,238,0.55);
  margin-bottom: var(--space-4);
}
.fcol ul { display: flex; flex-direction: column; gap: var(--space-3); }
.fcol a {
  font-size: var(--type-body-small);
  color: var(--color-paper);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.fcol a:hover { border-color: rgba(247,245,238,0.5); }
.site-footer__legal {
  padding-top: var(--space-6);
  display: flex; flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: rgba(247,245,238,0.55);
}
.site-footer__legal a { color: rgba(247,245,238,0.7); }
.site-footer__legal a:hover { color: var(--color-paper); }
.site-footer__ruo {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
  font-size: var(--type-body-small);
  line-height: 1.55;
  color: rgba(247,245,238,0.85);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  align-items: start;
}
.site-footer__ruo strong {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-weight: 600;
  color: var(--color-paper);
  font-size: 1.0625rem;
  display: block;
  margin-bottom: 4px;
}
.site-footer__bottom {
  margin-top: var(--space-6);
  display: flex; justify-content: space-between;
  font-family: var(--font-secondary); font-size: var(--type-mono-small);
  color: rgba(247,245,238,0.4);
}
@media (max-width: 600px) { .site-footer__bottom { flex-direction: column; gap: var(--space-2); } }

/* ==========================================================================
   reveal + focus
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(12px); animation: revealUp var(--dur-slow) var(--ease-out) forwards; }
.reveal--1 { animation-delay: 0ms; } .reveal--2 { animation-delay: 80ms; }
.reveal--3 { animation-delay: 160ms; } .reveal--4 { animation-delay: 240ms; }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ==========================================================================
   vial SVG colors (tints applied via fill/stroke vars, set inline)
   ========================================================================== */
.vial-stroke { stroke: var(--color-ink); }
.vial-fill   { fill: var(--color-paper-elevated); }
.vial-amber  { fill: rgba(201, 123, 44, 0.14); }
.vial-cap    { fill: var(--color-ink-strong); }
.vial-label  { fill: var(--color-paper); stroke: var(--color-ink); }
.vial-text   { fill: var(--color-ink); font-family: var(--font-secondary); font-size: 9px; text-anchor: middle; }
.vial-text--name { fill: var(--color-ink-strong); font-family: var(--font-display); font-size: 10px; font-weight: 600; text-anchor: middle; }

/* ==========================================================================
   2-up "duo" benefit blocks (catalog + COA)
   ========================================================================== */
.duo { padding: var(--section-y) 0; background: #E7EEF7; }
.duo__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-7); }
@media (min-width: 768px) {
  .duo__grid { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
}
.about-hero-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; }
@media (min-width: 960px) { .about-hero-grid { grid-template-columns: 1fr 2fr; gap: var(--space-9); } }
.confidence-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .confidence-grid { grid-template-columns: 1fr 1fr; gap: var(--space-9); } }
.duo__card {
  display: flex; flex-direction: column; gap: var(--space-4);
  background: #FFFFFF;
  border: 1px solid rgba(13, 24, 42, 0.10);
  padding: var(--space-7);
  border-radius: var(--radius-soft);
}
.duo__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink-strong);
  max-width: 18ch;
}
.duo__title em { font-style: normal; font-weight: 700; color: var(--color-accent); }
.duo__body { color: var(--color-ink-quiet); font-size: 1.0625rem; line-height: 1.55; max-width: 56ch; }
.duo__card .btn { align-self: flex-start; margin-top: var(--space-2); }

/* ==========================================================================
   centered section heading variant
   ========================================================================== */
.sect-head--center { text-align: center; align-items: center; flex-direction: column; }
.sect-head--center .sect-head__title { margin-left: auto; margin-right: auto; }
.sect-head__sub {
  color: var(--color-ink-quiet);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 60ch;
  margin-top: var(--space-3);
}
.sect-head--center .sect-head__sub { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   "How it works" — 3 steps with mono numerals
   ========================================================================== */
.how { padding: var(--section-y) 0; }
.how__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-7); margin-top: var(--space-8); }
@media (min-width: 768px) {
  .how__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-7); }
}
.how__step { padding-top: var(--space-5); border-top: 1px solid var(--color-ink); display: flex; flex-direction: column; gap: var(--space-3); }
.how__num {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.how__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.2;
  color: var(--color-ink-strong);
}
.how__body { color: var(--color-ink-quiet); font-size: var(--type-body-small); line-height: 1.55; }

/* ==========================================================================
   "Trusted research solutions" — 4 features with icon
   ========================================================================== */
.trusted { padding: var(--section-y) 0; background: var(--color-paper-recessed); border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
.trusted__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-7); margin-top: var(--space-8); }
@media (min-width: 640px) { .trusted__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trusted__grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-6); } }
.trusted__item { background: var(--color-paper); border: 1px solid var(--color-rule); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); border-radius: var(--radius-soft); }
.trusted__icon { width: 40px; height: 40px; border: 1px solid var(--color-accent); border-radius: 50%; display: grid; place-items: center; color: var(--color-accent); margin-bottom: var(--space-2); }
.trusted__icon svg { width: 20px; height: 20px; }
.trusted__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.2;
  color: var(--color-ink-strong);
}
.trusted__body { color: var(--color-ink-quiet); font-size: var(--type-body-small); line-height: 1.55; }

/* ==========================================================================
   Purity assurance — 50/50 split: drifting docs LEFT, 2×2 card grid RIGHT
   ========================================================================== */
.purity { padding: var(--section-y) 0; position: relative; overflow: hidden; }

.purity__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
  align-items: center;
}
@media (min-width: 960px) {
  .purity__split { grid-template-columns: 1fr 1fr; gap: var(--space-9); }
}

.purity__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 42vw, 480px);
}
.purity__docs {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: clamp(320px, 38vw, 460px);
  animation: docs-drift 18s ease-in-out infinite alternate;
  will-change: transform;
}
.purity__doc {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(180px, 24vw, 260px);
  height: auto;
  color: var(--brand-700);
  opacity: 0.55;
  filter: drop-shadow(0 8px 16px rgba(13, 24, 42, 0.10));
}
.purity__doc--1 { transform: translate(-100%, -50%) rotate(-14deg); }
.purity__doc--2 { transform: translate(-50%,  -50%) rotate(0deg); z-index: 1; opacity: 0.75; }
.purity__doc--3 { transform: translate(0%,    -50%) rotate(14deg); }

@keyframes docs-drift {
  from { transform: translateX(-24px); }
  to   { transform: translateX(24px); }
}
@media (prefers-reduced-motion: reduce) { .purity__docs { animation: none; } }

.purity__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  margin-top: 0;
}
@media (min-width: 480px) { .purity__grid { grid-template-columns: repeat(2, 1fr); } }

.purity__method {
  background: var(--color-paper-elevated);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.purity__method:hover { border-color: var(--color-ink); transform: translateY(-2px); }
.purity__abbr {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.01em;
}
.purity__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 24;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  color: var(--color-ink-strong);
}
.purity__body { color: var(--color-ink-quiet); font-size: var(--type-body-small); line-height: 1.5; }
.purity__cta { margin-top: var(--space-6); display: flex; }

/* ==========================================================================
   Support CTA strip
   ========================================================================== */
.support { padding: var(--section-y) 0; background: var(--color-paper-recessed); border-top: 1px solid var(--color-rule); }
.support__inner { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter); text-align: center; display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.support__inner .eyebrow { margin-bottom: var(--space-2); }
.support__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink-strong);
}
.support__title em { font-style: normal; font-weight: 700; color: var(--color-accent); }
.support__body { color: var(--color-ink-quiet); font-size: 1.0625rem; line-height: 1.55; max-width: 56ch; }
.support__cta { display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; margin-top: var(--space-3); }


/* ==========================================================================
   hero — dark orbital backdrop (ported from Stitch design)
   ========================================================================== */
.hero { background: #0B1440; color: var(--brand-050); border-bottom-color: rgba(255,255,255,0.08); }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero .container--wide { position: relative; z-index: 1; }

.hero__bg-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(79, 127, 175, 0.10);
  border: 1px solid rgba(79, 127, 175, 0.30);
  display: grid;
  place-items: center;
}
.hero__bg-core::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--brand-500);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(79, 127, 175, 0.85);
}

.hero__bg-orbit {
  position: absolute;
  top: 50%; left: 50%;
  border: 1px solid rgba(79, 127, 175, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.hero__bg-orbit--1 { width: clamp(100px, 22vw, 180px); aspect-ratio: 1; height: auto; }
.hero__bg-orbit--2 { width: clamp(160px, 35vw, 300px); aspect-ratio: 1; height: auto; }
.hero__bg-orbit--3 { width: clamp(220px, 52vw, 450px); aspect-ratio: 1; height: auto; }
.hero__bg-orbit--4 { width: clamp(300px, 70vw, 600px); aspect-ratio: 1; height: auto; }

.hero__bg-spin {
  position: absolute;
  inset: 0;
  animation: hero-orbit linear infinite;
  will-change: transform;
}
.hero__bg-spin--1 { animation-duration: 20s; }
.hero__bg-spin--2 { animation-duration: 35s; animation-direction: reverse; }
.hero__bg-spin--3 { animation-duration: 50s; }
.hero__bg-spin--4 { animation-duration: 70s; animation-direction: reverse; }

.hero__bg-particle {
  position: absolute;
  background: var(--brand-500);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(79, 127, 175, 0.8);
}
.hero__bg-particle.p1 { top: 0;    left: 50%;  width: 6px; height: 6px; transform: translate(-50%, -50%); }
.hero__bg-particle.p2 { top: 50%;  left: 100%; width: 4px; height: 4px; transform: translate(-50%, -50%); }
.hero__bg-particle.p3 { top: 100%; left: 50%;  width: 8px; height: 8px; transform: translate(-50%, -50%); }
.hero__bg-particle.p4 { top: 50%;  left: 0;    width: 5px; height: 5px; transform: translate(-50%, -50%); }

.hero__bg-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: radial-gradient(rgba(79,127,175,1) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero__bg-glow {
  position: absolute;
  width: 40%; height: 40%;
  border-radius: 50%;
  filter: blur(120px);
}
.hero__bg-glow--tl { top: -10%; left: -10%;  background: rgba(0, 33, 148, 0.22); }
.hero__bg-glow--br { bottom: -10%; right: -10%; background: rgba(79, 127, 175, 0.12); }


@media (max-width: 540px) {
  .hero__bg-orbit--4 { display: none; }
  .hero__bg-grid { background-size: 28px 28px; }
  .hero__bg-glow { filter: blur(80px); }
}

@keyframes hero-orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg-spin { animation: none; }
}

/* ---- text + button overrides inside the dark hero ---- */
.hero .hero__h1            { color: var(--brand-050); }
.hero .hero__h1 em         { color: var(--brand-500); }
.hero .hero__sub           { color: rgba(245, 247, 250, 0.78); }
.hero .btn--primary        { background: var(--brand-050); color: var(--brand-900); border-color: var(--brand-050); }
.hero .btn--primary:hover  { background: var(--brand-500); border-color: var(--brand-500); color: var(--brand-050); }
.hero .btn--tertiary       { color: var(--brand-050); border-bottom-color: rgba(245,247,250,0.4); }
.hero .btn--tertiary:hover { color: var(--brand-050); border-bottom-color: var(--brand-050); }
.hero__badges li           { color: var(--brand-050); }
.hero__badges svg          { color: var(--brand-500); }

.hero .hero__guarantee {
  background: var(--brand-500);
  border: 0;
  border-radius: 6px;
  padding: var(--space-5) var(--space-6);
  gap: var(--space-5);
  box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.4);
}
.hero .hero__guarantee::before,
.hero .hero__guarantee::after { display: none; }
.hero .hero__guarantee__icon {
  width: 52px; height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #FFFFFF;
}
.hero .hero__guarantee__icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.hero .hero__guarantee__title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.15;
}
.hero .hero__guarantee__sub {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  font-size: var(--type-mono);
}

/* registration crosshairs behind vial — soften for dark */
.hero .hero__visual::before,
.hero .hero__visual::after {
  background: linear-gradient(to right, transparent, rgba(245,247,250,0.12) 20%, rgba(245,247,250,0.12) 80%, transparent);
}
.hero .hero__visual::before {
  background: linear-gradient(to bottom, transparent, rgba(245,247,250,0.12) 20%, rgba(245,247,250,0.12) 80%, transparent);
}
.hero__floor { display: none; }


.site-header__row .brand img, .site-footer__brand .brand img { display: block; width: auto; max-width: 100%; }
.site-header__row .brand img { height: 52px; }
.site-footer__brand .brand img { height: 60px; }
/* The footer uses the "lite" logo (light-grey wordmark) which reads on the
   dark footer as-is. The blue auth aside still uses the navy logo, so flip
   it to white there. */
.auth-page__aside-brand img { filter: brightness(0) invert(1); }
@media (max-width: 1100px) { .site-header__row .brand img { height: 46px; } }
@media (max-width: 880px)  { .site-header__row .brand img { height: 42px; } }
@media (max-width: 640px)  { .site-header__row .brand img { height: 48px; } }

/* Mobile header overflow fix — tighten utility row so 4 icons fit on a 360–400px phone */
@media (max-width: 640px) {
  .site-header__row { gap: var(--space-3); padding: var(--space-4) var(--gutter); }
  .utility { gap: 2px; }
  .utility .utility__btn { padding: 8px !important; }
  .utility .utility__btn .icon { width: 24px; height: 24px; }
  .menu-toggle { padding: 8px; }
  .menu-toggle .icon { width: 26px; height: 26px; }
}
.site-footer__brand .brand img { height: 60px; }


.product__desc {
  color: var(--color-ink-quiet);
  font-size: var(--type-body-small);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}


/* ==========================================================================
   PAGE-SPECIFIC STYLES (catalog / product detail / research hub)
   Extracted from design/category.html, product.html, research.html
   ========================================================================== */

/* --- CATALOG --- */
/* page-specific: catalog layout (sidebar + grid + toolbar) */
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  padding: var(--space-7) 0 var(--space-9);
}
@media (min-width: 960px) {
  .catalog-layout { grid-template-columns: 240px 1fr; gap: var(--space-8); }
}

/* filter rail */
.filters {
  align-self: start;
  font-size: var(--type-body-small);
  border-top: 1px solid var(--color-rule);
}
.filters__group { padding: var(--space-5) 0; border-bottom: 1px solid var(--color-rule); }
.filters__title {
  font-family: var(--font-body);
  font-size: var(--type-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-ink-quiet);
  margin-bottom: var(--space-4);
  display: flex; justify-content: space-between; align-items: center;
}
.filters__title small {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: var(--type-mono-small);
  color: var(--color-ink-faint);
  letter-spacing: 0;
  text-transform: none;
}
.filters__list { display: flex; flex-direction: column; gap: var(--space-3); }
.filters__check {
  display: flex; align-items: center; gap: var(--space-3);
  cursor: pointer;
  color: var(--color-ink);
}
.filters__check input {
  appearance: none;
  width: 14px; height: 14px;
  border: 1px solid var(--color-ink);
  border-radius: 0;
  background: var(--color-paper);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.filters__check input:checked { background: var(--color-ink); }
.filters__check input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--color-paper);
}
.filters__check span small {
  display: block;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-faint);
}
.filters__range {
  display: flex; gap: var(--space-2); align-items: center;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}
.filters__range input {
  flex: 1; min-width: 0;
  border: 1px solid var(--color-rule);
  background: var(--color-paper);
  padding: 6px 8px;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink);
  border-radius: var(--radius-soft);
}
.filters__range input:focus { border-color: var(--color-ink); outline: 0; }

/* toolbar above grid */
.toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-7);
  flex-wrap: wrap;
}
.toolbar__count {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}
.toolbar__count strong { color: var(--color-ink); font-weight: 500; }

.sort {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--type-body-small);
}
.sort label {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
  letter-spacing: 0.04em;
}
.sort select {
  appearance: none;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft);
  padding: 8px 32px 8px 12px;
  font: inherit;
  font-size: var(--type-body-small);
  color: var(--color-ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%230E1410' stroke-width='1.2' d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.sort select:focus { border-color: var(--color-ink); outline: 0; }

/* pagination */
.pagination {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}
.pagination__pages { display: flex; gap: var(--space-2); align-items: center; }
.pagination__page {
  padding: 6px 10px;
  color: var(--color-ink);
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius-soft);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.pagination__page[aria-current="page"] { border-color: var(--color-ink); }
.pagination__page:hover { color: var(--color-accent); }
.pagination__nav {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-ink); font-family: var(--font-body); font-size: var(--type-body-small);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.pagination__nav[aria-disabled="true"] { color: var(--color-ink-faint); cursor: not-allowed; }

/* --- PRODUCT DETAIL --- */
/* product page */
.pdp { padding-bottom: var(--space-9); }

/* hero */
.pdp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  padding: var(--space-5) 0 var(--space-9);
  border-bottom: 1px solid var(--color-rule);
}
@media (min-width: 960px) {
  .pdp-hero { grid-template-columns: 1.1fr 1fr; gap: var(--space-9); align-items: start; }
}

/* left column: info */
.pdp-info { display: flex; flex-direction: column; gap: var(--space-3); }
.pdp-info__eyebrow { color: var(--color-ink-quiet); }
.pdp-info__name {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink-strong);
}
.pdp-info__pills { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pdp-info__desc {
  color: var(--color-ink);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 56ch;
}

.pdp-spec-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  font-family: var(--font-secondary);
  font-size: var(--type-mono);
  font-variant-numeric: tabular-nums;
}
.pdp-spec-quick > div { padding: var(--space-4) 0; display: flex; justify-content: space-between; gap: var(--space-3); }
.pdp-spec-quick > div + div { border-left: 1px solid var(--color-rule); padding-left: var(--space-4); }
.pdp-spec-quick > div:nth-child(odd) { padding-right: var(--space-4); }
.pdp-spec-quick dt { color: var(--color-ink-faint); font-size: var(--type-mono-small); }
.pdp-spec-quick dd { color: var(--color-ink); margin: 0; }

/* purchase block */
.pdp-purchase {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: end;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-rule);
}
.pdp-purchase__price {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 600;
  font-size: 2.25rem;
  color: var(--color-ink-strong);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.pdp-purchase__price small {
  display: block;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-faint);
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.pdp-purchase__sizes {
  display: flex; gap: var(--space-2);
}
.pdp-purchase__sizes label {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  border: 1px solid var(--color-rule);
  padding: 8px 14px;
  cursor: pointer;
  border-radius: var(--radius-soft);
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  background: var(--color-paper);
}
.pdp-purchase__sizes input { position: absolute; opacity: 0; pointer-events: none; }
.pdp-purchase__sizes input:checked + label { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); }
.pdp-purchase__sizes label small { font-size: 0.625rem; color: var(--color-ink-faint); }
.pdp-purchase__sizes input:checked + label small { color: rgba(247,245,238,0.6); }
.pdp-purchase__qty {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--color-ink);
  border-radius: var(--radius-soft);
}
.pdp-purchase__qty button {
  background: transparent; border: 0;
  padding: 0 14px;
  color: var(--color-ink);
  font-size: 1.125rem;
}
.pdp-purchase__qty button:hover { background: var(--color-ink); color: var(--color-paper); }
.pdp-purchase__qty input {
  width: 48px; border: 0; background: transparent;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  color: var(--color-ink);
}
.pdp-purchase__qty input:focus { outline: 0; }

.pdp-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.pdp-actions .btn--primary { flex: 1; justify-content: center; min-width: 200px; }

.pdp-meta-list {
  display: grid;
  gap: var(--space-3);
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}
.pdp-meta-list li { display: inline-flex; align-items: center; gap: var(--space-3); }
.pdp-meta-list li::before {
  content: ""; width: 14px; height: 1px; background: var(--color-accent);
}

/* right column: product image */
.pdp-visual {
  display: grid;
  place-items: center;
  min-height: clamp(400px, 50vw, 580px);
}
.pdp-vial {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* lot picker over visual */
.pdp-lot-picker {
  position: absolute;
  top: var(--space-4); right: var(--space-4);
  z-index: 2;
  display: flex; gap: 6px;
  font-family: var(--font-secondary);
  font-size: 0.6875rem;
}
.pdp-lot-picker a {
  padding: 5px 8px;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  color: var(--color-ink);
  border-radius: var(--radius-soft);
}
.pdp-lot-picker a[aria-current="true"] { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-paper); }

/* spec sections */
.pdp-section {
  padding: var(--space-9) 0 var(--space-7);
  border-bottom: 1px solid var(--color-rule);
}
.pdp-section__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-5);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}
.pdp-section__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 96;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink-strong);
}
.pdp-section__title em { font-style: normal; font-weight: 700; color: var(--color-accent); }
.pdp-section__lot {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}

/* spec table */
.spec-table {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--color-rule);
}
@media (min-width: 768px) { .spec-table { grid-template-columns: repeat(2, 1fr); } }
.spec-table__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-rule);
  font-family: var(--font-secondary);
  font-size: var(--type-mono);
  font-variant-numeric: tabular-nums;
}
.spec-table__k { color: var(--color-ink-faint); font-size: var(--type-mono-small); }
.spec-table__v { color: var(--color-ink); }
.spec-table > .spec-table__row:nth-child(even) { background: rgba(0,0,0,0.015); }
.spec-table__seq {
  word-break: break-all; font-family: var(--font-secondary); font-size: var(--type-mono-small);
}

/* documentation */
.docs-list {
  border-top: 1px solid var(--color-rule);
}
.docs-list__row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-rule);
  font-family: var(--font-secondary);
  font-size: var(--type-mono);
}
.docs-list__row.is-current { background: rgba(42,110,127,0.04); }
.docs-list__lot {
  font-weight: 500; color: var(--color-ink-strong);
  font-variant-numeric: tabular-nums;
}
.docs-list__date { color: var(--color-ink-quiet); font-size: var(--type-mono-small); }
.docs-list__purity { color: var(--color-ink); font-variant-numeric: tabular-nums; }
.docs-list__dl {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-accent); font-family: var(--font-body); font-size: var(--type-body-small);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.docs-list__dl:hover { color: var(--color-accent-strong); }

/* storage / hazard text section */
.text-block { color: var(--color-ink); font-size: 1.0625rem; line-height: 1.55; max-width: 64ch; }
.text-block + .text-block { margin-top: var(--space-5); }

/* --- RESEARCH HUB --- */
/* research-specific */
.research { padding-bottom: var(--space-9); }

/* filter chips */
.chips {
  display: flex; gap: var(--space-2); flex-wrap: wrap;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-7);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft);
  font-family: var(--font-body); font-size: var(--type-body-small);
  color: var(--color-ink);
  background: var(--color-paper);
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.chip:hover { border-color: var(--color-ink); }
.chip[aria-pressed="true"] { background: var(--color-ink); color: var(--color-paper); border-color: var(--color-ink); }
.chip small { font-family: var(--font-secondary); font-size: 0.6875rem; opacity: 0.6; font-variant-numeric: tabular-nums; }

/* featured article — large card */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--color-ink);
  background: var(--color-paper-elevated);
  margin-bottom: var(--space-9);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out);
}
@media (min-width: 960px) {
  .feature { grid-template-columns: 1fr 1.1fr; }
}
.feature__media {
  background: var(--color-paper-recessed);
  position: relative;
  min-height: 360px;
  display: grid; place-items: center;
  border-bottom: 1px solid var(--color-ink);
  overflow: hidden;
}
@media (min-width: 960px) {
  .feature__media { border-bottom: 0; border-right: 1px solid var(--color-ink); min-height: 100%; }
}
.feature__media::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 23px, var(--color-rule) 23px, var(--color-rule) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, var(--color-rule) 23px, var(--color-rule) 24px);
  opacity: 0.5;
}
.feature__chromatogram {
  position: relative; z-index: 2;
  width: 80%; max-width: 420px;
  color: var(--color-accent);
}
.feature__body {
  padding: var(--space-7) var(--space-7) var(--space-7);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.feature__meta {
  display: flex; gap: var(--space-4);
  font-family: var(--font-secondary); font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}
.feature__meta strong { color: var(--color-accent); font-weight: 500; }
.feature__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink-strong);
}
.feature__title em { font-style: italic; font-weight: 400; color: var(--color-accent); }
.feature__excerpt { color: var(--color-ink-quiet); font-size: 1.0625rem; line-height: 1.55; max-width: 56ch; }
.feature__author {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-secondary); font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
  margin-top: auto;
}
.feature__author-glyph {
  width: 24px; height: 24px;
  border: 1px solid var(--color-ink-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--color-ink-strong);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-paper-elevated);
}
.feature__cta {
  font-family: var(--font-body); font-size: var(--type-body-small);
  color: var(--color-accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
}

/* article list — editorial cards */
.articles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
}
@media (min-width: 768px) { .articles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles { grid-template-columns: repeat(3, 1fr); } }

.article {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-ink);
  text-decoration: none;
  color: inherit;
  transition: padding-top var(--dur-base) var(--ease-out);
}
.article:hover { padding-top: calc(var(--space-5) + 2px); }
.article__meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-secondary); font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}
.article__meta strong { color: var(--color-accent); font-weight: 500; }
.article__title {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 60;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-ink-strong);
  margin-top: var(--space-2);
}
.article__excerpt { color: var(--color-ink-quiet); font-size: var(--type-body-small); line-height: 1.55; }
.article__foot {
  margin-top: auto;
  padding-top: var(--space-3);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-secondary); font-size: var(--type-mono-small);
  color: var(--color-ink-faint);
}
.article__foot a {
  color: var(--color-accent);
  font-family: var(--font-body); font-size: var(--type-body-small);
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

/* pagination (re-use from category) */
.pagination {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-rule);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}
.pagination__pages { display: flex; gap: var(--space-2); align-items: center; }
.pagination__page {
  padding: 6px 10px; color: var(--color-ink);
  border: 1px solid transparent;
  font-variant-numeric: tabular-nums;
  border-radius: var(--radius-soft);
}
.pagination__page[aria-current="page"] { border-color: var(--color-ink); }
.pagination__page:hover { color: var(--color-accent); }
.pagination__nav {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-ink); font-family: var(--font-body); font-size: var(--type-body-small);
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.pagination__nav[aria-disabled="true"] { color: var(--color-ink-faint); cursor: not-allowed; }

/* ==========================================================================
   Mobile nav + larger touch targets (Phase 2 mobile audit)
   ========================================================================== */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 12px;
  color: var(--color-ink);
  border-radius: var(--radius-soft);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  min-width: 44px; min-height: 44px; /* WCAG 2.5.5 AAA touch target */
}
.menu-toggle:hover { background: var(--color-rule-faint); }
.menu-toggle .icon { width: 36px; height: 36px; }
.menu-toggle__close { display: none; }
body.menu-open .menu-toggle__open { display: none; }
body.menu-open .menu-toggle__close { display: inline-block; color: var(--color-accent); }

/* Close X inside the slide-out nav overlay — always hidden by default. The mobile
   media query below activates it only when body.menu-open is set. */
.nav__close { display: none; background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--color-ink); }

/* Bump utility button touch targets to ≥44×44 (AAA) */
.utility__btn { padding: 10px 12px !important; }
.utility__btn .icon { width: 28px; height: 28px; }

/* Mobile breakpoint: show hamburger, hide inline nav */
@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }

  /* Mobile nav: full-screen overlay, hidden by default */
  .site-header__row .nav {
    display: none;
  }
  /* Header row: 5 visible items spread evenly across the width */
  .site-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
  }
  /* Flatten .utility so its 4 children become siblings of .brand → 5-up flex row */
  .utility { display: contents; }

  body.menu-open .site-header__row .nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--color-paper);
    z-index: 9998;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: calc(var(--space-9) + 16px) 0 var(--space-9);
    overflow-y: auto;
    text-align: left;
  }
  body.menu-open .site-header__row .nav a {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    padding: var(--space-3) var(--gutter);
    color: var(--color-ink);
    pointer-events: auto;
    text-align: left;
    display: block;
    width: 100%;
  }
  body.menu-open .site-header__row .nav a::after { display: none; }

  body.menu-open .nav__close {
    display: inline-flex;
    position: absolute;
    top: var(--space-4);
    right: calc(var(--space-4) + 20px);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
  }
  .nav__close svg { width: 28px; height: 28px; }
  /* Lock scroll when menu is open */
  body.menu-open { overflow: hidden; }
  /* Header must out-rank the overlay so the X toggle stays clickable */
  body.menu-open .site-header { z-index: 9999; }
  body.menu-open .menu-toggle .icon { color: var(--color-accent); }

  /* Trim utility to icons only at mobile — labels hide, count chip stays */
  .utility__btn { padding: 10px; gap: 4px; }
  .utility__btn .utility__btn-label { display: none; }
}

/* Breadcrumbs (Phase 2) */
.crumbs {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 var(--space-5);
}
.crumbs a {
  color: var(--color-ink-quiet);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.crumbs a:hover {
  color: var(--color-ink);
  border-bottom-color: var(--color-ink-quiet);
}
.crumbs__sep { color: var(--color-ink-faint); user-select: none; }
.crumbs__here { color: var(--color-accent); font-weight: 700; }

/* Products page sidebar list — replaces filter rail */
.product-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.product-list__items li {
  border-bottom: 1px solid var(--color-rule-faint);
}
.product-list__items li:last-child { border-bottom: 0; }
.product-list__items a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out), padding-left var(--dur-fast) var(--ease-out);
}
.product-list__items a:hover {
  color: var(--color-accent);
  padding-left: 4px;
}

/* Mobile dropdown toggle for the product list sidebar */
.product-list__toggle { display: none; }
@media (max-width: 959.98px) {
  .product-list { position: static; border-top: 0; }
  .product-list__toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: var(--color-paper-elevated);
    border: 1px solid var(--color-rule);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-secondary);
    font-size: var(--type-body-small);
    font-weight: 600;
    color: var(--color-ink-strong);
    cursor: pointer;
    margin-bottom: var(--space-3);
  }
  .product-list__toggle-count {
    margin-left: 6px;
    color: var(--color-ink-quiet);
    font-weight: 500;
  }
  .product-list__toggle-chev {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-ink);
    border-bottom: 2px solid var(--color-ink);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.18s ease;
    margin-left: auto;
  }
  .product-list.is-open .product-list__toggle-chev {
    transform: rotate(-135deg) translate(-2px, -2px);
  }
  .product-list__group {
    display: none;
    background: var(--color-paper-elevated);
    border: 1px solid var(--color-rule);
    border-radius: 8px;
    padding: var(--space-4) !important;
    max-height: 60vh;
    overflow-y: auto;
  }
  .product-list.is-open .product-list__group { display: block; }
  /* The .filters__title is redundant when the toggle button is visible */
  .product-list .filters__title { display: none; }
}

/* Catalog toolbar + sort dropdown stack vertically on phone */
@media (max-width: 639.98px) {
  body.peptide-page--catalog .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
  }
  body.peptide-page--catalog .sort {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
  }
  body.peptide-page--catalog .sort select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }
}

/* ==========================================================================
   How it works — v2 (editorial sticky header + numbered list)
   ========================================================================== */
.how-v2 { padding: var(--section-y) 0; border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule); }
.how-v2__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
}
@media (min-width: 960px) {
  .how-v2__layout { grid-template-columns: 1fr 1.6fr; gap: var(--space-9); }
  .how-v2__intro { position: sticky; top: 96px; }
}
.how-v2__intro h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--color-ink-strong);
  margin: var(--space-4) 0 var(--space-5);
}
.how-v2__intro h2 em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-accent);
}
.how-v2__intro p {
  color: var(--color-ink-quiet);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 36ch;
}

.how-v2__steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step;
}
.how-v2__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-6);
  padding: var(--space-7) 0;
  align-items: start;
  border-top: 1px solid var(--color-ink);
  position: relative;
  transition: padding-top var(--dur-base) var(--ease-out);
}
.how-v2__step:hover { padding-top: calc(var(--space-7) + 2px); }
.how-v2__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 0.9;
  color: var(--color-accent);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  min-width: 110px;
}
.how-v2__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-ink-strong);
  margin: 4px 0 var(--space-3);
}
.how-v2__title em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-accent);
}
.how-v2__body {
  color: var(--color-ink-quiet);
  font-size: var(--type-body);
  line-height: 1.6;
  max-width: 56ch;
}
.how-v2__step::after {
  /* small mono kicker at top-right of each step */
  content: 'Step ' counter(step) ' of 3';
  counter-increment: step;
  position: absolute;
  top: var(--space-4);
  right: 0;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 540px) {
  .how-v2__num { min-width: 80px; font-size: 2.5rem; }
  .how-v2__step::after { display: none; }
}

/* ==========================================================================
   Trusted research solutions — lab BG image with dark overlay
   ========================================================================== */
.trusted {
  background:
    linear-gradient(135deg, rgba(13, 24, 42, 0.88) 0%, rgba(30, 58, 95, 0.92) 100%),
    url('../img/lab-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  border-top: 1px solid var(--brand-700);
  border-bottom: 1px solid var(--brand-700);
  position: relative;
}

/* Section header — light text on dark image */
.trusted .sect-head .eyebrow { color: rgba(245, 247, 250, 0.7); }
.trusted .sect-head .eyebrow .glyph { color: var(--brand-500); }
.trusted .sect-head__title { color: #FFFFFF; }
.trusted .sect-head__title em { color: var(--brand-500); }
.trusted .sect-head__sub { color: rgba(245, 247, 250, 0.78); }

/* Cards — solid white, slight shadow lift against dark bg */
.trusted__item {
  background: #FFFFFF;
  border: 0;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Soft scroll-reveal animations (Phase 2 polish)
   Only animate when prefers-reduced-motion: no-preference.
   ========================================================================== */
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: no-preference) {
  /* Generic single-element reveal — fade-up */
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger direct children — for grids of cards */
  [data-reveal-children] > * {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  [data-reveal-children].is-visible > * {
    opacity: 1;
    transform: translateY(0);
  }
  [data-reveal-children].is-visible > *:nth-child(1)  { transition-delay:   0ms; }
  [data-reveal-children].is-visible > *:nth-child(2)  { transition-delay:  70ms; }
  [data-reveal-children].is-visible > *:nth-child(3)  { transition-delay: 140ms; }
  [data-reveal-children].is-visible > *:nth-child(4)  { transition-delay: 210ms; }
  [data-reveal-children].is-visible > *:nth-child(5)  { transition-delay: 280ms; }
  [data-reveal-children].is-visible > *:nth-child(6)  { transition-delay: 350ms; }
  [data-reveal-children].is-visible > *:nth-child(7)  { transition-delay: 420ms; }
  [data-reveal-children].is-visible > *:nth-child(8)  { transition-delay: 490ms; }
  [data-reveal-children].is-visible > *:nth-child(9)  { transition-delay: 560ms; }
  [data-reveal-children].is-visible > *:nth-child(10) { transition-delay: 630ms; }

  /* Image fade-in when lazy-loaded image finishes loading */
  img[loading="lazy"]:not(.is-loaded) {
    opacity: 0;
    transition: opacity 500ms ease-out;
  }
  img[loading="lazy"].is-loaded { opacity: 1; }
}

/* ==========================================================================
   Button hover: smooth left-to-right fill via ::before overlay (Phase 2)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Make .btn the stacking context for the slide overlay */
  .btn--primary,
  .btn--secondary {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }

  /* Sliding fill overlay — sits behind text */
  .btn--primary::before,
  .btn--secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
  }

  /* Reveal on hover */
  .btn--primary:hover::before,
  .btn--primary:focus-visible::before,
  .btn--secondary:hover::before,
  .btn--secondary:focus-visible::before {
    transform: scaleX(1);
  }

  /* Per-variant fill colors */
  .btn--primary::before  { background: var(--color-accent); }
  .btn--secondary::before { background: var(--color-accent); }

  /* Disable the legacy background-color transition — we're using the slide now */
  .btn--primary:hover,
  .btn--primary:focus-visible {
    background: var(--color-ink-strong);
    border-color: var(--color-accent-strong);
  }
  .btn--secondary:hover,
  .btn--secondary:focus-visible {
    background: transparent;
    color: var(--color-paper);
    border-color: var(--color-ink);
  }
}

/* Product card "View options" button — left-to-right fill on card hover */
@media (prefers-reduced-motion: no-preference) {
  .product__cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
  }
  .product__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
  }
  .product:hover .product__cta::before,
  .product:focus-visible .product__cta::before {
    transform: scaleX(1);
  }
  /* Disable the legacy background-snap on hover — slide handles the visual */
  .product:hover .product__cta {
    background: transparent;
    color: var(--color-paper);
  }
}

/* ==========================================================================
   COA Library (Phase 2 — Research page repurposed)
   ========================================================================== */
.coa-library { margin-top: var(--space-7); }
.coa-library__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-rule);
  flex-wrap: wrap;
}
.coa-library__search {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: 6px;
  padding: 10px 14px;
  flex: 1 1 320px;
  max-width: 480px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.coa-library__search:focus-within { border-color: var(--color-ink); }
.coa-library__search svg { width: 16px; height: 16px; color: var(--color-ink-quiet); flex-shrink: 0; }
.coa-library__search input {
  flex: 1; border: 0; background: transparent;
  font: inherit; font-family: var(--font-body); font-size: var(--type-body-small);
  color: var(--color-ink); padding: 0;
}
.coa-library__search input:focus { outline: 0; }
.coa-library__count {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.coa-library__head, .coa-library__row {
  display: grid;
  grid-template-columns: 90px 1.5fr 1.4fr 110px 100px 130px;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4);
}
.coa-library__head {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--color-rule);
}
.coa-library__list { list-style: none; padding: 0; margin: 0; }
.coa-library__row {
  border-bottom: 1px solid var(--color-rule-faint);
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink);
  transition: background var(--dur-fast) var(--ease-out);
}
.coa-library__row:hover { background: var(--color-paper-recessed); }
.coa-library__lot { font-weight: 500; color: var(--color-ink-strong); font-variant-numeric: tabular-nums; }
.coa-library__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--color-ink-strong); }
.coa-library__name a { color: inherit; }
.coa-library__name a:hover { color: var(--color-accent); }
.coa-library__cas { color: var(--color-ink-quiet); font-variant-numeric: tabular-nums; }
.coa-library__date { color: var(--color-ink-quiet); font-variant-numeric: tabular-nums; }
.coa-library__purity { color: var(--color-status-pass); font-variant-numeric: tabular-nums; }
.coa-library__dl {
  font-family: var(--font-body); font-size: var(--type-body-small);
  color: var(--color-accent);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  justify-self: end;
  white-space: nowrap;
}
.coa-library__dl:hover { color: var(--color-accent-strong); }
.coa-library__empty {
  padding: var(--space-7);
  text-align: center;
  font-family: var(--font-secondary); font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}

@media (max-width: 880px) {
  .coa-library__head { display: none; }
  .coa-library__row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2) var(--space-4);
    padding: var(--space-4);
    background: var(--color-paper-elevated);
    border: 1px solid var(--color-rule);
    border-radius: 6px;
    margin-bottom: var(--space-3);
  }
  .coa-library__name { grid-column: 1 / -1; font-size: 1.0625rem; }
  .coa-library__dl { grid-column: 1 / -1; justify-self: start; margin-top: 4px; }
}

/* COA library — View button + modal */
.coa-library__view {
  font-family: var(--font-body); font-size: var(--type-body-small);
  font-weight: 500;
  color: var(--color-ink);
  background: transparent;
  border: 1px solid var(--color-ink);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  justify-self: end;
  white-space: nowrap;
  display: inline-flex; align-items: center;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.coa-library__view:hover, .coa-library__view:focus-visible {
  background: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}

/* Modal */
.coa-modal {
  border: 0; padding: 0;
  border-radius: 8px;
  max-width: 720px; width: 92vw;
  max-height: 90vh;
  background: var(--color-paper-elevated);
  color: var(--color-ink);
  box-shadow: 0 30px 80px -20px rgba(13, 24, 42, 0.5);
  overflow: auto;
}
.coa-modal::backdrop { background: rgba(13, 24, 42, 0.65); backdrop-filter: blur(4px); }
.coa-modal__close {
  position: absolute; top: 16px; right: 16px;
  background: var(--color-paper-recessed); border: 1px solid var(--color-rule);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 14px; color: var(--color-ink);
  display: grid; place-items: center;
  transition: background var(--dur-fast) var(--ease-out);
}
.coa-modal__close:hover { background: var(--color-ink); color: var(--color-paper); }
.coa-modal__body { padding: var(--space-7); display: flex; flex-direction: column; gap: var(--space-5); }
.coa-modal__head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: var(--space-4); border-bottom: 2px solid var(--color-ink); }
.coa-modal__brand strong { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.06em; color: var(--color-ink-strong); display: block; }
.coa-modal__brand span { font-family: var(--font-secondary); font-size: var(--type-mono-small); color: var(--color-ink-quiet); letter-spacing: 0.06em; text-transform: uppercase; }
.coa-modal__lot { font-family: var(--font-secondary); font-size: var(--type-mono-small); color: var(--color-accent); font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.coa-modal__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.75rem; line-height: 1.1; color: var(--color-ink-strong);
  margin: 0;
}
.coa-modal__specs {
  display: grid; grid-template-columns: 140px 1fr; gap: 8px var(--space-5);
  font-family: var(--font-secondary); font-size: var(--type-mono); margin: 0;
  border-top: 1px solid var(--color-rule); border-bottom: 1px solid var(--color-rule);
  padding: var(--space-4) 0;
}
.coa-modal__specs dt { color: var(--color-ink-faint); font-size: var(--type-mono-small); }
.coa-modal__specs dd { margin: 0; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.coa-modal__chart {
  background: var(--color-paper-recessed);
  border-radius: 6px;
  padding: var(--space-4) var(--space-5);
  color: var(--color-accent);
}
.coa-modal__chart svg { width: 100%; height: auto; }
.coa-modal__chart-title { font-family: var(--font-secondary); font-size: var(--type-mono-small); color: var(--color-ink-quiet); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--space-3); }
.coa-modal__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--color-rule); font-family: var(--font-secondary); font-size: var(--type-mono-small); color: var(--color-ink-quiet); }
.coa-modal__seal {
  width: 84px; height: 84px;
  background: var(--color-ruo);
  clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%, 0 20%);
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-body); font-weight: 700; font-size: 11px;
  color: #fff; letter-spacing: 0.06em; line-height: 1.05; padding: 4px;
}

/* ============================================================
   Icon animations (ported from biotech-futurist template)
   ============================================================ */
@keyframes s20-twinkle      { 0%,100%{opacity:.85;transform:rotate(0)}      50%{opacity:1;transform:rotate(180deg)} }
@keyframes s20-drift        { 0%,100%{transform:translateY(0)}              50%{transform:translateY(-3px)} }
@keyframes s20-pulse-soft   { 0%,100%{transform:scale(1);opacity:.92}       50%{transform:scale(1.08);opacity:1} }

/* Eyebrow glyph (✦) — slow twinkle wherever it appears */
.eyebrow .glyph,
.manifesto__eyebrow .glyph { display: inline-block; transform-origin: center; animation: s20-twinkle 6s ease-in-out infinite; }

/* Hero trust badges — staggered drift on the checkmark SVGs */
.hero__badges li svg { animation: s20-drift 3.2s ease-in-out infinite; }
.hero__badges li:nth-child(2) svg { animation-delay: .4s; }
.hero__badges li:nth-child(3) svg { animation-delay: .8s; }
.hero__badges li:nth-child(4) svg { animation-delay: 1.2s; }

/* Hero authenticity shield — subtle hover rotate */
.hero__guarantee__icon svg { transition: transform 500ms cubic-bezier(.2,.7,.2,1); transform-origin: center; }
.hero__guarantee:hover .hero__guarantee__icon svg { transform: rotate(-8deg) scale(1.08); }

/* Trusted research icons — lift + tilt + scale on card hover */
.trusted__icon { transition: transform 500ms cubic-bezier(.2,.7,.2,1), border-color 400ms ease, color 400ms ease; }
.trusted__icon svg { transition: transform 500ms cubic-bezier(.2,.7,.2,1); }
.trusted__item:hover .trusted__icon { transform: translateY(-3px); border-color: var(--color-accent); }
.trusted__item:hover .trusted__icon svg { transform: rotate(-4deg) scale(1.08); }

/* Purity method abbreviations — letter-spacing widen on hover */
.purity__abbr { transition: letter-spacing 400ms ease, color 400ms ease; }
.purity__method:hover .purity__abbr { letter-spacing: 0.32em; color: var(--color-accent); }

/* How it works step numbers — lift + glow on hover */
.how-v2__num { transition: transform 400ms ease, color 400ms ease, text-shadow 400ms ease; }
.how-v2__step:hover .how-v2__num { transform: translateY(-3px) scale(1.05); color: var(--color-accent); text-shadow: 0 0 18px rgba(79,127,175,0.25); }

/* All arrow icons in buttons — slide right on hover (extends existing rule for btn--primary only) */
.btn .arrow,
.btn .icon-arrow { transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
.btn:hover .arrow,
.btn:hover .icon-arrow { transform: translateX(4px); }

/* Product card CTA arrow (the text → inside View options) — slide on card hover */
.product__cta span[aria-hidden] { display: inline-block; transition: transform 300ms cubic-bezier(.2,.7,.2,1); }
.product:hover .product__cta span[aria-hidden] { transform: translateX(4px); }

/* Reduced-motion guard */
@media (prefers-reduced-motion: reduce) {
	.eyebrow .glyph,
	.manifesto__eyebrow .glyph,
	.hero__badges li svg { animation: none !important; }
	.hero__guarantee__icon svg,
	.trusted__icon, .trusted__icon svg,
	.purity__abbr,
	.how-v2__num,
	.btn .arrow, .btn .icon-arrow,
	.product__cta span[aria-hidden] { transition: none !important; }
}

/* Ghost-blue buttons (inline-styled with accent border) — white text on hover.
   Selector targets the inline style attribute so it ONLY hits the ghost variant,
   not regular .btn--primary buttons. !important overrides the inline color. */
.btn--primary[style*="border-color:var(--color-accent)"]:hover {
  color: #fff !important;
}

/* ============================================================
   Global header search (inline expanding input + live results)
   ============================================================ */
.header-search { position: relative; display: inline-flex; align-items: center; }

/* Toggle button mirrors the existing .utility__btn look; stays in place
   while open (accent tint) so opening the search never shifts the nav. */
.header-search[data-state="open"] .header-search__toggle { color: var(--color-accent); }

/* No background block behind the search icon — color feedback only */
.header-search__toggle:hover,
.header-search__toggle:focus,
.header-search__toggle:focus-visible { background: transparent; }
.header-search__toggle:hover { color: var(--color-accent); }

/* Form: hidden by default; opens as a floating panel anchored below the
   icon — out of the header flow, so nothing moves. */
.header-search__form {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 210;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 10px 6px 12px;
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft);
  min-width: 320px;
  box-shadow: 0 16px 36px rgba(13, 24, 42, 0.10);
  transition: border-color var(--dur-base) var(--ease-out);
}
.header-search[data-state="open"] .header-search__form { display: inline-flex; }
.header-search__form:focus-within { border-color: var(--color-accent); }

.header-search__form-icon { display: inline-flex; align-items: center; color: var(--color-ink-quiet); }
.header-search__form-icon svg { width: 14px; height: 14px; }

.header-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: var(--type-body-small);
  color: var(--color-ink);
  padding: 4px 0;
}
.header-search__input::placeholder { color: var(--color-ink-quiet); }
.header-search__input::-webkit-search-cancel-button { display: none; } /* we render our own ✕ */

.header-search__close {
  background: transparent;
  border: 0;
  color: var(--color-ink-quiet);
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  transition: color var(--dur-fast) var(--ease-out);
}
.header-search__close:hover { color: var(--color-accent); }
.header-search__close svg { width: 14px; height: 14px; }

/* Results dropdown — anchored below the floating form, right-aligned */
.header-search__results {
  position: absolute;
  top: calc(100% + 60px); /* icon bottom + form height + gaps */
  right: 0;
  min-width: 380px;
  max-width: 480px;
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft);
  box-shadow: 0 16px 36px rgba(13, 24, 42, 0.10);
  max-height: 480px;
  overflow-y: auto;
  z-index: 200;
}
.header-search__results[hidden] { display: none; }

.header-search__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-rule-faint);
  text-decoration: none;
  color: inherit;
  transition: background var(--dur-fast) var(--ease-out);
}
.header-search__item:last-child { border-bottom: 0; }
.header-search__item:hover,
.header-search__item:focus { background: var(--color-paper-recessed); outline: 0; }

.header-search__item-body { min-width: 0; }
.header-search__item-title {
  font-weight: 500;
  color: var(--color-ink);
  font-size: var(--type-body-small);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-search__item-sku {
  font-family: var(--font-secondary);
  font-size: var(--type-caption);
  color: var(--color-ink-quiet);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.header-search__item-price {
  font-weight: 500;
  color: var(--color-accent);
  font-size: var(--type-body-small);
  white-space: nowrap;
}

.header-search__empty {
  padding: var(--space-5) var(--space-4);
  text-align: center;
  color: var(--color-ink-quiet);
  font-size: var(--type-body-small);
}

/* Mobile: shrink results panel width to viewport */
@media (max-width: 640px) {
  .header-search__form { min-width: 240px; }
  .header-search__results { min-width: 280px; max-width: calc(100vw - 24px); }
}

/* ============================================================
   Mobile content-flow tweaks
   - Homepage hero: image above text
   - Product page: title → image → content
   ============================================================ */
@media (max-width: 880px) {
  /* Homepage hero — visual on top, then text. Tighten so the image hugs the
     nav and the text floats up underneath it. */
  .hero { padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(2rem, 5vw, 3rem); }
  .hero__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-4); }
  .hero__visual { order: -1; min-height: 0; }
  .hero__vial-stage { max-width: 320px; margin: 0 auto; }
  .hero__head { order: 0; }

  /* Hero trust badges: 2-up grid (2 columns × 2 rows), larger semibold text */
  .hero__badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3) var(--space-4);
  }
  .hero__badges li {
    font-size: 14px;
    font-weight: 600;
  }

  /* Product page hero — flatten .pdp-info so its children participate in the
     parent flex layout, then reorder so the vial sits between title and body */
  .pdp-hero { display: flex; flex-direction: column; gap: var(--space-4); }
  .pdp-info { display: contents; }
  .pdp-info__eyebrow { order: 1; }
  .pdp-info__name    { order: 2; }
  .pdp-visual        { order: 3; }
  .pdp-info__pills   { order: 4; }
  .pdp-info__desc    { order: 5; }
  .pdp-bulk          { order: 6; }
  .pdp-buy           { order: 7; }
}

/* ============================================================
 * Toast notifications — WooCommerce notices (success / error /
 * info) render as fixed on-brand toasts that auto-dismiss:
 * success = deep navy, error = status-flag, info = quiet slate.
 * Scoped rules keep notices inline on my-account, auth and
 * checkout surfaces, where they must stay anchored to content.
 * ============================================================ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  max-width: 380px;
  margin: 0;
  padding: 16px 42px 16px 18px; /* right pad clears the × button */
  background: var(--color-accent-strong);
  border: 0;
  outline: 0;
  border-radius: 6px;
  box-shadow: none;
  list-style: none;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  line-height: 1.5;
  color: #FFFFFF;
  animation: peptide-toast-in 0.32s cubic-bezier(0.2, 0.7, 0.2, 1.05) both;
  transition: top 0.25s var(--ease-out);
}
.woocommerce-error { background: var(--color-status-flag); }
.woocommerce-info  { background: var(--color-ink-quiet); }
.woocommerce-message li, .woocommerce-message > li,
.woocommerce-error li,   .woocommerce-error > li,
.woocommerce-info li,    .woocommerce-info > li { list-style: none; padding: 0; margin: 0; color: #FFFFFF; }
.woocommerce-error li + li,
.woocommerce-message li + li { margin-top: 6px; }
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-error li::before { content: none; }
.woocommerce-message .button,
.woocommerce-message a.button,
.woocommerce-message .wc-forward,
.woocommerce-error .button,
.woocommerce-error a.button,
.woocommerce-error .wc-forward,
.woocommerce-info .button,
.woocommerce-info a.button,
.woocommerce-info .wc-forward,
.woocommerce-info a.restore-item {
  display: inline-block;
  margin-left: 10px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  font-size: var(--type-mono-small);
  font-weight: 600;
  text-decoration: none;
  float: none;
  transition: background var(--dur-fast) var(--ease-out);
}
.woocommerce-message .button:hover,
.woocommerce-message a.button:hover,
.woocommerce-error .button:hover,
.woocommerce-error a.button:hover,
.woocommerce-info .button:hover,
.woocommerce-info a.button:hover,
.woocommerce-info a.restore-item:hover { background: rgba(255, 255, 255, 0.28); color: #FFFFFF; }
.s20-toast__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.s20-toast__close:hover { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.peptide-toast--dismissing { animation: peptide-toast-out 0.28s ease both; }
@keyframes peptide-toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: none; }
}
@keyframes peptide-toast-out {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: translateX(20px); }
}
@media (max-width: 540px) {
  .woocommerce-message,
  .woocommerce-error,
  .woocommerce-info { left: 12px; right: 12px; top: 12px; max-width: none; }
}
/* Re-anchor inline on my-account + auth pages (override the fixed positioning) */
body.auth-page .woocommerce-message,
body.auth-page .woocommerce-error,
body.auth-page .woocommerce-info,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-info {
  position: static;
  top: auto; right: auto;
  max-width: none;
  z-index: auto;
  box-shadow: none;
  animation: none;
}
body.auth-page .woocommerce-message, body.auth-page .woocommerce-message li,
body.auth-page .woocommerce-error,   body.auth-page .woocommerce-error li,
body.auth-page .woocommerce-info,    body.auth-page .woocommerce-info li,
body.woocommerce-account .woocommerce-message, body.woocommerce-account .woocommerce-message li,
body.woocommerce-account .woocommerce-error,   body.woocommerce-account .woocommerce-error li,
body.woocommerce-account .woocommerce-info,    body.woocommerce-account .woocommerce-info li {
  color: var(--color-ink);
}
/* Checkout validation errors list every field that failed — keep them
   inline above the form as a brand alert instead of a vanishing toast. */
body.woocommerce-checkout .woocommerce-error {
  position: static;
  top: auto; right: auto;
  max-width: none;
  z-index: auto;
  margin: 0 0 var(--space-5);
  padding: 14px 18px;
  background: var(--color-paper-elevated);
  border-left: 3px solid var(--color-status-flag);
  border-radius: 6px;
  color: var(--color-ink);
  animation: none;
}
body.woocommerce-checkout .woocommerce-error li { color: var(--color-ink); }

/* Featured products on homepage:
 *  Desktop (1024+): all 8 in 4-col grid
 *  Tablet  (640–1024): show 6 in 3-col grid
 *  Mobile  (<640): single-column stack, only 4 cards
 */
@media (max-width: 1023.98px) {
  .products .product-grid .product:nth-child(n+7) { display: none; }
}
@media (max-width: 639.98px) {
  .products .product-grid { grid-template-columns: 1fr !important; gap: var(--space-5); }
  .products .product-grid .product:nth-child(n+5) { display: none; }
}

/* ============================================================
 * WooCommerce — My Account (brand-aligned)
 * Targets the WC default markup; no template overrides needed.
 * ============================================================ */
body.woocommerce-account .entry-header,
body.woocommerce-account .page-header {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 0;
}
body.woocommerce-account .entry-header h1,
body.woocommerce-account .page-header h1,
body.woocommerce-account .entry-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink-strong);
  margin: 0 0 var(--space-2);
}
body.woocommerce-account .entry-content,
body.woocommerce-account main .woocommerce {
  max-width: 880px;
  margin: 0 auto;
  padding: var(--space-5) 24px var(--space-7);
}

/* Login + Register columns — equal-width side-by-side, single column on mobile */
body.woocommerce-account .woocommerce > .u-columns,
body.woocommerce-account .woocommerce .u-columns,
body.woocommerce-account .woocommerce .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin: 0;
}
@media (max-width: 720px) {
  body.woocommerce-account .woocommerce > .u-columns,
  body.woocommerce-account .woocommerce .u-columns,
  body.woocommerce-account .woocommerce .col2-set { grid-template-columns: 1fr; }
}
body.woocommerce-account .woocommerce .u-column1,
body.woocommerce-account .woocommerce .u-column2,
body.woocommerce-account .woocommerce .col-1,
body.woocommerce-account .woocommerce .col-2 { width: 100%; float: none; padding: 0; }

/* Addresses page — billing and shipping side-by-side.
 * Kadence's woocommerce.min.css floats .col-1 right + .col-2 left at
 * 48% width, which fights the grid. Use !important here so the grid
 * wins regardless of which CSS file Kadence inlines after this load. */
body.woocommerce-account .woocommerce-Addresses,
body.woocommerce-account .woocommerce-MyAccount-content .woocommerce-Addresses {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: var(--space-5);
  margin: var(--space-4) 0 0;
  width: 100%;
  float: none !important;
}
body.woocommerce-account .woocommerce-Addresses::before,
body.woocommerce-account .woocommerce-Addresses::after { display: none !important; }
body.woocommerce-account .woocommerce-Address,
body.woocommerce-account .woocommerce-Addresses .u-column1,
body.woocommerce-account .woocommerce-Addresses .u-column2,
body.woocommerce-account .woocommerce-Addresses .col-1,
body.woocommerce-account .woocommerce-Addresses .col-2 {
  width: auto !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: var(--space-5);
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft, 12px);
  box-sizing: border-box;
}
body.woocommerce-account .woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-rule-faint);
}
body.woocommerce-account .woocommerce-Address-title h2,
body.woocommerce-account .woocommerce-Address-title h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ink-strong);
  margin: 0;
  letter-spacing: -0.01em;
}
body.woocommerce-account .woocommerce-Address address {
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  line-height: 1.6;
  color: var(--color-ink);
  font-style: normal;
  margin: 0;
}
@media (max-width: 640px) {
  body.woocommerce-account .woocommerce-Addresses { grid-template-columns: 1fr; }
}

/* Form cards */
body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account .woocommerce-form-register,
body.woocommerce-account .woocommerce-ResetPassword,
body.woocommerce-account form.lost_reset_password {
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft, 12px);
  padding: var(--space-5) var(--space-5) var(--space-5);
  margin: 0;
  box-shadow: 0 4px 14px rgba(8, 14, 28, 0.04);
}

/* Section sub-headings ("Login" / "Register") */
body.woocommerce-account .woocommerce h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-ink-strong);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}

/* Helper / lead copy */
body.woocommerce-account .woocommerce-form__label,
body.woocommerce-account .woocommerce form label,
body.woocommerce-account .woocommerce p {
  font-family: var(--font-secondary);
}
body.woocommerce-account .woocommerce-form-row label,
body.woocommerce-account .woocommerce form .form-row label {
  display: block;
  font-size: var(--type-body-small);
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 6px;
}
body.woocommerce-account .required { color: var(--color-status-flag); }

/* Inputs */
body.woocommerce-account .woocommerce input[type="text"],
body.woocommerce-account .woocommerce input[type="email"],
body.woocommerce-account .woocommerce input[type="password"],
body.woocommerce-account .woocommerce input[type="tel"],
body.woocommerce-account .woocommerce input[type="number"],
body.woocommerce-account .woocommerce select,
body.woocommerce-account .woocommerce textarea {
  width: 100%;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-secondary);
  font-size: var(--type-body);
  color: var(--color-ink-strong);
  transition: border-color var(--dur-fast, 150ms) var(--ease-out, ease), box-shadow var(--dur-fast, 150ms) var(--ease-out, ease);
}
body.woocommerce-account .woocommerce input:focus,
body.woocommerce-account .woocommerce select:focus,
body.woocommerce-account .woocommerce textarea:focus {
  outline: 0;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-quiet);
}

/* Password reveal eye — keep it visible inside input */
body.woocommerce-account .woocommerce .password-input,
body.woocommerce-account .woocommerce .show-password-input { position: relative; display: block; }
body.woocommerce-account .woocommerce .show-password-input {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--color-ink-quiet); cursor: pointer;
}

/* Remember me checkbox row */
body.woocommerce-account .woocommerce-form__label-for-checkbox,
body.woocommerce-account .woocommerce .form-row label.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  color: var(--color-ink);
  margin: 0;
}
body.woocommerce-account .woocommerce input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--color-accent);
}

/* WC renders its login/register submit as <button class="woocommerce-Button button">
 * — mirror the canonical .btn .btn--primary styles so it matches site buttons. */
body.woocommerce-account .woocommerce button.button,
body.woocommerce-account .woocommerce input[type="submit"].button,
body.woocommerce-account .woocommerce a.button,
body.woocommerce-account .woocommerce .woocommerce-Button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 22px;
  border: 1px solid var(--color-ink-strong);
  border-radius: var(--radius-soft);
  background: var(--color-ink-strong);
  color: var(--color-paper-elevated);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--type-body-small);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
body.woocommerce-account .woocommerce button.button:hover,
body.woocommerce-account .woocommerce input[type="submit"].button:hover,
body.woocommerce-account .woocommerce a.button:hover,
body.woocommerce-account .woocommerce .woocommerce-Button:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  color: var(--color-paper-elevated);
}

/* Form rows spacing */
body.woocommerce-account .woocommerce .form-row,
body.woocommerce-account .woocommerce-form-row {
  margin-bottom: var(--space-4);
  padding: 0;
}
body.woocommerce-account .woocommerce .form-row:last-child,
body.woocommerce-account .woocommerce-form-row:last-child { margin-bottom: 0; }
body.woocommerce-account .woocommerce .form-row.form-row-wide { width: 100%; }

/* Account-details + address forms — separate the submit row from the last field
 * with a top divider and extra breathing room. The submit `<p>` wraps the
 * nonce + button + hidden inputs; target it via :has() so the rule applies
 * to whichever form template (edit-account, edit-address) is rendering. */
body.woocommerce-account p:has(> button[name="save_account_details"]),
body.woocommerce-account p:has(> button[name="save_address"]) {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-rule-faint);
}
/* Fallback for browsers without :has() — direct margin on the button itself */
body.woocommerce-account button[name="save_account_details"],
body.woocommerce-account button[name="save_address"] {
  margin-top: var(--space-2);
}

/* ============================================================
 * Auth page — chrome-less login/register surface
 * Used for logged-out visitors hitting /my-account/.
 * ============================================================ */
body.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--color-accent-quiet) 0%, var(--color-paper) 55%, var(--color-paper) 100%);
  margin: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
body.auth-page #wpadminbar { display: none; }
body.auth-page.admin-bar { padding-top: 0; }
html.admin-bar body.auth-page { margin-top: 0 !important; }
.auth-page__wrap {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
/* Full-width 50/50 split-screen: marketing aside (left) + auth card (right) */
.auth-page__grid {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}
.auth-page__card {
  width: 100%;
  max-width: 576px;
  justify-self: center;
  align-self: center;
  margin: 0 auto;
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft, 12px);
  box-shadow: 0 24px 48px rgba(8, 14, 28, 0.06), 0 6px 14px rgba(8, 14, 28, 0.04);
  padding: var(--space-6);
}
/* Breathing room around the card within its half */
.auth-page__grid > .auth-page__card { margin: var(--space-7) clamp(var(--space-5), 5vw, var(--space-9)); }

/* ---- Left marketing aside ---- */
.auth-page__aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-6);
  padding: clamp(var(--space-7), 6vw, var(--space-10)) clamp(var(--space-6), 6vw, var(--space-9));
  background: linear-gradient(160deg, #0B1440 0%, #16213f 60%, #1E3A5F 100%);
  border-radius: 0;
  color: var(--brand-050);
  position: relative;
  overflow: hidden;
}
.auth-page__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(122,176,224,0.10) 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.6;
  pointer-events: none;
}
.auth-page__aside > * { position: relative; z-index: 1; }
.auth-page__aside-brand img { height: 56px; width: auto; }
.auth-page__aside-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.6vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--brand-050);
  margin: 0;
}
.auth-page__aside-lede {
  color: rgba(245, 247, 250, 0.78);
  font-size: var(--type-body);
  line-height: 1.6;
  margin: var(--space-3) 0 0;
}
.auth-page__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.auth-page__feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
}
.auth-page__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 8px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}
.auth-page__feature-icon svg { width: 20px; height: 20px; }
.auth-page__feature-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--brand-050);
  margin: 0 0 4px;
}
.auth-page__feature-text p {
  color: rgba(245, 247, 250, 0.72);
  font-size: var(--type-body-small);
  line-height: 1.55;
  margin: 0;
}
.auth-page__aside-ruo {
  margin: auto 0 0;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(245, 247, 250, 0.55);
}

/* Single column on tablet/mobile — aside above the card */
@media (max-width: 900px) {
  .auth-page__grid { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .auth-page__aside { justify-content: flex-start; gap: var(--space-6); padding: var(--space-7) var(--gutter); }
  .auth-page__grid > .auth-page__card { max-width: 576px; margin: var(--space-7) auto; }
}
@media (max-width: 560px) {
  /* Compact blue logo header above the form on phones (matches branded desktop look) */
  .auth-page__aside {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    padding: var(--space-6) var(--gutter);
    text-align: center;
  }
  /* Keep only the logo on the blue gradient — hide the long marketing content on phones */
  .auth-page__aside-intro,
  .auth-page__features,
  .auth-page__aside-ruo { display: none; }
  .auth-page__aside-brand { margin: 0; }
  .auth-page__aside-brand img { height: 46px; }
  /* Avoid a duplicate logo: the form card's own (dark) logo is redundant under the blue band */
  .auth-page__brand { display: none; }
  .auth-page__grid > .auth-page__card { margin: 0 var(--gutter) var(--space-6); border-radius: 0 0 16px 16px; }
}
.auth-page__brand {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-5);
}
.auth-page__brand img {
  height: 64px;
  width: auto;
  display: block;
}
.auth-page__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--color-paper-recessed);
  border-radius: 10px;
  margin-bottom: var(--space-5);
}
.auth-page__tab {
  background: transparent;
  border: 0;
  padding: 10px 14px;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  font-weight: 600;
  color: var(--color-ink-quiet);
  border-radius: 7px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.auth-page__tab:hover { color: var(--color-ink); }
.auth-page__tab.is-active {
  background: var(--color-paper-elevated);
  color: var(--color-ink-strong);
  box-shadow: 0 2px 6px rgba(8, 14, 28, 0.06);
}
.auth-page__panel { animation: auth-page-fade-in 0.18s ease; }
@keyframes auth-page-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: none; }
}
.auth-page__panel form { margin: 0; }
.auth-page__panel h2 { display: none; }
.auth-page__panel .form-row { margin-bottom: var(--space-3); }
.auth-page__panel label {
  display: block;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  font-weight: 500;
  color: var(--color-ink);
  margin-bottom: 6px;
}
.auth-page__panel input[type="text"],
.auth-page__panel input[type="email"],
.auth-page__panel input[type="password"],
.auth-page__panel input[type="tel"],
.auth-page__panel input[type="date"],
.auth-page__panel select,
.auth-page__panel textarea {
  width: 100%;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--font-secondary);
  font-size: var(--type-body);
  color: var(--color-ink-strong);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.auth-page__panel input:focus,
.auth-page__panel select:focus,
.auth-page__panel textarea:focus {
  outline: 0;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-quiet);
}
.auth-page__panel select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%234A5A6E' stroke-width='1.5'><path d='M1 1l5 5 5-5'/></svg>") no-repeat right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}
.auth-page__submit { width: 100%; justify-content: center; }
.auth-page__alt {
  margin: var(--space-4) 0 0;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  color: var(--color-ink-quiet);
}
.auth-page__alt a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.auth-page__alt a:hover { border-bottom-color: var(--color-accent); }
.auth-page__alt-sep { margin: 0 8px; color: var(--color-ink-faint); }
body.auth-page .register-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
body.auth-page .register-form__dob-row {
  display: flex;
  gap: 8px;
}
body.auth-page .register-form__dob-row select {
  flex: 1;
  min-width: 0;
}
body.auth-page .register-form__hint {
  display: block;
  margin-top: 6px;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}
body.auth-page .register-form__terms {
  background: var(--color-paper-recessed);
  border: 1px solid var(--color-rule);
  border-radius: 10px;
  padding: var(--space-4);
  margin: var(--space-3) 0 var(--space-4);
}
body.auth-page .register-form__terms-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink-strong);
  margin: 0 0 8px;
}
body.auth-page .register-form__terms-body {
  max-height: 140px;
  overflow-y: auto;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  line-height: 1.55;
  color: var(--color-ink);
  margin: 0 0 var(--space-3);
}
body.auth-page .register-form__terms-body p { margin: 0 0 10px; }
body.auth-page .register-form__terms-body p:last-child { margin-bottom: 0; }
body.auth-page .register-form__terms-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
body.auth-page .register-form__terms-link:hover { border-bottom-color: var(--color-accent); }
body.auth-page .register-form__agree { margin-bottom: var(--space-3); }
body.auth-page .register-form__agree label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  color: var(--color-ink);
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
}
body.auth-page .register-form__agree input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
body.auth-page .woocommerce-error,
body.auth-page .woocommerce-message,
body.auth-page .woocommerce-info {
  background: var(--color-paper-recessed);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  list-style: none;
  margin: 0 0 var(--space-4);
}
body.auth-page .woocommerce-error { border-left-color: var(--color-status-flag); }
body.auth-page .woocommerce-error li { list-style: none; }

@media (max-width: 540px) {
  .auth-page__card { padding: var(--space-5) var(--space-4); }
  .auth-page__brand img { height: 52px; }
}

/* ---------- Registration form ---------- */
body.woocommerce-account .register-form__heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-ink-strong);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
}
/* Honeypot — visually + AT hidden, still reachable to bots */
body.woocommerce-account .register-form__honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important; height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
}
/* Hint text under inputs (e.g. DOB format) */
body.woocommerce-account .register-form__hint {
  display: block;
  margin-top: 6px;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
}
/* Native <select> matches our input look */
body.woocommerce-account .woocommerce select,
body.woocommerce-account .woocommerce-Input--select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%234A5A6E' stroke-width='1.5'><path d='M1 1l5 5 5-5'/></svg>") no-repeat right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}
/* Native <input type="date"> — calendar picker icon styling */
body.woocommerce-account .woocommerce input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--dur-fast) var(--ease-out);
}
body.woocommerce-account .woocommerce input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }

/* Terms of use block */
body.woocommerce-account .register-form__terms {
  background: var(--color-paper-recessed);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft, 12px);
  padding: var(--space-4);
  margin: 0 0 var(--space-4);
}
body.woocommerce-account .register-form__terms-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-ink-strong);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
body.woocommerce-account .register-form__terms-body {
  max-height: 160px;
  overflow-y: auto;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  line-height: 1.55;
  color: var(--color-ink);
  padding-right: 8px;
  margin: 0 0 var(--space-3);
}
body.woocommerce-account .register-form__terms-body p { margin: 0 0 10px; }
body.woocommerce-account .register-form__terms-body p:last-child { margin-bottom: 0; }
body.woocommerce-account .register-form__terms-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
body.woocommerce-account .register-form__terms-link:hover { border-bottom-color: var(--color-accent); }

/* Multi-line checkbox rows — keep checkbox aligned to first line of label */
body.woocommerce-account .register-form__agree {
  margin-bottom: var(--space-4);
}
body.woocommerce-account .register-form__agree label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  color: var(--color-ink);
  line-height: 1.5;
  cursor: pointer;
}
body.woocommerce-account .register-form__agree input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Lost password link */
body.woocommerce-account .woocommerce-LostPassword a,
body.woocommerce-account .lost_password a,
body.woocommerce-account .woocommerce p.lost_password a {
  color: var(--color-accent);
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
body.woocommerce-account .woocommerce-LostPassword a:hover { border-bottom-color: var(--color-accent); }

/* Inline button + remember me row */
body.woocommerce-account .woocommerce-form-login__rememberme { margin-right: 0; }
body.woocommerce-account .woocommerce-form-login__submit { margin-right: 12px; }

/* Notices (login error, password reset email sent, etc.) */
body.woocommerce-account .woocommerce-notices-wrapper { margin-bottom: var(--space-4); }
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info {
  background: var(--color-paper-recessed);
  border-left: 3px solid var(--color-accent);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  color: var(--color-ink-strong);
  list-style: none;
}
body.woocommerce-account .woocommerce-error { border-left-color: var(--color-status-flag); }
body.woocommerce-account .woocommerce-error li,
body.woocommerce-account .woocommerce-message li { list-style: none; }

/* ---------- Account hero banner ---------- */
.account-hero {
  position: relative;
  margin: 0 0 var(--space-6);
  background: transparent;
  border: 0;
  border-radius: 0;
}
.account-hero__bg { display: none; }
.account-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-6);
  align-items: center;
  padding: 8px 0 28px;
  border-bottom: 1px solid var(--color-rule);
}
/* Account hero breadcrumb — uses canonical .crumbs class (see Phase 2 Breadcrumbs above). */

.account-hero__eyebrow {
  display: inline-block;
  padding: 4px 0;
  background: transparent;
  color: var(--color-ink-quiet);
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
}
.account-hero__eyebrow::before {
  content: "✦";
  color: var(--color-accent);
  margin-right: 8px;
  font-weight: 400;
}

.account-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--color-ink-strong);
  margin: 0 0 14px;
}
.account-hero__title em {
  font-style: normal;
  font-weight: 700;
  color: var(--color-accent);
}

.account-hero__sub {
  font-family: var(--font-secondary);
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--color-ink-quiet);
  margin: 0;
  max-width: 620px;
}

.account-hero__aside {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-hero__actions {
  display: inline-flex;
  gap: 10px;
}
/* Buttons here use the canonical .btn / .btn--primary / .btn--secondary classes. */

@media (max-width: 820px) {
  .account-hero__inner {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: var(--space-4);
  }
  .account-hero__aside { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .account-hero__title { font-size: clamp(1.8rem, 7vw, 2.6rem); }
}

/* ---------- Hide Kadence avatar block in the nav rail ---------- */
body.woocommerce-account .kadence-account-avatar { display: none !important; }

/* ============================================================
 * WooCommerce — Cart & Checkout (brand-aligned)
 * Forces the cart block to respect our standard page container
 * and brand-styles the line items, totals card, coupon form,
 * quantity stepper, and primary action buttons.
 * ============================================================ */

/* Reusable hero for cart/checkout pages */
.wc-page-hero {
  padding: 0 0 24px;
  margin: 0 0 var(--space-5);
  border-bottom: 1px solid var(--color-rule);
}
/* Cart/checkout hero breadcrumb — uses canonical .crumbs class. */
.wc-page-hero__eyebrow {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-quiet);
  margin-bottom: 14px;
}
.wc-page-hero__eyebrow::before {
  content: "✦";
  color: var(--color-accent);
  margin-right: 8px;
  font-weight: 400;
}
.wc-page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.018em;
  color: var(--color-ink-strong);
  margin: 0;
}

/* ---------- Container width fix ----------
 * The cart/checkout blocks render with WP's `alignwide` class which
 * breaks out of the parent container with negative margins. Inside
 * our `.wc-wrap`, we constrain them back to the parent container.
 */
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wp-block-woocommerce-cart.alignwide,
body.woocommerce-cart .wp-block-woocommerce-cart.alignfull,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignwide,
body.woocommerce-checkout .wp-block-woocommerce-checkout.alignfull {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* ---------- Two-column layout (2/3 line items · 1/3 totals) ----------
 * The block's actual flex-wrapper for the two columns is
 * `.wp-block-woocommerce-filled-cart-block`. We override its default
 * flex layout with a 2fr / 1fr grid so the columns fill the row.
 */
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
body.woocommerce-cart .wp-block-woocommerce-cart-items-block,
body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
  width: 100%;
  max-width: 100%;
  min-width: 0;   /* let the grid cell control width, not the block */
  margin: 0;
  padding: 0;
  flex: none;
}
@media (max-width: 820px) {
  body.woocommerce-cart .wp-block-woocommerce-filled-cart-block { grid-template-columns: 1fr; }
}

/* ---------- Line items ---------- */
body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart table.wc-block-cart-items {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-secondary);
}
body.woocommerce-cart .wc-block-cart-items thead th {
  text-align: left;
  background: var(--color-paper-recessed);
  color: var(--color-ink-quiet);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--type-mono-small);
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-rule);
}
body.woocommerce-cart .wc-block-cart-items__row,
body.woocommerce-cart .wc-block-cart-items tbody tr {
  border-bottom: 1px solid var(--color-rule-faint);
}
body.woocommerce-cart .wc-block-cart-items td {
  padding: 16px;
  vertical-align: top;
  color: var(--color-ink);
}
body.woocommerce-cart .wc-block-components-product-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink-strong);
  text-decoration: none;
}
body.woocommerce-cart .wc-block-components-product-name:hover { color: var(--color-accent); }
body.woocommerce-cart .wc-block-components-product-price {
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
}
body.woocommerce-cart .wc-block-cart-item__remove-link,
body.woocommerce-cart .wc-block-cart-item__remove-link:visited {
  color: var(--color-ink-quiet);
  font-size: var(--type-body-small);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
  color: var(--color-status-flag);
  border-bottom-color: var(--color-status-flag);
}

/* Hide ONLY the boilerplate product short-description on cart line items.
 * Item-data list (.wc-block-components-product-details) is preserved so
 * variant info like "Size: 10mg" stays visible. */
body.woocommerce-cart .wc-block-components-product-metadata__description,
body.woocommerce-cart .wc-block-cart-item__short-description {
  display: none;
}

/* Variant / item-data list — visible and brand-styled. */
body.woocommerce-cart .wc-block-components-product-details {
  display: block;
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  color: var(--color-ink-quiet);
}
body.woocommerce-cart .wc-block-components-product-details__item,
body.woocommerce-cart .wc-block-components-product-details li {
  margin: 0;
  padding: 2px 0;
  list-style: none;
}
body.woocommerce-cart .wc-block-components-product-details__name {
  font-weight: 600;
  color: var(--color-ink);
  margin-right: 4px;
}
body.woocommerce-cart .wc-block-components-product-details__value { color: var(--color-ink-quiet); }

/* ---------- Quantity stepper inside cart row ---------- */
body.woocommerce-cart .wc-block-components-quantity-selector {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--color-ink);
  border-radius: 6px;
  overflow: hidden;
  height: 40px;
  background: var(--color-paper);
}
body.woocommerce-cart .wc-block-components-quantity-selector__button {
  background: transparent;
  border: 0;
  padding: 0 12px;
  color: var(--color-ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--dur-fast, 150ms) var(--ease-out, ease);
}
body.woocommerce-cart .wc-block-components-quantity-selector__button:hover {
  background: var(--color-ink);
  color: var(--color-paper);
}
body.woocommerce-cart .wc-block-components-quantity-selector__input {
  width: 44px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-secondary);
  font-size: var(--type-body);
  color: var(--color-ink);
  -moz-appearance: textfield;
}
body.woocommerce-cart .wc-block-components-quantity-selector__input::-webkit-outer-spin-button,
body.woocommerce-cart .wc-block-components-quantity-selector__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ---------- Order summary / totals card (right column) ---------- */
body.woocommerce-cart .wp-block-woocommerce-cart-totals-block,
body.woocommerce-cart .wc-block-cart__sidebar {
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft, 12px);
  padding: var(--space-5);
}
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-block {
  background: transparent;
  border: 0;
  padding: 0;
}
body.woocommerce-cart .wc-block-cart__totals-title,
body.woocommerce-cart .wc-block-components-totals-wrapper h2,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block h2,
body.woocommerce-cart .wc-block-components-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-ink-strong);
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-4);
  padding-bottom: 0;
  text-transform: none;
  border-bottom: 0;
  border: 0;
}
body.woocommerce-cart .wc-block-cart__totals-title::after,
body.woocommerce-cart .wc-block-components-title::after,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block::after { display: none; content: none; }

/* Kill the bottom border WC/Kadence may apply to the order-summary heading wrapper */
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block,
body.woocommerce-cart .wc-block-components-totals-wrapper--with-heading {
  border-bottom: 0;
  padding-bottom: 0;
}
body.woocommerce-cart .wc-block-components-totals-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-rule-faint);
}
body.woocommerce-cart .wc-block-components-totals-item:last-child { border-bottom: 0; }
body.woocommerce-cart .wc-block-components-totals-footer-item {
  border-top: 0;
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-ink-strong);
  flex-wrap: wrap;
}
body.woocommerce-cart .wc-block-components-totals-footer-item-tax,
body.woocommerce-cart .wc-block-components-totals-wrapper.wc-block-components-totals-footer-item-wrapper {
  border-top: 0;
}
body.woocommerce-cart .wc-block-components-totals-footer-item::after {
  content: "Shipping will be calculated at checkout";
  flex: 1 0 100%;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  font-weight: 400;
  color: var(--color-ink-faint);
  letter-spacing: 0.02em;
  text-align: right;
  margin-top: 8px;
}
body.woocommerce-cart .wc-block-components-totals-item__label { color: var(--color-ink-quiet); }
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { color: var(--color-ink-strong); }
body.woocommerce-cart .wc-block-formatted-money-amount,
body.woocommerce-cart .wc-block-components-totals-item__value {
  font-variant-numeric: tabular-nums;
  color: var(--color-ink-strong);
  font-weight: 500;
}

/* ---------- Coupon form ---------- */
body.woocommerce-cart .wc-block-components-totals-coupon,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-coupon-form-block {
  border-top: 0;
  margin-top: var(--space-3);
  padding-top: var(--space-3);
}
body.woocommerce-cart .wc-block-components-totals-coupon button.wc-block-components-totals-coupon-link {
  background: transparent;
  border: 0;
  padding: 6px 0;
  color: var(--color-accent);
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
}
body.woocommerce-cart .wc-block-components-totals-coupon button.wc-block-components-totals-coupon-link:hover {
  color: var(--color-accent-strong);
}
body.woocommerce-cart .wc-block-components-text-input input,
body.woocommerce-cart input.wc-block-components-totals-coupon__input {
  width: 100%;
  background: var(--color-paper);
  border: 1px solid var(--color-rule);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-secondary);
  font-size: var(--type-body);
  color: var(--color-ink-strong);
}
body.woocommerce-cart .wc-block-components-text-input input:focus,
body.woocommerce-cart input.wc-block-components-totals-coupon__input:focus {
  outline: 0;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-quiet);
}

/* ---------- Proceed to checkout button — mirror .btn .btn--primary ---------- */
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button,
body.woocommerce-cart .wc-block-components-checkout-place-order-button,
body.woocommerce-cart a.wc-block-cart__submit-button,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  padding: 14px 22px;
  border: 1px solid var(--color-ink-strong);
  border-radius: var(--radius-soft);
  background: var(--color-ink-strong);
  color: var(--color-paper-elevated);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--type-body-small);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
body.woocommerce-cart .wc-block-cart__submit-container .wc-block-components-button:hover,
body.woocommerce-cart .wc-block-components-checkout-place-order-button:hover,
body.woocommerce-cart a.wc-block-cart__submit-button:hover,
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
  background: var(--color-accent-strong);
  border-color: var(--color-accent-strong);
  color: var(--color-paper-elevated);
}

/* ---------- Empty cart state ---------- */
body.woocommerce-cart .wc-block-cart__empty-cart__title,
body.woocommerce-cart .with-empty-cart-icon {
  font-family: var(--font-display);
  color: var(--color-ink-strong);
  font-weight: 600;
  text-align: center;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft, 12px);
  padding: var(--space-7) var(--space-5);
  text-align: center;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid {
  margin-top: var(--space-6);
}

/* Inside the empty-cart block, keep ONLY the "Your cart is currently empty!"
 * title. Hide the dotted separator, "New in store" sub-heading, and the
 * default cross-sell grid that WC ships in the block pattern. The custom
 * "Popular products" section we append via `the_content` is a sibling of
 * this block, so it's unaffected. */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > * { display: none; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wc-block-cart__empty-cart__title { display: block; }
/* Drop the cart-icon pseudo-element above the title — keep just the text */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .with-empty-cart-icon::before,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .with-empty-cart-icon::after {
  display: none;
  content: none;
  background: none;
}

/* Popular products section appended to the empty-cart state. */
.cart-empty-popular {
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-rule);
}
.cart-empty-popular__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-5);
  gap: var(--space-4);
  flex-wrap: wrap;
}
.cart-empty-popular__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-ink-strong);
  margin: 0;
}
.cart-empty-popular .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1024px) {
  .cart-empty-popular .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .cart-empty-popular .product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile dropdown nav ---------- */
.myaccount-nav-toggle {
  display: none;
  width: 100%;
  padding: 14px 18px;
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: 10px;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-ink-strong);
  text-align: left;
  cursor: pointer;
  position: relative;
}
.myaccount-nav-toggle::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid var(--color-ink);
  border-bottom: 2px solid var(--color-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.myaccount-nav-toggle[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }

@media (max-width: 820px) {
  body.woocommerce-account.logged-in .myaccount-nav-toggle { display: block; }
  body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
    margin-top: 8px;
    display: none;
  }
  body.woocommerce-account.logged-in .woocommerce-MyAccount-navigation.is-open { display: block; }
  /* Larger touch targets for the expanded nav items on phones */
  body.woocommerce-account .woocommerce-MyAccount-navigation a {
    padding: 14px 16px;
    font-size: 0.95rem;
  }
}
@media (max-width: 480px) {
  body.woocommerce-account.logged-in .myaccount-nav-toggle { padding: 16px 18px; font-size: 1rem; }
  body.woocommerce-account .woocommerce-MyAccount-navigation a { padding: 16px 14px; }
}

/* ---------- Logged-in dashboard layout (1/4 nav · 3/4 content) ----------
 * Kadence wraps the nav in `.account-navigation-wrap` and applies its own
 * float layout via the body class `kadence-account-nav-right`. Our enqueue
 * priority loads peptide-site.css after Kadence component CSS, so equal-
 * specificity rules win — no `!important` needed.
 */
body.woocommerce-account.logged-in main.wc-wrap .woocommerce {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: var(--space-6);
  align-items: start;
  padding: 0;
  float: none;
}
body.woocommerce-account.logged-in main.wc-wrap .woocommerce > .account-navigation-wrap,
body.woocommerce-account.logged-in main.wc-wrap .woocommerce > .woocommerce-MyAccount-navigation {
  width: 100%;
  max-width: none;
  float: none;
  margin: 0;
  padding: 0;
  grid-column: 1 / 2;
}
body.woocommerce-account.logged-in main.wc-wrap .woocommerce > .woocommerce-MyAccount-content {
  width: 100%;
  max-width: none;
  float: none;
  margin: 0;
  grid-column: 2 / 3;
}
/* Kadence's avatar block above the nav — keep but match brand spacing */
body.woocommerce-account.logged-in .kadence-account-avatar {
  margin: 0 0 12px;
  padding: 12px;
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft, 12px);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  color: var(--color-ink);
}
body.woocommerce-account.logged-in .kadence-account-avatar img {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
}

@media (max-width: 820px) {
  body.woocommerce-account.logged-in main.wc-wrap .woocommerce {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  body.woocommerce-account.logged-in main.wc-wrap .woocommerce > .account-navigation-wrap,
  body.woocommerce-account.logged-in main.wc-wrap .woocommerce > .woocommerce-MyAccount-navigation,
  body.woocommerce-account.logged-in main.wc-wrap .woocommerce > .woocommerce-MyAccount-content {
    grid-column: 1 / -1;
  }
}

/* Smooth transition for AJAX content swap */
body.woocommerce-account .woocommerce-MyAccount-content {
  transition: opacity 0.18s ease;
  min-height: 320px;
}
body.woocommerce-account .woocommerce-MyAccount-content.is-loading { opacity: 0.45; pointer-events: none; }

/* ---------- Dashboard view ---------- */
.myaccount-dashboard__greeting {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink-strong);
  margin: 0 0 12px;
}
.myaccount-dashboard__not-you {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  font-weight: 500;
  color: var(--color-ink-quiet);
}
.myaccount-dashboard__not-you a,
.myaccount-dashboard__logout {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.myaccount-dashboard__not-you a:hover,
.myaccount-dashboard__logout:hover { border-bottom-color: var(--color-accent); }
.myaccount-dashboard__intro {
  font-family: var(--font-secondary);
  font-size: var(--type-body);
  color: var(--color-ink-quiet);
  line-height: 1.6;
  margin: 0 0 var(--space-5);
  max-width: 720px;
}
.myaccount-dashboard__section { margin-top: var(--space-5); }
.myaccount-dashboard__section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 10px;
}
.myaccount-dashboard__section-head h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: var(--color-ink-strong);
}
.myaccount-dashboard__see-all {
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}
.myaccount-dashboard__empty {
  background: var(--color-paper-recessed);
  border: 1px dashed var(--color-rule);
  border-radius: 10px;
  padding: var(--space-5);
  text-align: center;
}
.myaccount-dashboard__empty p {
  font-family: var(--font-secondary);
  color: var(--color-ink-quiet);
  margin: 0 0 var(--space-3);
}
/* Browse-products button uses canonical .btn .btn--primary classes. */

/* Downloads endpoint — empty state */
.myaccount-downloads-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  background: var(--color-paper-recessed);
  border: 1px dashed var(--color-rule);
  border-radius: var(--radius-soft, 12px);
  padding: var(--space-7) var(--space-5);
  margin: var(--space-4) 0;
}
.myaccount-downloads-empty__text {
  font-family: var(--font-secondary);
  color: var(--color-ink-quiet);
  font-size: var(--type-body);
  line-height: 1.55;
  margin: 0;
  max-width: 52ch;
}
.myaccount-dashboard__orders { margin-top: var(--space-3); }
.myaccount-dashboard__status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-secondary);
  background: var(--color-paper-recessed);
  color: var(--color-ink-quiet);
}
.myaccount-dashboard__status--processing,
.myaccount-dashboard__status--on-hold { background: #FFF4D6; color: #7A5510; }
.myaccount-dashboard__status--completed { background: #D6F2E0; color: #1F6B3C; }
.myaccount-dashboard__status--cancelled,
.myaccount-dashboard__status--failed,
.myaccount-dashboard__status--refunded { background: #FCE0DD; color: #872B22; }
.myaccount-dashboard__item-count {
  display: block;
  font-family: var(--font-secondary);
  font-size: var(--type-mono-small);
  color: var(--color-ink-quiet);
  margin-top: 2px;
}
/* Order-table View links use canonical .btn .btn--tertiary. */

body.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 100%;
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: 4px;
  padding: 8px;
  box-shadow: none;
}
body.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}
body.woocommerce-account .woocommerce-MyAccount-navigation li { margin: 0; }
body.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 10px 14px;
  border-radius: 4px;
  color: var(--color-ink);
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-fast, 150ms) var(--ease-out, ease), color var(--dur-fast, 150ms) var(--ease-out, ease);
}
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--color-paper-recessed); }
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active > a,
body.woocommerce-account .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active > a {
  background: var(--color-accent-quiet);
  color: var(--color-ink-strong);
  font-weight: 600;
}

body.woocommerce-account .woocommerce-MyAccount-content {
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft, 12px);
  padding: var(--space-5);
  box-shadow: 0 4px 14px rgba(8, 14, 28, 0.04);
}
body.woocommerce-account .woocommerce-MyAccount-content p,
body.woocommerce-account .woocommerce-MyAccount-content li {
  font-family: var(--font-secondary);
  font-size: var(--type-body);
  color: var(--color-ink);
  line-height: 1.6;
}
body.woocommerce-account .woocommerce-MyAccount-content a:not(.btn):not(.button) { color: var(--color-accent); }

/* Orders / addresses tables inside the dashboard */
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .woocommerce-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
}
body.woocommerce-account .woocommerce-orders-table thead th,
body.woocommerce-account .woocommerce-table thead th {
  text-align: left;
  background: var(--color-paper-recessed);
  color: var(--color-ink-quiet);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--type-mono-small);
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-rule);
}
body.woocommerce-account .woocommerce-orders-table td,
body.woocommerce-account .woocommerce-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-rule-faint);
  color: var(--color-ink);
  vertical-align: middle;
}
body.woocommerce-account .woocommerce-orders-table .button { padding: 6px 12px; font-size: 0.8rem; }


/* ---- Lost-password / reset shell (auth-page--password) ---- */
.auth-page__heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-ink-strong);
  text-align: center;
  margin: 0 0 var(--space-3);
}
.auth-page__intro {
  color: var(--color-ink-quiet);
  font-size: var(--type-body-small);
  line-height: 1.55;
  margin: 0 0 var(--space-5);
  text-align: center;
}
.auth-page--password .auth-page__panel { animation: none; }
.auth-page__confirm { text-align: center; padding: var(--space-3) 0 var(--space-2); }
.auth-page__confirm-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  color: var(--color-accent);
  background: var(--color-accent-quiet);
}
.auth-page__confirm-icon svg { width: 26px; height: 26px; }
.auth-page__confirm-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-ink-strong);
  margin: 0 0 var(--space-3);
}
.auth-page__confirm p { color: var(--color-ink-quiet); font-size: var(--type-body-small); line-height: 1.55; }

/* ============================================================
 * My Account — responsive overflow fix
 * Grid items default to min-width:auto, so a wide order table in the
 * content column refuses to shrink and pushes the page wider (horizontal
 * scroll). min-width:0 lets columns shrink; wide tables scroll INSIDE
 * themselves instead of the whole page.
 * ============================================================ */
body.woocommerce-account.logged-in main.wc-wrap .woocommerce { max-width: 100%; }
body.woocommerce-account.logged-in main.wc-wrap .woocommerce > .woocommerce-MyAccount-navigation,
body.woocommerce-account.logged-in main.wc-wrap .woocommerce > .account-navigation-wrap,
body.woocommerce-account.logged-in main.wc-wrap .woocommerce > .woocommerce-MyAccount-content {
  min-width: 0;
}
/* Backstop: never let account content escape the viewport horizontally. */
body.woocommerce-account main.wc-wrap { overflow-x: clip; }
body.woocommerce-account .woocommerce-MyAccount-content { overflow-wrap: anywhere; }

/* Wide tables (orders, downloads) scroll within their own box, not the page. */
body.woocommerce-account .woocommerce-MyAccount-content .shop_table,
body.woocommerce-account .woocommerce-orders-table,
body.woocommerce-account .woocommerce-table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.woocommerce-account .woocommerce-MyAccount-content .shop_table thead,
body.woocommerce-account .woocommerce-orders-table thead { white-space: nowrap; }

/* account-hero must also respect the viewport width */
.account-hero, .account-hero__inner { max-width: 100%; min-width: 0; }
.account-hero__sub { overflow-wrap: anywhere; }

/* ============================================================
 * Hybrid gate — logged-out pricing CTAs
 * ============================================================ */
.price-login-cta {
  font-family: var(--font-secondary);
  font-size: 0.95em;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}
.price-login-cta:hover { border-bottom-color: var(--color-accent); }

.pdp-gate-cta {
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft);
  padding: var(--space-5);
  background: var(--color-paper-recessed);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
.pdp-gate-cta__text { font-family: var(--font-secondary); color: var(--color-ink); font-size: var(--type-body-small); margin: 0; }
.pdp-gate-cta__btn { align-self: stretch; justify-content: center; }
.pdp-gate-cta__alt { margin: 0; font-size: var(--type-body-small); }
.pdp-gate-cta__alt a { color: var(--color-accent); }

/* ============================================================
 * Dashboard recent-orders table — full width of the container.
 * The generic account-table rule sets display:block (for mobile scroll),
 * which collapses this table to content width. Restore display:table +
 * width:100% so it fills the content column; keep internal scroll only
 * on small screens.
 * ============================================================ */
body.woocommerce-account .myaccount-dashboard__orders.woocommerce-orders-table {
  display: table;
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  overflow-x: visible;
  border-collapse: collapse;
}
body.woocommerce-account .myaccount-dashboard__orders.woocommerce-orders-table th:last-child,
body.woocommerce-account .myaccount-dashboard__orders.woocommerce-orders-table td:last-child {
  text-align: right;
  white-space: nowrap;
}
@media (max-width: 640px) {
  body.woocommerce-account .myaccount-dashboard__orders.woocommerce-orders-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --- catalog pagination ([s20_products paginate="1"]) --- */
.catalog-pagination {
  display: flex; justify-content: center; gap: var(--space-2);
  margin-top: var(--space-7);
}
.catalog-pagination__page {
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft);
  color: var(--color-ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.catalog-pagination__page:hover { border-color: var(--color-accent); }
.catalog-pagination__page.is-current {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #FFFFFF;
}

/* Hide the legacy static toolbar (kses stripped its <select>); the PHP-rendered toolbar has one. */
body.peptide-page--catalog .toolbar:not(:has(select)) { display: none; }

/* ==========================================================================
   Policy / legal pages  (.policy-doc wrapper)
   ========================================================================== */
.policy-doc { --pd-ink: var(--color-ink-strong); --pd-muted: var(--color-ink-quiet);
  --pd-line: var(--color-rule); --pd-accent: var(--color-accent);
  --pd-accent-soft: rgba(79,127,175,.1); --pd-ring: rgba(79,127,175,.35);
  --pd-soft: var(--color-paper-recessed); --pd-ok: #0f7a52; --pd-warn: #b54708; }

.policy-doc .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.policy-doc .crumb { font-size: 13px; color: var(--pd-muted); padding: 18px 0 0; }
.policy-doc .hero { padding: 14px 0 34px; border-bottom: 1px solid var(--pd-line); background: none; color: inherit; }
.policy-doc .eyebrow { display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--pd-accent);
  background: var(--pd-accent-soft); padding: 6px 12px; border-radius: 999px; }
.policy-doc h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.12;
  margin: 16px 0 12px; letter-spacing: -.02em; color: var(--pd-ink); }
.policy-doc .lede { font-size: 1.125rem; color: var(--pd-muted); max-width: 760px; margin: 0 0 22px; }
.policy-doc .btns a { display: inline-block; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 10px; margin: 0 10px 10px 0; text-decoration: none; }
.policy-doc .btn-primary { background: var(--pd-accent); color: #fff !important; }
.policy-doc .btn-primary:hover { opacity: .88; }
.policy-doc .btn-ghost { border: 1px solid var(--pd-ring); color: var(--pd-ink) !important; }
.policy-doc .btn-ghost:hover { background: var(--pd-soft); }

.policy-doc .layout { grid-template-columns: 1fr 300px; gap: 44px; padding: 40px 0 10px; }
@media (max-width: 920px) { .policy-doc .layout { grid-template-columns: 1fr; } }

.policy-doc .chips { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin: 30px 0 4px; }
@media (max-width: 760px) { .policy-doc .chips { grid-template-columns: repeat(2,1fr); } }
.policy-doc .chip { display: block; border: 1px solid var(--pd-line); border-radius: 12px; padding: 16px;
  background: var(--color-paper-elevated); }
.policy-doc .chip .tag { display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: .5px; color: var(--pd-accent); background: var(--pd-accent-soft);
  border-radius: 6px; padding: 3px 8px; margin-bottom: 8px; }
.policy-doc .chip h4 { margin: 0 0 4px; font-size: 15px; }
.policy-doc .chip p { margin: 0; font-size: 13px; color: var(--pd-muted); }

.policy-doc section.sec { padding: 26px 0; border-top: 1px solid var(--pd-line); }
.policy-doc section.sec:first-of-type { border-top: none; }
.policy-doc .secnum { font-size: 12px; font-weight: 800; color: var(--pd-accent); letter-spacing: 1px; }
.policy-doc section.sec h2 { font-size: 1.375rem; margin: 6px 0 12px; }
.policy-doc section.sec h3 { font-size: 1rem; margin: 18px 0 6px; }
.policy-doc section.sec p { margin: 0 0 12px; }
.policy-doc section.sec ul { margin: 0 0 14px; padding-left: 22px; }
.policy-doc section.sec li { margin: 6px 0; }
.policy-doc .callout { border-left: 3px solid var(--pd-accent); background: var(--pd-accent-soft);
  padding: 12px 16px; border-radius: 0 10px 10px 0; margin: 14px 0; font-size: 14px; }
.policy-doc .callout.warn { border-color: var(--pd-warn); background: #fff4ec; }
.policy-doc .placeholder { background: #fff7ed; border: 1px dashed #e0a96d; color: #7a4a12;
  border-radius: 6px; padding: 1px 6px; font-size: .92em; }

.policy-doc aside .card { border: 1px solid var(--pd-line); border-radius: 14px; padding: 20px;
  margin-bottom: 18px; background: var(--color-paper-elevated); position: sticky; top: 88px; }
.policy-doc aside h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase;
  letter-spacing: 1px; color: var(--pd-muted); }
.policy-doc aside .toc a { display: flex; justify-content: space-between; gap: 8px;
  font-size: 14px; color: var(--pd-ink); padding: 6px 0; border-bottom: 1px dashed var(--pd-line);
  text-decoration: none; }
.policy-doc aside .toc a:last-child { border-bottom: none; }
.policy-doc aside .toc a:hover { color: var(--pd-accent); }
.policy-doc aside .toc .n { color: var(--pd-muted); font-size: 12px; }
.policy-doc .facts div { display: flex; justify-content: space-between; gap: 8px;
  font-size: 14px; padding: 7px 0; border-bottom: 1px dashed var(--pd-line); }
.policy-doc .facts div:last-child { border-bottom: none; }
.policy-doc .facts .k { color: var(--pd-muted); }
.policy-doc .facts .v { font-weight: 600; text-align: right; }
.policy-doc .badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.policy-doc .badge.ok { background: #d1fae5; color: var(--pd-ok); }
.policy-doc .badge.warn { background: #fff4ec; color: var(--pd-warn); }
.policy-doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.policy-doc th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--pd-muted); padding: 8px 12px; border-bottom: 2px solid var(--pd-line); }
.policy-doc td { padding: 10px 12px; border-bottom: 1px solid var(--pd-line); vertical-align: top; }
.policy-doc tr:last-child td { border-bottom: none; }

/* ==========================================================================
   Contact page — [s20_contact_form] shortcode
   ========================================================================== */
.contact-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  padding: var(--space-9) 0 var(--space-10);
  align-items: start;
}
@media (max-width: 860px) { .contact-page { grid-template-columns: 1fr; gap: var(--space-7); } }

/* Info side */
.contact-page__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--color-ink-strong);
  max-width: 22ch;
  margin: var(--space-4) 0 var(--space-5);
}
.contact-page__heading em { font-style: normal; color: var(--color-accent); }
.contact-page__sub { color: var(--color-ink-quiet); font-size: 1.0625rem; line-height: 1.6; max-width: 44ch; margin-bottom: var(--space-7); }
.contact-page__details { list-style: none; padding: 0; margin: 0 0 var(--space-7); display: flex; flex-direction: column; gap: var(--space-4); }
.contact-page__details li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--color-ink); }
.contact-page__details svg { color: var(--color-accent); flex-shrink: 0; }
.contact-page__details a { color: var(--color-accent); text-decoration: none; }
.contact-page__details a:hover { text-decoration: underline; }
.contact-page__ruo {
  font-size: 0.8125rem;
  color: var(--color-ink-quiet);
  border-left: 3px solid var(--color-rule);
  padding: 10px 14px;
  line-height: 1.55;
}

/* Form side */
.contact-page__form-wrap {
  background: var(--color-paper-elevated);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-card);
  padding: var(--space-7);
}
.contact-form { display: flex; flex-direction: column; gap: var(--space-5); }
.contact-form__row--2col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
@media (max-width: 560px) { .contact-form__row--2col { grid-template-columns: 1fr; } }
.contact-form__field { display: flex; flex-direction: column; gap: 6px; }
.contact-form__field label { font-size: 0.875rem; font-weight: 500; color: var(--color-ink); }
.contact-form__field label span { color: var(--color-accent); }
.contact-form__field input,
.contact-form__field textarea {
  width: 100%; box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-soft);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-ink);
  background: var(--color-paper);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  outline: none;
}
.contact-form__field input:focus,
.contact-form__field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(79,127,175,.18);
}
.contact-form__field textarea { resize: vertical; min-height: 140px; }
.contact-form__submit {
  align-self: flex-start;
  padding: 12px 28px;
  background: var(--color-ink);
  color: var(--color-paper);
  border: none;
  border-radius: var(--radius-soft);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out);
}
.contact-form__submit:hover { background: var(--color-accent); }

/* Success state */
.contact-page__success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-4); text-align: center;
  padding: var(--space-9) var(--space-7);
  color: var(--color-ink);
}
.contact-page__success svg { color: #0f7a52; }
.contact-page__success h3 { font-size: 1.375rem; margin: 0; }
.contact-page__success p { color: var(--color-ink-quiet); margin: 0; }

/* Error state */
.contact-page__errors {
  background: #fff4ec; border: 1px solid #e0a96d; border-radius: var(--radius-soft);
  padding: 12px 16px; margin-bottom: var(--space-5);
  font-size: 0.875rem; color: #7a4a12;
}
.contact-page__errors p { margin: 0; }

/* ============================================================
   Age Gate plugin (21+ verification splash) overrides.
   site.css loads AFTER age-gate/dist/main.css, so these win.
   ============================================================ */

/* 1) Reorder date fields to MONTH / DAY / YEAR. The field names
      age_gate[d|m|y] are untouched, so server-side validation is
      unaffected. These :has() rules set the visual order with no flash;
      the matching wp_footer JS reorders the actual DOM so the keyboard
      TAB order follows month -> day -> year too (CSS `order` alone does
      not change tab order). */
.age-gate__form-elements .age-gate__form-section:has(.age-gate__input--month) { order: 1; }
.age-gate__form-elements .age-gate__form-section:has(.age-gate__input--day)   { order: 2; }
.age-gate__form-elements .age-gate__form-section:has(.age-gate__input--year)  { order: 3; }

/* 2) Blue brand background across the whole gate */
.age-gate__background-color {
  background: linear-gradient(160deg, #0B1440 0%, #16213f 60%, #1E3A5F 100%) !important;
}

/* 2b) Round the white form card (the card keeps its own overflow-y:auto,
       which clips content to these rounded corners). */
.age-gate {
  border-radius: 10px !important;
}

/* 3) Dark text — the form panel is a WHITE card (the blue is only the
      backdrop behind it), so text must be dark to be legible. Errors stay
      red so a failed age check is clearly visible. */
.age-gate,
.age-gate__subheadline,
.age-gate__label,
.age-gate__legal { color: var(--color-ink) !important; }
.age-gate__errors { color: #b3261e !important; }
.age-gate a { color: var(--color-accent) !important; }

/* 4) 20Aminos logo above the heading. Uses the same logo as the site
      header on a white rounded card so the navy artwork stays crisp
      against the blue backdrop. The brand-name text title is redundant
      with the logo, so collapse it. */
.age-gate__heading-title { font-size: 0 !important; line-height: 0; }
.age-gate__heading::before {
  content: "";
  display: block;
  width: 240px;
  height: 120px;
  margin: 0 auto 1.5rem;
  background-color: #ffffff;
  background-image: url("../img/20aminos_logo.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 168px auto;
  border-radius: 16px;
}
/* Title between the logo and the inputs (dark — the form panel is a
   white card, so white text would be invisible here). */
.age-gate__heading::after {
  content: "Please Verify your Age";
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-ink-strong);
  margin: 0 0 0.25rem;
}

/* 5) Inputs — match the site design-system form fields:
      grey (--color-rule) border, 8px radius, accent focus ring. */
.age-gate__input {
  border: 1px solid var(--color-rule) !important;
  border-radius: 8px !important;
}
.age-gate__input:focus {
  outline: 0 !important;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px var(--color-accent-quiet) !important;
}

/* 6) Submit button — ghost style: transparent fill with the same grey
      (--color-rule) border as the inputs; fills with brand blue on hover. */
.age-gate__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: 14px 22px !important;
  border: 1px solid var(--color-rule) !important;
  border-radius: var(--radius-soft) !important;
  background: transparent !important;
  color: var(--color-accent) !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: var(--type-body-small) !important;
  line-height: 1 !important;
  cursor: pointer;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.age-gate__button:hover {
  background: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  color: var(--color-paper-elevated) !important;
}

/* ============================================================
 * Back-in-stock modal — on-brand dialog for out-of-stock items
 * ============================================================ */
.stock-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.stock-modal.is-open { display: flex; }
.stock-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 42, 0.55);
}
.stock-modal__card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: var(--space-6);
  background: var(--color-paper-elevated);
  border-radius: var(--radius-soft);
  box-shadow: 0 24px 64px rgba(13, 24, 42, 0.25);
  animation: stock-modal-in 0.28s var(--ease-out) both;
}
@keyframes stock-modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .stock-modal__card { animation: none; } }
.stock-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 4px;
  color: var(--color-ink-quiet);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.stock-modal__close:hover { background: var(--color-paper-recessed); color: var(--color-ink); }
.stock-modal__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-3);
  font-family: var(--font-secondary);
  font-size: var(--type-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-ink-quiet);
}
.stock-modal__status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-status-warn);
  flex: none;
}
.stock-modal--thanks .stock-modal__status::before { background: var(--color-status-pass); }
.stock-modal__title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tracking-display);
  color: var(--color-ink-strong);
  text-wrap: balance;
}
.stock-modal__text {
  margin: 0 0 var(--space-5);
  font-family: var(--font-secondary);
  font-size: var(--type-body-small);
  line-height: 1.6;
  color: var(--color-ink-quiet);
}
.stock-modal__text strong { color: var(--color-ink); font-weight: 600; }
.stock-modal__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.stock-modal__hint {
  margin: var(--space-4) 0 0;
  font-family: var(--font-secondary);
  font-size: var(--type-caption);
  color: var(--color-ink-faint);
}
.pdp-oos__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Consent checkbox in the back-in-stock modal */
.stock-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 var(--space-5);
  font-family: var(--font-secondary);
  font-size: var(--type-caption);
  line-height: 1.5;
  color: var(--color-ink-quiet);
  cursor: pointer;
}
.stock-modal__consent input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--color-accent);
  cursor: pointer;
}
.stock-modal__consent a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.stock-modal__consent a:hover { color: var(--color-accent-strong); }
.stock-modal .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
