/* ==========================================================================
   Dynamic Aminos — site styles
   Tokens come straight from the logo: ink, paper, node blue, terminal green,
   slate. Display: Archivo Narrow (condensed, like the wordmark). Body: IBM
   Plex Sans. Utility/data: Courier Prime (like the tagline).
   ========================================================================== */

@font-face { font-family: "Archivo Narrow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/archivo-narrow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo Narrow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-narrow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/courier-prime-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Courier Prime"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/courier-prime-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #121827;
  --ink-2: #1B2236;
  --paper: #FAFBFC;
  --paper-2: #F2F4F8;
  --tint: #EEF1F8;
  --tint-green: #E7F1EC;
  --rule: #D6DBE5;
  --rule-strong: #B9C1D0;
  --slate: #404A5A;
  --slate-2: #636D80;
  --blue: #364EAF;
  --blue-hover: #2C4094;
  --green: #387961;
  --red: #9B2C2C;
  --on-dark: #FFFFFF;
  --on-dark-blue: #5B74D6;
  --on-dark-green: #4FA382;
  --on-dark-slate: #A9B3C4;

  --display: "Archivo Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Courier Prime", "Courier New", Courier, monospace;

  --max: 1120px;
  --gutter: 24px;
  --radius: 6px;
  --radius-card: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.gate-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 200; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(40px, 5.2vw, 62px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 24px; }
h4 { font-size: 19px; }
p { margin: 0 0 1em; }
.lede { font-size: 19px; line-height: 1.55; color: var(--slate); max-width: 58ch; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 14px;
}
.mono { font-family: var(--mono); }
.muted { color: var(--slate-2); }
.small { font-size: 14px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; border-top: 1px solid var(--rule); }
.section.flush { border-top: 0; }
.ledger { display: grid; grid-template-columns: 200px 1fr; gap: 32px 48px; align-items: start; }
.ledger > .eyebrow { margin: 6px 0 0; }
@media (max-width: 860px) {
  .ledger { grid-template-columns: 1fr; gap: 12px; }
  .section { padding: 56px 0; }
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 20px; border-radius: var(--radius); border: 1.5px solid var(--blue);
  background: var(--blue); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); border-color: transparent; padding-left: 6px; padding-right: 6px; }
.btn.ghost:hover { color: var(--blue-hover); background: transparent; }
.btn.on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn.on-dark:hover { background: var(--on-dark-slate); border-color: var(--on-dark-slate); color: var(--ink); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.small { padding: 10px 14px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250,251,252,.92);
  backdrop-filter: saturate(140%) blur(8px); -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.nav a.active { color: var(--blue); }
.nav a.btn, .nav a.btn:hover, .nav a.btn.active { color: #fff; }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 8px 10px; font: 600 14px var(--body); color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .site-header .wrap { height: 64px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px 0 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-top: 1px solid var(--rule); }
  .nav .btn { margin: 12px var(--gutter) 0; border-top: 0; }
}

/* ---------- RUO ribbon ---------- */
.ruo-bar { background: var(--ink); color: var(--on-dark-slate); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.ruo-bar .wrap { display: flex; justify-content: space-between; gap: 16px; min-height: 32px; align-items: center; }
.ruo-bar .right { color: var(--on-dark-green); }
@media (max-width: 640px) { .ruo-bar .right, .ruo-bar .hide-m { display: none; } .ruo-bar { font-size: 11px; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; }
.hero h1 { margin: 0 0 20px; max-width: 21ch; }
.hero .lede { margin-bottom: 28px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--slate-2); max-width: 52ch; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 600px) { .hero { padding: 44px 0 56px; } }

/* ---------- certificate card (signature) ---------- */
.cert {
  position: relative; background: #fff; border: 3px solid var(--ink); border-radius: var(--radius-card);
  padding: 22px 24px 20px; box-shadow: 0 18px 40px -24px rgba(18,24,39,.45);
}
.cert.reveal { animation: cert-in .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cert-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cert-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
/* the title counts as 200px when the head is laid out: a usual lot number sits beside it (the title wraps if it must) */
.cert-head .id { display: flex; flex: 1 1 200px; gap: 12px; align-items: center; min-width: 0; }
.cert-head .mark { width: 36px; height: 36px; flex: none; }
.cert-title { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1; letter-spacing: .01em; }
.cert-sub { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-top: 6px; }
/* a long lot number moves below the title (and wraps) instead of printing over it */
.cert-lot { text-align: right; white-space: nowrap; flex: none; min-width: 0; max-width: 100%; margin-left: auto; }
.cert-lot .k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-2); }
.cert-lot .v { font-family: var(--mono); font-weight: 700; font-size: 20px; letter-spacing: .04em; margin-top: 4px; white-space: normal; overflow-wrap: anywhere; }
.cert-product { padding: 14px 0 10px; border-bottom: 1px solid var(--rule); }
.cert-product .name { font-weight: 600; font-size: 17px; }
.cert-product .meta { font-family: var(--mono); font-size: 13px; color: var(--slate); margin-top: 4px; }
.cert-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.cert-table th, .cert-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cert-table th { font-weight: 500; color: var(--slate); width: 40%; padding-right: 10px; }
.cert-table td { font-family: var(--mono); font-size: 13.5px; }
.cert-table td .spec { color: var(--slate-2); }
.cert-table td .nowrap { white-space: nowrap; }
.cert-table tr:last-child th, .cert-table tr:last-child td { border-bottom: 0; }
.cert-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--ink); font-size: 12px; color: var(--slate-2); }
.stamp {
  font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); border: 2px solid var(--green); border-radius: 8px; padding: 7px 10px; line-height: 1.15; text-align: center;
  transform: rotate(-5deg); transform-origin: center; background: rgba(56,121,97,.06); white-space: nowrap;
}
.stamp.is-expired { color: var(--red); border-color: var(--red); background: rgba(155,44,44,.05); }
.stamp.is-specimen { color: var(--slate); border-color: var(--slate); background: rgba(64,74,90,.05); }
.cert-pdf { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.cert-example { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: var(--ink); }
.pass { color: var(--green); font-weight: 700; }
.specimen {
  position: absolute; top: -13px; right: 22px; background: var(--paper); border: 1px solid var(--rule-strong); color: var(--slate);
  font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
@media (max-width: 480px) {
  .cert { padding: 18px 16px 16px; }
  .cert-head { flex-direction: column; align-items: flex-start; }
  .cert-head .id { flex: none; } /* in a column, 200px would be its height */
  .cert-lot { text-align: left; margin-left: 0; }
  .cert-table th { width: 50%; }
  .cert-foot { flex-direction: column; align-items: flex-start; }
  .stamp { transform: none; }
}

/* ---------- facts row ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.fact { padding: 26px 28px 26px 0; border-right: 1px solid var(--rule); }
.fact + .fact { padding-left: 28px; }
.fact:last-child { border-right: 0; }
.fact .eyebrow { margin-bottom: 8px; }
.fact p { margin: 0; color: var(--slate); font-size: 15px; }
.fact strong { display: block; font-family: var(--display); font-size: 22px; margin-bottom: 6px; color: var(--ink); }
@media (max-width: 760px) {
  .facts { grid-template-columns: 1fr; }
  .fact, .fact + .fact { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .fact:last-child { border-bottom: 0; }
}

/* ---------- catalog: product cards (rendered from /data/catalog.js) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product {
  display: flex; flex-direction: column; min-width: 0; background: #fff;
  border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  scroll-margin: 104px 0 24px; transition: border-color .2s ease, box-shadow .2s ease;
}
.product.is-target { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 18px 40px -26px rgba(18,24,39,.55); }
/* product renders are 1200² on pure white: keep the box white so they sit seamlessly */
.product-media { aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--rule); }
.product-img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
/* no image yet: quiet tinted tile with the brand mark */
.product-ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--paper-2); }
.product-ph img { width: 22%; height: auto; opacity: .2; filter: grayscale(1); }
.product-body { flex: 1 1 auto; display: flex; flex-direction: column; align-items: flex-start; padding: 16px 18px 18px; }
.product-format { font-family: var(--mono); font-size: 11px; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-2); margin: 0 0 8px; }
.product-name { font-size: 22px; line-height: 1.08; margin: 0 0 14px; overflow-wrap: break-word; max-width: 100%; }
.product-name .keep { display: inline-block; } /* a short code moves to the next line whole; it still wraps if wider than the card */
.size-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.size-chip {
  font-family: var(--mono); font-size: 13px; line-height: 1; color: var(--ink); background: #fff;
  border: 1px solid var(--rule-strong); border-radius: 4px; padding: 7px 9px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.size-chip:hover { border-color: var(--ink); }
.size-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.product-size { font-family: var(--mono); font-size: 13px; line-height: 1; color: var(--ink); margin: 0 0 12px; padding: 8px 0; }
.product-meta { font-family: var(--mono); font-size: 12.5px; line-height: 1.45; color: var(--slate-2); margin: 0; }
.product-foot { padding: 14px 18px 18px; border-top: 1px solid var(--rule); }
.product-foot .price { font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: .005em; margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.product-foot .price:empty { display: none; }
.product-foot .btn { width: 100%; }
@media (min-width: 601px) and (max-width: 860px) {
  /* tablets: three columns of smaller tiles instead of two very tall ones */
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 600px) {
  /* phones: one column of compact list rows instead of tall full-width tiles */
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .product { display: grid; grid-template-columns: 118px minmax(0, 1fr); grid-template-areas: "media body" "foot foot"; }
  .product-media { grid-area: media; align-self: start; border-bottom: 0; margin: 14px 0 0 14px; border-radius: 4px; overflow: hidden; }
  .product-img { padding: 0; }
  .product-body { grid-area: body; padding: 14px 16px 14px 14px; }
  .product-name { font-size: 21px; margin-bottom: 12px; }
  .product-foot { grid-area: foot; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
  .product-foot .price { margin: 0; font-size: 24px; }
  .product-foot .btn { width: auto; }
}

/* ---------- catalog: search + format filters ---------- */
.catalog-bar {
  display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr) auto; gap: 14px 24px; align-items: center;
  padding-bottom: 22px; margin-bottom: 32px; border-bottom: 1px solid var(--ink);
}
.catalog-bar input[type="search"] {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='6.8' cy='6.8' r='5.1' fill='none' stroke='%23636D80' stroke-width='1.6'/%3E%3Cpath d='M10.6 10.6l4 4' stroke='%23636D80' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 14px center;
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius); padding: 11px 12px 11px 40px;
  -webkit-appearance: none; appearance: none;
}
.catalog-bar input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
.catalog-bar input[type="search"]:focus { border-color: var(--blue); }
.catalog-bar input[type="search"]::placeholder { color: var(--slate-2); }
/* the format chips get their own row, in balanced lines: no chip is left alone on a line */
.catalog-filters { grid-column: 1 / -1; grid-row: 2; margin-bottom: -8px; text-wrap: balance; }
.filter-chip {
  display: inline-block; vertical-align: top; margin: 0 8px 8px 0;
  font-family: var(--mono); font-size: 12px; line-height: 1; letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate); background: transparent; border: 1px solid var(--rule-strong); border-radius: 999px;
  padding: 10px 14px; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.filter-chip:hover { border-color: var(--ink); color: var(--ink); }
.filter-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.catalog-count { grid-column: -2; margin: 0; color: var(--slate-2); white-space: nowrap; text-align: right; } /* last column, even when the format chips are hidden */
.catalog-empty { margin-bottom: 8px; }
.catalog-empty .btn { margin-top: 2px; }
@media (max-width: 860px) {
  .catalog-bar { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 600px) {
  .catalog-bar { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 18px; margin-bottom: 24px; }
  .catalog-count { grid-row: 3; text-align: left; }
}
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); border: 1px solid var(--green); border-radius: 4px; padding: 2px 6px; }
.catalog-note { margin-top: 18px; font-size: 14px; color: var(--slate-2); max-width: 70ch; }

/* ---------- lot lookup ---------- */
.lookup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; max-width: 560px; }
.lookup input {
  width: 100%; font-family: var(--mono); font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
  padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.lookup input::placeholder { text-transform: none; letter-spacing: 0; color: var(--slate-2); font-family: var(--body); font-size: 15px; }
@media (max-width: 480px) { .lookup { grid-template-columns: 1fr; } }
.lookup-help { margin-top: 12px; font-size: 14px; color: var(--slate-2); }
.lookup-help code { font-family: var(--mono); color: var(--slate); }
.result { margin-top: 32px; }
/* site.js scrolls these into view: stop below the sticky header instead of under it, and short of the bottom edge */
.result, #apply-done { scroll-margin: 96px 0 24px; }
.result .cert { max-width: 680px; }
.notice { border: 1px solid var(--rule-strong); border-left: 4px solid var(--red); background: #fff; border-radius: var(--radius); padding: 18px 20px; max-width: 640px; }
.notice.ok { border-left-color: var(--green); }
.notice.info { border-left-color: var(--blue); }
.notice h3 { font-size: 20px; margin-bottom: 8px; }
.notice p:last-child { margin-bottom: 0; }

/* ---------- comparison ledger ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-2); font-weight: 400; border-bottom: 1px solid var(--ink); padding-top: 0; padding-bottom: 12px; }
.compare thead th.us { color: var(--ink); }
.compare tbody th { font-weight: 600; width: 24%; color: var(--ink); }
.compare td.us { color: var(--ink); }
.compare td.them { color: var(--slate-2); }
.compare td.us::before { content: "✓  "; color: var(--green); font-weight: 700; }
@media (max-width: 760px) {
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .compare tbody th { padding: 0 0 6px; border: 0; width: auto; }
  .compare td { padding: 2px 0; border: 0; }
  .compare td.them::before { content: "✕  "; color: var(--slate-2); }
}

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 1px solid var(--ink); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 22px; color: var(--blue); flex: none; width: 24px; text-align: center; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 22px; color: var(--slate); max-width: 68ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.band { background: var(--ink); color: #fff; padding: 64px 0; }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.band h2 { color: #fff; max-width: 16ch; }
.band p { color: var(--on-dark-slate); max-width: 56ch; margin: 12px 0 0; }
.band .eyebrow { color: var(--on-dark-green); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); color: var(--on-dark-slate); padding: 56px 0 32px; font-size: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--on-dark-blue); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.12); }
.foot-grid img { height: 46px; width: auto; margin-bottom: 18px; }
.foot-grid h4 { color: #fff; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 10px; }
.foot-ruo { color: var(--on-dark-slate); max-width: 48ch; margin: 0; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; font-size: 13px; color: var(--on-dark-slate); }
.foot-legal .mono { letter-spacing: .08em; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- page headers (inner pages) ---------- */
.page-head { padding: 56px 0 40px; }
.page-head h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.page-head .lede { margin-bottom: 0; }
.prose { max-width: 720px; }
.prose h2 { font-size: 28px; margin: 44px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--slate); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .bracket { color: var(--red); font-family: var(--mono); font-size: 14px; }
.draft-banner { background: var(--tint); border: 1px solid var(--rule-strong); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 32px; font-size: 14px; color: var(--slate); max-width: 720px; }
.draft-banner strong { color: var(--ink); }

/* ---------- forms ---------- */
.form { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.field label .req { color: var(--red); }
.field .hint { font-size: 13px; color: var(--slate-2); margin-top: 6px; }
.field .hint.warn { color: var(--red); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font-family: var(--body); font-size: 16px; color: var(--ink); background: #fff;
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius); padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(54,78,175,.15); }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23404A5A' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--slate); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.check strong { color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset legend { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-2); padding: 0; margin: 8px 0 16px; border-bottom: 1px solid var(--ink); width: 100%; padding-bottom: 8px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.form-actions .small { color: var(--slate-2); }
.hidden { display: none !important; }

/* ---------- researcher gate ---------- */
.gate { position: fixed; inset: 0; z-index: 100; background: rgba(18,24,39,.88); display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate[hidden] { display: none; }
.gate-panel { background: var(--paper); border-radius: var(--radius-card); border: 3px solid var(--ink); max-width: 560px; width: 100%; padding: 30px 32px 28px; max-height: calc(100vh - 40px); overflow: auto; }
.gate-panel img { height: 52px; width: auto; margin-bottom: 22px; }
.gate-panel h2 { font-size: 34px; margin-bottom: 12px; }
.gate-panel p { color: var(--slate); }
.gate-panel .check { margin-top: 14px; }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.gate-actions .exit { font-size: 14px; color: var(--slate-2); text-decoration: underline; background: none; border: 0; cursor: pointer; font-family: var(--body); padding: 8px 4px; }
@media (max-width: 480px) { .gate-panel { padding: 24px 20px; } .gate-panel h2 { font-size: 28px; } }

/* ---------- cart ---------- */
.nav .cart-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.nav .cart-count.hidden { display: none !important; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: var(--radius); font-size: 15px;
  box-shadow: 0 12px 32px rgba(18,24,39,.28);
}
.toast strong { color: #fff; }
.toast a { color: #fff; font-weight: 600; margin-left: 4px; }
.toast a:hover { color: var(--on-dark-slate); }
.cart-notice { margin-bottom: 24px; }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .cart { grid-template-columns: 1fr; gap: 32px; } }
.cart-main { min-width: 0; }
.cart-lines { border-top: 1px solid var(--ink); }
.cart-line {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto auto; gap: 8px 20px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.cart-thumb img { width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); }
.cart-info { min-width: 0; }
.cart-name { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--ink); text-decoration: none; }
.cart-name:hover { color: var(--blue); }
.cart-name .keep { display: inline-block; }
.cart-meta { margin: 4px 0 0; font-family: var(--mono); font-size: 13px; color: var(--slate-2); }
.cart-meta .nowrap { white-space: nowrap; }
.cart-unit { margin: 2px 0 0; font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
.cart-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--rule-strong); border-radius: var(--radius); background: #fff; }
.qty-btn { width: 38px; height: 42px; background: none; border: 0; font: 600 18px var(--body); color: var(--ink); cursor: pointer; }
.qty-btn:hover { color: var(--blue); }
.cart-qty .qty-input {
  width: 48px; height: 42px; padding: 0; border: 0; border-radius: 0; text-align: center;
  font: 500 16px var(--body); font-variant-numeric: tabular-nums; box-shadow: none;
}
.cart-line-total { margin: 0; min-width: 88px; text-align: right; font-family: var(--display); font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.cart-remove { background: none; border: 0; padding: 8px 0; color: var(--slate-2); font: 14px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cart-remove:hover { color: var(--red); }
@media (max-width: 600px) {
  .cart-line { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .cart-thumb img { width: 56px; height: 56px; }
  .cart-qty { grid-column: 2; grid-row: 2; justify-self: start; }
  .cart-line-total { grid-column: 3; grid-row: 2; }
  .cart-remove { grid-column: 3; grid-row: 1; align-self: start; }
}
.cart-summary { position: sticky; top: 96px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--radius-card); padding: 24px; }
@media (max-width: 900px) { .cart-summary { position: static; } }
.cart-summary-title { font-size: 24px; margin-bottom: 16px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cart-total strong { font-family: var(--display); font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.checkout-form { display: grid; gap: 16px; margin-top: 20px; }
.checkout-form .btn { width: 100%; }
.checkout-form .notice { padding: 12px 16px; }
.checkout-form .notice p { margin: 0; }

/* ---------- misc ---------- */
.scroll-reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; }
.scroll-reveal.in { opacity: 1; transform: none; }
.rule-top { border-top: 1px solid var(--ink); padding-top: 24px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cert.reveal { animation: none; }
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
  .btn, .product, .size-chip, .filter-chip { transition: none; }
}

/* ---------- print (certificates) ---------- */
@media print {
  .site-header, .ruo-bar, .site-footer, .band, .lookup, .lookup-help, .no-print, .gate, .cert-pdf { display: none !important; }
  body { background: #fff; }
  .cert { box-shadow: none; border-width: 2px; break-inside: avoid; }
  .cert.reveal { animation: none; }
  .section { border: 0; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
