:root {
  --bg: #f5f7f9;
  --surface: #ffffff;
  --ink: #11171b;
  --muted: #5a6670;
  --line: #e2e6eb;
  --accent: #1f5d8c;
  --accent-ink: #ffffff;
  --accent-soft: #e2edf7;
  --warn: #8a4b0f;
  --warn-soft: #fbf0e2;
  --radius: 14px;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1215; --surface: #171b20; --ink: #eceae4; --muted: #9aa2ad;
    --line: #2a3038; --accent: #8cc8f0; --accent-ink: #0f1215; --accent-soft: #172330;
    --warn: #f0b36b; --warn-soft: #2a2117;
  }
}
:root[data-theme="dark"], .dark-band {
  --bg: #0f1215; --surface: #171b20; --ink: #eceae4; --muted: #9aa2ad;
  --line: #2a3038; --accent: #8cc8f0; --accent-ink: #0f1215; --accent-soft: #172330;
  --warn: #f0b36b; --warn-soft: #2a2117;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--sans); }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 650; }
h3 { font-size: 1.1rem; font-weight: 600; }
section { padding: 64px 0; }
.eyebrow { font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 8px 14px; font-size: .85rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* compliance strip + header */
.ruo-strip { background: var(--ink); color: var(--bg); font: 500 .78rem/1.3 var(--mono); text-align: center; padding: 8px 16px; }
header.site { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, #0c1013 96%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
header.site .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark { flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-weight: 500; font-size: 1.3rem; letter-spacing: .3em; margin-right: -.3em; }
.wordmark small { font-weight: 500; font-size: .56rem; letter-spacing: .6em; margin-top: 5px; color: var(--accent); }
nav.main { display: flex; gap: 22px; margin-left: auto; }
nav.main a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
nav.main a[aria-current="page"], nav.main a:hover { color: var(--ink); }
.cart-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer; }
.menu-btn { display: none; }
@media (max-width: 760px) {
  nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--line); gap: 14px; }
  nav.main.open { display: flex; }
  .menu-btn { display: inline-block; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--ink); }
  .cart-btn { margin-left: 0; }
}

/* hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 36ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.pass { color: var(--accent); font-weight: 600; }
.hero-visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-3d { position: absolute; inset: -4% -6%; display: grid; place-items: center; }
.hero-3d img { width: 92%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.hero-3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.hero-3d.live img { visibility: hidden; }
.hero-3d.live canvas { opacity: 1; }
/* concentric rings + glowing specks behind the vials */
.orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(124,196,255,.10);
  background: radial-gradient(circle, rgba(124,196,255,.12) 0%, rgba(124,196,255,.04) 45%, transparent 68%); }
.orbit::before { content: ""; position: absolute; inset: 11%; border-radius: 50%; border: 1px solid rgba(124,196,255,.16); }
.orbit i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px 3px rgba(124,196,255,.55); opacity: .8; }
.orbit i:nth-child(1) { top: 9%; left: 72%; } .orbit i:nth-child(2) { top: 24%; left: 12%; width: 9px; height: 9px; }
.orbit i:nth-child(3) { top: 48%; left: 95%; width: 4px; height: 4px; } .orbit i:nth-child(4) { top: 78%; left: 88%; width: 10px; height: 10px; }
.orbit i:nth-child(5) { top: 62%; left: 4%; width: 4px; height: 4px; } .orbit i:nth-child(6) { top: 94%; left: 30%; width: 4px; height: 4px; }
.orbit i:nth-child(7) { top: 18%; left: 44%; width: 3px; height: 3px; opacity: .5; }
.float-badge { position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .85rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.float-badge b { color: var(--ink); font-weight: 650; }
.float-badge svg { color: var(--accent); }
a.float-badge:hover { border-color: var(--accent); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; } }

/* "why us" tiles: softly tinted panels, one wide tile carrying a sample certificate */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 28px; }
.tile { border-radius: 20px; padding: 26px; display: flex; flex-direction: column; gap: 10px; grid-column: span 3; }
.tile h3 { font-size: 1.25rem; font-weight: 700; margin: 6px 0 0; letter-spacing: -.015em; }
.tile p { margin: 0; font-size: .95rem; }
.tile-wide { grid-column: span 4; flex-direction: row; gap: 28px; align-items: center; }
.tile-wide + .tile { grid-column: span 2; }
.tile-copy { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-ice { background: #e3eef7; } .tile-slate { background: #e8edf2; } .tile-sand { background: #f3efe6; } .tile-mist { background: #eceff0; }
.tile-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tile-link { margin-top: auto; padding-top: 6px; font-weight: 650; font-size: .92rem; color: var(--accent); text-decoration: none; }
.tile-link:hover { text-decoration: underline; }
.test-chips { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.test-chips li { background: #fff; border-radius: 999px; padding: 5px 11px; font: 500 .76rem var(--mono); color: var(--ink); }
.mini-coa { flex: 0 0 260px; background: #fff; border-radius: 14px; padding: 16px 18px; box-shadow: 0 18px 36px -22px rgba(14,28,44,.35); transform: rotate(1.5deg); font-size: .82rem; }
.mini-coa-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mini-coa .row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.mini-coa .row:last-child { border-bottom: 0; }
.mini-coa .row span:last-child { color: var(--ink); }
@media (max-width: 900px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile-wide, .tile-wide + .tile { grid-column: auto; }
  .tile-wide { flex-direction: column; align-items: stretch; }
  .mini-coa { flex-basis: auto; transform: none; }
}

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); gap: 16px; }
/* product cards: studio shot on top, quiet details strip below, lift on hover */
.card { position: relative; display: flex; flex-direction: column; overflow: hidden; text-decoration: none; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, transform .25s, box-shadow .25s; }
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); transform: translateY(-4px);
  box-shadow: 0 22px 40px -24px rgba(14, 28, 44, .35); }
.card .vial { position: relative; aspect-ratio: 1; overflow: hidden; background: #e9edf1; }
/* availability: In stock / Backordered / Ships in ~7 days (from stock.js) */
.stock-pill { display: inline-flex; align-items: center; gap: 6px; font: 600 .7rem var(--sans); letter-spacing: .01em; white-space: nowrap;
  padding: 4px 10px 4px 9px; border-radius: 999px; background: rgba(255,255,255,.88); color: var(--muted); border: 1px solid var(--line); }
.stock-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock-pill.in { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.stock-pill.back { color: #9a5b12; }
.card .stock-pill { position: absolute; top: 10px; left: 10px; backdrop-filter: blur(6px); }
.avail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px; font-size: .88rem; }
.size.has-stock::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; vertical-align: 2px; border-radius: 50%; background: var(--accent); }
.size.has-stock[aria-pressed="true"]::after { background: currentColor; }
.cart-note { font-size: .78rem; color: #9a5b12; }
.card .vial img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .vial img { transform: scale(1.05); }
.card .vial img, .pdp .vial-lg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 16px 18px 18px; border-top: 1px solid var(--line); }
.card .tag { font: 600 .7rem var(--mono); text-transform: uppercase; color: var(--accent); letter-spacing: .12em; }
.card .name { font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; }
.card .meta { font: .78rem var(--mono); color: var(--muted); }
.card .price { margin-top: auto; padding-top: 10px; font-weight: 650; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; }
.card .go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); font-size: .95rem; transition: background .25s, color .25s, border-color .25s; }
.card:hover .go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
/* phones: two compact cards per row so you can scan the catalog while scrolling */
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 14px; }
  .card-body { gap: 3px; padding: 11px 12px 13px; }
  .card .tag { font-size: .6rem; letter-spacing: .08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card .name { font-size: .95rem; line-height: 1.25; }
  .card .meta { font-size: .68rem; }
  .card .price { font-size: .9rem; padding-top: 6px; }
  .card .go { width: 26px; height: 26px; font-size: .8rem; }
  .card .stock-pill { top: 7px; left: 7px; font-size: .6rem; padding: 3px 7px 3px 6px; gap: 4px; }
}

/* shop toolbar */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.toolbar input, .toolbar select, .field { padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.toolbar input { flex: 1 1 240px; min-width: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 500 .85rem var(--sans); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 48px; padding-top: 40px; }
.pdp .vial-lg { aspect-ratio: 1; position: sticky; top: 90px; align-self: start; border-radius: var(--radius); overflow: hidden; background: #e9edf1; }
.spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec th, .spec td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { color: var(--muted); font-weight: 500; width: 40%; }
.spec td { font-family: var(--mono); word-break: break-all; }
.sizes { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.size { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 10px 16px; cursor: pointer; font: 600 .95rem var(--sans); }
.size[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.qty { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.qty input { width: 70px; text-align: center; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; gap: 24px; } .pdp .vial-lg { position: static; } }

/* notices */
.notice { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 12px 14px; font-size: .85rem; }
.sample-badge { display: inline-block; font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 3px 7px; }

/* coa */
.coa-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.coa-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.coa-table th, .coa-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.coa-table th { color: var(--muted); font-weight: 500; }
.table-scroll { overflow-x: auto; }

/* faq */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; }

/* cart drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); z-index: 41; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; }
.drawer.open { transform: none; } .drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer .items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer .item { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.drawer footer { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; text-decoration: underline; padding: 0; }

/* gate */
.gate { position: fixed; inset: 0; z-index: 60; background: rgba(10,12,15,.72); display: grid; place-items: center; padding: 16px; }
.gate .box { background: var(--surface); border-radius: var(--radius); max-width: 460px; width: 100%; padding: 28px; }
.gate label { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: .92rem; }
.gate input[type=checkbox] { margin-top: 4px; accent-color: var(--accent); }

/* footer */
footer.site { padding: 56px 0 32px; margin-top: 64px; font-size: .9rem; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer.site a { display: block; color: var(--muted); text-decoration: none; margin: 6px 0; }
footer.site a.logo { display: inline-flex; margin: 0 0 10px -8px; }
footer.site .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { footer.site .cols { grid-template-columns: 1fr; } }

/* Page backdrop — plain on the light theme; the dark grid + glow live in the hero band. */
.bg { position: fixed; inset: 0; z-index: -1; background: var(--bg); }
.dark-band { position: relative; isolation: isolate; color: var(--ink);
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(124, 196, 255, .12), transparent 70%),
    radial-gradient(45% 60% at 0% 100%, rgba(124, 196, 255, .08), transparent 70%),
    linear-gradient(180deg, #0c1013 0%, #0f1418 60%, #0b0f12 100%); }
.dark-band::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 80%); mask-image: radial-gradient(70% 70% at 70% 40%, #000 0%, transparent 80%); }

/* hero headline accent: ice-blue gradient with a slow light sweep and a soft glow */
.glow-word { background: linear-gradient(100deg, #3f7fb0 0%, #8cc8f0 30%, #eaf6ff 50%, #8cc8f0 70%, #3f7fb0 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(124,196,255,.45)) drop-shadow(0 0 2px rgba(124,196,255,.6));
  animation: glow-sweep 6s ease-in-out infinite; }
@keyframes glow-sweep { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0% 0; } }
@media (prefers-reduced-motion: reduce) { .glow-word { animation: none; background-position: 50% 0; } }
