/* css/site.css — BioStem Labs v3
   Clinical commerce design system. Monochrome brand ink + single precision accent. */

/* ─────────────────────────────  TOKENS  ───────────────────────────── */
:root {
  /* Ink — derived from the BioStem logo's #2a2e28, cooled for screen */
  --ink:            #1C2128;
  --ink-2:          #39424C;
  --ink-3:          #606B77;
  --ink-4:          #9AA5B1;

  /* Precision accent — clinical teal-blue, distinct from the reference site's sky */
  --accent:         #10627C;
  --accent-2:       #1B87A8;
  --accent-3:       #E4F1F5;
  --accent-ink:     #0A4557;

  /* Surfaces */
  --paper:          #FFFFFF;
  --surface:        #F5F7F8;
  --surface-2:      #EDF1F3;
  --line:           #E1E7EA;
  --line-2:         #CFD8DD;

  /* Silver — the vial cap / product photography note */
  --silver-a:       #F2F4F5;
  --silver-b:       #D6DDE1;

  --ok:             #15803D;
  --warn:           #B45309;

  /* Type */
  --sans: "DM Sans", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Times New Roman", Times, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(28,33,40,.06), 0 1px 3px rgba(28,33,40,.04);
  --shadow:    0 2px 6px rgba(28,33,40,.06), 0 8px 24px rgba(28,33,40,.07);
  --shadow-lg: 0 4px 12px rgba(28,33,40,.08), 0 20px 48px rgba(28,33,40,.10);

  /* Container scales with the display instead of stranding wide monitors in
     340px of dead margin. Steps rather than pure vw so line length stays sane. */
  --maxw: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 68px;
  /* Announce bar + nav, i.e. everything above the hero. Used so the mobile hero
     can claim exactly one screen. Kept in sync with .announce padding + font-size. */
  --chrome-h: 103px;
}
@media (min-width: 1560px) { :root { --maxw: 1460px; --gutter: 56px; } }
@media (min-width: 1800px) { :root { --maxw: 1600px; --gutter: 64px; } }
@media (min-width: 2200px) { :root { --maxw: 1720px; } }

/* ─────────────────────────────  RESET  ───────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 3px; }

/* ─────────────────────────────  LAYOUT  ───────────────────────────── */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--surface); }
.section--ink { background: var(--ink); color: #C3CBD3; }
.section--ink h2, .section--ink h3 { color: #fff; }
.home-standard { position: relative; overflow: hidden; }
.home-standard::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url('../assets/microscope.webp') center / cover no-repeat;
  opacity: .2;
}
.home-standard .wrap { position: relative; z-index: 1; }
.home-fulfillment { position: relative; overflow: hidden; }
.home-fulfillment::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url('../assets/bkgrnd4.webp') center / cover no-repeat;
  opacity: .2;
}
.home-fulfillment .wrap { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.section--ink .eyebrow { color: #5FC2E0; }

.h1 { font-size: clamp(38px, 6.4vw, 70px); letter-spacing: -.048em; font-weight: 800; }
.h2 { font-size: clamp(28px, 3.8vw, 44px); letter-spacing: -.042em; }
.h3 { font-size: clamp(19px, 2vw, 23px); letter-spacing: -.03em; font-weight: 700; }
.lede { font-size: clamp(15px, 1.35vw, 17.5px); color: var(--ink-3); max-width: 60ch; line-height: 1.62; }
.section-head { max-width: 66ch; margin-bottom: clamp(30px, 4vw, 48px); }

/* ─────────────────────────── STACK EDUCATION ─────────────────────────── */
.stack-education { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stack-education__card { display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 28px); border: 1px solid var(--line); border-top: 4px solid var(--c-ink, var(--accent)); border-radius: var(--r-xl); background: var(--paper); box-shadow: var(--shadow-sm); }
.stack-education__tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--c-ink, var(--accent)); }
.stack-education__tag svg { width: 15px; height: 15px; }
.stack-education__head h3 { margin-top: 13px; font-size: 25px; }
.stack-education__thesis { margin-top: 16px; color: var(--ink-3); font-size: 14px; line-height: 1.62; }
.stack-education__pathways { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.stack-education__pathways li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.stack-education__pathways li > span { align-self: start; padding: 4px 7px; border-radius: 999px; background: var(--c-tint, var(--accent-3)); color: var(--c-ink, var(--accent)); font-size: 10px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; }
.stack-education__pathways b { display: block; font-size: 13.5px; color: var(--ink); line-height: 1.35; }
.stack-education__pathways p { margin-top: 4px; color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.stack-education__foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding-top: 22px; }
.stack-education__foot > span { color: var(--ink-4); font-family: var(--mono); font-size: 10.5px; }
.stack-education__foot a { color: var(--c-ink, var(--accent)); font-size: 13px; font-weight: 800; }
.stack-education__foot a:hover { text-decoration: underline; }
@media (max-width: 980px) { .stack-education { grid-template-columns: 1fr; } }

/* ─────────────────────────────  BUTTONS  ───────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; letter-spacing: -.01em;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #0F1318; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: var(--paper); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; }
.btn--sq { border-radius: var(--r); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ─────────────────────────────  BRAND MARK  ─────────────────────────────
   Faithful reconstruction of the BioStem helix lockup. */
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { height: 34px; width: auto; flex: none; }
.brand__rule { width: 1px; height: 30px; background: rgba(28,33,40,.20); flex: none; }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 15px; font-weight: 500; letter-spacing: .15em; color: var(--ink); }
.brand__hair { height: 1px; background: rgba(28,33,40,.20); margin: 3px 0; }
.brand__sub { font-size: 8px; font-weight: 300; letter-spacing: .5em; color: rgba(28,33,40,.75); }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__sub { color: rgba(255,255,255,.75); }
.brand--light .brand__rule, .brand--light .brand__hair { background: rgba(255,255,255,.24); }

/* ─────────────────────────────  ANNOUNCE + NAV  ───────────────────────────── */
.announce {
  background: var(--ink); color: #E6EBEF; text-align: center;
  font-size: 12.5px; letter-spacing: .01em; padding: 9px 16px;
}
.announce b { color: #fff; }
.announce a { color: inherit; font-weight: 700; text-decoration: none; }
.announce a:hover, .announce a:focus-visible { color: #fff; text-decoration: underline; }
.announce__short { display: none; }
@media (max-width: 720px) {
  :root { --chrome-h: 103px; }
  .announce { font-size: 11.5px; padding: 8px 12px; }
  .announce__full { display: none; }
  .announce__short { display: inline; }
}

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__in { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.nav__in > a:first-child { display: flex; align-self: stretch; align-items: center; }
.nav .brand__mark { display: block; height: 42.5px; }
.nav__links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav__links a {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  position: relative; padding-block: 6px; transition: color .16s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 50%; color: var(--ink-2);
  transition: background .16s, color .16s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-btn { position: relative; }
.cart-count {
  position: absolute; top: 6px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; display: grid; place-items: center;
}
.nav__burger { display: none; }
@media (max-width: 900px) {
  /* Anchored to the nav itself rather than a hard-coded offset — the announce
     bar wraps to 2–3 lines on small phones, which any magic number gets wrong. */
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 4px var(--gutter) 16px; margin: 0;
    max-height: calc(100dvh - var(--nav-h) - 20px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a {
    display: flex; align-items: center; min-height: 48px;
    border-bottom: 1px solid var(--line); font-size: 15.5px;
  }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__links a.is-active { color: var(--accent); }
  .nav__links a.is-active::after { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__burger { display: grid; }
}

/* ─────────────────────────────  HERO  ───────────────────────────── */
/* Full-bleed lab photograph. The shot carries its subject on the right third and
   clean negative space on the left, so copy sits left and a white scrim keeps
   graphite text legible over the marble veining. */
.hero {
  position: relative; overflow: hidden;
  background: #EFF2F3 url("../assets/biostemhero.webp") no-repeat 78% center;
  background-size: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.97) 0%, rgba(255,255,255,.93) 30%,
      rgba(255,255,255,.72) 48%, rgba(255,255,255,.18) 66%, transparent 80%),
    linear-gradient(180deg, transparent 78%, var(--surface) 100%);
}
.hero__in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: clamp(520px, 62vw, 720px);
  padding-block: clamp(48px, 7vw, 96px);
}
.hero__copy { max-width: min(600px, 54%); }
.hero__title span { display: block; }
.hero__title .accent { color: var(--accent); }
.hero__lede { margin-top: 20px; max-width: 48ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* Grid, not flex-wrap — keeps the three proofs on one line instead of 2+1 */
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; margin-top: 40px; }
.hero__stat { display: flex; align-items: flex-start; gap: 11px; }
.hero__stat svg { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 2px; }
.hero__stat b { display: block; font-size: 13.5px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.hero__stat span { font-size: 12.5px; color: var(--ink-3); }
.hero__note { margin-top: 30px; font-size: 12.5px; color: var(--ink-4); }

/* ── Hero, narrow ──
   Below 900px the vial would sit behind the copy, so the scrim flips to
   vertical: text over the bright top, subject visible along the bottom. */
/* Legacy phone art block — superseded by the mobile background hero below. */
.hero__art-m { display: none; }

/* Between the mobile breakpoint and ~1100px the vial sits further right and the
   copy column is wider — nudge the chip along with it. */
@media (max-width: 1100px) and (min-width: 901px) {
  .hero__cards { right: 4%; width: min(520px, 48%); }
}

@media (max-width: 900px) {
  /* One screen. Copy at the top over the opaque part of the scrim, the description
     and CTAs pinned to the bottom — the portrait photograph carries the vial. */
  .hero {
    width: 100%; min-width: 0; height: max(560px, calc(100svh - var(--chrome-h)));
    max-height: max(560px, calc(100svh - var(--chrome-h)));
    background-position: center bottom;
    background-size: cover;
  }
  .hero::after {
    display: block;
    background:
      linear-gradient(180deg,
        rgba(255,255,255,.97) 0%, rgba(255,255,255,.95) 32%,
        rgba(255,255,255,.70) 46%, rgba(255,255,255,.20) 60%, transparent 72%),
      linear-gradient(180deg, transparent 90%, var(--surface) 100%);
  }
  .hero__in {
    width: 100%; min-width: 0; min-height: 100%; height: 100%;
    display: flex; flex-direction: column; gap: 0;
    grid-template-columns: none;
    /* A touch more breathing room under the nav so the copy isn't jammed
       against it and the block sits better in the screen. */
    padding-block: clamp(30px, 7vw, 52px) clamp(16px, 3.5vw, 24px);
    align-items: stretch;
  }
  .hero__copy { order: 1; max-width: 100%; display: flex; flex-direction: column; flex: none; }
  .hero__copy > .eyebrow    { order: 1; }
  .hero__copy > .hero__title{ order: 2; }
  .hero__copy > .hero__lede { order: 3; }
  .hero__copy > .hero__note { order: 4; }
  .hero__copy > .hero__stats{ order: 5; }
  .hero__copy > .hero__cta  { order: 6; }

  /* Product tiles are desktop-only; the portrait asset carries the mobile hero. */
  .hero__cta { margin-top: auto; padding-top: 14px; gap: 10px; }

  .hero__title { font-size: clamp(30px, 8.4vw, 40px); }
  .hero__lede { margin-top: 12px; font-size: 14.5px; max-width: 34ch; }
  .hero__note { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); max-width: 23ch; }

  /* Both repeat the trust strip immediately below and cost ~100px here */
  .hero__stats { display: none; }
  .hero__stage, .hero__cards { display: none; }
}

/* Keep the portrait art for true phone widths. Tablet widths retain the
   landscape hero so the asset doesn't switch before the viewport needs it. */
@media (max-width: 767px) {
  .hero { background-image: url("../assets/mobilehero2.webp"); }
}


/* ── Hero product cards ────────────────────────────────────────────── */
.hero__stage { display: contents; }
.hero__cards {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 5vw, 60px); z-index: 2;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  width: min(560px, 48%); max-width: calc(100% - 2 * var(--gutter));
}
.hero__product-card {
  min-width: 0; min-height: 66px; display: flex; flex-direction: column; justify-content: space-between;
  gap: 7px; padding: 10px 13px; color: var(--ink); text-decoration: none;
  background: rgba(255,255,255,.94); border: 1px solid var(--line);
  border-left: 3px solid var(--c-ink, var(--accent)); border-radius: var(--r-lg);
  box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.hero__product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.hero__product-card__name { font-size: 12px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.hero__product-card__purpose { display: -webkit-box; overflow: hidden; color: var(--c-ink, var(--ink-3)); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; line-height: 1.25; text-transform: uppercase; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hero__product-card__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.hero__product-card__meta { display: flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 10px; line-height: 1.2; }
.hero__product-card__go { color: var(--c-ink, var(--accent)); font-size: 14px; line-height: 1; flex: none; transition: transform .2s ease; }
.hero__product-card:hover .hero__product-card__go { transform: translateX(2px); }
.hero__product-card__purity { flex: none; color: var(--c-ink, var(--accent)); font-size: 10px; font-weight: 800; }

/* ─────────────────────────────  TRUST STRIP  ───────────────────────────── */
.strip { border-block: 1px solid var(--line); background: var(--paper); }
.strip__in { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 24px; align-items: start; padding-block: 20px; }
.strip__item { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.strip__item svg { width: 24px; height: 24px; color: var(--accent); flex: none; }

/* ─────────────────────────────  CATEGORY RAIL  ───────────────────────────── */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 12px; }
.cat {
  display: flex; flex-direction: column; gap: 6px; justify-content: flex-end;
  min-height: 128px; padding: 18px; border-radius: var(--r-lg);
  border: 1px solid var(--line); background: var(--paper);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cat:hover { border-color: var(--accent-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat__ico { width: 26px; height: 26px; color: var(--accent); margin-bottom: auto; }
.cat__name { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.cat__n { font-size: 12px; color: var(--ink-4); }

/* ─────────────────────────────  PRODUCT GRID  ───────────────────────────── */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
/* Card compaction for phones lives in MOBILE REFINEMENTS at the end of this file,
   after the base card rules it needs to override. */
.card {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s;
}
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }
.card__media {
  position: relative; aspect-ratio: 1 / 1;
  background: linear-gradient(158deg, var(--silver-a) 0%, var(--surface-2) 55%, var(--silver-b) 100%);
}
/* Absolute children so the 1:1 box wins over the artwork's own intrinsic ratio —
   generated vials are 200:262, real photography is 1:1. */
.card__media > img, .card__media > svg {
  position: absolute; inset: 12px;
  width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain;
}
.card__flag {
  /* Sits above the artwork: both are absolutely positioned, and without an explicit
     layer the later-painted image covers the badge and leaves a clipped stub. */
  position: absolute; top: 10px; left: 10px; z-index: 3;
  background: var(--ink); color: #fff; font-size: 9.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.card__body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.card__cat {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
}
.card__name { font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: -.028em; line-height: 1.2; }
.card__sub { font-size: 12px; color: var(--ink-4); line-height: 1.4; }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.card__price { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.card__price small { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-4); letter-spacing: 0; }
.card__go {
  font-size: 12.5px; font-weight: 700; color: #fff; background: var(--ink);
  padding: 9px 15px; border-radius: 999px; white-space: nowrap; transition: background .16s;
}
.card:hover .card__go { background: var(--accent); }

/* ─────────────────────────────  SHOP LAYOUT  ───────────────────────────── */
.shop { display: grid; grid-template-columns: 236px 1fr; gap: clamp(22px, 3.5vw, 44px); align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 18px); display: flex; flex-direction: column; gap: 26px; }
.filters__grp h3 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; margin-bottom: 11px; }
.filters__list { display: flex; flex-direction: column; gap: 1px; }
.fbtn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 0; background: transparent; text-align: left;
  padding: 8px 10px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background .14s, color .14s;
}
.fbtn:hover { background: var(--surface-2); color: var(--ink); }
.fbtn.is-on { background: var(--accent-3); color: var(--accent-ink); }
.fbtn span { font-size: 11.5px; color: var(--ink-4); font-weight: 600; }
.fbtn.is-on span { color: var(--accent); }
.searchbox { position: relative; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-4); }
.searchbox input {
  width: 100%; padding: 11px 12px 11px 36px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--paper); font-size: 14px;
}
.searchbox input:focus { border-color: var(--accent-2); outline: none; }
.site-search { position: fixed; inset: 0; z-index: 90; display: grid; place-items: start center; padding: min(12vh,110px) 18px 18px; background: rgba(20,25,31,.48); }
.site-search[hidden] { display: none; }
.site-search__panel { width: min(680px,100%); background:#fff; border-radius:var(--r-xl); box-shadow:0 24px 80px rgba(0,0,0,.24); overflow:hidden; }
.site-search__field { display:flex; align-items:center; gap:12px; padding:16px 18px; border-bottom:1px solid var(--line); }
.site-search__field > svg { width:20px; color:var(--ink-3); }.site-search__field input { flex:1; border:0; outline:0; font:inherit; font-size:16px; }.site-search__field button { border:0; background:none; color:var(--ink-3); }.site-search__field button svg { width:20px; }
.site-search__results { padding:12px; max-height:min(60vh,520px); overflow:auto; }.site-search__label { padding:4px 8px 10px; font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-4); }.site-search__results a { display:grid; grid-template-columns:1fr auto; gap:3px 12px; padding:12px 10px; border-radius:var(--r-sm); color:var(--ink); }.site-search__results a:hover { background:var(--surface); }.site-search__results a span { grid-column:1; font-size:13px; color:var(--ink-3); }.site-search__results a svg { grid-column:2; grid-row:1 / span 2; width:16px; align-self:center; color:var(--accent); }.site-search__empty { padding:14px 8px; color:var(--ink-3); }
.shop__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.shop__count { font-size: 13.5px; color: var(--ink-3); margin-right: auto; }
.select {
  padding: 9px 13px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--paper); font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.empty { padding: 60px 20px; text-align: center; color: var(--ink-4); grid-column: 1 / -1; }
.filters__toggle { display: none; }
@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.is-open { display: flex; }
  .filters__toggle { display: inline-flex; }
}

/* ─────────────────────────────  PDP  ───────────────────────────── */
.crumbs { font-size: 12.5px; color: var(--ink-4); padding-block: 16px; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin-inline: 7px; }

.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4.5vw, 60px); align-items: start; }
.pdp__media {
  position: sticky; top: calc(var(--nav-h) + 20px);
  border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(158deg, var(--silver-a) 0%, var(--surface-2) 55%, var(--silver-b) 100%);
  aspect-ratio: 1 / 1;
}
/* NB: .pdp__media must stay positioned (sticky or relative) at every breakpoint —
   the artwork below is absolute and needs it as its containing block. */
.pdp__media > img, .pdp__media > svg {
  position: absolute; inset: 26px;
  width: calc(100% - 52px); height: calc(100% - 52px); object-fit: contain;
}
.pdp__cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.pdp__title { font-size: clamp(30px, 4.2vw, 46px); margin-top: 8px; }
.pdp__sub { font-size: 15px; color: var(--ink-3); margin-top: 6px; }
.pdp__price { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.04em; margin-top: 18px; }
.pdp__price small { font-size: 13px; font-weight: 600; color: var(--ink-4); letter-spacing: -.01em; margin-left: 8px; }
.pdp__desc { margin-top: 14px; color: var(--ink-3); line-height: 1.65; max-width: 54ch; }

.opt { margin-top: 26px; }
.opt__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size {
  border: 1.5px solid var(--line-2); background: var(--paper); border-radius: var(--r);
  padding: 11px 17px; font-size: 14px; font-weight: 700; color: var(--ink); transition: .16s;
}
.size:hover { border-color: var(--ink-3); }
.size.is-on { border-color: var(--accent); background: var(--accent-3); color: var(--accent-ink); }
.size small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-4); }
.size.is-on small { color: var(--accent); }

.bundles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.bundle {
  position: relative; border: 1.5px solid var(--line-2); background: var(--paper);
  border-radius: var(--r); padding: 15px 8px 11px; text-align: center; transition: .16s;
}
.bundle:hover { border-color: var(--ink-3); }
.bundle.is-on { border-color: var(--accent); background: var(--accent-3); }
.bundle b { display: block; font-size: 14px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.bundle span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.bundle em {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 3px 7px; border-radius: 999px;
}
.bundle.is-on em { background: var(--accent); }
@media (max-width: 520px) { .bundles { grid-template-columns: repeat(2, 1fr); row-gap: 16px; } }

.buy { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.ship-eta {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  font-size: 13px; color: var(--ink-2);
}
.ship-eta svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.ship-eta b { color: var(--ink); }
.assures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; margin-top: 22px; }
.assure { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.assure svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

.tabs { margin-top: 34px; border-top: 1px solid var(--line); }
.tabs__nav { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.tabs__nav button {
  border: 0; background: transparent; padding: 14px 0; font-size: 13.5px; font-weight: 700;
  color: var(--ink-4); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .16s;
}
.tabs__nav button.is-on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs__panel { padding-top: 16px; font-size: 14.5px; color: var(--ink-3); line-height: 1.68; }
.tabs__panel[hidden] { display: none; }
.tabs__panel dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.tabs__panel dt { font-weight: 700; color: var(--ink); font-size: 13px; }
.tabs__panel dd { margin: 0; }
@media (max-width: 880px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp__media { position: relative; top: auto; max-width: 460px; }
}

/* Reconstitution prompt in the cart. Sits between the lines and the totals: it is
   information the researcher needs before paying, not an upsell dressed as one. */
.recon {
  margin-top: 14px; padding: 14px 16px;
  border: 1px solid var(--line); border-left: 3px solid var(--warn);
  border-radius: var(--r); background: var(--surface);
}
.recon__head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); }
.recon__head > svg { width: 16px; height: 16px; flex: none; color: var(--warn); }
.recon__body { margin-top: 7px; font-size: 12.5px; line-height: 1.58; color: var(--ink-2); }
.recon__add {
  margin-top: 11px; width: 100%; min-height: 44px; padding: 11px 14px;
  border: 1px solid var(--ink); border-radius: var(--r-sm); background: var(--ink);
  color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; transition: .16s;
}
.recon__add:hover { background: var(--accent); border-color: var(--accent); }
.recon__skip {
  display: inline-block; margin-top: 9px; font-size: 12px; font-weight: 700; color: var(--ink-3);
}
.recon__skip:hover { color: var(--accent); }

/* Ambassador application states. Pending is amber, not green: nothing has been
   granted yet, and the badge should not read like an achievement. */
.amb-done { display: flex; gap: 13px; align-items: flex-start; }
.amb-done__tick {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: #E4F5EC; color: var(--ok);
  display: grid; place-items: center;
}
.amb-done__tick svg { width: 19px; height: 19px; }
.amb-done p { font-size: 14px; line-height: 1.62; color: var(--ink-2); }
.amb-done__rows {
  display: grid; grid-template-columns: max-content 1fr; gap: 9px 20px;
  margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px;
}
.amb-done__rows dt { font-weight: 700; color: var(--ink); }
.amb-done__rows dd { margin: 0; color: var(--ink-2); word-break: break-word; }

/* Research purpose, in place of the outcome tags that used to sit here. Quiet by
   intent: it is reference text a researcher reads, not a benefit being sold. */
.card__purpose {
  margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  line-clamp: 3; overflow: hidden;
}
.pdp__purpose {
  margin-top: 14px; padding: 13px 15px;
  border: 1px solid var(--line); border-left: 3px solid var(--c-ink, var(--accent));
  border-radius: var(--r); background: var(--surface);
  font-size: 13.5px; line-height: 1.62; color: var(--ink-2);
}

/* Single concentration, stated not chosen. Reads as a spec, not a dead control. */
.conc {
  display: inline-flex; align-items: baseline; gap: 9px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); padding: 11px 16px;
  font-size: 16px; font-weight: 700; color: var(--ink); font-family: var(--mono);
}
.conc small { font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

/* ───────────────────────  RESEARCH & LITERATURE  ───────────────────────
   Per-product scientific context. Deliberately plain: this is reference
   apparatus, not a merchandising module. Nothing here should look persuasive. */

.ident { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px,100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.ident__c {
  border: 1px solid var(--line); border-radius: var(--r); padding: 13px 15px;
  background: var(--paper); min-width: 0;
}
.ident__n { font-size: 13px; font-weight: 700; color: var(--ink); }
.ident__r { display: flex; justify-content: space-between; gap: 12px; margin-top: 7px; font-size: 12.5px; }
.ident__r span:first-child { color: var(--ink-3); }
.ident__r span:last-child { font-family: var(--mono); color: var(--ink); text-align: right; word-break: break-all; }
.ident__l { display: inline-block; margin-top: 9px; font-size: 12px; font-weight: 700; color: var(--accent); }

.lit { display: grid; gap: 10px; }
.lit-card {
  display: block; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--paper); padding: 15px 17px; transition: .16s; min-width: 0;
}
.lit-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.lit-card__t { font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.45; }
.lit-card__m {
  margin-top: 7px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center;
}
.lit-card__m b { color: var(--ink); font-weight: 700; }
.lit-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 9px; font-size: 12px; font-weight: 700; }
.lit-links a { color: var(--accent); }

.ruo {
  border: 1px solid var(--line); border-left: 3px solid var(--ink);
  border-radius: var(--r); background: var(--surface); padding: 17px 19px; margin-top: 20px;
}
.ruo h3 {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); font-weight: 700; margin-bottom: 9px;
}
.ruo p { font-size: 13px; color: var(--ink-2); line-height: 1.65; }
.ruo p + p { margin-top: 9px; }
.note-flag {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 15px; font-size: 13px; color: var(--ink-2); line-height: 1.6;
  background: var(--paper); margin-bottom: 16px;
}
.note-flag b { color: var(--ink); }

/* ─────────────────────────────  COA  ───────────────────────────── */
.coa-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.coa-card__head {
  background: var(--ink); color: #fff; padding: 15px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.coa-card__head > svg { width: 22px; height: 22px; flex: none; color: #7E8A96; }
.coa-card__head h3 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #fff; font-weight: 700; }
.coa-card__head p { font-family: var(--mono); font-size: 12px; color: #A9B4BF; margin-top: 3px; }
.coa-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.coa-row { padding: 15px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.coa-row:last-child { border-right: 0; }
.coa-row dt { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); font-weight: 700; }
.coa-row dd { margin: 5px 0 0; font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; font-family: var(--mono); }
.coa-card__foot { padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.coa-card__file { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.coa-card__file svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.coa-card__file b { display: block; color: var(--ink); font-family: var(--mono); font-size: 12.5px; }
.coa-card__file span { color: var(--ink-4); font-size: 11.5px; }

.lot-list { display: grid; gap: 10px; }
.lot {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: var(--r); padding: 13px 16px; background: var(--paper);
}
.lot__size { font-size: 13px; font-weight: 800; color: var(--ink); min-width: 62px; }
.lot__id { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.lot__purity { font-size: 12.5px; font-weight: 700; color: var(--ok); }
.lot__cta { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.lot__cta:hover { text-decoration: underline; }

.notice {
  display: flex; gap: 11px; align-items: flex-start;
  border: 1px solid #F2D9A8; background: #FEF8EC; border-radius: var(--r);
  padding: 13px 15px; font-size: 12.5px; line-height: 1.55; color: #7A5312;
}
.notice svg { width: 17px; height: 17px; color: var(--warn); flex: none; margin-top: 1px; }
.notice b { color: #6A4710; }

/* ─────────────────────────────  FEATURE GRID  ───────────────────────────── */
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.feat {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 9px;
}
.section--ink .feat { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
.feat__ico {
  width: 38px; height: 38px; border-radius: var(--r); background: var(--accent-3);
  display: grid; place-items: center; color: var(--accent); margin-bottom: 4px;
}
.feat__ico svg { width: 20px; height: 20px; }
.section--ink .feat__ico { background: rgba(27,135,168,.2); color: var(--accent-2); }
.feat h3 { font-size: 16px; letter-spacing: -.025em; }
.feat p { font-size: 13.5px; color: var(--ink-3); line-height: 1.6; }
.section--ink .feat p { color: #97A3AE; }

/* ─────────────────────────────  SPLIT  ───────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* Quality-page solvent guide. The list is generated from `solventFor`, the same
   catalog rule used by the product pages and cart, so pairings cannot drift. */
.solvent-guide { display: grid; gap: 14px; margin-top: 22px; }
.solvent-guide__item { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.solvent-guide__item h3 { margin: 0 0 5px; font-size: 16px; }
.solvent-guide__item p { margin: 0; font-size: 13px; line-height: 1.5; }
.solvent-guide__names { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.solvent-guide__names a {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px;
  color: var(--accent-ink); background: var(--surface); font-size: 11.5px; font-weight: 700;
  line-height: 1.25; transition: border-color .16s, background .16s;
}
.solvent-guide__names a:hover { border-color: var(--accent); background: var(--accent-3); }
.contact-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ─────────────────────────────  FAQ  ───────────────────────────── */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 19px 40px 19px 0; position: relative;
  font-size: 16px; font-weight: 700; color: var(--ink); letter-spacing: -.025em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding: 0 20px 20px 0; font-size: 14.5px; color: var(--ink-3); line-height: 1.66; max-width: 74ch; }

/* ─────────────────────────────  FORMS  ───────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--paper); font-size: 14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-2); outline: none; }

/* Ambassador application textarea. Declared AFTER .field textarea — same
   specificity (0,2,0), so source order decides, and 14.5px there would otherwise
   win and make iOS Safari zoom on focus. 16px is the floor for any input. */
.amb-signup textarea {
  width: 100%; min-height: 74px; padding: 11px 13px; font-family: inherit; font-size: 16px;
  line-height: 1.5; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); color: #fff; resize: vertical;
}
.amb-signup textarea::placeholder { color: #6E7C88; }
.amb-signup textarea:focus { border-color: var(--accent-2); outline: 2px solid var(--accent-2); outline-offset: 1px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────  FOOTER  ───────────────────────────── */
.foot { background: var(--ink); color: #97A3AE; padding-block: clamp(44px, 6vw, 72px) 0; }
.foot__top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.foot h2 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #fff; font-weight: 700; margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { font-size: 13.5px; color: #97A3AE; transition: color .16s; }
.foot a:hover { color: #fff; }
.foot__blurb { font-size: 13.5px; line-height: 1.65; margin-top: 16px; max-width: 42ch; }
.foot__legal {
  margin-top: 44px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.10);
  font-size: 11.5px; line-height: 1.65; color: #7E8A96;
}
.foot__legal p + p { margin-top: 10px; }
.foot__bar { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-bottom: 26px; font-size: 12px; color: #7E8A96; }
@media (max-width: 780px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  /* Footer links are the densest tap zone on the page — give them real height */
  .foot ul { gap: 0; }
  .foot li a { display: flex; align-items: center; min-height: 40px; }
  .foot__legal { font-size: 11px; }
}
@media (max-width: 480px) { .foot__top { grid-template-columns: 1fr; gap: 26px; } }

/* ─────────────────────────────  CART DRAWER  ───────────────────────────── */
.scrim {
  position: fixed; inset: 0; background: rgba(16,20,25,.42); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .22s; z-index: 90;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100vw);
  background: var(--paper); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .26s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 16px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.drawer__foot { border-top: 1px solid var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.drawer.is-checking-out .drawer__body { display: none; }
.drawer.is-checking-out .drawer__foot { flex: 1; min-height: 0; overflow-y: auto; border-top: 0; }
.drawer__total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 800; color: var(--ink); }
.litem { display: flex; gap: 12px; align-items: center; }
.litem__thumb {
  width: 56px; height: 56px; border-radius: var(--r-sm); flex: none; position: relative;
  background: linear-gradient(158deg, var(--silver-a), var(--silver-b)); overflow: hidden;
}
.litem__thumb > img, .litem__thumb > svg {
  position: absolute; inset: 5px;
  width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain;
}
.litem__meta { flex: 1; min-width: 0; }
.litem__meta b { display: block; font-size: 13.5px; color: var(--ink); letter-spacing: -.02em; }
.litem__meta span { font-size: 11.5px; color: var(--ink-4); }
.litem__price { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.litem__x { border: 0; background: transparent; color: var(--ink-4); font-size: 17px; line-height: 1; padding: 4px; }
.litem__x:hover { color: var(--ink); }
.free-bar { background: var(--surface); border-radius: var(--r); padding: 11px 13px; font-size: 12px; color: var(--ink-3); }
.free-bar__track { height: 5px; background: var(--surface-2); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.free-bar__fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .3s; }

/* ─────────────────────────────  MISC  ───────────────────────────── */

/* ═══════════════════════  CATEGORY COLOUR  ═══════════════════════
   Cards and rails inherit --c-ink/--c-tint from inline style attributes set in
   js/taxonomy.js. Every ink value clears WCAG AA on white and on its tint.
   The parallel --u-ink/--u-tint "research-use family" scale was removed with the
   outcome tags it coloured — category is now the only grouping the site shows. */

/* Product card — category identity as a top edge + tinted media wash */
.card { position: relative; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: var(--c-ink, var(--accent)); opacity: 0; transition: opacity .18s;
}
.card:hover::before, .card:focus-within::before { opacity: 1; }
.card__media {
  /* Category identity now carries the grouping on its own — the outcome chips that
     used to do it were removed. Tints are pale by design, so this reads as a family
     signal without turning the grid into a colour chart. */
  background:
    linear-gradient(158deg, var(--c-tint, #EEF2F4) 0%,
                            color-mix(in srgb, var(--c-tint, #EEF2F4) 55%, #fff) 52%,
                            color-mix(in srgb, var(--c-tint, #EEF2F4) 62%, var(--silver-b)) 100%);
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--c-ink, #4A5A68) 14%, transparent);
}
.card__cat { color: var(--c-ink, var(--accent)); }
.card:hover .card__go { background: var(--c-ink, var(--accent)); }

/* Category rail */
.cat__ico { color: var(--c-ink, var(--accent)); }
.cat__badge {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--c-tint, transparent); opacity: .5; transition: opacity .18s;
}
.cat { position: relative; overflow: hidden; }
.cat > * { position: relative; z-index: 1; }
.cat:hover { border-color: var(--c-ink, var(--accent)); }
.cat:hover .cat__badge { opacity: .9; }

/* Filter list — a colour key beside each category */
.fbtn { position: relative; }
.fbtn__dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--c-ink, var(--ink-4)); margin-right: 9px;
}
.fbtn__label { display: flex; align-items: center; flex: 1; }
.fbtn.is-on { background: var(--c-tint, var(--accent-3)); color: var(--c-ink, var(--accent-ink)); }
.fbtn.is-on span { color: var(--c-ink, var(--accent)); }

/* PDP */
.pdp__cat { color: var(--c-ink, var(--accent)); }
.pdp__catbar {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-tint); color: var(--c-ink);
  padding: 6px 13px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.pdp__catbar svg { width: 14px; height: 14px; }

/* Research-focus filter chips take their family colour */
.pdp__catbar { margin-bottom: 12px; }

/* Legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend__item {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px;
}
.legend__swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }
/* The legend doubles as a category filter, so it needs a real target and a hover
   state — 44px min-height keeps the tap target honest on a phone. */
.legend__item { cursor: pointer; min-height: 34px; transition: .16s; }
.legend__item:hover { border-color: var(--ink-3); background: var(--surface); }
@media (max-width: 640px) { .legend__item { min-height: 44px; } }


/* About hero — full-width background band. The shot is a vial in water on pale
   stones: bright, low-contrast, and legible under a left-weighted white scrim. */
.abhero {
  position: relative; overflow: hidden;
  background: #EFF2F3 url("../assets/about-water.jpg") no-repeat center 42%;
  background-size: cover;
}
.abhero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.95) 0%, rgba(255,255,255,.88) 34%,
      rgba(255,255,255,.58) 52%, rgba(255,255,255,.18) 72%, transparent 88%),
    linear-gradient(180deg, rgba(255,255,255,.42) 0%, transparent 26%),
    linear-gradient(180deg, transparent 84%, var(--paper) 100%);
}
.abhero__in {
  position: relative; z-index: 1;
  min-height: clamp(400px, 46vw, 580px);
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(48px, 7vw, 96px);
}
.abhero__lede  { margin-top: 18px; max-width: 46ch; }
.abhero__cta   { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* About: keep every section on the global page grid, while alternating the
   editorial column to create a deliberate left / right / left rhythm. */
.about-position__content { max-width: 720px; }
.about-position__content--right { margin-left: auto; }
.about-position__content .h2 { margin-bottom: 18px; }
.about-supply { position: relative; overflow: hidden; }
.about-supply::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: url('../assets/bkgrnd2.webp') center / cover no-repeat;
  opacity: .25;
}
.about-supply .wrap { position: relative; z-index: 1; }
.about-position__content p + p { margin-top: 18px; }

@media (max-width: 760px) {
  /* Portrait-ish viewports: the subject sits right of centre, so shift the crop
     and flip the scrim vertical to keep the copy on clean ground. */
  .abhero { background-position: 68% center; }
  .abhero::after {
    background:
      linear-gradient(180deg,
        rgba(255,255,255,.95) 0%, rgba(255,255,255,.90) 46%,
        rgba(255,255,255,.66) 66%, rgba(255,255,255,.34) 100%),
      linear-gradient(180deg, transparent 86%, var(--paper) 100%);
  }
  .abhero__in { min-height: clamp(320px, 62vw, 440px); padding-block: clamp(34px, 8vw, 56px); }
  .abhero__lede { max-width: 100%; }
  .abhero__cta { flex-direction: column; align-items: stretch; }
  .abhero__cta .btn { width: 100%; padding-block: 14px; }
  .about-position__content--right { margin-left: 0; }
}


/* Stack card thumbnails — four component vials across the media panel.
   Each thumb is its own square box so a narrow card can never squash them.
   The panel sizes to the row rather than holding a fixed ratio, so there's no
   dead space under the thumbs at narrow widths. */
.card__media--stack { aspect-ratio: auto; padding: clamp(14px, 3vw, 22px); }
.card__stack {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px; align-items: center;
}
.card__stack > span { position: relative; aspect-ratio: 1 / 1; }
.card__stack img, .card__stack svg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
@media (max-width: 640px) { .card__stack { gap: 3px; } .card__media--stack { padding: 14px; } }

/* ── Direct COA access ──────────────────────────────────────────────
   A certificate is the strongest trust signal on this site, so it gets a
   first-class control wherever a product appears — never a lookup step. */
.coa-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-3); color: var(--accent-ink);
  border: 1px solid transparent; border-radius: 999px;
  padding: 8px 15px; font-size: 12.5px; font-weight: 700;
  transition: background .16s, border-color .16s, color .16s;
}
.coa-btn:hover { background: var(--accent); color: #fff; }
.coa-btn svg { width: 15px; height: 15px; flex: none; }
.coa-btn__lot {
  font-family: var(--mono); font-size: 11px; font-weight: 600; opacity: .72;
  padding-left: 8px; margin-left: 2px; border-left: 1px solid currentColor;
}
.coa-btn--none {
  background: var(--surface-2); color: var(--ink-4); font-weight: 600; cursor: default;
}
.coa-btn--none:hover { background: var(--surface-2); color: var(--ink-4); }

.coa-extra {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  padding: 13px 20px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.coa-extra span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.coa-extra svg { width: 14px; height: 14px; color: var(--ok); flex: none; }

.pdp__coaquick { margin-top: 20px; }

.card__coa {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  font-size: 11px; font-weight: 700; color: var(--accent);
}
.card__coa svg { width: 13px; height: 13px; flex: none; }

/* ═════════════════════ RESEARCH ACCESS GATE ═════════════════════
   This acknowledgement intentionally has no dismiss action: access requires
   the age and research-purpose confirmation. */
.research-gate-open { overflow: hidden; }
.research-gate {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: clamp(16px, 4vw, 36px);
}
.research-gate__scrim { position: absolute; inset: 0; background: rgba(16,20,25,.64); backdrop-filter: blur(4px); }
.research-gate__box {
  position: relative; width: min(530px, 100%); max-height: 100%; overflow: auto;
  padding: clamp(28px, 5vw, 46px); border-radius: var(--r-xl); background: var(--paper);
  box-shadow: var(--shadow-lg); text-align: center;
}
.research-gate__brand { width: auto; height: 44px; margin: 0 auto 28px; }
.research-gate__eyebrow { display: block; color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.research-gate__box h1 { margin-top: 10px; font-size: clamp(30px, 5vw, 42px); }
.research-gate__box > p:not(.research-gate__fine) { margin: 16px auto 0; max-width: 47ch; color: var(--ink-3); font-size: 14.5px; line-height: 1.65; }
.research-gate__box form { display: grid; gap: 18px; margin-top: 24px; text-align: left; }
.research-gate__check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink-2); font-size: 13.5px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.research-gate__check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
.research-gate__box button:disabled { cursor: not-allowed; opacity: .46; transform: none; }
.research-gate__fine { margin: 16px auto 0; max-width: 48ch; color: var(--ink-4); font-size: 11.5px; line-height: 1.55; }

/* ═══════════════════  WELCOME OFFER MODAL  ═══════════════════
   First-session only, once per visitor. Two panels: email capture on the left,
   the most-ordered stack on the right so the code arrives with something
   specific to spend it on. Phone layout lives in MOBILE REFINEMENTS below. */
.promo[hidden] { display: none; }
.promo {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  padding: clamp(12px, 3vw, 28px);
}
.promo__scrim {
  position: absolute; inset: 0;
  background: rgba(16, 20, 25, .55); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .26s;
}
.promo.is-open .promo__scrim { opacity: 1; }
.promo__box {
  position: relative; z-index: 1;
  width: min(880px, 100%); max-height: 100%; overflow: auto;
  background: var(--paper); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.06fr .94fr;
  opacity: 0; transform: translateY(16px) scale(.985);
  transition: opacity .26s, transform .26s cubic-bezier(.4, 0, .2, 1);
}
.promo.is-open .promo__box { opacity: 1; transform: none; }
.promo__x {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.72); color: var(--ink-2);
  transition: background .16s, color .16s;
}
.promo__x:hover { background: var(--paper); color: var(--ink); }
.promo__x svg { width: 16px; height: 16px; }

/* ── Offer side ── */
.promo__offer { padding: clamp(26px, 3.4vw, 40px); display: flex; flex-direction: column; }
.promo__eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-4);
}
.promo__eyebrow--accent { color: var(--accent); }
.promo__title {
  margin-top: 12px; font-size: clamp(28px, 3.8vw, 40px);
  letter-spacing: -.04em; line-height: 1.02; color: var(--ink);
}
.promo__lede { margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--ink-3); }
.promo__form { display: grid; gap: 10px; margin-top: 22px; }
.promo__form input {
  /* 16px, not smaller — anything under it makes iOS Safari zoom on focus. */
  width: 100%; padding: 14px 16px; font-size: 16px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper);
}
.promo__form input:focus { border-color: var(--accent-2); outline: none; }
.promo__form input[aria-invalid="true"] { border-color: #B4402E; }
.promo__err { font-size: 12.5px; color: #B4402E; }
.promo__fine { margin-top: 14px; font-size: 11.5px; line-height: 1.55; color: var(--ink-4); }
.promo__skip {
  margin-top: auto; padding-top: 16px; align-self: flex-start;
  border: 0; background: none; font-size: 13px; font-weight: 600;
  color: var(--ink-4); text-decoration: underline; text-underline-offset: 3px;
}
.promo__skip:hover { color: var(--ink-2); }
.promo__sronly {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── Success state ── */
.promo__tick { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-3); color: var(--ok); margin-bottom: 16px; }
.promo__tick svg { width: 24px; height: 24px; }
.promo__code {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding: 13px 14px 13px 18px;
  border: 2px dashed var(--accent-2); border-radius: var(--r); background: var(--accent-3);
}
.promo__code b { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: .09em; color: var(--accent-ink); }
.promo__copy {
  flex: none; border: 0; border-radius: var(--r-sm); padding: 9px 16px;
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700;
}
.promo__copy:hover { background: var(--accent-ink); }
.promo__done-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 22px; }
/* Two-line CTA: the price leads, the saving justifies it. */
.promo__buy { flex-direction: column; align-items: center; gap: 2px; padding: 11px 20px; line-height: 1.25; }
.promo__buy small { font-size: 11px; font-weight: 600; opacity: .74; }

/* ── Stack side ── */
.promo__stack {
  background: var(--c-tint, var(--surface));
  padding: clamp(22px, 3vw, 32px);
  display: flex; flex-direction: column; gap: 16px;
}
.promo__vials { gap: 6px; }
.promo__stackmeta b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.promo__stackmeta > span { display: block; font-size: 12.5px; color: var(--c-ink, var(--ink-3)); font-weight: 700; margin-top: 3px; }
.promo__parts { font-weight: 500 !important; color: var(--ink-3) !important; font-size: 11.5px !important; line-height: 1.5; margin-top: 8px !important; }
.promo__econ { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; }
.promo__econ-price { font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.promo__econ-price small { font-size: 13px; font-weight: 600; color: var(--ink-4); text-decoration: line-through; margin-left: 8px; }
.promo__econ-save {
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: var(--c-ink, var(--accent)); border-radius: 999px; padding: 4px 10px;
}
.promo__stack-cta { display: grid; gap: 12px; margin-top: 2px; }
.promo__stackbuy { justify-content: center; min-height: 50px; font-size: 14px; }
.promo__stacklink {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--c-ink, var(--accent));
}
.promo__stacklink svg { width: 15px; height: 15px; transition: transform .18s; }
.promo__stacklink:hover svg { transform: translateX(3px); }


/* ═══════════════════  REWARDS: EARN LINE + CART CODE  ═══════════════════
   Shared surfaces. Every figure is computed in js/loyalty.js so the number
   quoted on a product page can never disagree with the one in the cart. */
.earn-line {
  display: flex; align-items: center; gap: 9px; margin-top: 12px;
  padding: 10px 13px; border-radius: var(--r);
  background: var(--accent-3); color: var(--accent-ink);
}
.earn-line svg { width: 17px; height: 17px; flex: none; }
.earn-line b { font-weight: 800; font-size: 13.5px; }
.earn-line small { display: block; font-size: 11.5px; opacity: .8; font-weight: 600; }
.earn-line > span { font-size: 13.5px; }
.earn-line--cart { margin-top: 0; }

.cart-code__form { display: flex; gap: 8px; }
.cart-code__form input {
  flex: 1; min-width: 0; padding: 11px 13px; font-size: 16px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper);
}
.cart-code__form input:focus { border-color: var(--accent-2); outline: none; }
.cart-code__form button {
  flex: none; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; padding: 0 16px;
}
.cart-code__form button:hover { border-color: var(--ink); }
.cart-code__err { margin-top: 6px; font-size: 12px; color: #B4402E; }
.cart-code__on {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: var(--r);
  background: var(--accent-3); color: var(--accent-ink); font-size: 13px;
}
.cart-code__on svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.cart-code__on span { flex: 1; min-width: 0; }
.cart-code__on button {
  flex: none; border: 0; background: none; color: var(--accent-ink);
  font-size: 18px; line-height: 1; padding: 4px 6px; opacity: .6;
}
.cart-code__on button:hover { opacity: 1; }
.cart-checkout { display:grid; gap:9px; }
.cart-checkout input {
  width:100%; border:1px solid var(--line-2); border-radius:var(--r); background:var(--paper);
  color:var(--ink); padding:11px 13px; font-size:16px;
}
.cart-checkout input:focus { border-color:var(--accent-2); outline:none; }
.cart-checkout__status { margin:0; color:#B4402E; font-size:12px; line-height:1.4; }
.cart-checkout__hint { margin:0; text-align:center; color:var(--ink-4); font-size:11.5px; }
.cart-checkout__back {
  width:max-content; padding:0; border:0; background:none; color:var(--accent);
  font:700 12px/1 var(--sans); cursor:pointer;
}
.cart-checkout__back:hover { color:var(--ink); }
.cart-checkout button:disabled { cursor:wait; opacity:.72; }
.cart-sums { display: grid; gap: 7px; }
.drawer__row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-3); }
.drawer__row--off { color: var(--accent); font-weight: 700; }

/* ────────────────────────── DEDICATED CHECKOUT ────────────────────────── */
.checkout-page { background: var(--surface); }
.checkout-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.checkout-head__in { max-width: 1180px; margin: auto; padding: 18px var(--gutter); display:flex; align-items:center; justify-content:space-between; gap:20px; }
.checkout-head__back { color:var(--ink-3); font-size:13px; font-weight:700; }
.checkout-head__back:hover { color:var(--accent); }
.checkout-shell { max-width:1180px; margin:auto; padding:clamp(36px,6vw,72px) var(--gutter); }
.checkout-intro { margin-bottom:32px; }
.checkout-intro .eyebrow { margin-bottom:8px; }
.checkout-intro h1 { font-family:var(--serif); font-size:clamp(34px,4.4vw,52px); font-weight:500; letter-spacing:-.04em; }
.checkout-intro p { margin-top:9px; color:var(--ink-3); }
.checkout-grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.8fr); align-items:start; gap:28px; }
.checkout-form, .checkout-order, .checkout-empty { background:var(--paper); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--shadow-sm); padding:clamp(22px,3.2vw,34px); }
.checkout-form h2, .checkout-order h2 { font-size:22px; }
.checkout-form__intro { margin:10px 0 22px; font-size:13.5px; color:var(--ink-3); }
.checkout-form__intro a, .checkout-check a { color:var(--accent); font-weight:700; text-decoration:underline; text-underline-offset:2px; }
.checkout-form form { display:grid; gap:13px; }
.checkout-promo { padding:14px; border:1px solid var(--line-2); border-radius:var(--r); background:var(--surface); }
.checkout-promo > label { display:block; margin-bottom:7px; color:var(--ink-2); font-size:12px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
.checkout-promo > div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.checkout-promo input { min-width:0; flex:1; }
.checkout-promo button { flex:none; min-height:48px; padding:0 17px; border:1px solid var(--line-2); border-radius:var(--r-sm); background:var(--paper); color:var(--ink); font-size:13px; font-weight:800; }
.checkout-promo button:hover { border-color:var(--ink); }
.checkout-promo p { margin:7px 0 0; color:#B4402E; font-size:12px; font-weight:600; }
.checkout-promo--active { background:var(--accent-3); border-color:#C9E1E8; }
.checkout-promo--active b, .checkout-promo--active span { display:block; }
.checkout-promo--active b { color:var(--accent-ink); font-size:13px; }
.checkout-promo--active span { margin-top:2px; color:var(--accent-ink); font-size:12px; }
.checkout-promo--active button { color:var(--accent-ink); background:transparent; }
.checkout-form label { display:grid; gap:6px; color:var(--ink-2); font-size:12px; font-weight:800; letter-spacing:.03em; text-transform:uppercase; }
.checkout-form label em { font-size:10px; color:var(--ink-4); font-style:normal; }
.checkout-form input { width:100%; min-height:48px; padding:11px 13px; color:var(--ink); border:1px solid var(--line-2); border-radius:var(--r-sm); background:var(--paper); font-size:16px; font-weight:500; letter-spacing:0; text-transform:none; }
.checkout-form input:focus { outline:none; border-color:var(--accent-2); }
.checkout-fields { display:grid; grid-template-columns:1fr 1fr; gap:13px; }
.checkout-check { display:flex !important; align-items:flex-start; grid-template-columns:none !important; gap:9px !important; margin-top:3px; color:var(--ink-3) !important; font-size:12px !important; font-weight:600 !important; line-height:1.5; letter-spacing:0 !important; text-transform:none !important; cursor:pointer; }
.checkout-check input { width:16px; min-height:16px; height:16px; margin:1px 0 0; flex:none; accent-color:var(--accent); }
.checkout-payment { padding:16px; margin-top:7px; background:var(--accent-3); border:1px solid #C9E1E8; border-radius:var(--r); }
.checkout-payment h3 { font-size:15px; }
.checkout-payment p { margin-top:6px; color:var(--accent-ink); font-size:13px; line-height:1.5; }
.checkout-payment span { display:block; margin-top:8px; color:var(--accent-ink); font-size:11px; line-height:1.45; }
.moonpay-widget { margin-top:14px; overflow:hidden; min-height:560px; border:1px solid var(--line); border-radius:var(--r); background:#fff; }
.moonpay-widget iframe { display:block; width:100%; min-height:560px; height:680px; border:0; background:#fff; }
.checkout-payment__status { margin-top:10px; color:var(--accent-ink); font-size:11px; line-height:1.45; }
.checkout-error { margin:0; color:#B4402E; font-size:13px; font-weight:600; }
.checkout-order { position:sticky; top:24px; }
.checkout-order__lines { display:grid; gap:16px; margin:20px 0; }
.checkout-line { display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:11px; align-items:center; }
.checkout-line__art { width:44px; height:44px; padding:3px; background:var(--surface); border-radius:var(--r-sm); overflow:hidden; }
.checkout-line__art img { width:100%; height:100%; object-fit:contain; }
.checkout-line b, .checkout-line span { display:block; }
.checkout-line b { color:var(--ink); font-size:13px; line-height:1.25; }
.checkout-line span { margin-top:3px; color:var(--ink-4); font-size:11px; line-height:1.3; }
.checkout-line strong { color:var(--ink); font-size:13px; }
.checkout-order__sum { display:grid; grid-template-columns:1fr auto; gap:8px 16px; padding-top:16px; border-top:1px solid var(--line); font-size:13px; color:var(--ink-3); }
.checkout-order__sum b { padding-top:10px; margin-top:2px; border-top:1px solid var(--line); color:var(--ink); font-size:16px; }
.checkout-order__note { margin-top:16px; color:var(--ink-4); font-size:11px; line-height:1.5; }
.checkout-empty { text-align:center; }
@media (max-width: 760px) { .checkout-grid { grid-template-columns:1fr; } .checkout-order { position:static; } .checkout-head__back { font-size:12px; } }
@media (max-width: 420px) { .checkout-fields { grid-template-columns:1fr; } }

/* ═══════════════════  REWARDS PAGE  ═══════════════════ */
.rw-hero-card {
  background: var(--ink); color: #C3CBD3; border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px); display: flex; flex-direction: column; gap: 4px;
}
.rw-hero-card__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #5FC2E0;
}
.rw-hero-card__label svg { width: 16px; height: 16px; }
.rw-hero-card__pts { margin-top: 14px; font-size: 15px; color: #8B98A4; }
.rw-hero-card__pts b { display: block; font-size: clamp(40px, 5vw, 56px); font-weight: 800; letter-spacing: -.045em; color: #fff; line-height: 1; }
.rw-hero-card__val { font-size: 13.5px; color: #8B98A4; margin-top: 8px; }
.rw-hero-card__val b { color: #5FC2E0; font-weight: 800; }
.rw-hero-card__rows { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid rgba(255,255,255,.11); }
.rw-hero-card__rows > div {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.11); font-size: 13.5px;
}
.rw-hero-card__rows span:last-child { font-weight: 800; color: #fff; font-family: var(--mono); font-size: 13px; }
.rw-hero-card__note { margin-top: 16px; font-size: 11.5px; line-height: 1.5; color: #8B98A4; }

.rw-table { display: grid; border-top: 1px solid var(--line); }
.rw-row {
  display: grid; grid-template-columns: 1fr 1.1fr 1.5fr; gap: 20px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.rw-row__what { font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -.025em; }
.rw-row__earn { font-size: 14.5px; font-weight: 700; color: var(--accent); }
.rw-row__eg { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.rw-foot { margin-top: 20px; font-size: 12.5px; color: var(--ink-3); max-width: 76ch; line-height: 1.6; }

.rw-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.rw-tier {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px 20px; display: flex; flex-direction: column; gap: 6px;
}
.rw-tier.is-pop { border-color: var(--accent); box-shadow: var(--shadow); }
.rw-tier__flag {
  position: absolute; top: -9px; left: 20px;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 11px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.rw-tier__pts { font-size: 26px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1; }
.rw-tier__pts small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }
.rw-tier__val { font-size: 21px; font-weight: 800; color: var(--accent); letter-spacing: -.03em; margin-top: 8px; }
.rw-tier__how { font-size: 12.5px; color: var(--ink-3); }

.rw-example { background: var(--surface); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 30px); }
.rw-example__h { font-size: 18px; letter-spacing: -.03em; }
.rw-example__rows { margin-top: 16px; border-top: 1px solid var(--line-2); }
.rw-ex {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--line-2); font-size: 14px; color: var(--ink-2);
}
.rw-ex span:last-child { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rw-ex--off, .rw-ex--off span:last-child { color: var(--accent); font-weight: 700; }
.rw-ex--tot { border-bottom: 0; padding-top: 15px; font-size: 15px; font-weight: 800; color: var(--ink); }
.rw-ex--tot span:last-child { font-size: 21px; letter-spacing: -.03em; }
.rw-example__split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.rw-ex-side {
  background: var(--paper); border-radius: var(--r); padding: 15px 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.rw-ex-side__who {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.rw-ex-side__who svg { width: 14px; height: 14px; flex: none; }
.rw-ex-side b { font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin-top: 4px; }
.rw-ex-side > span:last-child { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.rw-ex-side--ref b { color: var(--accent); }
.rw-example__note { margin-top: 16px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); }

.rw-refer { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.section--ink .rw-refer .feat h3 { color: #fff; }

.rw-code {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 3vw, 40px);
  margin-top: 34px; padding: clamp(22px, 3vw, 32px);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-xl);
}
.rw-code__box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px;
  background: rgba(0,0,0,.28); border: 2px dashed var(--accent-2); border-radius: var(--r); padding: 12px 12px 12px 18px;
}
.rw-code__box b { font-family: var(--mono); font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; letter-spacing: .08em; color: #fff; }
.rw-code__copy {
  flex: none; border: 0; border-radius: var(--r-sm); padding: 10px 18px; min-height: 40px;
  background: #fff; color: var(--accent-ink); font-size: 12.5px; font-weight: 800;
}
.rw-code__copy:hover { background: #5FC2E0; }
.rw-code__note { margin-top: 12px; font-size: 11.5px; line-height: 1.55; color: #8B98A4; }
.rw-code__r { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; justify-content: center; }
.rw-code__r p { font-size: 13.5px; color: #A8B4BF; }
.rw-code__link {
  display: block; width: 100%; font-family: var(--mono); font-size: 12.5px; color: #5FC2E0;
  background: rgba(0,0,0,.28); border-radius: var(--r-sm); padding: 11px 13px;
  overflow-x: auto; white-space: nowrap;
}

.rw-calc { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(22px, 3vw, 40px); align-items: center; }
.rw-calc__in { display: grid; gap: 26px; }
.rw-calc__f { display: grid; gap: 12px; }
.rw-calc__f > span { font-size: 13.5px; font-weight: 600; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; }
.rw-calc__f b { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
/* The input box IS the pointer target, so it gets a full 44px of height and the
   track is drawn thin inside it. Styling height on the element itself would
   leave a 5px-tall thing to hit on a phone. */
.rw-calc__f input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; background: transparent; cursor: pointer;
}
.rw-calc__f input[type="range"]::-webkit-slider-runnable-track {
  height: 5px; border-radius: 999px; background: var(--surface-2);
}
.rw-calc__f input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: var(--shadow-sm);
  margin-top: -10.5px;   /* centre a 26px thumb on a 5px track */
}
.rw-calc__f input[type="range"]::-moz-range-track {
  height: 5px; border-radius: 999px; background: var(--surface-2);
}
.rw-calc__f input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; cursor: pointer;
}
.rw-calc__out { background: var(--surface); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 32px); }
.rw-calc__big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rw-calc__big b { font-size: clamp(34px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.045em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.rw-calc__big span { font-size: 13.5px; color: var(--ink-3); }
.rw-calc__big--val { margin-top: 10px; }
.rw-calc__big--val b { color: var(--accent); font-size: clamp(26px, 3.4vw, 34px); }
.rw-calc__rows { margin-top: 22px; border-top: 1px solid var(--line-2); }
.rw-calc__rows > div {
  display: flex; justify-content: space-between; gap: 16px; padding: 11px 0;
  border-bottom: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2);
}
.rw-calc__rows span:last-child { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }


/* ═══════════════════  ACCOUNT  ═══════════════════ */
.acct-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow);
}
.acct-opt { font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-3); font-size: 11px; }
.acct-hint { margin-top: 6px; font-size: 11.5px; color: var(--ink-3); }
.acct-err { margin-top: 14px; font-size: 13px; color: #B4402E; font-weight: 600; }
.acct-fine { margin-top: 16px; font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }
/* 16px, or iOS Safari zooms the page on focus. */
.acct-form input { font-size: 16px; }

.acct-head { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: start; }
.acct-sub { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.acct-referral-quick { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; max-width: 100%; background: var(--accent-3); border-radius: 999px; padding: 5px 6px 5px 13px; }
.acct-referral-quick > span { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.acct-referral-quick b { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--accent-ink); white-space: nowrap; }
.acct-referral-quick button { border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 800; padding: 8px 14px; min-height: 36px; }
.acct-referral-quick button:hover { background: var(--accent-ink); }
.acct-badge {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.acct-badge svg { width: 14px; height: 14px; color: #5FC2E0; }
/* Status modifiers must follow .acct-badge — same specificity (0,1,0), so source
   order is what decides. Pending is amber, not the badge's default success dark:
   nothing has been granted yet and it should not read like an achievement. */
.acct-badge--pending {
  background: #FEF3E2; color: #8A5A0B; border: 1px solid #F0DCBA;
}
.acct-badge--pending svg { color: #8A5A0B; }
.acct-badge--declined {
  background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line);
}
.acct-badge--declined svg { color: var(--ink-3); }
.acct-bal {
  min-width: min(280px, 100%); background: var(--surface); border-radius: var(--r-xl);
  padding: 22px 24px; display: flex; flex-direction: column;
}
.acct-bal__label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.acct-bal__label svg { width: 15px; height: 15px; color: var(--accent); }
.acct-bal > b { font-size: clamp(34px, 4vw, 44px); font-weight: 800; letter-spacing: -.045em; color: var(--ink); line-height: 1.05; margin-top: 8px; }
.acct-bal__val { font-size: 13px; color: var(--ink-3); }
.acct-bal__val b { color: var(--accent); font-weight: 800; }
.acct-bal__bar { height: 5px; border-radius: 999px; background: var(--surface-2); margin-top: 14px; overflow: hidden; }
.acct-bal__bar > div { height: 100%; background: var(--accent); border-radius: 999px; }
.acct-bal__next { margin-top: 8px; font-size: 12px; color: var(--ink-3); }

.acct-secthead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 18px;
}
.acct-secthead__meta { font-size: 13px; color: var(--ink-3); }
.acct-secthead__link { font-size: 13px; font-weight: 700; color: var(--accent); }
.acct-loading { min-height: 42vh; display: grid; place-items: center; text-align: center; }
.acct-loading .eyebrow { display: block; margin-bottom: 10px; }
.acct-loading p { color: var(--ink-3); font-size: 14px; }

/* ── Ambassador CTA ── */
.amb-cta {
  background: var(--ink); border-radius: var(--r-xl); color: #C3CBD3;
  padding: clamp(24px, 3.2vw, 40px);
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(24px, 4vw, 48px); align-items: center;
}
.amb-cta .eyebrow { display: inline-flex; align-items: center; gap: 7px; }
.amb-cta .eyebrow svg { width: 15px; height: 15px; }
.amb-cta h2 { color: #fff; }
.amb-cta__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.amb-cta__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #C3CBD3; }
.amb-cta__list svg { width: 16px; height: 16px; flex: none; color: #5FC2E0; margin-top: 2px; }
.amb-cta__r {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 22px;
}
.amb-cta__r input {
  width: 100%; font-size: 16px; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.3); color: #fff;
}
.amb-cta__r input::placeholder { color: #6E7B87; }
.amb-cta__r input:focus { border-color: #5FC2E0; outline: none; }
.amb-apply-form { display: grid; gap: 14px; }
.amb-apply-form__identity { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amb-apply-form .field { gap: 6px; }
.amb-apply-form .field label { color: var(--ink-3); }
.amb-apply-form input, .amb-apply-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--paper); color: var(--ink); font: inherit; font-size: 16px;
}
.amb-apply-form input[readonly] { background: var(--surface); color: var(--ink-2); }
.amb-apply-form input:focus, .amb-apply-form textarea:focus { border-color: var(--accent-2); outline: 2px solid var(--accent-2); outline-offset: 1px; }
.amb-required { color: var(--accent); }
.amb-optional { color: var(--ink-4); font-weight: 500; letter-spacing: 0; text-transform: none; }
.amb-disclaimer { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-3); font-size: 11.5px; line-height: 1.55; }
.amb-disclaimer input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }

/* ── Orders ── */
.acct-orders { display: grid; gap: 12px; }
.acct-order { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.acct-order__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-order__id { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--ink); }
.acct-order__status {
  background: var(--accent-3); color: var(--accent-ink); border-radius: 999px; padding: 3px 10px;
  font-size: 11px; font-weight: 800;
}
.acct-order__date { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.acct-order__lines { margin-top: 12px; display: grid; gap: 7px; }
.acct-order__lines > span { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.acct-order__lines small { font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.acct-order__lines b { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums; }
.acct-order__foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
  margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line);
}
.acct-order__code { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--accent); }
.acct-order__code svg { width: 14px; height: 14px; flex: none; }
.acct-order__tot { font-size: 19px; font-weight: 800; color: var(--ink); text-align: right; letter-spacing: -.03em; }
.acct-order__tot small { display: block; font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: 0; }

.acct-empty {
  background: var(--surface); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 52px);
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.acct-empty svg { width: 30px; height: 30px; color: var(--ink-3); }
.acct-empty p { font-size: 14.5px; color: var(--ink-3); max-width: 46ch; }
.acct-empty b { color: var(--ink); }

/* ── Earnings ── */
.acct-earn { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.acct-earn__c {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 4px;
}
.acct-earn__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-3); color: var(--accent); margin-bottom: 6px; }
.acct-earn__ico svg { width: 17px; height: 17px; }
.acct-earn__k { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.acct-earn__c b { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.04em; }
.acct-earn__c b small { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: 0; margin-left: 5px; }
.acct-earn__v { font-size: 13px; font-weight: 700; color: var(--accent); }

.acct-log { margin-top: 18px; border-top: 1px solid var(--line); }
.acct-log > div {
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}
.acct-log span:nth-child(2) { font-size: 12px; color: var(--ink-3); }
.acct-log b { color: var(--accent); font-variant-numeric: tabular-nums; }
.acct-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

/* ── Code + tracked links ── */
.acct-code { background: var(--surface); border-radius: var(--r-xl); padding: clamp(20px, 2.6vw, 28px); }
.acct-code__box {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--paper); border: 2px dashed var(--accent-2); border-radius: var(--r);
  padding: 14px 14px 14px 18px;
}
.acct-code__box > span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.acct-code__box b { font-family: var(--mono); font-size: clamp(19px, 2.4vw, 25px); font-weight: 700; letter-spacing: .08em; color: var(--ink); }
.acct-code__box .rw-code__copy { margin-left: auto; background: var(--accent); color: #fff; }
.acct-code__box .rw-code__copy:hover { background: var(--accent-ink); }
.acct-code .acct-note { margin-top: 14px; }

.acct-links { margin-top: 16px; }
.acct-links__lead { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.acct-link {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 14px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.acct-link__label { font-size: 13px; font-weight: 700; color: var(--ink); }
.acct-link code {
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  background: var(--surface); border-radius: var(--r-sm); padding: 8px 10px;
  overflow-x: auto; white-space: nowrap; display: block;
}
.acct-link__copy {
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--paper);
  color: var(--ink); font-size: 12px; font-weight: 700; padding: 9px 14px; min-height: 36px;
}
.acct-link__copy:hover { border-color: var(--ink); }

.notice--ok { border-color: var(--ok); }
.notice--ok svg { color: var(--ok); }

/* ─────────────────────────  MOBILE REFINEMENTS  ─────────────────────────
   Placed last on purpose: these override base component rules defined above. */
@media (max-width: 640px) {
  .amb-apply-form__identity { grid-template-columns: 1fr; }
  /* Two-up catalog — one card per screen makes 55 SKUs unbrowsable */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__body { padding: 11px 11px 13px; gap: 4px; }
  .card__cat { font-size: 9.5px; letter-spacing: .08em; }
  .card__name { font-size: 14px; }
  .card__sub { font-size: 11px; }
  .card__purpose { font-size: 11.5px; -webkit-line-clamp: 2; line-clamp: 2; }
  .card__coa { font-size: 10px; margin-top: 8px; }
  .card__foot { padding-top: 10px; flex-direction: column; align-items: stretch; gap: 8px; }
  .card__price { font-size: 15px; }
  .card__price small { font-size: 10px; }
  .card__go { text-align: center; padding: 10px; font-size: 12px; }
  .card__flag { font-size: 8.5px; padding: 3px 7px; top: 8px; left: 8px; }

  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat { min-height: 104px; padding: 14px; }
  .cat__name { font-size: 13.5px; }
  .cat__ico { width: 22px; height: 22px; }

  .section { padding-block: clamp(40px, 9vw, 60px); }
  .section-head { margin-bottom: 24px; }
  .h1 { font-size: clamp(32px, 9vw, 40px); }
  .h2 { font-size: clamp(24px, 7vw, 30px); }
  .lede { font-size: 15px; }

  /* Full-width primary actions read as buttons, not links, on a phone */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; padding-block: 15px; }

  .strip__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding-block: 16px; }
  .strip__item { font-size: 12px; }

  .feats { gap: 10px; }
  .feat { padding: 18px 16px; }

  /* PDP: keep the buy controls comfortable and thumb-reachable */
  .pdp__price { font-size: 26px; }
  .size { padding: 13px 16px; min-height: 48px; }
  .bundle { padding: 16px 6px 12px; min-height: 62px; }
  .assures { grid-template-columns: 1fr; gap: 9px; }
  .tabs__nav { gap: 16px; }
  .tabs__nav button { font-size: 12.5px; }
  .tabs__panel dl { grid-template-columns: 1fr; gap: 3px 0; }
  .tabs__panel dt { margin-top: 10px; }

  /* Shop controls */
  .shop__bar { gap: 8px; }
  .shop__count { flex-basis: 100%; margin-right: 0; }
  .select, .filters__toggle { flex: 1; min-height: 44px; }
  .fbtn { min-height: 44px; }

  /* COA rows stack rather than squeezing four columns into 320px */
  .coa-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* The lot list is the densest tap zone on the site — 75 rows, each with two
     links. On a phone it becomes a stacked card with full-height targets. */
  .lot { display: grid; gap: 2px; padding: 4px 14px 8px; align-items: stretch; }
  .lot__size { min-width: 0; font-size: 15px; }
  .lot__size a { display: flex; align-items: center; min-height: 44px; }
  .lot__id, .lot__purity { display: inline-block; margin-right: 12px; font-size: 12px; }
  .lot__cta {
    margin-left: 0; display: flex; align-items: center; min-height: 44px;
    border-top: 1px solid var(--line); margin-top: 4px;
  }

  /* Breadcrumbs and the brand lockup are links too */
  .crumbs { padding-block: 6px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 40px; }
  .nav__in > a:first-child,
  .lp-nav__in > a:first-child { display: flex; align-items: center; min-height: 44px; }
  .pdp__catbar { min-height: 40px; }

  /* 11px was too small for card metadata at arm's length */
  .card__sub { font-size: 12px; }

  .drawer { width: 100vw; }
  .faq summary { font-size: 15px; padding-block: 16px; }
}
/* Very small handsets (320–400px): the brand lockup plus four 44px targets
   overruns the bar, so the two optional icons fold into the menu instead. */
@media (max-width: 400px) {
  .icon-btn--opt { display: none; }
  .nav__in { gap: 12px; }
  .brand { gap: 8px; }
  .brand__mark { height: 30px; }
  .nav .brand__mark { height: 37.5px; }
  .brand__name { font-size: 13.5px; letter-spacing: .12em; }
  .brand__rule { height: 26px; }
}
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .bundles { grid-template-columns: repeat(2, 1fr); }
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
.hide { display: none !important; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.prose { max-width: 72ch; }
.prose h2 { margin-top: 42px; margin-bottom: 14px; }
.prose h3 { margin-top: 30px; margin-bottom: 10px; }
.prose p { margin-bottom: 14px; color: var(--ink-3); line-height: 1.7; }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-3); line-height: 1.7; }
.prose li { margin-bottom: 7px; }


/* Very narrow phones (320px): the headline wraps to more lines, so the hero needs
   an extra trim to keep the primary CTA on the first screen. */
@media (max-width: 360px) {
  .hero__title { font-size: clamp(26px, 8.6vw, 32px); }
  .hero__lede { font-size: 13.5px; }
  .hero__note { font-size: 10.5px; margin-top: 10px; }
  .hero__cta { padding-top: 12px; gap: 8px; }
  .hero__cta .btn { padding-block: 13px; }
  .hero__product-card { padding: 9px 10px; min-height: 68px; gap: 7px; }
  .hero__product-card__name { font-size: 10px; }
  .hero__product-card__meta { font-size: 8.5px; }
}

/* ── Mobile hero layout ────────────────────────────────────────────── */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .hero__copy  { order: 1; }
  .hero__cta { order: 2; }
  .hero__cta { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .hero__cta .btn--primary {
    position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 120; width: auto; min-height: 58px; padding: 18px 20px; font-size: 16px;
    box-shadow: 0 8px 24px rgba(16,20,25,.22);
  }
  .hero__cta .btn--ghost { display: none; }
  .hero__stage, .hero__cards { display: none !important; }
}

/* ── Short screens ───────────────────────────────────────────────────
   Reclaim height from the copy block rather than letting the primary CTA
   fall below the fold. Ordered coarsest-last so each step compounds. */
@media (max-width: 900px) and (max-height: 780px) {
  .hero__in { padding-block: clamp(20px, 4vw, 30px) 14px; }
  .hero__lede { margin-top: 10px; font-size: 13.5px; }
  .hero__note { margin-top: 10px; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .hero__lede { display: none; }
  .hero__cta { padding-top: 10px; }
  .hero__cta .btn { padding-block: 13px; }
}

/* ── Welcome offer modal, phones ─────────────────────────────────────
   Single column. The stack stays on top as the visual hook, but compressed
   hard so the email field still lands without scrolling the dialog. */
@media (max-width: 720px) {
  .promo { padding: 10px; }
  .promo__box { grid-template-columns: 1fr; }
  .promo__stack { order: -1; padding: 16px 18px 14px; gap: 10px; }
  .promo__vials { gap: 5px; max-width: 250px; }
  .promo__stackmeta b { font-size: 16px; }
  .promo__stackmeta .promo__parts { display: none; }
  .promo__econ { margin-top: 0; }
  .promo__econ-price { font-size: 18px; }
  .promo__econ-price small { font-size: 12px; }
  .promo__stack-cta { gap: 8px; }
  .promo__stackbuy { min-height: 44px; }
  .promo__stacklink { font-size: 12.5px; padding-block: 3px; }

  .promo__offer { padding: 20px 18px 22px; }
  .promo__title { font-size: clamp(24px, 7.4vw, 30px); }
  .promo__lede { font-size: 13.5px; margin-top: 10px; }
  .promo__form { margin-top: 16px; }
  .promo__skip { margin-top: 8px; padding-block: 12px; align-self: center; }
  .promo__done-cta { padding-top: 16px; }
  .promo__done-cta .btn { width: 100%; }
  .promo__copy { min-height: 44px; padding-inline: 18px; }
}
/* Short handsets — trim the panel that isn't the conversion path. */
@media (max-width: 720px) and (max-height: 700px) {
  .promo__stack { padding: 12px 18px 10px; gap: 6px; }
  .promo__vials { max-width: 190px; }
  .promo__stackmeta > span { display: none; }
  .promo__lede { display: none; }
  .promo__fine { margin-top: 10px; font-size: 11px; }
  .promo__title { margin-top: 8px; }
  /* Success state: the tick is decoration, the code and its CTAs are not. */
  .promo__tick { display: none; }
  .promo__code { margin-top: 14px; }
  .promo__done-cta { padding-top: 12px; gap: 8px; }
  .promo__offer { padding: 16px 18px; }
}

/* ── Rewards page, phones ────────────────────────────────────────────
   The three-column earn table and the two-up example split are the only
   things that genuinely need reflowing; everything else already wraps. */
@media (max-width: 900px) {
  .rw-code { grid-template-columns: 1fr; }
  .rw-calc { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .rw-row { grid-template-columns: 1fr; gap: 5px; padding: 16px 0; }
  .rw-row__eg { font-size: 12.5px; }
  .rw-example__split { grid-template-columns: 1fr; }
  .rw-tiers { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rw-tier { padding: 20px 16px; }
  .rw-tier__pts { font-size: 22px; }
  .rw-tier__val { font-size: 19px; }
  .rw-calc__big { gap: 8px; }
}
@media (max-width: 380px) {
  .rw-tiers { grid-template-columns: 1fr; }
}

/* ── Account, phones ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .acct-head { grid-template-columns: 1fr; }
  .amb-cta { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .acct-link { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .acct-link__label { grid-column: 1 / -1; }
  .acct-link code { min-width: 0; }
  .acct-order__date { margin-left: 0; width: 100%; }
  .acct-log > div { grid-template-columns: 1fr auto; }
  .acct-log span:nth-child(2) { display: none; }
  .acct-code__box .rw-code__copy { margin-left: 0; }
}

/* ── Password field ──────────────────────────────────────────────────
   The strength meter reads the same scoring function the submit handler uses,
   so what the bar shows is what actually gets enforced. */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; padding-right: 66px; }
.pw-eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: var(--accent); font-size: 12px; font-weight: 700;
  padding: 10px 10px; min-height: 40px;
}
.pw-eye:hover { color: var(--accent-ink); }
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.pw-meter__track { flex: 1; height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pw-meter__track > div { height: 100%; width: 0; border-radius: 999px; background: #B4402E; transition: width .2s, background .2s; }
.pw-meter__track > div[data-s="2"] { background: var(--warn); }
.pw-meter__track > div[data-s="3"] { background: var(--ok); }
.pw-meter__track > div[data-s="4"] { background: var(--ok); }
.pw-meter > span { font-size: 11.5px; font-weight: 700; color: var(--ink-3); min-width: 74px; text-align: right; }

.acct-focus {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 20px; margin-bottom: 20px; border: 1px solid var(--line-2);
  border-radius: var(--r-xl); background: var(--surface);
}
.acct-focus__copy .eyebrow { display: block; margin-bottom: 6px; }
.acct-focus__copy p { max-width: 48ch; font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.acct-focus__controls { display: flex; align-items: center; gap: 10px; flex: none; }
.acct-focus .select { min-width: min(380px, 46vw); min-height: 46px; font-size: 15px; }
.acct-focus .btn { min-height: 46px; white-space: nowrap; }
@media (max-width: 700px) {
  .acct-focus { align-items: stretch; flex-direction: column; }
  .acct-focus__controls { width: 100%; }
  .acct-focus .select { min-width: 0; flex: 1; }
}
@media (max-width: 430px) {
  .acct-focus__controls { align-items: stretch; flex-direction: column; }
  .acct-focus .btn { width: 100%; }
}

/* ── Goal-matched stack recommendation ── */
.acct-recstack { display: grid; grid-template-columns: minmax(0, 320px) 1fr; gap: clamp(18px, 3vw, 32px); align-items: center;
  background: var(--c-tint, var(--surface)); border-radius: var(--r-xl); padding: clamp(18px, 2.4vw, 26px); }
.acct-recstack__why p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }
.acct-recstack .card { background: var(--paper); }

/* ── Product-page stack cross-sell ── */
.xsell {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 3vw, 40px); align-items: center;
  background: var(--c-tint); border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 34px); margin-bottom: clamp(20px, 3vw, 34px);
}
.xsell__kick {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink);
}
.xsell__kick svg { width: 15px; height: 15px; }
.xsell__h { font-size: clamp(20px, 2.5vw, 28px); letter-spacing: -.035em; margin-top: 12px; color: var(--ink); }
.xsell__p { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.xsell__with { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.xsell__with > span { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.xsell__with a {
  background: var(--paper); border-radius: 999px; padding: 6px 12px;
  font-size: 12.5px; font-weight: 700; color: var(--ink); transition: color .16s;
}
.xsell__with a:hover { color: var(--c-ink); }
.xsell__r { background: var(--paper); border-radius: var(--r-lg); padding: clamp(16px, 2vw, 22px); }
.xsell__art { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.xsell__art > span {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-sm); overflow: hidden;
  background: linear-gradient(158deg, var(--silver-a), var(--surface-2) 60%, var(--silver-b));
}
.xsell__art > span.is-this { outline: 2px solid var(--c-ink); outline-offset: 1px; }
.xsell__art img, .xsell__art svg { position: absolute; inset: 5px; width: calc(100% - 10px); height: calc(100% - 10px); object-fit: contain; }
.xsell__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.xsell__price b { font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); }
.xsell__price small { font-size: 14px; color: var(--ink-3); text-decoration: line-through; }
.xsell__save { background: var(--c-ink); color: #fff; border-radius: 999px; padding: 4px 11px; font-size: 11.5px; font-weight: 800; }
.xsell__cta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.xsell__cta .btn { flex: 1; min-width: 150px; }

@media (max-width: 860px) {
  .xsell { grid-template-columns: 1fr; }
  .acct-recstack { grid-template-columns: 1fr; }
}

/* ── Consent checkbox ────────────────────────────────────────────────
   The box itself stays 22px for looks, but the whole row is the target: the
   label is clickable, and the padding gives it a 44px-tall hit area. */
.consent { display: flex; gap: 12px; align-items: flex-start; }
.consent input[type="checkbox"] {
  flex: none; width: 22px; height: 22px; margin: 11px 0;
  accent-color: var(--accent); cursor: pointer;
}
.consent label { padding-block: 11px; cursor: pointer; }

/* ── Ambassador code at the top of the account page ── */
.acct-idrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.acct-idrow .acct-badge { margin-top: 0; }
.acct-topcode {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-3); border-radius: 999px; padding: 5px 6px 5px 14px;
}
.acct-topcode > span { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); }
.acct-topcode b { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--accent-ink); }
.acct-topcode button {
  border: 0; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 800; padding: 8px 16px; min-height: 40px;
}
.acct-topcode button:hover { background: var(--accent-ink); }

/* ── Inline "get your code" signup ── */
.acct-getcode {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(18px, 3vw, 34px); align-items: center;
  background: var(--surface); border-radius: var(--r-xl); padding: clamp(20px, 2.6vw, 28px);
}
.acct-getcode h3 { font-size: clamp(17px, 2vw, 21px); letter-spacing: -.03em; }
.acct-getcode p { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); line-height: 1.55; max-width: 52ch; }
.acct-getcode__form { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.acct-getcode__form input {
  width: 190px; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper);
}
.acct-getcode__form input:focus { border-color: var(--accent-2); outline: none; }
.acct-getcode__form .amb-err { flex-basis: 100%; margin-top: 0; }

/* ── Commission & payouts ── */
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 24px); align-items: start; }
.pay__bal, .pay__bank {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(20px, 2.6vw, 26px);
}
.pay__fig span { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pay__fig span svg { width: 13px; height: 13px; }
.pay__fig b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.04em; color: var(--ink); margin-top: 5px; }
.pay__fig small { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; }
.pay__fig--big b { font-size: clamp(36px, 4.4vw, 48px); line-height: 1; }
.pay__split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.pay__todo { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.pay__todo li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.pay__todo svg { width: 14px; height: 14px; flex: none; color: var(--warn); }
.pay__label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.pay__acct { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: var(--r); padding: 14px; }
.pay__acct__ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--accent-3); color: var(--accent); }
.pay__acct__ico svg { width: 17px; height: 17px; }
.pay__acct > div { flex: 1; min-width: 0; }
.pay__acct b { display: block; font-size: 14px; color: var(--ink); }
.pay__acct span { font-size: 11.5px; color: var(--ink-3); }
.pay__ok { color: var(--ok); flex: none; }
.pay__ok svg { width: 20px; height: 20px; }
.pay__unlink { flex: none; border: 0; background: none; color: var(--ink-3); font-size: 12px; font-weight: 700; text-decoration: underline; padding: 10px 4px; }
.pay__unlink:hover { color: #B4402E; }
.pay__connect p { font-size: 13px; color: var(--ink-3); line-height: 1.55; margin-bottom: 14px; }
.pay__connect .btn svg { width: 15px; height: 15px; }
.pay__slips > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.pay__slips b { display: block; font-size: 13.5px; color: var(--ink); }
.pay__slips small { display: block; font-size: 11.5px; color: var(--ink-3); }
.pay__slip-dl { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.pay__slip-soon { font-size: 11.5px; color: var(--ink-3); text-align: right; }
.pay__hist-h { font-size: 15px; margin-top: 26px; }
.pay__hist { margin-top: 10px; border-top: 1px solid var(--line); }
.pay__hist > div { display: grid; grid-template-columns: auto 1fr auto auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.pay__hist-id { font-family: var(--mono); font-size: 12px; color: var(--ink); font-weight: 700; }
.pay__hist-to { color: var(--ink-3); }
.pay__hist-st { background: var(--accent-3); color: var(--accent-ink); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 800; }
.pay__hist-dt { font-size: 12px; color: var(--ink-3); }
.pay__hist b { color: var(--ink); font-variant-numeric: tabular-nums; }
.pay__seed { border: 0; background: none; color: var(--accent); font-weight: 700; text-decoration: underline; font-size: inherit; padding: 10px 2px; min-height: 40px; }

/* ── Sheet (modal) ── */
.sheet { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: clamp(10px, 3vw, 28px); }
.sheet__scrim { position: absolute; inset: 0; background: rgba(16,20,25,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .24s; }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__box {
  position: relative; z-index: 1; width: min(520px, 100%); max-height: 100%; overflow: auto;
  background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .24s, transform .24s cubic-bezier(.4,0,.2,1);
}
.sheet__box--wide { width: min(680px, 100%); }
.sheet.is-open .sheet__box { opacity: 1; transform: none; }
.sheet__head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 22px 0; }
.sheet__head > div { flex: 1; min-width: 0; }
.sheet__head h3 { font-size: 20px; letter-spacing: -.03em; }
.sheet__head p { margin-top: 7px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; }
.sheet__body { padding: 20px 22px 24px; }
.sheet__note { display: flex; gap: 10px; background: var(--accent-3); color: var(--accent-ink); border-radius: var(--r); padding: 13px 14px; font-size: 12.5px; line-height: 1.5; margin-bottom: 18px; }
.sheet__note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.sheet__lab { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.sheet__fine { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); line-height: 1.55; }
.sheet .select { width: 100%; font-size: 16px; }

.inst { display: grid; gap: 8px; }
.inst__b { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--paper); padding: 14px 16px;
  min-height: 56px; text-align: left; transition: border-color .16s, background .16s; }
.inst__b:hover { border-color: var(--accent); background: var(--accent-3); }
.inst__n { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.inst__m { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

.wd__amt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 14px; }
.wd__amt > span { font-size: 22px; font-weight: 800; color: var(--ink-3); }
.wd__amt input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); background: none; }
.wd__quick { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.wd__quick button { border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2); padding: 9px 14px; min-height: 38px; }
.wd__quick button:hover { border-color: var(--ink); color: var(--ink); }
.wd__sum { margin: 20px 0 0; border-top: 1px solid var(--line); }
.wd__sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wd__sum dt { font-size: 12.5px; color: var(--ink-3); }
.wd__sum dd { margin: 0; font-size: 13px; font-weight: 700; color: var(--ink); text-align: right; }

@media (max-width: 860px) {
  .pay { grid-template-columns: 1fr; }
  .acct-getcode { grid-template-columns: 1fr; }
  .acct-getcode__form input { width: 100%; }
}
@media (max-width: 620px) {
  .pay__split { grid-template-columns: 1fr; gap: 14px; }
  .pay__hist > div { grid-template-columns: 1fr auto; row-gap: 4px; }
  .pay__hist-to, .pay__hist-dt { grid-column: 1 / -1; font-size: 11.5px; }
}

/* ── Password-reset demo panel ──
   Stands in for the email a real deployment sends. Marked as a prototype
   affordance so it can never be mistaken for intended product behaviour. */
.reset-demo {
  margin-top: 18px; padding: 16px; border-radius: var(--r);
  background: var(--surface); border: 1px dashed var(--line-2);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.reset-demo > span { display: flex; gap: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.reset-demo > span svg { width: 15px; height: 15px; flex: none; color: var(--warn); margin-top: 1px; }
.reset-demo__link {
  font-family: var(--mono); font-size: 11.5px; color: var(--accent);
  word-break: break-all; line-height: 1.5;
}
