/* ==========================================================================
   Peptropolis — Design System
   Tokens: Lab Navy / Clinical White / Slate Ink / Assay Lime / Signal Amber
   Type: IBM Plex Sans (content) + IBM Plex Mono (data)
   ========================================================================== */

:root {
  --navy: #0F1B2E;
  --navy-2: #16263D;
  --navy-3: #1E3049;
  --white: #F8F9FA;
  --paper: #FFFFFF;
  --ink: #3C4552;
  --ink-dim: #6B7684;
  --lime: #C8F31D;
  --lime-dim: #A8D30F;
  --amber: #FF8A3D;
  --hairline: #E2E5E9;
  --hairline-dark: rgba(248, 249, 250, 0.14);

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--lime); color: var(--navy); }

body.no-scroll { overflow: hidden; height: 100vh; }

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

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--navy); letter-spacing: -0.01em; }
.h1 { font-size: clamp(2.6rem, 5.2vw, 4.6rem); font-weight: 600; line-height: 1.03; letter-spacing: -0.02em; }
.h2 { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.015em; }
.h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); font-weight: 600; line-height: 1.2; }
.body-lg { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--ink-dim); font-weight: 300; }
.body { font-size: 1rem; line-height: 1.6; color: var(--ink-dim); }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--lime);
  border: 1px solid var(--navy);
  flex-shrink: 0;
}
.eyebrow--on-dark { color: rgba(248,249,250,0.65); }
.eyebrow--on-dark::before { border-color: var(--lime); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy .body, .section--navy .body-lg { color: rgba(248,249,250,0.68); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.divider {
  height: 46px;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.divider svg { width: 100%; height: 100%; display: block; }
.divider path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}
.divider.is-drawn path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s var(--ease-out); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--lime); color: var(--navy); }
.btn-accent { background: var(--lime); color: var(--navy); }
.btn-accent:hover { background: var(--navy); color: var(--lime); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost--on-dark { color: var(--white); border-color: var(--hairline-dark); }
.btn-ghost--on-dark:hover { border-color: var(--lime); color: var(--lime); }
.btn[disabled] { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ==========================================================================
   RUO Gate
   ========================================================================== */
#ruo-gate {
  position: fixed; inset: 0; z-index: 999;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
#ruo-gate[hidden] { display: none; }
.gate-canvas { position: absolute; inset: 0; opacity: 0.55; }
.gate-card {
  position: relative;
  z-index: 2;
  width: 100%; max-width: 620px;
  background: var(--navy-2);
  border: 1px solid var(--hairline-dark);
  padding: clamp(1.75rem, 4vw, 3rem);
  opacity: 0;
  transform: translateY(18px);
}
.gate-card.is-in { animation: gateIn 0.7s var(--ease-out) forwards 0.15s; }
@keyframes gateIn { to { opacity: 1; transform: translateY(0); } }
.gate-mark { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.6rem; }
.gate-mark .dot { width: 9px; height: 9px; background: var(--lime); }
.gate-mark span { font-family: var(--font-mono); color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; }
.gate-card h2 { color: var(--white); font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.gate-card p { color: rgba(248,249,250,0.68); font-size: 0.95rem; line-height: 1.65; margin-bottom: 1.5rem; }
.gate-list { margin: 0 0 1.75rem; padding-left: 1.1rem; color: rgba(248,249,250,0.68); font-size: 0.88rem; line-height: 1.7; }
.gate-list li::marker { color: var(--lime); }

.gate-check {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1rem;
  background: rgba(248,249,250,0.04);
  border: 1px solid var(--hairline-dark);
  margin-bottom: 1.5rem;
  cursor: pointer;
}
.gate-check input {
  appearance: none; -webkit-appearance: none;
  width: 19px; height: 19px; min-width: 19px;
  border: 1.5px solid rgba(248,249,250,0.4);
  background: transparent;
  margin-top: 0.15rem;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.gate-check input:checked { background: var(--lime); border-color: var(--lime); }
.gate-check input:checked::after {
  content: '';
  position: absolute; left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.gate-check label { font-size: 0.85rem; line-height: 1.55; color: rgba(248,249,250,0.85); cursor: pointer; }
.gate-check label strong { color: var(--white); }

.gate-actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.gate-leave { font-family: var(--font-mono); font-size: 0.78rem; color: rgba(248,249,250,0.45); text-decoration: underline; text-underline-offset: 3px; }
.gate-leave:hover { color: var(--white); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.1rem 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(248,249,250,0.88);
  backdrop-filter: blur(10px);
  border-color: var(--hairline);
  padding: 0.7rem 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

/* Header always loads over a dark hero, so it defaults to light-on-dark;
   it flips to dark-on-light once .is-scrolled gives it an opaque light bg. */
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 1.15rem; color: var(--white); letter-spacing: -0.01em; transition: color 0.4s var(--ease); }
.logo .mark-icon { width: 24px; height: 24px; flex-shrink: 0; }
.logo small { display: block; font-family: var(--font-mono); font-size: 0.6rem; font-weight: 400; letter-spacing: 0.1em; color: rgba(248,249,250,0.5); text-transform: uppercase; transition: color 0.4s var(--ease); }
.site-header.is-scrolled .logo { color: var(--navy); }
.site-header.is-scrolled .logo small { color: var(--ink-dim); }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: rgba(248,249,250,0.82); position: relative; padding: 0.2rem 0; transition: color 0.4s var(--ease); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--lime); transition: width 0.3s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.site-header.is-scrolled .nav-links a { color: var(--ink); }
.site-header.is-scrolled .nav-links a::after { background: var(--navy); }

.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-cta .btn-ghost { color: var(--white); border-color: var(--hairline-dark); transition: color 0.3s, border-color 0.3s, background 0.3s; }
.nav-cta .btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.site-header.is-scrolled .nav-cta .btn-ghost { color: var(--navy); border-color: var(--hairline); }
.site-header.is-scrolled .nav-cta .btn-ghost:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 64px 0 0 0; background: var(--white); flex-direction: column; justify-content: center; gap: 2rem; transform: translateX(100%); transition: transform 0.4s var(--ease); }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a, .site-header.is-scrolled .nav-links a { font-size: 1.4rem; color: var(--navy); }
  .nav-links a::after, .site-header.is-scrolled .nav-links a::after { background: var(--navy); }
  .nav-toggle { display: block; width: 30px; height: 22px; position: relative; background: none; border: none; z-index: 20; }
  .nav-toggle span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--white); transition: background 0.3s, transform 0.3s, opacity 0.3s; }
  .site-header.is-scrolled .nav-toggle span { background: var(--navy); }
  .nav-toggle.is-open span { background: var(--navy); }
  .nav-toggle span:nth-child(1) { top: 0; }
  .nav-toggle span:nth-child(2) { top: 10px; }
  .nav-toggle span:nth-child(3) { top: 20px; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
  .nav-cta .btn-ghost { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  background: var(--navy);
  overflow: hidden;
  padding-top: 80px;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-canvas canvas { width: 100% !important; height: 100% !important; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, transparent 0%, rgba(15,27,46,0.55) 65%, var(--navy) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 6rem 0 4rem; }
.hero .eyebrow { margin-bottom: 1.6rem; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-sub { max-width: 46ch; margin: 1.6rem 0 2.4rem; color: rgba(248,249,250,0.68); font-weight: 300; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trace { position: absolute; bottom: 0; left: 0; width: 100%; height: 34%; z-index: 1; opacity: 0.9; pointer-events: none; }
.hero-trace svg { width: 100%; height: 100%; }
.hero-trace path { fill: none; stroke: var(--lime); stroke-width: 1.5; opacity: 0.85; }
.hero-trace .trace-fill { stroke: none; fill: url(#traceGradient); opacity: 0.5; }
.hero-scroll-cue {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: rgba(248,249,250,0.5);
}
.hero-scroll-cue .line { width: 1px; height: 30px; background: linear-gradient(var(--lime), transparent); animation: cueDrop 1.8s ease-in-out infinite; }
@keyframes cueDrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee band ---------- */
.marquee-band { background: var(--lime); color: var(--navy); overflow: hidden; padding: 0.85rem 0; position: relative; z-index: 2; }
.marquee-track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: 0.85rem; letter-spacing: 0.05em; font-weight: 500; padding: 0 1.6rem; white-space: nowrap; display: flex; align-items: center; gap: 1.6rem; }
.marquee-track span::after { content: '\2726'; font-size: 0.7rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Spec strip (Purity / QA)
   ========================================================================== */
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hairline); }
.spec-item { padding: 1.75rem; border-right: 1px solid var(--hairline); }
.spec-item:last-child { border-right: none; }
.spec-item .eyebrow { margin-bottom: 0.75rem; }
.spec-value { font-family: var(--font-mono); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 500; color: var(--navy); }
.spec-note { font-size: 0.82rem; color: var(--ink-dim); margin-top: 0.4rem; }
@media (max-width: 760px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-item:nth-child(2) { border-right: none; }
}

/* ==========================================================================
   Section headers
   ========================================================================== */
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; max-width: none; }
@media (max-width: 760px) { .section-head--split { flex-direction: column; align-items: flex-start; } }

/* reveal-on-scroll (used by GSAP) */
.reveal { opacity: 0; transform: translateY(28px); }
.reveal-mask { position: relative; overflow: hidden; }
.reveal-mask > * { display: block; transform: translateY(105%); }
.clip-reveal { clip-path: inset(0 0 0% 0); }

/* ==========================================================================
   Pricing / Affordability comparison
   ========================================================================== */
.price-panel {
  border: 1px solid var(--hairline);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--paper);
}
.price-rows { display: flex; flex-direction: column; gap: 1.1rem; }
.price-row { display: grid; grid-template-columns: 140px 1fr 60px; align-items: center; gap: 1rem; }
.price-row .label { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-dim); }
.price-row .bar-track { height: 10px; background: var(--white); border: 1px solid var(--hairline); position: relative; }
.price-row .bar-fill { position: absolute; inset: 0; width: 0; background: var(--ink-dim); transform-origin: left; }
.price-row.is-us .label { color: var(--navy); font-weight: 600; }
.price-row.is-us .bar-fill { background: var(--lime); }
.price-row .pct { font-family: var(--font-mono); font-size: 0.85rem; text-align: right; color: var(--navy); }
.price-foot { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--hairline); display: flex; gap: 2rem; flex-wrap: wrap; }
.price-foot-item { display: flex; align-items: baseline; gap: 0.5rem; }
.price-foot-item .num { font-family: var(--font-mono); color: var(--navy); font-weight: 600; }

.no-list { display: flex; flex-direction: column; gap: 1.1rem; }
.no-list li { display: flex; align-items: baseline; gap: 0.9rem; font-size: 1.02rem; color: var(--navy); font-weight: 500; }
.no-list li span.tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--lime-dim); background: var(--navy); padding: 0.15rem 0.45rem; }

/* ==========================================================================
   Product cards
   ========================================================================== */
.pcard {
  position: relative;
  border: 1px solid var(--hairline);
  background: var(--paper);
  padding: 1.5rem;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.pcard::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(200,243,29,0.14), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.pcard:hover::before { opacity: 1; }
.pcard:hover { border-color: var(--navy); transform: translateY(-4px); box-shadow: 0 18px 34px -22px rgba(15,27,46,0.35); }
.pcard-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; z-index: 1; margin-bottom: 1.1rem; }
.pcard-cat { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim); }
.pcard-vial { position: relative; z-index: 1; height: 130px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.pcard-name { font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; position: relative; z-index: 1; }
.pcard-seq { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-dim); margin-bottom: 1.1rem; position: relative; z-index: 1; word-break: break-all; }
.pcard-meta { display: flex; justify-content: space-between; border-top: 1px solid var(--hairline); padding-top: 0.9rem; margin-bottom: 1.1rem; position: relative; z-index: 1; }
.pcard-meta div span { display: block; }
.pcard-meta .k { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.2rem; }
.pcard-meta .v { font-family: var(--font-mono); font-size: 0.88rem; color: var(--navy); font-weight: 500; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.pcard-price { font-family: var(--font-mono); font-size: 1.3rem; color: var(--navy); font-weight: 600; }
.pcard-price small { font-size: 0.7rem; color: var(--ink-dim); font-weight: 400; }
.pcard-actions { display: flex; gap: 0.5rem; }
.pcard-actions button { padding: 0.6rem 0.9rem; font-size: 0.7rem; }

/* vial illustration */
.vial { width: 46px; height: 110px; }
.vial .liquid { transition: transform 0.6s var(--ease-out); transform-origin: bottom; }
.pcard:hover .vial .liquid { transform: scaleY(1.04); }
.vial .cap { fill: var(--navy); }
.vial .glass { fill: rgba(15,27,46,0.04); stroke: var(--hairline); stroke-width: 1; }

/* ==========================================================================
   Research applications — pinned horizontal
   ========================================================================== */
.pin-section { background: var(--navy); overflow: hidden; }
.pin-viewport { height: 100vh; display: flex; align-items: center; position: relative; }
.pin-head { position: absolute; top: 3.5rem; left: 0; right: 0; z-index: 2; }
.pin-track { display: flex; gap: 1.5rem; padding: 0 var(--gutter); will-change: transform; }
.pin-card {
  flex: 0 0 clamp(280px, 32vw, 420px);
  height: clamp(340px, 46vw, 480px);
  border: 1px solid var(--hairline-dark);
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(160deg, var(--navy-2), var(--navy-3));
  position: relative;
  overflow: hidden;
}
.pin-card .cat-num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--lime); }
.pin-card h3 { color: var(--white); font-size: clamp(1.4rem, 2vw, 1.9rem); margin: 1.5rem 0 0.85rem; }
.pin-card p { color: rgba(248,249,250,0.62); font-size: 0.92rem; line-height: 1.6; }
.pin-card .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.pin-card .tags span { font-family: var(--font-mono); font-size: 0.68rem; border: 1px solid var(--hairline-dark); color: rgba(248,249,250,0.7); padding: 0.3rem 0.6rem; }
.pin-card-bg { position: absolute; right: -20px; bottom: -20px; opacity: 0.5; }

/* ==========================================================================
   Lab testing / COA
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-bottom: 3rem; }
.step { background: var(--paper); padding: 1.75rem 1.5rem; }
.step .num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--lime-dim); background: var(--navy); display: inline-block; padding: 0.15rem 0.5rem; margin-bottom: 1rem; }
.step h4 { font-size: 1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.85rem; color: var(--ink-dim); line-height: 1.5; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }

.coa-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--hairline); }
.coa-lookup { padding: clamp(1.5rem, 3vw, 2.5rem); border-right: 1px solid var(--hairline); }
.coa-lookup form { display: flex; gap: 0.75rem; margin: 1.5rem 0; }
.coa-lookup input { flex: 1; border: 1px solid var(--hairline); background: var(--white); padding: 0.9rem 1rem; font-family: var(--font-mono); font-size: 0.9rem; color: var(--navy); }
.coa-lookup input:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.coa-result { margin-top: 1.25rem; font-family: var(--font-mono); font-size: 0.85rem; padding: 1rem; border: 1px dashed var(--hairline); display: none; }
.coa-result.is-shown { display: block; }
.coa-result .ok { color: var(--lime-dim); font-weight: 600; }
.coa-result .err { color: var(--amber); font-weight: 600; }
.coa-sample-list { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.coa-sample-list button { font-family: var(--font-mono); font-size: 0.72rem; border: 1px solid var(--hairline); background: none; padding: 0.35rem 0.65rem; color: var(--ink-dim); }
.coa-sample-list button:hover { border-color: var(--navy); color: var(--navy); }

.coa-chart { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--white); }
.coa-chart svg { width: 100%; height: auto; }
.coa-chart .grid-line { stroke: var(--hairline); stroke-width: 1; }
.coa-chart .peak { fill: none; stroke: var(--navy); stroke-width: 1.5; }
.coa-chart .peak-fill { fill: url(#peakGradient); opacity: 0.35; }
.coa-chart .axis-label { font-family: var(--font-mono); font-size: 9px; fill: var(--ink-dim); }
.coa-chart .annot { font-family: var(--font-mono); font-size: 10px; fill: var(--navy); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; background: none; border: none; text-align: left; }
.faq-q .qtag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-dim); margin-right: 1rem; }
.faq-q span.txt { font-size: 1.05rem; font-weight: 500; color: var(--navy); flex: 1; }
.faq-q .plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-q .plus::before, .faq-q .plus::after { content: ''; position: absolute; background: var(--navy); transition: transform 0.3s var(--ease); }
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq-item.is-open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { padding-bottom: 1.4rem; color: var(--ink-dim); font-size: 0.95rem; line-height: 1.6; max-width: 62ch; }

/* ==========================================================================
   Footer / disclaimer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(248,249,250,0.7); padding: 4rem 0 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--hairline-dark); }
.footer-brand .logo { color: var(--white); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; max-width: 34ch; color: rgba(248,249,250,0.55); }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(248,249,250,0.4); margin-bottom: 1.1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.9rem; color: rgba(248,249,250,0.7); }
.footer-col a:hover { color: var(--lime); }
.footer-disclaimer { padding: 2rem 0; border-bottom: 1px solid var(--hairline-dark); }
.footer-disclaimer .eyebrow { margin-bottom: 0.9rem; }
.footer-disclaimer p { font-size: 0.8rem; line-height: 1.7; color: rgba(248,249,250,0.5); max-width: 90ch; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(248,249,250,0.4); }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page hero (products / contact)
   ========================================================================== */
.page-hero { background: var(--navy); padding: clamp(8rem, 16vw, 11rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero .body-lg { max-width: 56ch; margin-top: 1.25rem; color: rgba(248,249,250,0.65); }

/* filter pills */
.filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 2.5rem; }
.filter-pill { font-family: var(--font-mono); font-size: 0.78rem; padding: 0.55rem 1.1rem; border: 1px solid var(--hairline); background: var(--paper); color: var(--ink-dim); transition: all 0.25s; }
.filter-pill.is-active, .filter-pill:hover { border-color: var(--navy); color: var(--navy); background: var(--white); }
.filter-pill.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* toast */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(120%); z-index: 500; background: var(--navy); color: var(--white); padding: 0.9rem 1.4rem; font-family: var(--font-mono); font-size: 0.82rem; border: 1px solid var(--lime); display: flex; align-items: center; gap: 0.7rem; transition: transform 0.4s var(--ease-out); }
.toast.is-shown { transform: translateX(-50%) translateY(0); }
.toast .dot { width: 7px; height: 7px; background: var(--lime); }

/* COA modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(15,27,46,0.7); backdrop-filter: blur(4px); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-box { background: var(--paper); width: 100%; max-width: 640px; max-height: 88vh; overflow-y: auto; padding: clamp(1.5rem, 4vw, 2.5rem); position: relative; transform: translateY(20px); transition: transform 0.35s var(--ease-out); }
.modal-overlay.is-open .modal-box { transform: translateY(0); }
.modal-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 34px; height: 34px; border: 1px solid var(--hairline); background: none; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--navy); }
.modal-close:hover { border-color: var(--navy); }

/* contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.form-field { margin-bottom: 1.4rem; }
.form-field label { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-dim); margin-bottom: 0.55rem; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--hairline); background: var(--paper); padding: 0.85rem 1rem; font-size: 0.95rem; color: var(--navy); resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.contact-info-item { display: flex; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--hairline); }
.contact-info-item .k { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-dim); width: 100px; flex-shrink: 0; padding-top: 0.15rem; }
.contact-info-item .v { font-size: 0.98rem; color: var(--navy); font-weight: 500; }
.contact-info-item .v small { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-dim); margin-top: 0.2rem; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--navy); outline-offset: 2px;
}

/* ==========================================================================
   WordPress admin bar offset (logged-in editors only)
   ========================================================================== */
.admin-bar .site-header { top: 32px; }
#ruo-gate { top: 0; } /* gate stays true fullscreen even for editors */
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
