/* ==========================================================================
   Vutton Peptides — shared stylesheet
   Clinical / laboratory supply aesthetic: white ground, generous whitespace,
   slate-blue accent, precise typography, subtle hexagon line-art motifs.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --ink:          #0f151d;
  --ink-2:        #33404f;
  --muted:        #67737f;
  --muted-2:      #8b95a1;

  --line:         #e3e8ee;
  --line-strong:  #ccd5df;
  --wash:         #f6f8fb;
  --wash-2:       #eef2f7;
  --panel:        #f2f4f7;
  --panel-h:      220px;   /* product image panel — identical on every card */
  --panel-pad:    22px;    /* equal breathing room around every vial */

  --accent:       #4a6d9e;
  --accent-deep:  #2f4a70;
  --accent-soft:  #dde5f0;

  --white:        #ffffff;

  --banner-h:     38px;
  --header-h:     72px;

  --maxw:         1160px;
  --gutter:       clamp(20px, 5vw, 56px);

  --radius:       3px;
  --radius-lg:    5px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
          Consolas, "Liberation Mono", monospace;

  --shadow-sm: 0 1px 2px rgba(15, 21, 29, .04);
  --shadow-md: 0 12px 32px -18px rgba(15, 21, 29, .28);
}

/* Tileable hexagon line-art, used as a low-opacity ground on dark/wash areas */
.hex-field {
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='49' viewBox='0 0 28 49' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81V33.5zM15 0v7.5L27.99 15H28v-2.31l-11-6.34V0h-2zm0 49v-8l12.99-7.5H28v2.31l-11 6.34V49h-2z' fill='%234a6d9e' fill-opacity='0.16'/%3E%3C/svg%3E");
  background-size: 56px 98px;
}

/* ---- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-top: var(--banner-h);
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv05" 1, "ss01" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.021em;
  line-height: 1.18;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg { max-width: 100%; }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---- Layout helpers ---------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 116px); }

.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  opacity: .55;
  flex: none;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  max-width: 22ch;
}

.section-intro {
  margin-top: 18px;
  max-width: 62ch;
  font-size: 17px;
  color: var(--muted);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: calc(var(--banner-h) + 8px); }

/* ---- RUO banner (always visible) --------------------------------------- */
.ruo-banner {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--banner-h);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #d7dee8;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ruo-banner p {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-align: center;
  padding-inline: 16px;
  line-height: 1.3;
}
.ruo-banner strong { color: var(--white); font-weight: 500; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: var(--banner-h);
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { flex: none; color: var(--accent); }
.brand__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.brand__name span { color: var(--accent); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  letter-spacing: .01em;
}
.site-nav a:hover { color: var(--accent-deep); }

@media (max-width: 800px) {
  .site-nav { display: none; }
}

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              color .18s ease, transform .18s ease;
}
.btn--primary {
  background: var(--accent-deep);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.btn svg { flex: none; }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 11vw, 132px) clamp(64px, 9vw, 110px);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(74, 109, 158, .075), transparent 62%),
    linear-gradient(180deg, #fbfcfe 0%, var(--white) 55%);
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid rgba(74, 109, 158, .22);
  border-radius: 100px;
  padding: 6px 14px;
  margin-bottom: 28px;
}
.hero__eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  font-size: clamp(34px, 5.1vw, 60px);
  letter-spacing: -0.032em;
  max-width: 17ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-deep);
}

.hero__lede {
  margin-top: 24px;
  font-size: clamp(16.5px, 1.5vw, 18.5px);
  color: var(--muted);
  max-width: 52ch;
}

.hero__actions {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.hero__art svg { width: 100%; height: auto; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { display: none; }
}
/* ---- Catalog ----------------------------------------------------------- */
.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
/* Product grid — 4 per row at full width, 3 / 2 as it narrows, 1 on mobile */
.pgrid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
@media (max-width: 560px) {
  .pgrid { grid-template-columns: 1fr; }
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 16px 18px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pcard:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Soft light-gray rounded image panel.
   Fixed height + identical padding on every card, so each vial is scaled into
   the same box and the grid stays aligned whether the image loads or not. */
.pcard__media {
  position: relative;
  height: var(--panel-h);
  display: grid;
  place-items: center;
  background: var(--panel);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 18px;
}
/* Both states fill the panel exactly — same box, same padding, same result. */
.pcard__media > img,
.pcard__media > .pcard__fallback {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  padding: var(--panel-pad);
}
/* Sources are pre-normalised (see assets/products/README.md): each vial is the
   same height on a 400px canvas whose background is already --panel, so the
   image edge is invisible and no blend mode is needed. */
.pcard__media img {
  object-fit: contain;
  object-position: center;
}
.pcard__fallback {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted-2);
  text-align: center;
}
.pcard__fallback svg { color: var(--line-strong); }
.pcard__fallback span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pcard__fallback[hidden] { display: none; }

.pcard__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.pcard__size {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.pcard__price {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pcard__btn {
  margin-top: 14px;
  align-self: flex-start;
  padding: 8px 16px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--accent-deep);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.pcard__btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.pcard__btn.is-added {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: var(--white);
}

.pcard__ruo {
  margin-top: auto;
  padding-top: 16px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted-2);
}

/* ---- Cart: header trigger --------------------------------------------- */
.header-actions { display: flex; align-items: center; gap: 18px; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}
.cart-btn:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: var(--accent-soft);
}
.cart-btn__label { line-height: 1; }
@media (max-width: 460px) {
  .cart-btn__label { display: none; }
  .cart-btn { padding: 9px 11px; }
}
.cart-btn__badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: inline-grid;
  place-items: center;
  border-radius: 100px;
  background: var(--accent-deep);
  color: var(--white);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cart-btn__badge[hidden] { display: none; }

/* ---- Cart: drawer ------------------------------------------------------ */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(15, 21, 29, .42);
  opacity: 0;
  visibility: hidden;
  transition: opacity .26s ease, visibility .26s ease;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 71;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--white);
  box-shadow: -18px 0 48px -28px rgba(15, 21, 29, .5);
  transform: translateX(100%);
  visibility: hidden;   /* keeps the closed drawer out of the tab order */
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), visibility .3s;
}
.cart-drawer.is-open { transform: translateX(0); visibility: visible; }

.cart-drawer__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-drawer__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
}
.cart-drawer__count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.cart-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.cart-close:hover {
  background: var(--wash);
  border-color: var(--line);
  color: var(--ink);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 24px;
}

.cart-empty {
  padding: 56px 8px;
  text-align: center;
  color: var(--muted-2);
}
.cart-empty svg { color: var(--line-strong); margin-bottom: 14px; }
.cart-empty p { font-size: 14.5px; }

.citem {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.citem:last-child { border-bottom: 0; }

.citem__media {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
}
.citem__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}
.citem__media svg { color: var(--line-strong); }

.citem__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.citem__size {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.citem__unit {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.citem__qty {
  margin-top: 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 0;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: background-color .14s ease, color .14s ease;
}
.qty-btn:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent-deep); }
.qty-btn:disabled { color: var(--line-strong); cursor: not-allowed; }
.citem__qtyval {
  min-width: 34px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  border-inline: 1px solid var(--line-strong);
  align-self: stretch;
  display: grid;
  place-items: center;
}

.citem__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.citem__line {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.citem__remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted-2);
  cursor: pointer;
  transition: background-color .14s ease, color .14s ease;
}
.citem__remove:hover { background: var(--wash-2); color: var(--ink); }

.cart-foot {
  flex: none;
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding: 20px 24px 22px;
}
.cart-subtotal {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.cart-subtotal dt {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.cart-subtotal dd {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.cart-foot__note {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.cart-checkout {
  margin-top: 16px;
  width: 100%;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent-deep);
  color: var(--white);
  border: 1px solid var(--accent-deep);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.cart-checkout:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cart-checkout[aria-disabled="true"] {
  background: var(--line-strong);
  border-color: var(--line-strong);
  color: var(--white);
  pointer-events: none;
}

.cart-ruo {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted-2);
  text-align: center;
}

body.cart-open { overflow: hidden; }

/* ---- Checkout ---------------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.checkout-layout[hidden] { display: none; }
@media (max-width: 860px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-col--summary { order: -1; }
}

.checkout-h2 {
  font-size: 19px;
  letter-spacing: -0.014em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

/* Order number */
.ordernum {
  margin-top: 28px;
  display: inline-block;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--wash);
  padding: 18px 24px;
}
.ordernum__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}
.ordernum__value {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
}
.ordernum__hint {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted-2);
  max-width: 44ch;
}
.ordernum__hint strong { font-weight: 700; color: var(--ink); }
.ordernum--confirm { margin-top: 24px; background: var(--white); }

/* Configuration warning */
.config-notice {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid #e6cf9d;
  border-left: 3px solid #c99a2e;
  border-radius: var(--radius);
  background: #fdf8ec;
  color: #6b5518;
}
.config-notice[hidden] { display: none; }
.config-notice svg { flex: none; color: #c99a2e; margin-top: 2px; }
.config-notice p { font-size: 13.5px; }
.config-notice strong { color: #4d3d0f; font-weight: 600; }
.config-notice code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(0, 0, 0, .05);
  border-radius: 2px;
  padding: 1px 4px;
}

/* Form */
.checkout-form { margin-top: 26px; }

.field + .field { margin-top: 20px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}
.field .req { color: var(--accent); }
.field input {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 109, 158, .14);
}
.field__hint {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted-2);
}
.field .opt { color: var(--muted-2); font-weight: 400; }

.field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%2367737f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 34px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 109, 158, .14);
}

.field-group-head {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.008em;
  color: var(--ink);
}
.ship-note {
  margin-top: 6px;
  margin-bottom: 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-deep);
}

.field-row {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 14px;
}
.field-row .field + .field { margin-top: 0; }
@media (max-width: 620px) {
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field:first-child { grid-column: 1 / -1; }
}

.certify {
  margin-top: 26px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--wash);
}
.certify input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent-deep);
  flex: none;
  cursor: pointer;
}
.certify label {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  cursor: pointer;
}

/* Research-use signature */
.signature {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.signature__line {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.checkout-error {
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid #e2b3b3;
  border-left: 3px solid #b3453f;
  border-radius: var(--radius);
  background: #fdf3f2;
  color: #85302c;
  font-size: 13.5px;
}
.checkout-error[hidden] { display: none; }

.checkout-submit {
  margin-top: 24px;
  width: 100%;
  padding-block: 15px;
}
.checkout-submit:disabled {
  background: var(--line-strong);
  border-color: var(--line-strong);
  color: var(--white);
  cursor: not-allowed;
  transform: none;
}
.checkout-foot-note {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted-2);
  text-align: center;
}

.checkout-empty {
  padding: 56px 0;
  text-align: center;
  color: var(--muted);
}
.checkout-empty[hidden] { display: none; }

/* Order summary table */
.osum { width: 100%; border-collapse: collapse; font-size: 14px; }
.osum th {
  text-align: left;
  padding: 14px 0 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.osum td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
.osum tr:last-child td { border-bottom: 0; }
.osum__num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.osum td.osum__num { padding-left: 14px; }
.osum__amt { font-weight: 600; color: var(--ink); }
.osum__name { display: block; font-weight: 600; color: var(--ink); }
.osum__size {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Confirmation */
.confirm {
  max-width: 68ch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.confirm[hidden] { display: none; }
.confirm:focus { outline: none; }
.confirm__mark {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  margin-bottom: 20px;
}
.confirm__title { font-size: clamp(24px, 3.2vw, 30px); }
.confirm__lede { margin-top: 12px; font-size: 15.5px; color: var(--muted); }

.confirm__pay {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--wash);
}
.confirm__pay-head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.confirm__pay-send,
.confirm__pay-ships { font-size: 15px; color: var(--ink); line-height: 1.6; }
.confirm__pay-send { font-weight: 600; }
.confirm__pay-ships { margin-top: 18px; }

/* Memo rule — the one instruction people must not miss. */
.memo-callout {
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid #e6cf9d;
  border-left: 3px solid #c99a2e;
  border-radius: var(--radius);
  background: #fdf8ec;
  color: #6b5518;
}
.memo-callout__head {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.45;
  color: #4d3d0f;
}
.memo-callout__number {
  margin: 14px 0 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px dashed #d9bd7e;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: clamp(24px, 5.4vw, 34px);
  font-weight: 700;
  letter-spacing: .05em;
  text-align: center;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.memo-callout__note {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.5;
}
.memo-callout__note + .memo-callout__note { margin-top: 8px; }

.confirm__ruo {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted-2);
}

.checkout-summary {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.checkout-summary__head {
  padding: 16px 22px;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout-summary__body { padding: 4px 22px; }
.checkout-summary__foot {
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.catalog-footnote {
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--muted-2);
  max-width: 76ch;
}

/* ---- Compliance -------------------------------------------------------- */
.compliance {
  position: relative;
  background: var(--ink);
  color: #c3ccd8;
  overflow: hidden;
}
.compliance .hex-field {
  position: absolute;
  inset: 0;
  opacity: .5;
  pointer-events: none;
}
.compliance .wrap { position: relative; }
.compliance h2 { color: var(--white); }
.compliance .section-label { color: #8fb0dc; }
.compliance .section-label::before { background: #8fb0dc; }
.compliance .section-intro { color: #9aa6b4; }

.compliance__list {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.compliance__list li {
  background: var(--ink);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compliance__list .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: #7d97bd;
}
.compliance__list h3 {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.008em;
}
.compliance__list p { font-size: 14.5px; color: #9aa6b4; }

.compliance__attest {
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .03);
  padding: 24px 26px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.compliance__attest svg { flex: none; color: #8fb0dc; margin-top: 2px; }
.compliance__attest p { font-size: 14.5px; color: #b3bdca; }
.compliance__attest strong { color: var(--white); font-weight: 500; }

/* ---- Contact ----------------------------------------------------------- */
.contact__grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  padding: 30px 28px;
}
.contact-card h3 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.contact-card .value {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}
.contact-card .value a { text-decoration: none; }
.contact-card .value a:hover { text-decoration: underline; }
.contact-card p.small {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

/* ---- Footer ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding-block: 56px 40px;
}
.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}
.site-footer__links a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--accent-deep); text-decoration: underline; }

.footer-disclaimer {
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 13.5px;
  color: var(--ink-2);
  max-width: 92ch;
}
.footer-disclaimer strong { color: var(--ink); font-weight: 600; }

.site-footer__base {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted-2);
}
.site-footer__base p { font-family: var(--mono); letter-spacing: .04em; }

/* ---- Legal document pages ---------------------------------------------- */
.doc-hero {
  padding-block: clamp(56px, 7vw, 88px) 44px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfe, var(--white));
}
.doc-hero h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 44px);
}
.doc-meta {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.draft-notice {
  margin-top: 30px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid #e6cf9d;
  border-left: 3px solid #c99a2e;
  border-radius: var(--radius);
  background: #fdf8ec;
  color: #6b5518;
  max-width: 82ch;
}
.draft-notice svg { flex: none; color: #c99a2e; margin-top: 2px; }
.draft-notice p { font-size: 14px; }
.draft-notice strong { color: #4d3d0f; font-weight: 600; }

.doc-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  padding-block: clamp(48px, 6vw, 76px);
  align-items: start;
}
@media (max-width: 880px) {
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { position: static !important; }
}

.doc-toc {
  position: sticky;
  top: calc(var(--banner-h) + var(--header-h) + 28px);
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.doc-toc h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
}
.doc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  counter-reset: toc;
}
.doc-toc a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  display: block;
}
.doc-toc a:hover { color: var(--accent-deep); }

.doc-body { max-width: 74ch; }
.doc-body section + section { margin-top: 44px; }
.doc-body h2 {
  font-size: 20px;
  letter-spacing: -0.012em;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--banner-h) + var(--header-h) + 20px);
}
.doc-body h2 .num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-right: 10px;
}
.doc-body h3 {
  margin-top: 26px;
  font-size: 15.5px;
  font-weight: 600;
}
.doc-body p { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.doc-body ul, .doc-body ol { margin: 14px 0 0; padding-left: 22px; }
.doc-body li { margin-top: 8px; font-size: 15px; color: var(--ink-2); }
.doc-body li::marker { color: var(--accent); }

.doc-callout {
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--wash);
}
.doc-callout p { margin-top: 0; font-size: 14.5px; }
.doc-callout p + p { margin-top: 12px; }
.doc-callout strong { color: var(--ink); }

.doc-body .allcaps {
  font-size: 13.5px;
  letter-spacing: .015em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--wash-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 18px;
}

.doc-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 14px;
}
.doc-table th, .doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid var(--line);
}
.doc-table th {
  background: var(--wash);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.doc-table-scroll { overflow-x: auto; }

/* ---- Motion ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---- Print ------------------------------------------------------------- */
@media print {
  .ruo-banner, .site-header, .doc-toc { display: none; }
  body { padding-top: 0; }
  .doc-layout { grid-template-columns: 1fr; }
}
