/*
Theme Name: Elev8 Research Labs
Theme URI: https://elev8researchlabs.com
Author: Pear Media
Description: Custom WooCommerce theme for Elev8 Research Labs. Mobile-first, one product one checkout.
Version: 0.3.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 8.1
Text Domain: elev8
*/

/* ============================================================
   TOKENS
   Typography is Inter throughout — one family, many weights, the
   way a system typeface is used. JetBrains Mono is reserved for
   data: batch figures, specs, labels. Nothing decorative.
   ============================================================ */
:root {
  /* surfaces — flat neutral near-black, barely grey, lifted in steps */
  --bg:           #070708;
  --surface-1:    #101012;
  --surface-2:    #16161A;
  --surface-3:    #1E1E22;
  --ink:          #0A0A0B;

  /* text — 4 steps, enough contrast at every one */
  --text:         #F2F5FA;
  --text-2:       #C3CCDA;
  --text-3:       #94A0B4;
  --text-4:       #6B7788;

  /* accent — used sparingly; the green is the "verified" signal */
  --green:        #34E5A0;
  --green-dim:    #1FA377;
  --blue:         #5B93FF;
  --blue-deep:    #2F6BD8;
  --amber:        #F5B454;
  --red:          #FF7A7A;

  --grad:         linear-gradient(135deg, #34E5A0 0%, #4FC3E8 55%, #5B93FF 100%);

  /* hairlines */
  --line:         rgba(255,255,255,.07);
  --line-2:       rgba(255,255,255,.12);
  --line-3:       rgba(255,255,255,.2);

  /* type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* fluid scale — min at 360px, max at 1240px */
  --t-display: clamp(2.375rem, 1.5rem + 4vw, 4.25rem);
  --t-h1:      clamp(2.125rem, 1.4rem + 3.2vw, 3.5rem);
  --t-h2:      clamp(1.75rem, 1.3rem + 2vw,   2.75rem);
  --t-h3:      clamp(1.25rem, 1.1rem + .65vw, 1.5rem);
  --t-lead:    clamp(1.0625rem, 1rem + .45vw, 1.3125rem);
  --t-body:    1rem;
  --t-sm:      .9375rem;
  --t-xs:      .8125rem;
  --t-label:   .6875rem;

  /* spacing rhythm — tightened: the old 8.5rem max left ~272px of dead air
     between sections, which read as emptiness rather than breathing room. */
  --s-section: clamp(3.25rem, 2rem + 4.5vw, 5.75rem);
  --gutter:    clamp(1.125rem, .4rem + 3vw, 2rem);
  --wrap:      1200px;
  --radius:    18px;
  --radius-lg: 26px;

  /* motion — entering uses out-quint, moving uses in-out-cubic */
  --ease-out:  cubic-bezier(.23, 1, .32, 1);
  --ease-both: cubic-bezier(.645, .045, .355, 1);
  --dur:       260ms;
  --dur-slow:  420ms;

  --tap: 48px; /* minimum touch target — this store is ~90% mobile */
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
::selection { background: rgba(52,229,160,.28); color: #fff; }

h1, h2, h3, h4 { margin: 0; font-weight: 620; letter-spacing: -.022em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.e8-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.e8-sr, .e8-screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.e8-page-main { padding-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem); padding-bottom: var(--s-section); }
.e8-page-main--product { padding-top: 2rem; }

/* icons inherit colour and align to text */
.e8-i { display: inline-block; vertical-align: middle; flex-shrink: 0; }

/* ============================================================
   TYPE HELPERS
   ============================================================ */
.e8-display { font-size: var(--t-display); font-weight: 660; letter-spacing: -.038em; line-height: 1.02; }
.e8-h1 { font-size: var(--t-h1); letter-spacing: -.03em; line-height: 1.06; }
.e8-h2 { font-size: var(--t-h2); letter-spacing: -.028em; line-height: 1.1; }
.e8-h3 { font-size: var(--t-h3); letter-spacing: -.018em; line-height: 1.25; }
.e8-lead { font-size: var(--t-lead); line-height: 1.55; color: var(--text-2); font-weight: 380; }

.e8-label {
  font-family: var(--mono);
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
}
.e8-label--muted { color: var(--text-4); }

.e8-grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.e8-measure { max-width: 62ch; }
.e8-measure-sm { max-width: 48ch; }

/* ============================================================
   MOTION — scroll reveal
   Elements start slightly down and transparent; JS adds .is-in
   when they cross into view. Without JS everything is visible.
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; will-change: auto; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@keyframes e8-fade-up { from { opacity: 0; transform: translate3d(0,14px,0); } to { opacity: 1; transform: none; } }
@keyframes e8-fade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes e8-float   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes e8-marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes e8-pulse   { 0%,100% { opacity: .45; transform: scale(1); } 50% { opacity: .8; transform: scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.e8-btn {
  --btn-bg: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--tap);
  padding: 0 1.6rem;
  border: none; border-radius: 999px;
  background: var(--btn-bg);
  color: var(--ink);
  font-size: var(--t-sm); font-weight: 600; letter-spacing: -.01em;
  cursor: pointer;
  text-align: center;
  transition: transform 140ms var(--ease-out), box-shadow var(--dur) var(--ease-out), filter 140ms ease;
  box-shadow: 0 1px 0 rgba(255,255,255,.16) inset, 0 10px 30px -10px rgba(52,229,160,.55);
}
.e8-btn:hover { filter: brightness(1.05); box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 16px 40px -12px rgba(52,229,160,.7); }
.e8-btn:active { transform: scale(.975); }

.e8-btn--ghost {
  --btn-bg: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: none;
  backdrop-filter: blur(8px);
}
.e8-btn--ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,.04); filter: none; box-shadow: none; }

.e8-btn--sm { min-height: 40px; padding: 0 1.1rem; font-size: var(--t-xs); }
.e8-btn--lg { min-height: 56px; padding: 0 2rem; font-size: 1.0625rem; }
.e8-btn--block { width: 100%; }
.e8-btn .e8-i { transition: transform var(--dur) var(--ease-out); }
.e8-btn:hover .e8-i--arrow-right { transform: translateX(3px); }

/* ============================================================
   ANNOUNCEMENT TICKER
   ============================================================ */
.e8-ticker {
  position: relative; overflow: hidden;
  background: var(--surface-1);
  border-bottom: 1px solid var(--line);
  height: 38px; display: flex; align-items: center;
}
.e8-ticker::before, .e8-ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.e8-ticker::before { left: 0;  background: linear-gradient(90deg, var(--surface-1), transparent); }
.e8-ticker::after  { right: 0; background: linear-gradient(270deg, var(--surface-1), transparent); }
.e8-ticker__track {
  display: flex; align-items: center; gap: 2.5rem;
  white-space: nowrap; padding-left: 2.5rem;
  animation: e8-marquee 42s linear infinite;
}
.e8-ticker__item {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
}
.e8-ticker__item .e8-i { color: var(--green); }

/* ============================================================
   NAV
   ============================================================ */
.e8-nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(7,7,8,.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, background var(--dur) ease;
}
.e8-nav.is-stuck { border-bottom-color: var(--line); background: rgba(7,7,8,.9); }
.e8-nav__inner {
  max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter);
  height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.e8-brand { display: inline-flex; align-items: center; gap: .7rem; min-height: var(--tap); }
.e8-brand__mark { font-size: 1.3rem; font-weight: 680; letter-spacing: -.03em; color: var(--text); }
.e8-brand__mark b { color: var(--green); font-weight: 680; }
/* "Research Labs" is rendered as crisp HTML text beside the ELEV8 mark so it
   stays legible at any size, sitting on its own line under a hairline that
   echoes the lockup. Kept out of the mark image, whose baked tagline was too
   small to read once scaled down. */
.e8-brand__sub {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .26em;
  text-transform: uppercase; color: var(--text-2); line-height: 1;
  padding-left: .7rem; border-left: 1px solid var(--line-2);
}
/* The mark is the ELEV8 wordmark only (~3.2:1), sized by height. */
.e8-brand__img { display: block; height: 2rem; width: auto; }
.e8-brand--lg { gap: .8rem; }
.e8-brand--lg .e8-brand__img { height: 2.3rem; }
.e8-brand--lg .e8-brand__sub { font-size: .66rem; }

.e8-nav__links { display: flex; align-items: center; gap: 2rem; }
.e8-nav__links a {
  position: relative; font-size: var(--t-sm); font-weight: 450; color: var(--text-2);
  transition: color var(--dur) ease;
}
.e8-nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--green); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.e8-nav__links a:hover { color: var(--text); }
.e8-nav__links a:hover::after { transform: scaleX(1); }
.e8-nav__links .e8-btn::after { display: none; }
/* The CTA is an <a> inside .e8-nav__links, so the link colour above would
   otherwise win over the button's dark ink and leave white text on the
   bright gradient. Re-assert the button colours here. */
.e8-nav__links a.e8-btn { color: var(--ink); font-weight: 600; }
.e8-nav__links a.e8-btn:hover { color: var(--ink); }

.e8-nav__toggle {
  display: none;
  width: var(--tap); height: var(--tap);
  align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--text);
  margin-right: -.5rem;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.e8-section { padding-block: var(--s-section); }
.e8-section--tight { padding-block: calc(var(--s-section) * .6); }
.e8-section__head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.e8-section__head--center { text-align: center; margin-inline: auto; max-width: 40rem; }
.e8-section__head .e8-label { display: block; margin-bottom: .9rem; }
.e8-section__head p { margin-top: 1rem; }
.e8-section__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.e8-rule {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

/* ============================================================
   HERO
   ============================================================ */
.e8-hero { position: relative; padding-block: clamp(3rem, 1rem + 8vw, 7rem) clamp(3rem, 1rem + 6vw, 5.5rem); overflow: hidden; }
/* Auras removed so the hero reads as the same flat black as the rest of the
   site. Kept in the markup, off by default — re-enable by restoring a
   background here if the coloured glow is ever wanted back. */
.e8-hero__aura { display: none; }

.e8-hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.e8-hero__copy > * + * { margin-top: 1.5rem; }

.e8-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem .45rem .6rem;
  border: 1px solid rgba(52,229,160,.28);
  background: rgba(52,229,160,.07);
  border-radius: 999px;
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: .12em;
  text-transform: uppercase; color: var(--green);
}
.e8-eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(52,229,160,.18);
}

.e8-hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.e8-hero__note { display: flex; align-items: flex-start; gap: .5rem; font-size: var(--t-xs); color: var(--text-4); line-height: 1.5; }
.e8-hero__note .e8-i { margin-top: .1em; }

.e8-stats { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); flex-wrap: wrap; padding-top: .5rem; }
.e8-stat__n { font-size: 1.5rem; font-weight: 640; letter-spacing: -.03em; color: var(--text); }
.e8-stat__l { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); margin-top: .2rem; }
.e8-stats__sep { width: 1px; align-self: stretch; background: var(--line); }

/* Gold award seals. The art is transparent on a dark ground, so it sits
   directly on the hero with no plate or rule behind it. Sized by height so
   the three wreaths line up optically despite differing widths. */
.e8-awards { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 1.75rem); flex-wrap: wrap; }
/* In the hero the seals sit under the bottle, so they centre on it rather
   than aligning to the copy column's left edge. */
.e8-awards--hero { justify-content: center; }
.e8-award { display: block; }
/* Sized generously: the seals carry small engraved type ("ELEV8 RESEARCH
   LABS") that turns to mush much below this. Art is exported at 2x. */
.e8-award img { display: block; width: auto; height: clamp(4rem, 6.5vw, 5.75rem); }

/* The visual box is intentionally taller/wider than the bottle so the
   helix has room to orbit clearly around it. The two canvases fill this
   box and share its centre with the vial. */
/* Bottle column = vial box + award seals stacked under it. */
.e8-hero__side { display: flex; flex-direction: column; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.e8-hero__visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  align-self: stretch;
  min-height: min(30rem, 88vw);
}
.e8-hero__helix { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.e8-hero__helix--back { z-index: 0; }
.e8-hero__helix--front { z-index: 2; }
/* Bottle stays still (no float) so the coil is what moves. Sized well
   under the helix radius so the strands read as wrapping around it. */
.e8-hero__vial { position: relative; z-index: 1; }
.e8-hero__vial img { width: min(11rem, 44vw); filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }

/* ============================================================
   CARDS (generic surface)
   ============================================================ */
.e8-panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* Molecular-structure texture inside a panel — the same skeletal pattern that
   appears on the vial label. Anchored to the right and faded toward the copy,
   so it reads as a watermark, never competing with the text. */
.e8-panel--mol { position: relative; overflow: hidden; isolation: isolate; }
.e8-panel--mol > * { position: relative; z-index: 1; }
.e8-panel--mol::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('assets/img/molecular.svg') right center / cover no-repeat;
  opacity: .13;
  -webkit-mask-image: radial-gradient(135% 108% at 90% 50%, #000 8%, transparent 74%);
          mask-image: radial-gradient(135% 108% at 90% 50%, #000 8%, transparent 74%);
}
@media (max-width: 640px) { .e8-panel--mol::before { opacity: .1; } }

.e8-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.5vw, 1rem); }
.e8-feature {
  position: relative;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) ease, box-shadow var(--dur) var(--ease-out);
}
.e8-feature:hover { transform: translateY(-4px); border-color: rgba(52,229,160,.3); box-shadow: 0 24px 48px -24px rgba(0,0,0,.8); }
.e8-feature__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(52,229,160,.09);
  border: 1px solid rgba(52,229,160,.2);
  color: var(--green);
  margin-bottom: 1rem;
}
.e8-feature__t { font-size: var(--t-body); font-weight: 580; letter-spacing: -.015em; margin-bottom: .4rem; }
.e8-feature__b { font-size: var(--t-xs); line-height: 1.6; color: var(--text-3); }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.e8-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }

.e8-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) ease, box-shadow var(--dur) var(--ease-out);
}
.e8-card:hover { transform: translateY(-5px); border-color: rgba(52,229,160,.32); box-shadow: 0 32px 60px -30px rgba(0,0,0,.9); }

.e8-card__media {
  position: relative; aspect-ratio: 4/3;
  display: grid; place-items: center;
  background: radial-gradient(110% 80% at 50% 0%, rgba(91,147,255,.13), transparent 62%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
/* Absolutely positioned so the percentage height resolves against the
   aspect-ratio box. As a centred grid item it resolved against the image's
   own content height instead, overflowing ~150px and cropping every vial. */
.e8-card__media img {
  position: absolute; top: 50%; left: 50%;
  height: 84%; width: auto; max-width: 74%; object-fit: contain;
  filter: drop-shadow(0 14px 26px rgba(0,0,0,.5));
  transform: translate(-50%, -50%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.e8-card:hover .e8-card__media img { transform: translate(-50%, -50%) scale(1.05); }

.e8-badge {
  position: absolute; top: .85rem; left: .85rem; z-index: 2;
  padding: .3rem .6rem; border-radius: 7px;
  background: rgba(52,229,160,.13);
  border: 1px solid rgba(52,229,160,.32);
  color: var(--green);
  font-family: var(--mono); font-size: .5625rem; letter-spacing: .12em; text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Gradient-border status badges (uploaded badge kit): Best Seller, Sold Out,
   Free Gift, Save Big. Ported from elev8-badges.css, adapted to theme tokens. */
.e8-kbadge {
  --ka: #36e4b5; --kb: #4d9fff; --kbg-a: #073b3b; --kbg-b: #0a1d32;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem .7rem; border-radius: 10px; border: 1px solid transparent;
  background:
    linear-gradient(115deg, var(--kbg-a), var(--kbg-b)) padding-box,
    linear-gradient(115deg, var(--ka), var(--kb)) border-box;
  color: #f5fbff;
  box-shadow: 0 0 16px color-mix(in srgb, var(--ka) 16%, transparent);
  font: 800 .66rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.e8-kbadge::before {
  content: ""; width: .5rem; height: .5rem; flex: 0 0 auto; border-radius: 999px;
  background: var(--ka); box-shadow: 0 0 9px var(--ka);
}
.e8-kbadge[data-variant="sold-out"] {
  --ka: #ff6974; --kb: #b54d67; --kbg-a: #321a24; --kbg-b: #111725; box-shadow: none;
}
.e8-kbadge[data-variant="sold-out"]::before {
  background: transparent; border: 2px solid var(--ka); box-shadow: none;
}
.e8-kbadge[data-variant="free-gift"] { --ka: #42d7ff; --kb: #38e0b0; --kbg-a: #10324a; --kbg-b: #10182b; }
.e8-kbadge[data-variant="save-big"]  { --ka: #39e6ae; --kb: #4b9fff; --kbg-a: #063a37; --kbg-b: #10172b; }

/* On a product card / PDP gallery: pin to the corner, sized down a touch. */
.e8-kbadge--card { position: absolute; top: .85rem; left: .85rem; z-index: 2; font-size: .58rem; padding: .34rem .6rem; border-radius: 9px; }
.e8-card.is-soldout .e8-card__media img { opacity: .5; filter: grayscale(.4); }

/* Bundle header above the tier grid. */
.e8-tiers__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }

.e8-card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1rem, 2vw, 1.35rem); gap: .35rem; }
.e8-card__cat { font-family: var(--mono); font-size: .5625rem; letter-spacing: .11em; text-transform: uppercase; color: var(--text-4); line-height: 1.4; }
.e8-card__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.e8-card__name a { position: relative; z-index: 2; }
.e8-card__tag { font-size: var(--t-xs); line-height: 1.55; color: var(--text-3); flex: 1; margin-top: .15rem; }
.e8-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .9rem; }
.e8-card__price { font-size: 1.125rem; font-weight: 620; letter-spacing: -.025em; color: var(--text); }
.e8-card__size { font-family: var(--mono); font-size: var(--t-label); color: var(--text-4); margin-left: .4rem; }
.e8-card__link { position: absolute; inset: 0; z-index: 1; }
.e8-card__foot > * { position: relative; z-index: 2; }
.e8-card__actions { display: flex; justify-content: center; margin-top: .9rem; }
.e8-card__details {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: min(100%, 13rem); min-height: 40px; padding-inline: .85rem; border: 1px solid var(--line-2); border-radius: 999px;
  font-size: var(--t-xs); font-weight: 560; color: var(--text-2);
  transition: color var(--dur) ease, border-color var(--dur) ease, background var(--dur) ease;
}
.e8-card__details:hover { color: var(--text); border-color: var(--line-3); background: rgba(255,255,255,.04); }
.e8-card__go {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text-2);
  transition: all var(--dur) var(--ease-out);
}
.e8-card:hover .e8-card__go { border-color: var(--green); color: var(--green); background: rgba(52,229,160,.1); }

/* ============================================================
   COMPARISON
   ============================================================ */
.e8-compare {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.e8-compare th, .e8-compare td { padding: 1.1rem 1.25rem; text-align: left; vertical-align: middle; }
.e8-compare thead th {
  font-family: var(--mono); font-size: var(--t-label); letter-spacing: .16em;
  text-transform: uppercase; color: var(--text-4); font-weight: 500;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015);
}
.e8-compare thead th.is-us { color: var(--green); }
.e8-compare tbody th { font-size: var(--t-sm); font-weight: 520; color: var(--text-2); }
.e8-compare tbody th span { display: inline-flex; align-items: center; gap: .65rem; }
.e8-compare tbody th .e8-i { color: var(--text-4); }
.e8-compare tbody tr + tr th, .e8-compare tbody tr + tr td { border-top: 1px solid var(--line); }
.e8-compare td { font-size: var(--t-sm); }
.e8-compare td.is-us {
  color: var(--text); font-weight: 520;
  background: linear-gradient(180deg, rgba(52,229,160,.07), rgba(52,229,160,.025));
  box-shadow: inset 1px 0 0 rgba(52,229,160,.22), inset -1px 0 0 rgba(52,229,160,.22);
}
.e8-compare td.is-them { color: var(--text-4); }
.e8-cellmark { display: inline-flex; align-items: flex-start; gap: .6rem; }
.e8-cellmark .e8-i { margin-top: .12em; }
.e8-cellmark--yes .e8-i { color: var(--green); }
.e8-cellmark--no .e8-i { color: var(--red); opacity: .7; }

/* mobile: the table becomes stacked cards — no horizontal scrolling */
.e8-compare-cards { display: none; }
.e8-ccard { padding: 1.1rem 1.15rem; }
.e8-ccard + .e8-ccard { margin-top: .7rem; }
.e8-ccard__h {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--t-sm); font-weight: 580; color: var(--text);
  padding-bottom: .85rem; margin-bottom: .85rem; border-bottom: 1px solid var(--line);
}
.e8-ccard__h .e8-i { color: var(--text-4); }
.e8-ccard__row { display: flex; align-items: flex-start; gap: .6rem; font-size: var(--t-sm); }
.e8-ccard__row + .e8-ccard__row { margin-top: .6rem; }
.e8-ccard__row .e8-i { margin-top: .18em; }
.e8-ccard__row--us { color: var(--text); font-weight: 500; }
.e8-ccard__row--us .e8-i { color: var(--green); }
.e8-ccard__row--them { color: var(--text-4); }
.e8-ccard__row--them .e8-i { color: var(--red); opacity: .65; }
.e8-ccard__who { font-family: var(--mono); font-size: .5625rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; display: block; }

/* ============================================================
   PROTOCOL STEPS
   ============================================================ */
.e8-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }
.e8-step { padding: clamp(1.5rem, 3vw, 2.1rem); }
.e8-step__n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding-inline: .6rem; border-radius: 11px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: var(--t-xs); font-weight: 500; color: var(--green);
  margin-bottom: 1.1rem;
}
.e8-step__t { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.02em; margin-bottom: .6rem; }
.e8-step__b { font-size: var(--t-sm); line-height: 1.65; color: var(--text-3); }

.e8-standards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem 2rem; }
.e8-check { display: flex; align-items: flex-start; gap: .7rem; font-size: var(--t-sm); color: var(--text-2); line-height: 1.5; }
.e8-check .e8-i { color: var(--green); margin-top: .12em; }

.e8-areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(.75rem, 1.6vw, 1.25rem); }

/* ============================================================
   FAQ
   ============================================================ */
.e8-faq { display: flex; flex-direction: column; gap: .6rem; max-width: 52rem; margin-inline: auto; }
.e8-faq__item {
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color var(--dur) ease;
}
.e8-faq__item[open] { border-color: rgba(52,229,160,.28); }
.e8-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--tap);
  padding: 1rem 1.15rem;
  cursor: pointer; list-style: none;
  font-size: var(--t-sm); font-weight: 540; letter-spacing: -.012em; color: var(--text);
}
.e8-faq__item summary::-webkit-details-marker { display: none; }
.e8-faq__item summary::marker { content: ""; }
.e8-faq__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: rgba(52,229,160,.1); border: 1px solid rgba(52,229,160,.25); color: var(--green);
  transition: transform var(--dur) var(--ease-out);
}
.e8-faq__item[open] .e8-faq__icon { transform: rotate(45deg); }
.e8-faq__a { padding: 0 1.15rem 1.15rem; font-size: var(--t-sm); line-height: 1.7; color: var(--text-3); max-width: 62ch; }

/* ============================================================
   PDP
   ============================================================ */
.e8-crumb { display: flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: var(--t-label); letter-spacing: .08em; text-transform: uppercase; color: var(--text-4); margin-bottom: 1.75rem; }
.e8-crumb a { color: var(--text-4); transition: color var(--dur) ease; }
.e8-crumb a:hover { color: var(--text-2); }

.e8-pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.e8-pdp__gallery { position: sticky; top: 84px; }
.e8-pdp__stage {
  position: relative; aspect-ratio: 1; display: grid; place-items: center;
  background: radial-gradient(110% 85% at 50% 8%, rgba(91,147,255,.15), transparent 60%),
              linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
/* The float wrapper is absolutely positioned so its height is resolved by
   the stage; without that the image's percentage height falls back to auto
   and the vial overflows the frame. */
.e8-pdp__float {
  position: absolute; inset: 11% 0;
  display: flex; align-items: center; justify-content: center;
  animation: e8-float 7s ease-in-out infinite;
}
.e8-pdp__stage img { height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 34px 50px rgba(0,0,0,.6)); }
.e8-pdp__fig { position: absolute; bottom: 1rem; right: 1.1rem; font-family: var(--mono); font-size: .5625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); text-align: right; line-height: 1.5; }

.e8-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-top: .75rem; }
.e8-spec { padding: .9rem .5rem; text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.e8-spec__v { font-size: 1.0625rem; font-weight: 620; letter-spacing: -.02em; }
.e8-spec__l { font-family: var(--mono); font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); margin-top: .28rem; }

.e8-pdp__cat { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: .8rem; }
.e8-pdp__title { font-size: var(--t-h1); letter-spacing: -.032em; margin-bottom: .5rem; }
.e8-pdp__price { display: flex; align-items: baseline; gap: .6rem; margin: 1.1rem 0 1.25rem; }
.e8-pdp__price .woocommerce-Price-amount, .e8-pdp__price bdi { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem); font-weight: 640; letter-spacing: -.035em; color: var(--text); }
.e8-pdp__price small { font-family: var(--mono); font-size: var(--t-xs); color: var(--text-4); }
.e8-pdp__desc { font-size: var(--t-body); line-height: 1.7; color: var(--text-2); max-width: 60ch; }

.e8-certs { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.4rem 0; }
.e8-cert {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: .625rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2);
}
.e8-cert .e8-i { color: var(--green); }

.e8-benefits { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.6rem; }
.e8-benefit { display: flex; align-items: flex-start; gap: .7rem; font-size: var(--t-sm); color: var(--text-2); line-height: 1.5; }
.e8-benefit .e8-i { color: var(--green); margin-top: .12em; }

.e8-buy { margin-bottom: 1.1rem; }
.e8-buy__note { display: flex; align-items: flex-start; gap: .5rem; margin-top: .85rem; font-size: var(--t-xs); line-height: 1.55; color: var(--text-4); }
.e8-buy__note .e8-i { margin-top: .12em; }
.e8-buy__pending { padding: 1.25rem 1.35rem; border: 1px dashed var(--line-2); border-radius: 14px; background: rgba(255,255,255,.02); }

/* Bundle / Subscribe tiers — a 2x2 selectable grid, radio-driven so the
   selected state and price work with CSS; JS only updates the buy link. */
.e8-tiers {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem;
}
.e8-tier { position: relative; display: block; cursor: pointer; }
.e8-tier input { position: absolute; opacity: 0; width: 0; height: 0; }
.e8-tier__box {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .95rem 1rem; min-height: 100%;
  border: 1.5px solid var(--line-2); border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  transition: border-color var(--dur) ease, background var(--dur) ease, box-shadow var(--dur) ease;
}
.e8-tier:hover .e8-tier__box { border-color: var(--line-3); }
.e8-tier input:checked + .e8-tier__box {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green) inset, 0 12px 30px -16px rgba(52,229,160,.6);
  background: linear-gradient(180deg, rgba(52,229,160,.08), var(--surface-1));
}
.e8-tier input:focus-visible + .e8-tier__box { outline: 2px solid var(--green); outline-offset: 2px; }
.e8-tier__badge {
  position: absolute; top: -.6rem; right: .75rem;
  padding: .18rem .5rem; border-radius: 999px;
  background: var(--green); color: var(--ink);
  font-family: var(--mono); font-size: .5625rem; font-weight: 600; letter-spacing: .06em;
}
.e8-tier--sub .e8-tier__badge { background: var(--blue); color: #fff; }
.e8-tier__title { font-size: 1.0625rem; font-weight: 640; letter-spacing: -.02em; color: var(--text); }
.e8-tier__tag { font-family: var(--mono); font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.e8-tier__price { margin-top: .5rem; display: flex; flex-direction: column; gap: .05rem; }
.e8-tier__total { font-size: 1.0625rem; font-weight: 600; color: var(--text); }
.e8-tier__total .woocommerce-Price-amount { font-weight: 600; }
.e8-tier__per { font-size: .75rem; font-weight: 500; color: var(--text-4); }
.e8-tier__each { font-size: var(--t-xs); color: var(--text-4); }
.e8-tier__ship { margin-top: .25rem; font-family: var(--mono); font-size: .625rem; line-height: 1.35; color: var(--text-3); }
.e8-tier input:checked + .e8-tier__box .e8-tier__total { color: var(--green); }

.e8-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; margin-bottom: 1.6rem; }
.e8-trust span { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--t-xs); color: var(--text-4); }
.e8-trust .e8-i { color: var(--text-3); }

/* Shipping strip on the product page — a small panel at the point of purchase. */
.e8-ship {
  margin-bottom: 1.1rem; padding: .9rem 1.05rem;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
}
.e8-ship__row { display: flex; align-items: center; gap: .75rem; }
.e8-ship__ic {
  flex-shrink: 0; display: grid; place-items: center; width: 2.1rem; height: 2.1rem;
  border-radius: 10px; background: rgba(52,229,160,.1); border: 1px solid rgba(52,229,160,.24); color: var(--green);
}
.e8-ship__row strong { display: block; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.e8-ship__sub { display: block; font-size: var(--t-xs); color: var(--text-4); margin-top: .1rem; }
.e8-ship__tags { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .7rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.e8-ship__tags span { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-xs); color: var(--text-4); }
.e8-ship__tags .e8-i { color: var(--text-3); }

/* Shipping trust row in the home closing CTA. */
.e8-ready__ship { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.5rem; margin-top: .3rem; }
.e8-ready__ship span { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--t-sm); color: var(--text-2); }
.e8-ready__ship .e8-i { color: var(--green); }

.e8-ruo {
  display: flex; gap: .85rem;
  padding: 1.1rem 1.2rem; margin-bottom: 1.6rem;
  border: 1px solid rgba(245,180,84,.22); background: rgba(245,180,84,.045); border-radius: 14px;
}
.e8-ruo > .e8-i { color: var(--amber); flex-shrink: 0; margin-top: .1em; }
.e8-ruo__t { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .13em; text-transform: uppercase; color: var(--amber); margin-bottom: .5rem; }
.e8-ruo p { font-size: var(--t-xs); line-height: 1.65; color: var(--text-3); }

.e8-block { padding-top: 1.6rem; border-top: 1px solid var(--line); margin-top: 1.6rem; }
.e8-block__h { font-size: var(--t-body); font-weight: 600; letter-spacing: -.015em; margin-bottom: .7rem; }
.e8-block p { font-size: var(--t-sm); line-height: 1.75; color: var(--text-3); max-width: 62ch; }

.e8-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-top: 1.2rem; }
.e8-fact { padding: .85rem .95rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.e8-fact__l { font-family: var(--mono); font-size: .5625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.e8-fact__v { font-size: var(--t-xs); font-weight: 540; color: var(--text); margin-top: .3rem; line-height: 1.45; }

.e8-fit { padding: 1.25rem 1.35rem; margin: 1.6rem 0; border: 1px solid rgba(91,147,255,.2); background: linear-gradient(180deg, rgba(91,147,255,.06), rgba(91,147,255,.015)); border-radius: 16px; }
.e8-fit__h { display: flex; align-items: center; gap: .55rem; margin-bottom: 1rem; }
.e8-fit__h .e8-i { color: var(--blue); }
.e8-fit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem 1.4rem; }
.e8-fit__item { display: flex; align-items: flex-start; gap: .55rem; font-size: var(--t-xs); color: var(--text-2); line-height: 1.5; }
.e8-fit__item .e8-i { color: var(--blue); margin-top: .1em; }

.e8-coa-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-size: var(--t-xs); color: var(--green); }

/* COA access stays on the PDP. The report itself is lazy-loaded into a
   native dialog so it does not slow the product page or interrupt checkout. */
.e8-coa {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem;
  margin-bottom: 1.6rem; padding: 1.1rem 1.2rem;
  border: 1px solid rgba(52,229,160,.24); border-radius: 16px;
  background: linear-gradient(145deg, rgba(52,229,160,.075), rgba(91,147,255,.035));
}
.e8-coa__icon {
  display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border-radius: 12px;
  color: var(--green); background: rgba(52,229,160,.1); border: 1px solid rgba(52,229,160,.24);
}
.e8-coa__eyebrow { font-family: var(--mono); font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.e8-coa__title { margin-top: .15rem; font-size: 1rem; line-height: 1.25; }
.e8-coa__copy p { margin-top: .35rem; max-width: 54ch; font-size: var(--t-xs); line-height: 1.55; color: var(--text-3); }
.e8-coa__action { min-height: 44px; padding-inline: 1.1rem; white-space: nowrap; }
.e8-coa__status {
  display: inline-flex; align-items: center; min-height: 36px; padding-inline: .75rem;
  border: 1px solid rgba(245,180,84,.25); border-radius: 999px; background: rgba(245,180,84,.07);
  font-family: var(--mono); font-size: .625rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber);
}

body.e8-dialog-open { overflow: hidden; }
.e8-coa-dialog {
  width: min(70rem, calc(100vw - 2rem)); max-width: none; height: min(50rem, calc(100dvh - 2rem));
  margin: auto; padding: 0; color: var(--text); background: var(--surface-1);
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 40px 100px rgba(0,0,0,.75);
}
.e8-coa-dialog::backdrop { background: rgba(3,5,9,.86); backdrop-filter: blur(10px); }
.e8-coa-dialog__shell { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.e8-coa-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.e8-coa-dialog__head h2 { margin-top: .3rem; font-size: var(--t-h3); }
.e8-coa-dialog__close {
  display: grid; place-items: center; flex: 0 0 auto; width: var(--tap); height: var(--tap);
  padding: 0; border: 1px solid var(--line-2); border-radius: 50%; color: var(--text-2); background: var(--surface-2); cursor: pointer;
}
.e8-coa-dialog__close:hover { color: var(--text); border-color: var(--line-3); }
.e8-coa-dialog__viewer { min-height: 0; padding: .75rem; background: #25272b; }
.e8-coa-dialog__viewer iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 10px; background: #fff; }
.e8-coa-dialog__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; border-top: 1px solid var(--line); }
.e8-coa-dialog__foot p { font-size: var(--t-xs); line-height: 1.5; color: var(--text-3); }
.e8-tracking-pixels { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* sticky mobile buy bar — the primary conversion surface on phones */
.e8-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  display: none; align-items: center; gap: .85rem;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(7,7,8,.9);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid var(--line-2);
  transform: translateY(110%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.e8-buybar.is-in { transform: none; }
.e8-buybar__meta { flex: 1; min-width: 0; }
.e8-buybar__n { font-size: var(--t-xs); font-weight: 560; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.e8-buybar__p { font-size: var(--t-sm); font-weight: 620; letter-spacing: -.02em; color: var(--text); }
.e8-buybar .e8-btn { flex-shrink: 0; }

/* ============================================================
   SHOP
   ============================================================ */
.e8-filters {
  display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .35rem;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.e8-filters::-webkit-scrollbar { display: none; }
.e8-filter {
  flex-shrink: 0; scroll-snap-align: start;
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 1.1rem;
  border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.025);
  font-size: var(--t-xs); font-weight: 500; color: var(--text-3); white-space: nowrap;
  transition: all var(--dur) var(--ease-out);
}
.e8-filter:hover { color: var(--text); border-color: var(--line-3); }
.e8-filter.is-active { background: rgba(52,229,160,.11); border-color: rgba(52,229,160,.4); color: var(--green); }

/* ============================================================
   AGE GATE
   ============================================================ */
.e8-gate {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
  background: rgba(3,5,9,.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: e8-fade 300ms var(--ease-out);
}
.e8-gate[hidden] { display: none; }
.e8-gate__card {
  width: 100%; max-width: 30rem;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-1));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 100px rgba(0,0,0,.7);
  animation: e8-fade-up 380ms var(--ease-out) both;
}
.e8-gate__title { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 1.875rem); letter-spacing: -.03em; margin: 1.25rem 0 .75rem; }
.e8-gate__body { font-size: var(--t-sm); line-height: 1.65; color: var(--text-3); margin-bottom: 1.6rem; }
.e8-gate__body strong { color: var(--text-2); font-weight: 560; }
.e8-gate__actions { display: flex; flex-direction: column; gap: .6rem; }
.e8-gate__exit {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text-4); font-size: var(--t-sm); font-weight: 500;
}
.e8-gate__exit:hover { color: var(--text-3); border-color: var(--line-3); }

/* ============================================================
   CTA BAND
   ============================================================ */
.e8-cta {
  position: relative; overflow: hidden;
  padding: clamp(2.75rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  border: 1px solid rgba(52,229,160,.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #17171B 0%, var(--surface-1) 58%);
}
.e8-cta__aura { position: absolute; top: -45%; left: 50%; translate: -50% 0; width: min(34rem,100%); aspect-ratio: 1.7; background: radial-gradient(circle, rgba(52,229,160,.22), transparent 62%); pointer-events: none; }
.e8-cta__inner { position: relative; display: grid; justify-items: center; gap: 1.1rem; }
.e8-cta__inner p { max-width: 40ch; }

/* ============================================================
   READY-TO-BEGIN CTA — full-bleed photographic band, no box
   ============================================================ */
/* The group stands on top, feet dissolving into the copy beneath — text never
   covers a face. A soft green aura sits behind the heading (lower now); the
   photo is a true cutout feathered top (heads rise out) and bottom (feet melt
   into the text). */
.e8-ready-wrap { position: relative; }
.e8-ready {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(2.25rem, 5vw, 4rem) var(--gutter) clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}
.e8-ready::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(56% 42% at 50% 74%, rgba(52,229,160,.12), transparent 68%);
}
.e8-ready__figure {
  position: relative; z-index: 1; margin: 0 0 clamp(1.25rem, 2.5vw, 2rem);
  display: flex; justify-content: center;
}
.e8-ready__figure img {
  width: min(40rem, 68%); height: auto; display: block;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 82%, transparent 100%);
}
.e8-ready__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.1rem; max-width: var(--wrap); margin-inline: auto; }
.e8-ready__inner p.e8-lead { max-width: 46ch; }
.e8-ready__cta { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin-top: .3rem; }
.e8-ready__note { font-family: var(--mono); font-size: .625rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-4); margin-top: .4rem; }


/* ============================================================
   FOOTER
   ============================================================ */
.e8-footer { padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) 2.5rem; border-top: 1px solid var(--line); margin-top: var(--s-section); }
.e8-footer__cols { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: clamp(1.75rem,3vw,2.75rem); }
.e8-footer__about { font-size: var(--t-xs); line-height: 1.7; color: var(--text-4); max-width: 34ch; margin: 1rem 0 1.1rem; }
.e8-footer__h { font-family: var(--mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.e8-footer__list { display: flex; flex-direction: column; gap: .1rem; }
.e8-footer__list a { display: inline-flex; align-items: center; min-height: 40px; font-size: var(--t-sm); color: var(--text-4); transition: color var(--dur) ease; }
.e8-footer__list a:hover { color: var(--text); }
.e8-footer__legal { margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.e8-footer__legal-title { margin-bottom: .9rem; font-family: var(--mono); font-size: var(--t-label); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.e8-footer__disclosures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1.5rem; }
.e8-footer__disclaimer { font-size: .75rem; line-height: 1.7; color: var(--text-3); max-width: 78ch; }
.e8-footer__disclaimer strong { color: var(--text-2); font-weight: 600; }
.e8-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; font-size: var(--t-xs); color: var(--text-4); }
.e8-footer__base span { display: inline-flex; align-items: center; gap: .45rem; }

/* Benefit pill — small labelled chip used in lifestyle rows. */
.e8-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .95rem .5rem .55rem; border-radius: 999px;
  background: rgba(22,22,26,.72);
  border: 1px solid var(--line-2);
  font-size: var(--t-xs); font-weight: 550; letter-spacing: -.01em; color: var(--text);
  line-height: 1.3;
}
.e8-pill__ic {
  display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: rgba(52,229,160,.12); color: var(--green); flex-shrink: 0;
}

/* Static WordPress pages: predictable reading width and complete element
   defaults keep policy, contact, and future editorial content consistent. */
.e8-page-content { max-width: 48rem; font-size: var(--t-body); line-height: 1.75; color: var(--text-2); overflow-wrap: anywhere; }
.e8-page-content > * + * { margin-top: 1.25rem; }
.e8-page-content h2, .e8-page-content h3, .e8-page-content h4 { margin-top: 2rem; color: var(--text); }
.e8-page-content h2 { font-size: var(--t-h3); }
.e8-page-content h3 { font-size: 1.125rem; }
.e8-page-content a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.e8-page-content ul, .e8-page-content ol { padding-left: 1.35rem; }
.e8-page-content li + li { margin-top: .45rem; }
.e8-page-content blockquote { margin-inline: 0; padding: 1rem 1.15rem; border-left: 3px solid var(--green); background: var(--surface-1); color: var(--text-2); }
.e8-page-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.e8-page-content th, .e8-page-content td { min-width: 8rem; padding: .7rem .8rem; border: 1px solid var(--line-2); text-align: left; }
.e8-page-content img { border-radius: var(--radius); }

/* ============================================================
   LIFESTYLE ROW — one component for every human image on the page
   Copy on one side, a grounded cut-out figure on the other, rows
   alternating down the page. One rhythm means the photography reads
   as part of the narrative rather than a series of one-off features.
   ============================================================ */
.e8-life { position: relative; overflow: hidden; }
.e8-life__inner {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.25rem); align-items: center;
}
/* --flip puts the figure first, so consecutive rows alternate sides. */
.e8-life--flip .e8-life__figure { order: -1; }

.e8-life__copy > * + * { margin-top: 1.1rem; }
.e8-life__copy .e8-lead { max-width: 46ch; }
.e8-life__pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.e8-life__copy .e8-btn { margin-top: .3rem; }
.e8-life__note {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: var(--t-xs); color: var(--text-4); line-height: 1.5;
}
.e8-life__note .e8-i { margin-top: .1em; flex-shrink: 0; }

/* Every figure is grounded the same way: a soft base glow under the feet and
   a bottom feather, so no cut-out ever ends on a hard horizontal edge. */
.e8-life__figure {
  position: relative; margin: 0; justify-self: center;
  height: clamp(20rem, 32vw, 27rem);
  display: flex; align-items: flex-end; justify-content: center;
}
.e8-life__figure::before {
  content: ""; position: absolute; bottom: 3%; left: 50%; translate: -50% 0;
  width: 116%; aspect-ratio: 2.5; z-index: 0;
  background: radial-gradient(closest-side, rgba(52,229,160,.14), transparent 72%);
  pointer-events: none;
}
.e8-life__figure img {
  position: relative; z-index: 1;
  height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block;
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}
/* Wide/seated subjects: still height-driven so every row matches, just given
   more horizontal room. object-fit keeps them from stretching. */
.e8-life__figure--wide img { max-width: 100%; }

/* --float: a product hero (not a person). Centered, no ground glow, no bottom
   feather — the art already fades to transparent on its own. */
.e8-life__figure--float { align-items: center; }
.e8-life__figure--float::before { display: none; }
.e8-life__figure--float img {
  height: auto; width: 100%; max-width: 34rem;
  -webkit-mask-image: none; mask-image: none;
}

@media (max-width: 860px) {
  /* Mobile: one column, and — the important part — EVERY row stacks the same
     way (copy, then figure). Alternating sides is a desktop-only device; on a
     phone one consistent order is what makes the page feel composed. */
  .e8-life__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  /* Copy always leads, figure always follows — including on flipped rows,
     whose DOM puts the figure first for the desktop alternation. */
  .e8-life__copy { order: 1; }
  .e8-life--flip .e8-life__figure,
  .e8-life__figure { order: 2; }
  .e8-life__figure { height: min(20rem, 62vw); }
}

/* ============================================================
   WOOCOMMERCE NORMALISATION
   ============================================================ */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  list-style: none; margin: 0 0 1.25rem; padding: .9rem 1.1rem;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; font-size: var(--t-sm);
}
.woocommerce-error { border-color: rgba(255,122,122,.35); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.woocommerce-result-count, .woocommerce-ordering { display: none; }

.e8-pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.e8-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; min-height: 42px; padding-inline: .75rem;
  border-radius: 11px; border: 1px solid var(--line); color: var(--text-3); font-size: var(--t-xs);
  transition: all var(--dur) var(--ease-out);
}
.e8-pagination .page-numbers:hover { border-color: var(--line-3); color: var(--text); }
.e8-pagination .page-numbers.current { background: rgba(52,229,160,.12); border-color: rgba(52,229,160,.4); color: var(--green); }

/* ============================================================
   RESPONSIVE — mobile is the primary target (~90% of traffic)
   ============================================================ */
@media (max-width: 1024px) {
  .e8-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Single column: the bottle (and the seals with it) lead above the copy. */
  .e8-hero__side { order: -1; }
  .e8-hero__visual { min-height: min(26rem, 80vw); }
  .e8-hero__vial img { width: min(12rem, 40vw); }
  .e8-features { grid-template-columns: repeat(2, 1fr); }
  .e8-grid, .e8-steps { grid-template-columns: repeat(2, 1fr); }
  .e8-pdp { grid-template-columns: 1fr; }
  .e8-pdp__gallery { position: static; }
  .e8-footer__cols { grid-template-columns: 1fr 1fr; }

}

@media (max-width: 860px) {
  /* the comparison table stops being a table */
  .e8-compare-scroll { display: none; }
  .e8-compare-cards { display: block; }
}

@media (max-width: 760px) {
  .e8-nav__toggle { display: inline-flex; }
  .e8-nav__links {
    position: fixed; inset: 62px 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: rgba(7,7,8,.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 62px); overflow-y: auto;
    animation: e8-fade-up 240ms var(--ease-out);
  }
  .e8-nav__links[hidden] { display: none; }
  .e8-nav__links a {
    min-height: 52px; display: flex; align-items: center;
    font-size: 1rem; border-bottom: 1px solid var(--line);
  }
  .e8-nav__links a::after { display: none; }
  .e8-nav__links .e8-btn { margin-top: 1rem; border-bottom: none; }

  .e8-hero { padding-block: 1.5rem 2.5rem; }
  .e8-hero__inner { gap: 1.75rem; }

  /* Copy first: headline + CTA above the fold beats a large product shot.
     The vial follows as support. The helix now runs on phones too, so the
     visual keeps a min-height for the coil to orbit within. */
  .e8-hero__side { order: 2; gap: 1rem; }
  .e8-hero__visual { min-height: min(22rem, 78vw); }
  .e8-hero__copy > * + * { margin-top: 1.1rem; }
  .e8-hero__vial img { width: min(9.5rem, 42vw); }

  .e8-eyebrow { font-size: .625rem; letter-spacing: .1em; padding: .4rem .75rem .4rem .55rem; }
  .e8-hero__note { font-size: .75rem; }

  .e8-stats { gap: 1.1rem; width: 100%; }
  .e8-stat { flex: 1; min-width: 0; }
  .e8-stat__n { font-size: 1.3rem; }
  .e8-stats__sep { display: none; }

  /* Three wreaths still fit across a phone at this height; keep them on one
     row rather than wrapping one seal onto a lonely second line. Grouped
     tight and centred under the bottle — justifying them to the full page
     width pushed the outer two into the margins and broke the set apart. */
  .e8-awards { gap: .4rem; justify-content: center; flex-wrap: nowrap; }
  .e8-award img { height: clamp(2.75rem, 13.5vw, 3.75rem); }

  .e8-features, .e8-grid, .e8-steps, .e8-areas, .e8-standards, .e8-fit__grid, .e8-facts { grid-template-columns: 1fr; }
  .e8-footer__cols { grid-template-columns: 1fr; gap: 1.75rem; }

  .e8-card__details { min-height: var(--tap); }

  .e8-coa { grid-template-columns: auto minmax(0, 1fr); }
  .e8-coa__action, .e8-coa__status { grid-column: 1 / -1; justify-content: center; width: 100%; }
  .e8-coa-dialog { width: calc(100vw - 1rem); height: calc(100dvh - 1rem); border-radius: 18px; }
  .e8-coa-dialog__foot { align-items: stretch; flex-direction: column; }
  .e8-coa-dialog__foot .e8-btn { width: 100%; }

  .e8-footer__disclosures { grid-template-columns: 1fr; }

  /* full-width primary actions in the thumb zone */
  .e8-ready__figure img { width: min(40rem, 82%); }
  .e8-hero__cta, .e8-ready__cta { flex-direction: column; align-items: stretch; }
  .e8-hero__cta .e8-btn, .e8-cta .e8-btn, .e8-ready__cta .e8-btn { width: 100%; }

  .e8-buybar { display: flex; }
  body.e8-has-buybar { padding-bottom: 5.5rem; }

  .e8-section { padding-block: clamp(3rem, 2rem + 5vw, 4.5rem); }
  .e8-pdp__float { inset: 13% 0; }
  .e8-specs { gap: .45rem; }
  .e8-spec { padding: .75rem .35rem; }
}

@media (max-width: 420px) {
  /* Nav is tight on the smallest phones; drop the tagline there but keep
     it in the roomier footer. */
  .e8-nav__inner .e8-brand__sub { display: none; }
  .e8-cert { font-size: .5625rem; padding: .4rem .65rem; }
}

/* Fine-pointer devices get the hover lift; touch devices should not,
   since :hover sticks after a tap. */
@media (hover: none) {
  .e8-card:hover, .e8-feature:hover { transform: none; box-shadow: none; }
  .e8-card:hover .e8-card__media img { transform: translate(-50%, -50%); }
}
/* ============================================================
   THANK YOU (post-checkout)

   Mobile-first: every rule below is the phone layout, and the two
   min-width queries at the end are the only places it widens. The
   page reuses the home hero, .e8-panel and .e8-steps wholesale —
   only what is unique to the confirmation lives here.
   ============================================================ */

/* --- Statement-descriptor bar ------------------------------
   Amber, not green: it is an advisory ("this is what you'll see
   on your statement"), not a second success message competing
   with the headline. Dismissed by the customer, never on a timer. */
.e8-notice {
  border-bottom: 1px solid rgba(245,180,84,.2);
  background: rgba(245,180,84,.06);
}
.e8-notice[hidden] { display: none; }

.e8-notice__inner {
  display: flex; align-items: center; gap: .75rem;
  padding-block: .7rem;
}
.e8-notice__ic {
  display: inline-flex; flex-shrink: 0; color: var(--amber);
  /* Optically centres the glyph against the first line of copy
     when the text wraps to two or more lines. */
  align-self: flex-start; margin-top: .1rem;
}
.e8-notice__body {
  flex: 1 1 auto; min-width: 0;
  font-size: var(--t-xs); line-height: 1.55; color: var(--text-2);
}
.e8-notice__body strong {
  color: var(--text);
  font-family: var(--mono); font-weight: 500; letter-spacing: .02em;
  white-space: nowrap;
}
.e8-notice__x {
  flex-shrink: 0;
  min-height: var(--tap); padding-inline: 1.1rem;
  border: 1px solid rgba(245,180,84,.32); border-radius: 999px;
  background: transparent; color: var(--amber);
  font-family: var(--mono); font-size: var(--t-label);
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.e8-notice__x:hover { background: rgba(245,180,84,.14); border-color: rgba(245,180,84,.5); }

/* Phones: the copy takes the full width and the dismiss control
   becomes a full-width tap target under it, rather than being
   crushed to a few pixels beside two lines of text. */
@media (max-width: 620px) {
  .e8-notice__inner { flex-wrap: wrap; row-gap: .6rem; }
  .e8-notice__body { flex-basis: calc(100% - 1.75rem); }
  .e8-notice__x { width: 100%; }
}

/* --- Hero order facts --------------------------------------
   Borrowed from the PDP spec grid, but these carry order details,
   so they stack on phones and only pair up once there's room. */
.e8-facts--ty { grid-template-columns: 1fr; gap: .6rem; max-width: 34rem; }
@media (min-width: 480px) { .e8-facts--ty { grid-template-columns: repeat(2, 1fr); } }

/* --- Next-steps ---------------------------------------------
   The step badge carries an icon as well as its index here, so it
   needs to lay them out rather than centre a single number. */
.e8-step__n { gap: .5rem; }

/* --- Shipping + support cards ------------------------------- */
.e8-ty-grid {
  display: grid; grid-template-columns: 1fr;
  gap: clamp(.75rem, 1.6vw, 1.25rem);
  align-items: stretch;
}

.e8-ty-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 1.15rem;
  padding: clamp(1.25rem, 3.5vw, 1.85rem);
}
.e8-ty-card > .e8-ship__row { width: 100%; }
/* Both cards end in a link. Pushing it to the bottom keeps the two
   links on one baseline no matter which card is taller — without it
   the shorter card leaves a dead gap under its content. */
.e8-ty-card > .e8-coa-link { margin-top: auto; }

/* Data rows — shipping windows and the support address share one
   treatment so the pair of cards reads as a matched set. */
/* margin-block:auto shares the leftover height above and below the rows
   instead of dumping it all in one gap — the shipping card carries fewer
   rows than the support card, and without this it reads as unfinished. */
.e8-ty-rows { width: 100%; display: flex; flex-direction: column; gap: .5rem; margin-block: auto; }
.e8-ty-row {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .8rem .95rem;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px;
}
.e8-ty-row > span {
  font-family: var(--mono); font-size: var(--t-label);
  letter-spacing: .1em; text-transform: uppercase; color: var(--text-4);
}
.e8-ty-row > strong { font-size: var(--t-sm); font-weight: 560; color: var(--text); }

/* The support address is the one thing on this page a customer may
   need to copy, so it gets the row treatment plus a full-width tap
   target and its own break rules — long addresses must not overflow. */
.e8-ty-mail {
  display: flex; align-items: center;
  width: 100%; min-height: var(--tap);
  padding: .8rem .95rem;
  background: rgba(52,229,160,.06);
  border: 1px solid rgba(52,229,160,.22); border-radius: 12px;
  font-family: var(--mono); font-size: var(--t-sm); color: var(--green);
  overflow-wrap: anywhere;
  transition: background var(--dur) var(--ease-out);
}
.e8-ty-mail:hover { background: rgba(52,229,160,.11); }

.e8-ty-note { font-size: var(--t-xs); line-height: 1.6; color: var(--text-3); }
.e8-ty-note strong { color: var(--text-2); overflow-wrap: anywhere; }

.e8-ty-editor {
  max-width: 62ch; margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--t-sm); line-height: 1.75; color: var(--text-3);
}

.e8-ty-ruo { margin-top: clamp(1.25rem, 3vw, 2rem); margin-bottom: 0; }

/* Two columns only when both cards can hold their rows without the
   labels and values colliding. */
@media (min-width: 880px) {
  .e8-ty-grid { grid-template-columns: repeat(2, 1fr); }
  /* With room to spare, each row puts its label and value on one
     line — denser, and it lines up across the two cards. */
  .e8-ty-row { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1rem; }
}
