:root {
  /* Sage palette, take one: the teal accent is now a deep forest sage —
     buttons, links, the hero glow, the header/footer accent bar all
     inherit it via --teal/--teal-rgb (kept under their old names to avoid
     touching 30+ call sites; the variable now means "brand accent," not
     literally teal). The body-raised surfaces warm from cool grey to a
     soft cream to match the leaf mark. Category hues (violet, amber,
     purple, rose, gold) are kept, but stay a purely functional role:
     small category tags, card accents, and the NEXARA/UPA supplier badges
     — informational colour-coding, not brand accent. Header/footer/stats
     keep the near-black "ink" band as before — it already paired well
     with an accent colour and needs no change for the new palette. */
  --bg: #FFFFFF;
  --bg-rgb: 255, 255, 255;
  --bg-raised: #F5F2E8;
  --bg-raised-rgb: 245, 242, 232;
  --teal: #3E6B3A;
  --teal-rgb: 62, 107, 58;
  --violet: #4F3FC9;
  --violet-rgb: 79, 63, 201;
  --text: #14181C;
  --text-dim: #5B6570;
  --amber: #9E5416;
  --amber-rgb: 158, 84, 22;
  --purple: #7530B8;
  --purple-rgb: 117, 48, 184;
  --rose: #B12A5E;
  --rose-rgb: 177, 42, 94;
  --gold: #7A5D12;
  --gold-rgb: 122, 93, 18;
  --border: rgba(20, 24, 28, 0.12);

  /* Near-black ink bands (header, footer, stats) — the darkest surface
     on the page, punctuating the light body/card tones above. */
  --ink: #0B0D0F;
  --ink-rgb: 11, 13, 15;
  --ink-raised: #16191C;
  --on-ink: #F5F6F7;
  --on-ink-dim: rgba(245, 246, 247, 0.62);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Elevation — a white page needs real shadow, not just borders, to keep
     cards and controls from reading as flat rectangles floating on paper. */
  --shadow-sm: 0 1px 2px rgba(11, 13, 15, 0.05), 0 1px 1px rgba(11, 13, 15, 0.04);
  --shadow-md: 0 10px 24px rgba(11, 13, 15, 0.08), 0 2px 6px rgba(11, 13, 15, 0.05);
  --shadow-lg: 0 20px 48px rgba(11, 13, 15, 0.14), 0 6px 16px rgba(11, 13, 15, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg);
  background-image: radial-gradient(rgba(var(--teal-rgb), 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Keyboard-focus ring — visible only for keyboard/assistive navigation
   (not on mouse click, via :focus-visible), consistent brand-teal, on every
   interactive element. Individual controls below still add their own
   richer focus treatment (e.g. form fields get a soft glow) — this is the
   universal fallback so nothing is ever silently unreachable by keyboard. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(var(--bg-rgb), 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  color: var(--text);
}

/* Brand mark — a background-image on ::before rather than inline markup so
   every .logo instance across all ~41 pages (header + footer) picks it up
   automatically from this one shared stylesheet, with no per-page HTML
   edits. url() here resolves relative to style.css's own location (the
   project root), so it works unchanged whether the including page is at
   the root or under compounds/. */
.logo::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 9px;
  border-radius: 6px;
  background-image: url('favicon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  box-shadow: 0 0 10px 1px rgba(var(--teal-rgb), 0.35);
}

nav { display: flex; gap: 4px; }
nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s, transform 0.15s;
  display: inline-block;
}
nav a:hover { color: var(--text); background: rgba(var(--teal-rgb), 0.12); }
nav a:active { transform: scale(0.96); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
}

.hero {
  position: relative;
  padding: 150px 0 130px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--bg-raised);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.glow-1 {
  width: 440px; height: 440px;
  background: var(--teal);
  top: -140px; left: -100px;
  animation: floatGlow1 19s ease-in-out infinite;
}

.glow-2 {
  width: 400px; height: 400px;
  background: var(--teal);
  top: 20px; right: -120px;
  animation: floatGlow2 23s ease-in-out infinite;
}

.glow-3 {
  width: 320px; height: 320px;
  background: var(--teal);
  bottom: -160px; left: 38%;
  animation: floatGlow3 21s ease-in-out infinite;
}

@keyframes floatGlow1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 36px) scale(1.15); }
}

@keyframes floatGlow2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}

@keyframes floatGlow3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.2); }
}

.chain-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.helix-flow {
  animation: helixFlow 16s linear infinite, helixFadeIn 1.2s ease-out both;
}

/* Path spans one extra period on each side (-300 to 1500, period = 300),
   so translating by exactly one period loops with no visible seam. */
@keyframes helixFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-300px); }
}

@keyframes helixFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.helix-strand {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.helix-rung {
  stroke: var(--text-dim);
  stroke-width: 1.5;
  opacity: 0.22;
}

.node {
  transform-box: fill-box;
  transform-origin: center;
  animation: nodePulse 3s ease-in-out infinite;
}

@keyframes nodePulse {
  0%, 100% { opacity: 0.18; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.7); }
}

.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  letter-spacing: 0.05em;
  background: rgba(var(--teal-rgb), 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  color: var(--text-dim);
  max-width: 480px;
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 22px;
}

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.btn-primary { background: var(--teal); color: #FFFFFF; box-shadow: 0 4px 14px rgba(var(--teal-rgb), 0.28); }
.btn-primary:hover { background: #024F45; box-shadow: 0 6px 18px rgba(var(--teal-rgb), 0.36); transform: translateY(-1px); }
.btn-primary:active { background: #013D35; box-shadow: 0 2px 8px rgba(var(--teal-rgb), 0.32); transform: translateY(0) scale(0.98); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--bg);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn-ghost:active { box-shadow: none; transform: translateY(0) scale(0.98); }

.stats {
  background: var(--ink);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--teal);
  display: block;
}

.stat-num .unit { font-size: 1.2rem; }


.stat-label {
  color: var(--on-ink-dim);
  font-size: 0.85rem;
  display: block;
  margin-top: 6px;
}

.compounds { padding: 100px 0; }

.compounds h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.section-sub {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 48px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.compound-card {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.compound-card:hover {
  border-top-color: var(--teal);
  border-right-color: var(--teal);
  border-bottom-color: var(--teal);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

details.compound-card[data-category="longevity"] { border-left-color: var(--violet); }
details.compound-card[data-category="metabolic"] { border-left-color: var(--amber); }
details.compound-card[data-category="cognitive"] { border-left-color: var(--teal); }
details.compound-card[data-category="recovery"] { border-left-color: var(--purple); }
details.compound-card[data-category="sexual-health"] { border-left-color: var(--rose); }
details.compound-card[data-category="growth"] { border-left-color: var(--gold); }

.card-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.testing {
  background: var(--bg-raised);
  padding: 100px 0;
}

.testing-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.testing-copy h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 20px;
}

.testing-copy p {
  color: var(--text-dim);
  margin-bottom: 28px;
}

.coa-mock {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
}

.coa-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
}

.coa-row:last-child { border-bottom: none; }
.coa-row .highlight { color: var(--teal); font-weight: 500; }

.site-footer {
  background: var(--ink);
  color: var(--on-ink);
  padding: 60px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.site-footer .logo { color: var(--on-ink); }

.footer-note {
  color: var(--on-ink-dim);
  font-size: 0.82rem;
  margin-top: 12px;
  max-width: 420px;
}

.footer-legal-links {
  color: var(--on-ink-dim);
  font-size: 0.78rem;
  margin-top: 14px;
}

.footer-legal-links a {
  color: var(--on-ink-dim);
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}

.footer-legal-links a:hover {
  text-decoration-color: currentColor;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--on-ink-dim);
  margin-bottom: 10px;
}

.category-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: var(--bg-raised);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover { border-color: var(--teal); color: var(--teal); }
.filter-btn:active { transform: scale(0.95); }

.filter-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(var(--teal-rgb), 0.32);
}

details.compound-card summary {
  list-style: none;
  cursor: pointer;
}

details.compound-card summary::-webkit-details-marker { display: none; }

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.summary-main {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.summary-text { min-width: 0; }

/* Generic "boxed product" placeholder graphic — stands in for real product
   photos until packaging photography is ready. Reused at two sizes:
   .product-thumb (compound list) and .product-photo (product page hero).
   Tints per compound category via the [data-category] attribute set on
   .compound-card (list) or .product-hero (product page). */
.vial-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.vial-placeholder .vial { position: relative; }

/* Metal crimp cap — a soft dome gradient plus fine repeating ridges to
   read as pressed metal rather than a flat block. */
.vial-placeholder .vial-cap {
  width: 100%;
  height: 11%;
  border-radius: 4px 4px 0 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 55%),
    linear-gradient(180deg, rgba(var(--ink-rgb), 0.7), rgba(var(--ink-rgb), 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(var(--ink-rgb), 0.3);
  position: relative;
  z-index: 1;
}

.vial-placeholder .vial-cap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: repeating-linear-gradient(90deg, rgba(var(--ink-rgb), 0.35) 0 1px, transparent 1px 4px);
  opacity: 0.55;
}

/* Glass body — a rounder base, inset side-shading to suggest a cylinder,
   and a soft diagonal highlight streak standing in for a light reflection. */
.vial-placeholder .vial-body {
  width: 100%;
  height: 89%;
  margin-top: 2%;
  border-radius: 4px 4px 10px 10px;
  background: linear-gradient(165deg, rgba(var(--teal-rgb), 0.55), rgba(var(--violet-rgb), 0.5));
  border: 2px solid rgba(var(--teal-rgb), 0.6);
  box-shadow:
    inset -8px 0 16px rgba(var(--ink-rgb), 0.28),
    inset 5px 0 10px rgba(255, 255, 255, 0.16),
    inset 0 -10px 18px rgba(var(--ink-rgb), 0.18);
  position: relative;
  overflow: hidden;
}

.vial-placeholder .vial-body::before {
  content: '';
  position: absolute;
  top: 5%;
  bottom: 8%;
  left: 16%;
  width: 12%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.04));
  filter: blur(1.5px);
  pointer-events: none;
}

[data-category="longevity"] .vial-body { background: linear-gradient(165deg, rgba(var(--violet-rgb), 0.55), rgba(var(--violet-rgb), 0.28)); border-color: rgba(var(--violet-rgb), 0.65); }
[data-category="metabolic"] .vial-body { background: linear-gradient(165deg, rgba(var(--amber-rgb), 0.55), rgba(var(--amber-rgb), 0.28)); border-color: rgba(var(--amber-rgb), 0.65); }
[data-category="recovery"] .vial-body { background: linear-gradient(165deg, rgba(var(--purple-rgb), 0.55), rgba(var(--purple-rgb), 0.28)); border-color: rgba(var(--purple-rgb), 0.65); }
[data-category="sexual-health"] .vial-body { background: linear-gradient(165deg, rgba(var(--rose-rgb), 0.55), rgba(var(--rose-rgb), 0.28)); border-color: rgba(var(--rose-rgb), 0.65); }
[data-category="growth"] .vial-body { background: linear-gradient(165deg, rgba(var(--gold-rgb), 0.55), rgba(var(--gold-rgb), 0.28)); border-color: rgba(var(--gold-rgb), 0.65); }

.vial-placeholder .vial-label {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 30%;
  min-height: 22%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6% 5%;
  text-align: center;
  box-shadow: 0 2px 5px rgba(var(--ink-rgb), 0.22);
}

.vial-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.vial-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-dim);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-thumb {
  width: 112px;
  height: 112px;
  border-radius: 10px;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}

.product-thumb .vial { width: 34px; height: 42px; }

/* Real photo present: drop the placeholder's card frame (bg/border/shadow)
   so the product shot sits directly on the page instead of looking like a
   thumbnail glued onto a separate box. The source photos are now
   background-removed (true alpha transparency), so the shot itself blends
   into the page with no blend-mode trick needed. */
.product-thumb:has(.product-thumb-img) {
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.product-photo {
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.product-photo .vial { width: 130px; height: 168px; }

.product-photo:has(.product-photo-img) {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
}

.product-photo-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

.product-photo-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
}

/* Same "no real photo yet" note, sized for the compact compound-list card
   (.summary-text) rather than the full product-page hero. */
.thumb-photo-note {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-top: 4px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 36px;
  align-items: start;
}

.product-hero-copy { min-width: 0; }

.summary-row h3 { font-family: var(--font-display); font-size: 1.25rem; }

.summary-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.category-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  background: rgba(var(--teal-rgb), 0.14);
  border-radius: 4px;
  padding: 3px 8px;
}

.category-tag.tag-violet { color: var(--violet); background: rgba(var(--violet-rgb), 0.14); }
.category-tag.tag-amber { color: var(--amber); background: rgba(var(--amber-rgb), 0.14); }
.category-tag.tag-purple { color: var(--purple); background: rgba(var(--purple-rgb), 0.14); }
.category-tag.tag-rose { color: var(--rose); background: rgba(var(--rose-rgb), 0.14); }
.category-tag.tag-gold { color: var(--gold); background: rgba(var(--gold-rgb), 0.14); }

.chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
  color: var(--text-dim);
}

details[open] .chevron { transform: rotate(180deg); }

.card-expand {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.card-expand ul {
  list-style: none;
  margin-bottom: 18px;
}

.card-expand li {
  color: var(--text-dim);
  font-size: 0.9rem;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.card-expand li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.view-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
}

.breadcrumb {
  padding: 24px 0 0;
}

.back-link {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.15s;
}

.back-link:hover { color: var(--teal); }

.product-hero {
  padding: 40px 0 48px;
  border-bottom: 1px solid var(--border);
}

.product-hero .category-tag { margin-bottom: 16px; display: inline-block; }

.product-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 10px;
}

.product-hero .tagline {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.price-table-wrap {
  margin-bottom: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 20px;
  box-shadow: var(--shadow-sm);
  max-width: 480px;
}

.price-table {
  width: 100%;
  max-width: 480px;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.price-table th, .price-table td {
  text-align: left;
  padding: 8px 14px 8px 0;
  border-bottom: 1px solid var(--border);
}

.price-table th {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-table tr:last-child td { border-bottom: none; }

.price-table .order-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal);
  white-space: nowrap;
}
.price-table .order-link:hover { text-decoration: underline; }

.price-table .price-cell {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.supplier-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.supplier-badge.supplier-nexara {
  color: var(--teal);
  border-color: rgba(var(--teal-rgb), 0.4);
  background: rgba(var(--teal-rgb), 0.14);
}

.supplier-badge.supplier-upa {
  color: var(--violet);
  border-color: rgba(var(--violet-rgb), 0.4);
  background: rgba(var(--violet-rgb), 0.14);
}

.price-block-inquire {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.price-block-inquire .price-amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dim);
}

.price-cta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--teal);
}

.price-cta:hover { text-decoration: underline; }

.summary-meta .price-inline {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.summary-meta .price-inline.is-tbd {
  font-style: italic;
}

.supplier-mini {
  font-size: 0.62rem;
  opacity: 0.75;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.meta-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.meta-item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.meta-item strong { font-size: 0.95rem; font-weight: 500; }

.info-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.info-section h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.info-section p { color: var(--text-dim); margin-bottom: 16px; max-width: 720px; }

.bullet-list { list-style: none; max-width: 720px; }

.bullet-list li {
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
  margin-bottom: 14px;
}

.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.bullet-list strong { color: var(--text); }

.stat-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 24px 0;
  text-align: center;
}

.stat-highlight {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.stat-highlight .num {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--teal);
  display: block;
}

.stat-highlight .label {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 6px;
  display: block;
}

.protocol-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  max-width: 720px;
}

.protocol-table th, .protocol-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

.protocol-table th {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.callout {
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 0.9rem;
  max-width: 720px;
  box-shadow: var(--shadow-sm);
}

.callout-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: block;
}

.callout-note {
  background: rgba(var(--teal-rgb), 0.14);
  border: 1px solid rgba(var(--teal-rgb), 0.4);
}
.callout-note .callout-title { color: var(--teal); }

.callout-warning {
  background: rgba(var(--amber-rgb), 0.16);
  border: 1px solid rgba(var(--amber-rgb), 0.45);
}
.callout-warning .callout-title { color: var(--amber); }
.callout-warning p, .callout-note p { color: var(--text-dim); margin: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-field input,
.form-field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(var(--teal-rgb), 0.14);
}

.contact-form .btn { align-self: flex-start; border: none; cursor: pointer; }

.order-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
  margin: 24px 0;
}

.order-form .btn { align-self: flex-start; border: none; cursor: pointer; }

.contact-cta {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}

.contact-cta h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.contact-cta p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 28px;
}

.resource-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 12px 0 8px;
}

.video-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.video-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(160deg, rgba(var(--teal-rgb), 0.55), rgba(var(--violet-rgb), 0.5));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb::after {
  content: '';
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent var(--ink);
  opacity: 0.75;
}

.video-row-text .category-tag { margin-bottom: 6px; display: inline-block; }
.video-row-text h3 { font-family: var(--font-display); margin: 0; font-size: 1rem; }

/* ── Featured-expert video embeds (Resources page) ──────────────────────
   Click-to-play facades: a static thumbnail + play button swap for a real
   YouTube iframe on click, so four embeds don't all load on page load. */
.expert-card { padding-top: 20px; }

.yt-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.yt-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.yt-facade:hover img { transform: scale(1.05); }

.yt-facade iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(var(--ink-rgb), 0.82);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  padding-left: 3px;
  transition: background 0.2s, transform 0.2s;
}

.yt-facade:hover .yt-play { background: var(--teal); transform: translate(-50%, -50%) scale(1.08); }
.yt-facade:active .yt-play { transform: translate(-50%, -50%) scale(0.96); }

.expert-source {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 10px;
}

.note-small {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 20px;
  max-width: 720px;
}

/* ── Account nav (header) ─────────────────────────────────────────────── */

.nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-cart-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--teal);
  color: #FFFFFF;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

/* ── Wishlist heart toggle ────────────────────────────────────────────── */

.wishlist-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.12s;
  flex-shrink: 0;
}

.wishlist-btn svg { width: 16px; height: 16px; }

.wishlist-btn:hover { border-color: var(--rose); color: var(--rose); }
.wishlist-btn:active { transform: scale(0.9); }

@keyframes heartPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.wishlist-btn.is-saved {
  color: var(--rose);
  border-color: rgba(var(--rose-rgb), 0.5);
  background: rgba(var(--rose-rgb), 0.1);
  animation: heartPop 0.4s ease;
}

.wishlist-btn.is-saved svg { fill: currentColor; }

.compound-card .wishlist-btn { width: 30px; height: 30px; }
.compound-card .wishlist-btn svg { width: 14px; height: 14px; }

.product-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* ── Cart "+ add" action in price tables ──────────────────────────────── */

.price-table .cart-add {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  margin-left: 8px;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.12s;
}

.price-table .cart-add:hover { border-color: var(--teal); color: var(--teal); }
.price-table .cart-add:active { transform: scale(0.94); }
.price-table .cart-add.is-added { border-color: var(--teal); color: var(--teal); background: rgba(var(--teal-rgb), 0.1); }

/* ── Auth (account.html) ──────────────────────────────────────────────── */

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  max-width: 320px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

.auth-tab.active { background: var(--bg); color: var(--text); box-shadow: var(--shadow-sm); }

.auth-form { max-width: 380px; }
.auth-form .btn { width: 100%; text-align: center; border: none; cursor: pointer; margin-top: 4px; }

.auth-error {
  color: var(--rose);
  font-size: 0.85rem;
  margin-top: 10px;
  display: none;
}

.auth-error.visible { display: block; }

/* ── Dashboard / cart tables ──────────────────────────────────────────── */

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.dashboard-side {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.dashboard-side h3 { font-family: var(--font-display); font-size: 1rem; margin-bottom: 4px; }
.dashboard-side p { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 16px; }
.dashboard-side .btn-ghost { display: block; text-align: center; cursor: pointer; border: 1px solid var(--border); }

.dashboard-section { margin-bottom: 48px; }
.dashboard-section h2 { font-size: 1.2rem; margin-bottom: 16px; font-family: var(--font-display); }

.empty-note {
  color: var(--text-dim);
  font-size: 0.9rem;
  background: var(--bg-raised);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 20px;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.wishlist-grid-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.wishlist-grid-item:hover { box-shadow: var(--shadow-md); }

.wishlist-grid-item a { font-weight: 500; }

/* ── Skeleton loading states (dashboard.html, cart.html) ────────────────
   Shown while a Supabase fetch is in flight, roughly shaped like the
   content that's about to replace it, so the layout doesn't jump when the
   real data lands. Pure CSS shimmer — script.js only toggles which markup
   is present, never the animation itself. */
@keyframes skeletonShimmer {
  0% { background-position: -135% 0; }
  100% { background-position: 135% 0; }
}

.skeleton {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg,
    var(--bg-raised) 25%,
    rgba(20, 24, 28, 0.09) 37%,
    var(--bg-raised) 50%);
  background-size: 400% 100%;
  animation: skeletonShimmer 1.4s ease-in-out infinite;
}

.skeleton-wishlist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.skeleton-wishlist .skeleton {
  height: 54px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.skeleton-rows { display: flex; flex-direction: column; gap: 14px; }
.skeleton-rows .skeleton { height: 16px; }
.skeleton-rows .skeleton:nth-child(2) { width: 92%; }
.skeleton-rows .skeleton:nth-child(3) { width: 78%; }
.skeleton-rows .skeleton:nth-child(4) { width: 85%; }

.orders-table, .cart-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th, .orders-table td,
.cart-table th, .cart-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.orders-table th, .cart-table th {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(var(--teal-rgb), 0.14);
  color: var(--teal);
}

.qty-stepper { display: inline-flex; align-items: center; gap: 8px; }
.qty-stepper button {
  width: 26px; height: 26px;
  border-radius: 6px;
  transition: color 0.15s, border-color 0.15s, transform 0.12s;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
  font-family: var(--font-mono);
}
.qty-stepper button:hover { border-color: var(--teal); color: var(--teal); }
.qty-stepper button:active { transform: scale(0.9); }

.cart-remove {
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s;
}
.cart-remove:hover { color: var(--rose); }

.cart-totals {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  align-items: baseline;
  margin: 20px 0;
  font-size: 0.95rem;
}
.cart-totals strong { font-size: 1.1rem; }

@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .orders-table, .cart-table { display: block; overflow-x: auto; }
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }

  /* Mobile nav: hidden by default, drops down as a panel when .nav-open
     is toggled by the hamburger button (see script.js). */
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px;
    box-shadow: var(--shadow-lg);
  }
  nav.nav-open { display: flex; }
  nav a { padding: 12px 14px; border-radius: 8px; }
  .nav-toggle { display: block; }

  .hero {
    padding: 110px 0 64px;
    min-height: 0;
  }
  .glow-1, .glow-2, .glow-3 { width: 240px; height: 240px; }

  .stats-grid { grid-template-columns: 1fr; gap: 32px; }

  .testing-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-highlight-grid { grid-template-columns: 1fr; }

  .protocol-table { display: block; overflow-x: auto; }
  .price-table-wrap { overflow-x: auto; }
  .price-table { min-width: 420px; }

  .product-hero-grid { grid-template-columns: 1fr; }
  .product-photo { width: 280px; margin: 0 auto; }
}

/* Scroll-reveal — classes are added entirely by script.js via IntersectionObserver.
   Nothing in markup carries `.reveal` by default, so if JS never runs (or errors),
   elements simply keep their normal opacity/position and nothing is ever stuck
   invisible. Uses `animation` rather than `transition` so it can't be silently
   dropped by another rule's `transition` shorthand winning the cascade on the
   same element (e.g. .compound-card, .wishlist-grid-item hover states). */
@keyframes revealIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.reveal-visible {
  animation: revealIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--reveal-delay, 0ms);
}
/* script.js strips the .reveal/.reveal-visible classes once the animation
   finishes (animationend). A held fill:forwards animation takes precedence
   over CSS Transitions on the same property for as long as it's active,
   which would otherwise permanently block later hover transitions like
   .compound-card:hover's `transform`. By the time it's removed the element
   is already sitting at the animation's end state (opacity 1, no offset),
   so nothing visibly changes — it just hands `transform`/`opacity` back to
   the normal cascade. */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }

  /* The rule above disables the revealIn animation itself, but .reveal's base
     opacity:0/translateY would otherwise be left permanently applied with
     nothing to ever un-hide it. Force reduced-motion users straight to the
     fully-visible end state instead. */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}