/* ==========================================================================
   TNT Labs — base stylesheet
   Palette and type match the printed price menu (menu_work/build/build.mjs).
   ========================================================================== */

:root {
  /* menu palette */
  --bg: #241E19;          /* page */
  --panel: #2E2620;       /* cards, raised surfaces */
  --panel-2: #372E27;     /* hover / inputs */
  --line: #483D34;        /* rules */
  --line-soft: #3B322B;
  --text: #F4EFE9;        /* ink */
  --muted: #AEA298;       /* secondary text */
  --dim: #998C82;         /* tertiary text: still >= 4.5:1 on --panel */
  --fire: #E23A21;        /* primary accent */
  --fire-ink: #C42F18;
  --flame: #F2A13C;       /* secondary accent / headings */
  --steel: #4E8CBE;       /* info */
  --stage-hi: #3D332B;    /* soft "light table" behind the product renders */
  --stage-lo: #28211C;

  /* status */
  --ok: #5DBB63;
  --ok-soft: rgba(93, 187, 99, .14);
  --warn: var(--flame);
  --warn-soft: rgba(242, 161, 60, .14);
  --bad: #FF6B57;
  --bad-soft: rgba(226, 58, 33, .16);

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --max: 1200px;

  --display: "Anton", "Haettenschweiler", "Arial Narrow", Impact, sans-serif;
  --font: "Barlow Semi Condensed", "Arial Narrow", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.gate-open { overflow: hidden; }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .card:hover, .card:hover .card-media .vial-img { transform: none; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .95; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section-alt { background: var(--panel); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--flame); margin-bottom: 12px;
}
/* menu-style red diamond */
.eyebrow::before, .diamond::before {
  content: ""; width: 8px; height: 8px; background: var(--fire); transform: rotate(45deg); flex-shrink: 0;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px; border: 1px solid transparent;
  font: 700 .95rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--fire); color: #fff; }
.btn-primary:hover { background: var(--fire-ink); }
.btn-dark { background: var(--text); color: var(--bg); }
.btn-dark:hover { background: var(--flame); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--flame); color: var(--flame); }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: var(--flame); }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--panel-2); color: var(--dim); cursor: not-allowed; }

/* --- Announcement + header --------------------------------------------- */
.announce {
  background: var(--fire); color: #fff; font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 7px 16px;
}
@media (max-width: 560px) { .announce-long { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(36, 30, 25, .9); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 46px; height: auto; }
.logo-text { font: 400 1.5rem/1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.logo-text span { color: var(--fire); }
.nav-links { display: flex; gap: 2px; margin-left: 8px; }
.nav-links a {
  text-decoration: none; padding: 8px 14px; border-radius: 6px; font-weight: 600;
  font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--flame); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); background: transparent;
  cursor: pointer; color: var(--text); text-decoration: none;
}
.icon-btn:hover { border-color: var(--flame); color: var(--flame); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--fire); color: #fff;
  font: 700 .75rem/20px var(--font); text-align: center;
}
.cart-count[hidden] { display: none; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: var(--bg); padding: 12px 20px 20px;
    border-bottom: 1px solid var(--line); margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .menu-toggle { display: grid; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 2px solid var(--fire);
  background:
    radial-gradient(700px 500px at 78% 45%, rgba(226, 58, 33, .28), transparent 65%),
    radial-gradient(500px 400px at 85% 10%, rgba(242, 161, 60, .14), transparent 60%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image:
    linear-gradient(rgba(244,239,233,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,239,233,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 em { font-style: normal; color: var(--fire); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 540px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats div { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.hero-stats strong { display: block; font: 400 2rem/1.1 var(--display); letter-spacing: .02em; color: var(--text); }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(600px, 100%); height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 56px; }
  .hero-art { order: -1; margin: -16px 0 -24px; }
  .hero-art img { width: min(360px, 100%); }
  .hero-stats { gap: 24px; justify-content: space-between; }
  .hero-stats strong { font-size: 1.6rem; }
}

/* --- Trust strip -------------------------------------------------------- */
.trust { border-bottom: 1px solid var(--line); background: var(--panel); }
.trust .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; gap: 14px; align-items: center; padding: 24px 20px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item svg { width: 28px; height: 28px; color: var(--fire); flex-shrink: 0; }
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) {
  .trust .container { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* --- Product grid / cards ---------------------------------------------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--flame); transform: translateY(-2px); }
.card-media {
  position: relative; aspect-ratio: 1; text-decoration: none; overflow: hidden;
  background: radial-gradient(90% 75% at 50% 42%, var(--stage-hi), var(--stage-lo));
  display: grid; place-items: center; border-bottom: 1px solid var(--line-soft);
  padding: 34px 8px 6px; /* keeps the cap clear of the stock badge */
}
.card-media .vial-img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.card:hover .card-media .vial-img { transform: scale(1.04); }
.card-media .vial-art { height: 72%; width: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); }
.card.is-oos .card-media :is(.vial-img, .vial-art) { opacity: .45; filter: grayscale(1); }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
/* Category stays quiet (dot in its cap colour) so the product name leads. */
.card-cat { display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--dim); }
.card-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cat, var(--fire)); flex-shrink: 0; }
.card-title { font: 700 1.4rem/1.15 var(--font); margin: 0; text-decoration: none; }
.card-title span { white-space: nowrap; }
.card-title:hover { color: var(--flame); }
.card-sizes { font-size: .85rem; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-foot .btn { padding: 8px 12px; font-size: .78rem; }
.card-foot .btn-dark { background: transparent; border-color: var(--line); color: var(--text); }
.card-foot .btn-dark:hover { background: var(--fire); border-color: var(--fire); color: #fff; }
.price { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.price small { font-size: .7rem; font-weight: 500; color: var(--muted); margin-right: 4px; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 12px 12px 14px; }
  .card-title { font-size: 1.15rem; }
  .card-cat { font-size: .6rem; letter-spacing: .14em; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card-foot .btn { width: 100%; }
  .card-badges .badge { font-size: .64rem; padding: 2px 7px; }
}

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px;
  font: 600 .74rem/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  backdrop-filter: blur(4px);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-low { background: var(--warn-soft); color: var(--warn); }
.badge-oos { background: var(--bad-soft); color: var(--bad); }
.badge-new { background: var(--fire); color: #fff; }
.badge-new::before { display: none; }

/* --- Page head + shop --------------------------------------------------- */
.page-head { padding: 48px 0 32px; border-bottom: 2px solid var(--fire); background: var(--panel); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-head p { color: var(--muted); max-width: 640px; margin: 0; }
.crumbs { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--flame); }

.shop { display: grid; grid-template-columns: 240px 1fr; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
.filters { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 28px; }
.filters h4 { font: 400 1rem/1 var(--display); text-transform: uppercase; letter-spacing: .16em; color: var(--flame); margin-bottom: 12px; }
.filter-list { display: flex; flex-direction: column; gap: 2px; }
.filter-list button {
  display: flex; justify-content: space-between; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: var(--radius-sm); border: 0; background: none;
  font: 500 1rem var(--font); color: var(--muted); cursor: pointer;
}
.filter-list button:hover { background: var(--panel); color: var(--text); }
.filter-list button.active { background: var(--fire); color: #fff; }
.filter-list button span { font-variant-numeric: tabular-nums; font-size: .85rem; opacity: .75; }
.check { display: flex; align-items: center; gap: 10px; font-size: 1rem; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--fire); }

.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 6px; padding: 0 16px; background: var(--panel);
}
.search:focus-within { border-color: var(--flame); }
.search svg { width: 18px; height: 18px; color: var(--muted); }
.search input[type="text"] { border: 0; outline: 0; flex: 1; padding: 12px 0; font: inherit; background: none; color: var(--text); }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  font: inherit; color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 14px; background: var(--panel-2); width: 100%;
}
::placeholder { color: var(--dim); }
select:focus, input:focus, textarea:focus { outline: 2px solid var(--flame); outline-offset: -1px; border-color: transparent; }
.toolbar select { width: auto; border-radius: 6px; padding-right: 36px; background-color: var(--panel); }
.result-count { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h3 { color: var(--text); }

@media (max-width: 860px) {
  /* Search first, then one swipeable row of category chips, then results. */
  .shop { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 20px; }
  .filters { min-width: 0; }
  .shop > section { display: contents; }
  .toolbar { order: 1; margin-bottom: 12px; }
  .filters { order: 2; position: static; gap: 12px; margin-bottom: 16px; }
  .result-count { order: 3; }
  .shop .grid { order: 4; }
  .filters h4 { display: none; }
  .filter-list {
    flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none;
    margin: 0 -20px; padding: 0 20px; scroll-padding: 0 20px;
  }
  .filter-list::-webkit-scrollbar { display: none; }
  .filter-list button { width: auto; flex-shrink: 0; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; gap: 8px; }
  .toolbar .search { min-width: 0; flex-basis: 100%; }
  .toolbar select { flex: 1; }
}

/* --- Product detail ----------------------------------------------------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 40px 0 80px; }
.pdp-media {
  border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 40%, var(--stage-hi), var(--stage-lo));
  display: grid; place-items: center; position: sticky; top: 96px; align-self: start;
}
.pdp-media .vial-img { width: 88%; height: 88%; object-fit: contain; }
.pdp-media .vial-art { height: 72%; width: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.pdp h1 { font-size: clamp(2.6rem, 5vw, 3.8rem); margin-bottom: 10px; }
.pdp .summary { color: var(--muted); font-size: 1.1rem; }
.pdp-price { font-weight: 700; font-size: 2.2rem; font-variant-numeric: tabular-nums; margin: 20px 0 8px; }
.variant-label { font-weight: 600; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--flame); margin: 24px 0 10px; }
.variants { display: flex; gap: 10px; flex-wrap: wrap; }
.variant {
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--panel);
  padding: 10px 16px; cursor: pointer; font: 700 1rem var(--font); color: var(--text);
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
}
.variant small { font: 500 .8rem var(--font); color: var(--muted); }
.variant:hover { border-color: var(--flame); }
.variant.active { border-color: var(--fire); background: var(--fire); color: #fff; }
.variant.active small { color: #FFD9CF; }
.variant.oos { color: var(--dim); text-decoration: line-through; }
.buy-row { display: flex; gap: 12px; margin-top: 28px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--panel); }
.qty button { width: 42px; height: 46px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--text); }
.qty button:hover { background: var(--panel-2); }
.qty input { width: 44px; text-align: center; border: 0; padding: 0; background: none; font: 700 1rem var(--font); -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty input:focus { outline: none; }
.buy-row .btn { flex: 1; }
.notify { margin-top: 14px; display: flex; gap: 8px; }
.spec { margin-top: 36px; border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; font-family: var(--mono); font-size: .84rem; word-break: break-word; }
.ruo-note {
  margin-top: 24px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--panel); border-left: 3px solid var(--fire); color: var(--muted); font-size: .92rem; display: flex; gap: 10px;
}
.ruo-note strong { color: var(--text); }
.ruo-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--fire); }
.text-link { font-weight: 600; color: var(--flame); text-decoration: none; }
.text-link:hover { color: var(--fire); }
@media (max-width: 860px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp-media { position: static; }
}

/* --- Feature tiles / research ------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg);
  text-decoration: none; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, box-shadow .2s;
}
.section:not(.section-alt) .tile, .prose .tile { background: var(--panel); }
a.tile:hover { border-color: var(--flame); box-shadow: var(--shadow); }
.tile h3 { font: 400 1.35rem/1.1 var(--display); letter-spacing: .03em; text-transform: uppercase; }
.tile-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bad-soft); color: var(--fire); display: grid; place-items: center; }
.tile-icon svg { width: 22px; height: 22px; }
.tile p { color: var(--muted); margin: 0; font-size: .98rem; }
.tile .more { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--flame); }

/* Category tiles: a vial from the category, edged in its cap colour. */
.cat-tile { position: relative; overflow: hidden; padding-right: 116px; border-left: 3px solid var(--cat, var(--fire)); }
.cat-tile .cat-vial { position: absolute; right: 4px; bottom: -6px; width: 118px; height: 118px; display: grid; place-items: center; transition: transform .3s ease; }
.cat-tile .cat-vial .vial-img { width: 100%; height: 100%; object-fit: contain; }
.cat-tile .cat-vial .vial-art { height: 80%; width: auto; }
a.cat-tile:hover { border-left-color: var(--cat, var(--fire)); }
a.cat-tile:hover .cat-vial { transform: translateY(-4px) rotate(-3deg); }
.cat-tile p { font-size: .92rem; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding-top: 20px; border-top: 2px solid var(--fire); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font: 400 1.8rem/1 var(--display); color: var(--flame); margin-bottom: 10px; }
.step p { color: var(--muted); font-size: .98rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }

.research-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; padding-top: 48px; padding-bottom: 80px; }
.toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc a { text-decoration: none; padding: 7px 12px; border-left: 2px solid var(--line); color: var(--muted); font-size: .98rem; }
.toc a:hover, .toc a.active { color: var(--text); border-left-color: var(--fire); }
.prose { max-width: 780px; }
.prose section { padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: 96px; }
.prose section:last-child { border-bottom: 0; }
.prose p, .prose li { color: #CFC6BD; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--fire); }
@media (max-width: 860px) {
  .research-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; }
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
th { background: var(--panel); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--flame); }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; text-decoration: none; }
td a:hover { color: var(--flame); }

/* Dose calculator (js/dose-calc.js) */
.calc { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--panel); margin: 20px 0; }
.calc-field + .calc-field { margin-top: 18px; }
.calc-label { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.calc-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.calc-pair { display: flex; align-items: center; gap: 8px; }
.calc-eq { color: var(--dim); font-weight: 700; }
.calc-input { position: relative; width: 140px; flex-shrink: 0; }
.calc-input input { padding-right: 50px; font-weight: 700; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.calc-input input::-webkit-inner-spin-button, .calc-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .92rem; pointer-events: none; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.presets button {
  border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text);
  padding: 6px 12px; font: 600 .92rem var(--font); font-variant-numeric: tabular-nums; cursor: pointer;
}
.presets button:hover { border-color: var(--flame); }
.presets button[aria-pressed="true"] { background: var(--fire); border-color: var(--fire); color: #fff; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); }
.seg label { position: relative; cursor: pointer; }
.seg label + label { border-left: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg span { display: flex; flex-direction: column; align-items: center; padding: 8px 20px; font-weight: 700; line-height: 1.25; }
.seg small { font-weight: 500; font-size: .8rem; color: var(--muted); }
.seg label:hover span { color: var(--flame); }
.seg input:checked + span { background: var(--fire); color: #fff; }
.seg input:checked + span small { color: #FFD9CF; }
.seg input:focus-visible + span { outline: 2px solid var(--flame); outline-offset: -3px; }

.calc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.calc-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line-soft); }
.calc-stats .key { border-left: 3px solid var(--fire); }
.calc-stats span { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.calc-stats strong { font: 700 2rem/1.1 var(--font); font-variant-numeric: tabular-nums; color: var(--flame); }
.calc-stats small { font-size: .85rem; color: var(--muted); }

.syringe { margin: 10px 0 0; padding: 16px 16px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line-soft); }
.syringe svg { width: 100%; overflow: visible; }
.syringe figcaption { margin-top: 6px; text-align: center; font-weight: 600; }
.syr-glass { fill: rgba(244, 239, 233, .06); }
.syr-outline { fill: none; stroke: #8F8378; stroke-width: 1.5; }
.syr-fill { fill: var(--fire); opacity: .7; }
.syr-stopper { fill: #120E0B; stroke: #000; }
.syr-rib { stroke: #342B24; stroke-width: 1.5; }
.syr-plastic { fill: #5C5047; }
.syr-needle { stroke: #CFC6BD; stroke-width: 2; stroke-linecap: round; }
.syr-tick { stroke: #B3A79D; stroke-width: 1; }
.syr-num { fill: var(--muted); font: 11px var(--mono); text-anchor: middle; }
.syr-line { stroke: var(--flame); stroke-width: 2; }
.syr-pointer { fill: var(--flame); }
.syr-label { fill: var(--flame); font: 700 14px var(--font); text-anchor: middle; }
.syringe.over .syr-fill { fill: var(--bad); }
.syringe.over .syr-line, .syringe.over .syr-pointer { stroke: var(--bad); fill: var(--bad); }
.syringe.over .syr-label { fill: var(--bad); }
.syringe.empty .syr-line, .syringe.empty .syr-pointer, .syringe.empty .syr-label { display: none; }
.calc .calc-msg { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--radius-sm); border-left: 3px solid; font-size: .95rem; }
.calc .calc-msg.bad { background: var(--bad-soft); border-color: var(--bad); color: #FFD9CF; }
.calc .calc-msg.warn { background: var(--warn-soft); border-color: var(--warn); color: var(--text); }
.calc .calc-msg.tip { padding: 0 2px; border: 0; color: var(--muted); text-align: center; }
.calc .calc-foot { margin: 16px 0 0; font-size: .85rem; color: var(--dim); }
@media (max-width: 560px) {
  .calc { padding: 18px 14px; }
  .calc-entry > .calc-input, .calc-pair { width: 100%; }
  .calc-pair .calc-input { flex: 1; width: auto; }
  .seg { display: flex; }
  .seg label { flex: 1; }
  .seg span { padding: 8px 6px; }
  .calc-stats { gap: 6px; }
  .calc-stats > div { padding: 10px; }
  .calc-stats span { font-size: .66rem; letter-spacing: .08em; }
  .calc-stats strong { font-size: 1.5rem; }
  .calc-stats small { font-size: .78rem; }
  .syringe { padding: 12px 8px 10px; }
}

details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--display); color: var(--fire); }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* --- Cart --------------------------------------------------------------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 40px 0 80px; align-items: start; }
.cart-items { border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 80px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); background: radial-gradient(circle at 50% 42%, var(--stage-hi), var(--stage-lo)); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.cart-thumb .vial-img { width: 100%; height: 100%; object-fit: contain; }
.cart-thumb .vial-art { height: 72%; width: auto; }
.cart-item h3 { font: 400 1.3rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 2px; }
.cart-item h3 a { text-decoration: none; }
.cart-item .meta { font-size: .9rem; color: var(--muted); }
.cart-item .controls { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cart-item .qty button { width: 34px; height: 34px; font-size: 1rem; }
.cart-item .qty input { width: 34px; font-size: .95rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: 500 .9rem var(--font); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--bad); }
.cart-item .line-total { font-weight: 700; font-size: 1.15rem; font-variant-numeric: tabular-nums; text-align: right; }
.cart-warning { color: var(--bad); font-size: .9rem; margin-top: 6px; }

.summary-card { border: 1px solid var(--line); border-top: 3px solid var(--fire); border-radius: var(--radius); padding: 24px; position: sticky; top: 96px; background: var(--panel); }
.summary-card h3 { font: 400 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 1rem; }
.sum-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; }
.sum-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-weight: 700; font-size: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.attest { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); margin: 16px 0; }
.attest input { margin-top: 4px; accent-color: var(--fire); width: 16px; height: 16px; flex-shrink: 0; }
.order-section { margin-top: 48px; }
.order-section h2 { font-size: 2rem; }
.success { text-align: center; padding: 80px 20px; }
.success .check-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 20px; }
.success .check-circle svg { width: 36px; height: 36px; }
/* Phone/tablet: total + submit stay reachable while filling in the form. */
.cart-bar { display: none; }
@media (max-width: 960px) {
  .cart-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .cart-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    position: sticky; bottom: 0; z-index: 40; margin: 0 -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(36, 30, 25, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .cart-bar .label { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
  .cart-bar strong { display: block; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
  .cart-bar .btn { flex: 1; max-width: 260px; }
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* --- CTA band + footer -------------------------------------------------- */
.cta-band {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--fire);
  border-radius: var(--radius); padding: 40px 44px; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-band::after { content: ""; position: absolute; right: -100px; top: -100px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(var(--fire), transparent 70%); opacity: .22; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { color: var(--muted); margin: 0; }
.cta-band > * { position: relative; z-index: 1; }

.site-footer { background: #1C1714; border-top: 2px solid var(--fire); color: var(--muted); padding: 56px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font: 400 1rem/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--flame); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.tagline { font-size: .8rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--flame); }
.disclaimer { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.7; color: var(--dim); }
.disclaimer strong { color: var(--muted); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .tagline { letter-spacing: .18em; }
}

/* --- Toast + RUO gate --------------------------------------------------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 8px;
  display: flex; align-items: center; gap: 14px; font-weight: 600; z-index: 100;
  transition: opacity .2s, transform .2s; box-shadow: var(--shadow); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--fire); font-weight: 700; text-decoration: none; }

.gate { position: fixed; inset: 0; z-index: 200; background: rgba(10, 8, 6, .85); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; }
.gate-card { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--fire); border-radius: 14px; max-width: 460px; padding: 32px; text-align: center; }
.gate-card img { width: 150px; margin: 0 auto 8px; }
.gate-card h3 { font: 400 1.8rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.gate-card p { color: var(--muted); }
.gate-card p a { color: var(--text); }
.gate-card .btn { margin-top: 8px; }
.gate-card .leave { display: block; margin-top: 14px; font-size: .9rem; color: var(--dim); }

/* --- Utilities ---------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- Product page extras ------------------------------------------------ */
.coa-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
