@charset "UTF-8";
/* ==========================================================================
   Generex Singapore

   White and navy. The navy is #011F5B, sampled from Generex's own artwork
   rather than invented, so the site is in the brand's blue and not a blue.

   The canvas colour is not a taste decision. Every packshot must sit on the
   page with no card, no border and no cut-out work, which only happens when
   the page colour and the image ground are the SAME value. Generex ships its
   packshots on warm ivory #F8F8F1, so moving to white meant rebuilding all
   fourteen - see inc/build/make-packshots.py. Change the canvas here and you
   must re-run that script, or every product gets a grey box behind it.

   The second idea is the volume mark. Every product in this range is defined
   by a millilitre dose, and four of the eleven differ ONLY by pack size, so
   the dose is set large in mono and carries the layout.
   ========================================================================== */

/* --------------------------------------------------------------- fonts --- */

@font-face {
  font-family: 'Plex Sans';
  src: url('../fonts/ibm-plex-sans-var.woff2') format('woff2-variations');
  font-weight: 200 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------- tokens --- */

:root {
  --paper:    #FFFFFF;   /* must equal the packshot ground exactly */
  --panel:    #F1F5FA;   /* alternating band; a cool tint of the navy */
  --ink:      #0C1A33;   /* text - near-black, pulled toward the navy */
  --graphite: #4A5A72;   /* secondary text, 7.0:1 on white */
  --rule:     #D7DFEA;   /* hairlines only, never text */
  --navy:     #011F5B;   /* Generex's own navy. Accents, buttons, marks. */

  --sans: 'Plex Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max:    1180px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------- base --- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------ typeset ---- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 1.25rem;
}

.display {
  font-size: clamp(2.4rem, 6vw, 4.75rem);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 250;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.h3 {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}

/* Product names are set the way they are printed on the carton: light,
   uppercase, widely tracked. Read off the packaging, not chosen. */
.pname {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.155em;
  text-transform: uppercase;
  line-height: 1.5;
  margin: 0;
}

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.65;
  color: var(--graphite);
  max-width: 46ch;
}

.prose { max-width: 62ch; }
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--ink); text-decoration-color: var(--navy); text-underline-offset: 0.2em; }

/* The signature: a dose, set large in mono. */
.dose {
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--navy);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.dose__unit {
  font-size: 0.5em;
  letter-spacing: 0;
  margin-left: 0.15em;
}

.price {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- shell ----- */

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ⛔ NEVER put a .grid of packshots inside .section--dim. The packshot ground
   is white and this panel is #F1F5FA, so every product would appear in a pale
   blue rectangle and the one idea holding this design together stops working.
   Text-only sections here; product grids stay on the white. */
.section--dim { background: var(--panel); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ---------------------------------------------------------- prelaunch ---- */

.prelaunch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.6rem var(--gutter);
  text-align: center;
}
.prelaunch__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--paper);
  flex: none;
}

/* ------------------------------------------------------------- topbar ---- */

/* The three reasons to buy here, across the top of every page. Navy, so it
   reads as the site's own voice rather than a notice, and thin enough that it
   never competes with the masthead below it. */
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 2.25rem;
  margin: 0;
  padding: 0.65rem var(--gutter);
  list-style: none;
  background: var(--navy);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: center;
}
.topbar li { display: flex; align-items: center; gap: 0.55rem; }
/* A hairline separator before every item but the first, drawn only when the
   items are actually on one row - once they wrap it would sit at the start of
   a line, which is why it is a border and not a bullet. */
.topbar li + li::before {
  content: "";
  width: 1px;
  height: 0.85em;
  background: currentColor;
  opacity: 0.35;
  margin-right: 1.7rem;
  flex: none;
}

@media (max-width: 700px) {
  .topbar {
    gap: 0.3rem 1rem;
    font-size: 0.6875rem;
    letter-spacing: 0.02em;
  }
  /* Stacked, so the separators would be meaningless. */
  .topbar li + li::before { display: none; }
}

/* -------------------------------------------------------------- flash ---- */

.flash {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--panel);
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
  padding: 0.7rem var(--gutter);
  text-align: center;
}
.flash__mark {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--navy);
  flex: none;
}
.flash a { text-decoration-color: var(--navy); text-underline-offset: 0.2em; white-space: nowrap; }

/* ----------------------------------------------------------- masthead ---- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding: 1.125rem var(--gutter);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.masthead.is-stuck { border-bottom-color: var(--rule); }

.wordmark {
  display: inline-flex;
  align-items: flex-start;
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
}
/* The raised ring after the X, as printed on every Generex carton. */
.wordmark__mark {
  width: 5px;
  height: 5px;
  margin-top: 0.15em;
  margin-left: 0.1em;
  border: 1px solid currentColor;
  border-radius: 50%;
  flex: none;
}

.nav {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  font-size: 0.875rem;
}
.nav a {
  text-decoration: none;
  color: var(--graphite);
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current] { color: var(--ink); border-bottom-color: var(--navy); }

.bag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  text-decoration: none;
  white-space: nowrap;
}
.bag__n {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding-inline: 0.35rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.6875rem;
}

/* ------------------------------------------------------------ buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 450;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { background: transparent; color: var(--navy); }

.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--paper); }

.btn--wide { width: 100%; }

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.btn[disabled], .btn[aria-disabled="true"] {
  border-color: var(--rule);
  background: transparent;
  color: var(--graphite);
  cursor: not-allowed;
}

/* --------------------------------------------------------------- hero ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 2.25rem 0 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--graphite);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* No frame, no shadow, no radius. The image ground already matches the page. */
.hero__shot { position: relative; }
.hero__shot img { width: 100%; }
.hero__dose {
  position: absolute;
  top: 4%;
  left: 0;
  font-size: clamp(2.5rem, 6vw, 4.25rem);
}

/* -------------------------------------------------------------- steps ---- */

.step {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}
.step:first-of-type { border-top: 0; }

.step__head { position: sticky; top: 6rem; align-self: start; }

.step__n {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--navy);
  display: block;
  margin-bottom: 0.6rem;
}
.step__label {
  font-size: 1.375rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}
.step__note {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--graphite);
  max-width: 24ch;
}

/* --------------------------------------------------- image-led sections -- */

/* Full-bleed brand photography. The marble flatlay is the brand's own hero
   shot; the headline sits on the clean marble at the left, which is why the
   crop keeps that area empty. */
.shot {
  position: relative;
  min-height: clamp(22rem, 56vh, 34rem);
  display: grid;
  align-items: center;
  overflow: hidden;
}
.shot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}
/* Marble is bright and the type is near-black, so the wash is a light scrim
   rather than the usual dark one: it lifts contrast without greying the image.
   Held near-opaque across the left half - marble veining behind a 200-weight
   headline is what made the first version look noisy. */
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.95) 42%,
    rgba(255, 255, 255, 0.45) 70%,
    rgba(255, 255, 255, 0.04) 100%);
}
.shot__inner { position: relative; z-index: 1; width: 100%; }
.shot__copy { max-width: 32rem; }

/* The plain strip under the hero. The 40-60 word statement SEO.md asks for
   lives here rather than over the photograph, where it was both a wall of text
   and sitting on marble at the point the scrim runs out. */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.intro__statement {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.65;
  color: var(--graphite);
  max-width: 54ch;
}

/* Two-up: an image beside a short block of copy. Replaces the essay sections
   the first pass used for the same information. */
.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(1.75rem, 5vw, 4.5rem);
}
.band--flip .band__media { order: 2; }
.band__media img { width: 100%; }
.band__copy { max-width: 40ch; }

/* Shop-by-step tiles. Each is a real filter of the range, not decoration. */
.tiles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.4vw, 1rem);
}
/* White, not transparent, and it stays white on hover. These tiles sit on the
   pale blue panel and hold packshots whose ground is white — anything else
   here puts a rectangle around every bottle. Hover moves the border only. */
.tile {
  display: block;
  text-decoration: none;
  padding: 1rem 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  transition: border-color 0.2s var(--ease);
}
.tile:hover { border-color: var(--navy); }
.tile__n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--navy);
}
.tile__img { margin: 0.35rem 0 0.6rem; }
.tile__label { font-size: 1.0625rem; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 0.15rem; }
.tile__n2 { margin: 0; font-size: 0.8125rem; color: var(--graphite); }

/* "Which line is for you" - three columns, each answering it plainly. A rule
   over each one rather than a box: they are a comparison, not three cards. */
.picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
/* Column with the link pushed to the bottom, so the three "start with" links
   land on one baseline however many lines the description above them runs to. */
.picker__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-top: 1px solid var(--ink);
  padding-top: 1.1rem;
}
.picker__item .section__more { margin-top: auto; }
.picker__name {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
}
.picker__for {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 0.9rem;
}
.picker__body {
  margin: 0 0 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--graphite);
}
.picker__rest {
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--graphite);
}
.picker__rest a { color: var(--ink); text-decoration-color: var(--navy); text-underline-offset: 0.2em; }

/* Trust strip. Three standing reasons to buy here and not from Korea. */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--graphite);
}
.trust li { display: flex; align-items: center; gap: 0.5rem; }
.trust li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--navy);
  flex: none;
}
.trust--stack { flex-direction: column; gap: 0.6rem; }

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.section__more { font-size: 0.875rem; color: var(--graphite); text-underline-offset: 0.25em; }
.section__more:hover { color: var(--ink); }

/* Step band on the range page: a full-width heading, so the products get the
   whole grid instead of being pushed right by a sticky sidebar. */
.stepbar {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--ink);
}
.stepbar__n {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--navy);
}
.stepbar__label { font-size: 1.375rem; font-weight: 300; letter-spacing: -0.02em; margin: 0; }
.stepbar__note { margin: 0 0 0 auto; font-size: 0.875rem; color: var(--graphite); }

/* --------------------------------------------------------------- grid ---- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2rem);
}
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Column, so the price and the Add button sit on a common baseline across a
   row however many lines the product name runs to. The card is no longer one
   big anchor: it holds a form, and a form cannot live inside a link. */
.card {
  display: flex;
  flex-direction: column;
}

.card__shot { position: relative; display: block; margin-bottom: 1rem; }
.card__shot img {
  width: 100%;
  transition: transform 0.5s var(--ease);
}
.card:hover .card__shot img { transform: scale(1.035); }

/* A label, not a headline. At 1.5rem this read as a stray number floating
   above the packshot; the dose mark earns its size on the product page and in
   the hero, where there is room for it. */
.card__dose {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 1.0625rem;
  z-index: 1;
}

.card__body { display: block; text-decoration: none; }

/* Title case, normal tracking. The wide-tracked caps are right on a carton and
   on the product page, where a name gets a whole line; in a four-up grid they
   wrapped to two lines and became genuinely hard to scan. Names stay in caps
   only where they do not wrap. */
.card__name {
  font-size: 1rem;
  font-weight: 450;
  letter-spacing: -0.005em;
  line-height: 1.35;
  text-transform: none;
  margin: 0 0 0.35rem;
  transition: color 0.2s var(--ease);
}
.card:hover .card__name { color: var(--navy); }

.card__tag {
  margin: 0 0 0.9rem;
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.5;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.25rem;
}
.card__price { margin: 0; }
.card__price strong { font-weight: 500; color: var(--ink); }
.card__from { color: var(--graphite); }
.card__add { margin: 0; }
.card__sizes {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
}

/* ------------------------------------------------------------ product ---- */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(3rem, 6vw, 5rem);
  align-items: start;
}

.pdp__shot { position: relative; }
.pdp__dose {
  position: absolute;
  top: 2%;
  left: 0;
  font-size: clamp(2.75rem, 5.5vw, 4.5rem);
}

.pdp__line {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--graphite);
  margin: 0 0 1rem;
}

.pdp__title {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 250;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.pdp__summary {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--graphite);
  margin: 0 0 2rem;
}

/* Pack-size chooser. Radio inputs, so it works with the keyboard and without
   JavaScript; the label carries the whole hit area. */
.variants { border: 0; padding: 0; margin: 0 0 1.75rem; }
.variants__legend {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--graphite);
  padding: 0;
  margin-bottom: 0.75rem;
}
.variants__set { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.variants__opt { position: relative; }
.variants__opt input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.variants__opt label {
  display: block;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--rule);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.variants__opt label .variants__price {
  font-family: var(--mono);
  color: var(--graphite);
  margin-left: 0.5rem;
}
.variants__opt input:checked + label {
  border-color: var(--navy);
  background: var(--panel);
}
.variants__opt input:focus-visible + label {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.buy {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.buy__price {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.buy__note {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--graphite);
}

.spec {
  border-top: 1px solid var(--rule);
  margin: 0;
  padding-top: 1.5rem;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.6rem 1.5rem;
  font-size: 0.875rem;
}
.spec dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  padding-top: 0.2em;
}
.spec dd { margin: 0; }

/* --------------------------------------------------------------- cart ---- */

.line {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid var(--rule);
}
.line__shot { width: 5.5rem; }
.line__name { margin-bottom: 0.3rem; }
.line__meta { margin: 0; font-family: var(--mono); font-size: 0.8125rem; color: var(--graphite); }
.line__right { text-align: right; display: grid; gap: 0.5rem; justify-items: end; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--rule); }
.qty input {
  width: 3rem;
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.875rem;
  text-align: center;
  padding: 0.45rem 0;
  color: inherit;
}
.qty button {
  border: 0;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  color: var(--graphite);
}
.qty button:hover { color: var(--ink); }

.link-quiet {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--graphite);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.link-quiet:hover { color: var(--ink); }

.totals {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 0.5rem;
  max-width: 24rem;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.875rem;
}
.totals__row { display: flex; justify-content: space-between; gap: 2rem; }
.totals__row--sum { font-size: 1.125rem; font-weight: 500; padding-top: 0.5rem; }

.empty { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }

/* --------------------------------------------------------------- misc ---- */

.notice {
  border-left: 2px solid var(--navy);
  padding: 1rem 0 1rem 1.25rem;
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: var(--graphite);
  background: var(--panel);
}

.cols {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.faq { border-top: 1px solid var(--rule); padding-block: 1.75rem; }
.faq__q { font-size: 1.0625rem; font-weight: 500; margin: 0 0 0.6rem; letter-spacing: -0.01em; }
.faq__a { margin: 0; color: var(--graphite); max-width: 62ch; }

.crumbs {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
  padding-top: 1.75rem;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.crumbs span { margin-inline: 0.5rem; color: var(--rule); }

/* -------------------------------------------------------------- forms ---- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The honeypot. Off-screen rather than display:none, because some bots skip
   fields they can tell are hidden. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field { display: grid; gap: 0.4rem; margin: 0 0 1.25rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--graphite);
}
.field__opt { text-transform: none; letter-spacing: 0.04em; opacity: 0.75; }

.field input,
.field textarea {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--rule);
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.2s var(--ease);
}
.field input:hover,
.field textarea:hover { border-color: var(--graphite); }
.field input:focus,
.field textarea:focus { border-color: var(--navy); outline-offset: 1px; }
.field textarea { resize: vertical; line-height: 1.6; }

/* -------------------------------------------------------------- tables --- */

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}
.tbl th, .tbl td {
  padding: 0.7rem 0.9rem 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  font-weight: 400;
}
.tbl thead th {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--graphite);
  border-bottom-color: var(--ink);
}
.tbl tbody th { font-weight: 450; }
.tbl__num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl__dim { color: var(--graphite); font-size: 0.8125rem; }
.tbl input {
  font-family: var(--mono);
  font-size: 0.875rem;
  text-align: right;
  border: 1px solid var(--rule);
  background: transparent;
  color: inherit;
  padding: 0.35rem 0.5rem;
  max-width: 6.5rem;
}
.tbl input:focus { border-color: var(--navy); }

@media (max-width: 640px) {
  .tbl { font-size: 0.8125rem; }
  .tbl th, .tbl td { padding-right: 0.5rem; }
}

/* ------------------------------------------------------------- footer ---- */

.footer {
  border-top: 1px solid var(--rule);
  margin-top: clamp(3rem, 7vw, 6rem);
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter) 2rem;
}
.footer__grid {
  max-width: var(--max);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
}
.footer__col { display: flex; flex-direction: column; gap: 0.55rem; align-items: flex-start; }
.footer__col a { font-size: 0.9375rem; color: var(--graphite); text-decoration: none; }
.footer__col a:hover { color: var(--ink); }
.footer__h {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}
.footer__statement { margin: 0 0 1rem; max-width: 40ch; font-size: 0.9375rem; line-height: 1.65; }
.footer__contact { margin: 0; font-family: var(--mono); font-size: 0.875rem; }
.footer__contact a { text-decoration-color: var(--navy); text-underline-offset: 0.2em; }
.footer__legal {
  max-width: var(--max);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--graphite);
}

/* -------------------------------------------------------------- motion --- */

.rise {
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.75s var(--ease) forwards;
}
.rise--2 { animation-delay: 0.08s; }
.rise--3 { animation-delay: 0.16s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- responsive --- */

@media (max-width: 1000px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .band { grid-template-columns: 1fr; }
  .band--flip .band__media { order: 0; }
  .band__copy { max-width: none; }
  .shot { min-height: 0; }
  /* On a phone the scrim can no longer keep the type clear of the marble, so
     the image stops being a backdrop and becomes a picture above the copy. */
  .shot__img { position: static; height: auto; aspect-ratio: 5 / 4; }
  .shot::after { display: none; }
  .shot__inner { padding-top: clamp(1.75rem, 5vw, 2.5rem); }
  .shot__copy { max-width: none; }
  .stepbar__note { margin-left: 0; flex-basis: 100%; }
  .intro { grid-template-columns: 1fr; }
  .picker { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero { grid-template-columns: 1fr; }
  .hero__shot { order: -1; max-width: 26rem; }
  .pdp { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .step__head { position: static; }
  .step__note { max-width: none; }
  .cols { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--lede { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .masthead { flex-wrap: wrap; row-gap: 0.75rem; }
  .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 0.25rem; }
  /* 9rem, not 11: at 375px two columns fit and eleven products stay browsable
     in a thumb-scroll instead of running to eleven full screens. */
  .grid { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__dose { font-size: 1.25rem; }
  .card__tag { display: none; }         /* name + price is enough at this width */
  .card__foot { flex-wrap: wrap; gap: 0.5rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Both calls to action full width, so they read as a stack rather than two
     differently-sized buttons stranded on separate lines. */
  .hero__actions .btn { flex: 1 1 100%; }
  .line { grid-template-columns: 4rem minmax(0, 1fr); }
  .line__shot { width: 4rem; }
  .line__right { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .totals { max-width: none; }
  .spec { grid-template-columns: 1fr; gap: 0.2rem 0; }
  .spec dd { margin-bottom: 0.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .rise { opacity: 1; transform: none; }
}
