/* ============================================================
   Impact Peptides — shared stylesheet
   ============================================================ */

:root {
  --black: #121212;
  --near-black: #1c1c1c;
  --cream: #f4efe4;
  --cream-2: #ece3d1;
  --white: #ffffff;
  --ink: #26241f;
  --muted: #746f63;
  --line: #e2dac6;
  --accent: #a8761c;
  --accent-light: #cc9423;
  --radius: 14px;
  --max: 1220px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  color: var(--black);
  letter-spacing: -0.01em;
}
p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--sans);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn:disabled:hover { transform: none; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-light { background: var(--white); color: var(--black); }
.btn-gold { background: var(--accent-light); color: #221c0e; }
.btn-gold:hover { background: #d9a336; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: #fff; }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent);
}

/* ---------- announcement bar ---------- */
.announce {
  background: var(--black);
  color: var(--cream);
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 9px 16px;
}

/* ---------- header ---------- */
header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
  gap: 24px;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 26px; flex: 1; }
.nav-right { justify-content: flex-end; }
.nav-search {
  display: flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  gap: 6px;
  background: var(--white);
}
.nav-search input {
  border: none; outline: none; background: transparent;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  width: 150px;
}
.nav-search input::placeholder { color: #9a9483; }
.nav-search button {
  border: none; background: var(--black); color: var(--white);
  border-radius: 999px; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 13px; flex: none;
}
.nav-search button:hover { background: var(--accent); }
.nav-left a, .nav-right a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.nav-left a.active, .nav-left a:hover, .nav-right a:hover { color: var(--accent); }
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; margin-right: 10px; flex: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
  padding: 4px 8px;
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--white); }
.hero .wrap { position: relative; z-index: 2; max-width: 1480px; padding: 40px 32px 0; }
.hero-image {
  width: 100%;
  aspect-ratio: 2.5 / 1;
  border-radius: 16px;
  overflow: hidden;
  line-height: 0;
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -20px rgba(20,18,10,0.18);
}
.hero-image img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 40%; }
.hero-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 0 20px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; }
.hero-badges .badge {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 13px; font-weight: 600;
}
.hero-badges svg { width: 16px; height: 16px; flex: none; }

/* ---------- tiles + steps + proof ---------- */
.tiles-steps {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.tiles-steps + section { padding-top: 36px; }
/* min-width:0 stops a wide child (the lookup input, COA cards) from forcing
   the grid track wider than its container */
.tiles-steps .col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tile {
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 190px;
  justify-content: space-between;
  align-items: flex-start;
}
.tile-light { background: var(--cream); }
.tile-dark { background: var(--black); color: var(--white); }
.tile h3 { font-size: 24px; }
.tile-dark h3 { color: var(--white); }
.tile p { color: var(--muted); font-size: 14.5px; max-width: 360px; }
.tile-dark p { color: #c9c5bb; }

.col-steps-head { padding: 20px 4px 0; }
.col-steps-head h2 { font-size: clamp(24px, 3vw, 29px); margin-top: 7px; }
.col-steps-head p { color: var(--muted); font-size: 14px; margin-top: 9px; }

.step-condensed {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.step-img {
  width: 42%;
  flex: none;
  background: linear-gradient(150deg, #faf8f2 0%, #ece3d1 100%);
  display: flex; align-items: center; justify-content: center;
  border-right: 1px solid var(--line);
}
.step-img svg { width: 82%; height: 82%; }
.step-condensed .step-body {
  padding: 18px 22px;
  display: flex; flex-direction: column; justify-content: center;
  gap: 8px; flex: 1; min-width: 0;
}
.step-condensed .num {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--black); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--serif); font-size: 13px;
  flex: none; margin-bottom: 2px;
}
.step-condensed .step-body h4 { font-size: 16px; line-height: 1.3; }
.step-condensed .step-body p { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ---------- section shell ---------- */
section { padding: 84px 0; }
.section-head {
  max-width: 620px;
  margin: 0 auto 44px;
  text-align: center;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.section-head h2 { font-size: clamp(28px, 4vw, 38px); }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- proof / COA ---------- */
.proof {
  background: var(--near-black);
  border-radius: 28px;
  color: var(--white);
  margin: 0 32px;
  padding: 72px 0;
}
.proof .section-head p { color: #beb9ad; }
.proof .section-head h2 { color: var(--white); }

.lookup {
  max-width: 560px;
  margin: 0 auto 52px;
  display: flex;
  gap: 10px;
  background: #262521;
  border: 1px solid #3a382f;
  border-radius: 999px;
  padding: 6px;
}
.lookup input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--white);
  padding: 12px 18px;
  font-size: 14px;
  font-family: var(--sans);
}
.lookup input::placeholder { color: #8b8778; }
.lookup button {
  border: none; border-radius: 999px;
  padding: 12px 22px;
  background: var(--accent-light);
  color: #221c0e;
  font-weight: 700; font-size: 13.5px;
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
}
.lookup-result {
  max-width: 560px;
  margin: -34px auto 46px;
  text-align: center;
  font-size: 13.5px;
  min-height: 18px;
  color: var(--accent-light);
}

.coa-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.coa-card {
  background: #201f1b;
  border: 1px solid #34322a;
  border-radius: var(--radius);
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.coa-card .coa-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.coa-card .compound { font-family: var(--serif); font-size: 18px; color: var(--white); }
.coa-card .lot { font-size: 11.5px; color: #9a9686; letter-spacing: 0.03em; }
.coa-card .purity { font-size: 28px; font-family: var(--serif); color: var(--accent-light); }
.coa-card .purity span { font-size: 13px; color: #9a9686; font-family: var(--sans); }
.coa-card .meta { font-size: 12px; color: #9a9686; display: flex; flex-direction: column; gap: 4px; }
.coa-card a.view, a.view {
  margin-top: auto;
  font-size: 12.5px; font-weight: 700;
  color: var(--accent-light);
  display: inline-flex; align-items: center; gap: 6px;
}
.verified-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,177,131,0.14);
  color: var(--accent-light);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
  text-transform: uppercase;
  white-space: nowrap;
}

.proof-foot {
  margin-top: 40px;
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  border-top: 1px solid #34322a;
  padding-top: 32px;
}
.proof-foot .stat { text-align: center; }
.proof-foot .stat .n { font-family: var(--serif); font-size: 30px; color: var(--white); }
.proof-foot .stat .l { font-size: 12px; color: #9a9686; margin-top: 4px; }

/* proof condensed into a column */
.proof-in-column { margin: 0; border-radius: var(--radius); padding: 22px 22px 20px; }
.proof-in-column .section-head {
  text-align: left; align-items: flex-start;
  max-width: none; margin-bottom: 16px; gap: 5px;
}
.proof-in-column .section-head h2 { font-size: 19px; }
.proof-in-column .section-head p { font-size: 13px; }
.proof-in-column .lookup { max-width: none; margin: 0 0 12px; padding: 4px; }
.proof-in-column .lookup input { padding: 9px 14px; font-size: 13px; }
.proof-in-column .lookup button { padding: 9px 16px; font-size: 12.5px; }
.proof-in-column .lookup-result { max-width: none; margin: -4px 0 14px; text-align: left; font-size: 12px; min-height: 14px; }
.proof-in-column .coa-grid { grid-template-columns: 1fr; gap: 10px; }
.proof-in-column .coa-card { padding: 13px 16px; gap: 8px; }
.proof-in-column .coa-card .purity { font-size: 22px; }
.proof-in-column .coa-card .compound { font-size: 15px; }
.proof-in-column .coa-card .meta { flex-direction: row; justify-content: space-between; }
.proof-in-column > a.view { display: inline-flex; margin-top: 12px; font-size: 12.5px; }
.proof-in-column .proof-foot { margin-top: 16px; padding-top: 14px; gap: 14px; justify-content: space-between; }
.proof-in-column .proof-foot .stat { text-align: left; }
.proof-in-column .proof-foot .stat .n { font-size: 19px; }
.proof-in-column .proof-foot .stat .l { font-size: 10.5px; }

/* ---------- products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card { display: flex; flex-direction: column; gap: 12px; }
.prod-card > a { display: flex; flex-direction: column; gap: 12px; }
.vial-wrap {
  background: var(--cream);
  border-radius: var(--radius);
  aspect-ratio: 1;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform .18s ease;
}
.prod-card:hover .vial-wrap { transform: translateY(-3px); }
.vial-wrap .sale, .vial-wrap .tag-cat {
  position: absolute; top: 14px; right: 14px;
  background: var(--black); color: var(--white);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 10px; border-radius: 999px;
}
.vial-wrap.label-card { padding: 16px; background: var(--cream); }

/* full product scenes: opaque square renders on a neutral grey studio stage.
   The tile is set to that same grey (not --cream) so the render runs edge to
   edge and melts into the card instead of showing as a panel inside it — a warm
   tile behind a neutral render leaves a visible rectangle */
.vial-wrap.bottle-card { padding: 0; background: #EDE4CE; }
.bottle-photo {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  transition: transform .25s ease;
}
.prod-card:hover .bottle-photo { transform: scale(1.04); }
.label-photo {
  width: 100%; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 22px -12px rgba(20,18,10,0.35);
}
.prod-card h4 { font-size: 15.5px; }
.prod-card .prod-desc { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin: -6px 0 2px; }
.prod-card .price { color: var(--muted); font-size: 14px; }
.prod-card .sizes { color: #9a9483; font-size: 12px; }

/* ---------- shop ---------- */
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 26px; flex-wrap: wrap; gap: 14px;
}
.shop-toolbar .count { color: var(--muted); font-size: 14px; }
.shop-search {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  min-width: 240px;
  outline: none;
}
.shop-search:focus { border-color: var(--accent); }
.shop-search::placeholder { color: #9a9483; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 600;
  font-family: var(--sans);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button.active { background: var(--black); border-color: var(--black); color: var(--white); }

.variant-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.variant-table th, .variant-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.variant-table th {
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.variant-table td.sku { font-size: 12.5px; color: var(--muted); }
.variant-table td.price { font-weight: 600; white-space: nowrap; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--cream);
  border-radius: 28px;
  margin: 0 32px;
  padding: 64px 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 36px); max-width: 640px; }
.cta-banner p { color: var(--muted); max-width: 480px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 56px;
  border-radius: 0 0 28px 28px;
  text-align: center;
}
.page-hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 48px); }
.page-hero p { color: #beb9ad; max-width: 560px; margin: 14px auto 0; }

.narrow { max-width: 780px; margin: 0 auto; }
.content-block { padding: 60px 0; }
.content-block h2 { font-size: 26px; margin-bottom: 14px; }
.content-block p { color: var(--muted); font-size: 15.5px; margin-bottom: 14px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
/* a lone card would otherwise sit in a half-width column with a gap beside it */
.two-col.one { grid-template-columns: minmax(0, 1fr); }

.info-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px;
}
.info-card h4 { font-size: 17px; margin-bottom: 10px; }
.info-card p { color: var(--muted); font-size: 14.5px; }
.info-list { display: flex; flex-direction: column; gap: 10px; }
.info-list div { color: var(--muted); font-size: 14.5px; }

.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item h4 { font-size: 16.5px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); font-size: 14.5px; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea, .contact-form select {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  width: 100%;
  background: var(--white);
  color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); }
.contact-form button { align-self: flex-start; }
.form-note { font-size: 13px; color: var(--muted); }
/* sits under a field to say why it is being asked for */
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- COA library ---------- */
.coa-table-wrap { overflow-x: auto; }
.coa-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.coa-table th, .coa-table td {
  text-align: left; padding: 14px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.coa-table th {
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.coa-table td.lot { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }
.coa-table td.pur { font-weight: 600; color: var(--accent); }
.pill-ok {
  display: inline-block;
  background: rgba(168,118,28,0.12);
  color: var(--accent);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0 0;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: #b8b2a3; }

/* ---------- product detail ---------- */
.pdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding: 28px 0 0;
}
/* Capped at 600px because the scenes are exported at 1200 — past this the
   browser upscales them on a 2x display and the render goes soft. Raise the
   cap only alongside a larger export. */
.pdp-media {
  background: #EDE4CE;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  max-width: 600px;
  display: flex; align-items: center; justify-content: center;
}
.pdp-media img {
  width: 100%; height: auto;
  border-radius: 8px;
  box-shadow: 0 16px 30px -16px rgba(20,18,10,0.4);
}
/* the product scene brings its own stage, so it runs to the panel edge */
.pdp-media img[src$=".webp"] { border-radius: 0; box-shadow: none; display: block; }
.pdp-info h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 10px; }
.pdp-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  display: inline-block;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.pdp-price {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--black);
  margin-bottom: 6px;
}
.pdp-lede { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.btn-add {
  background: var(--black); color: var(--white);
  border: none; border-radius: 999px;
  padding: 9px 18px;
  font-size: 12.5px; font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, opacity .15s ease;
}
.btn-add:hover { background: var(--accent); }
.btn-add:disabled { opacity: .65; cursor: default; background: var(--accent); }
.spec-list { margin-top: 26px; border-top: 1px solid var(--line); }
.spec-list div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-list dt, .spec-list .k { color: var(--muted); }
.spec-list .v { font-weight: 600; text-align: right; }

/* ---------- cart ---------- */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td {
  text-align: left; padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 14px; vertical-align: middle;
}
.cart-table th {
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.cart-table td.price { white-space: nowrap; font-weight: 600; }
.sku-line { font-size: 12px; color: var(--muted); margin-top: 3px; }
input.qty {
  width: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--sans); font-size: 14px;
  outline: none; color: var(--ink); background: var(--white);
}
input.qty:focus { border-color: var(--accent); }
.link-remove {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 13px;
  font-family: var(--sans);
  text-decoration: underline; padding: 0;
}
.link-remove:hover { color: #a33; }
.cart-summary {
  margin-top: 28px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  max-width: 420px; margin-left: auto;
}
.cart-summary .row { display: flex; justify-content: space-between; align-items: baseline; }
.cart-summary .row .lbl { color: var(--muted); font-size: 14px; }
.cart-summary .total { font-family: var(--serif); font-size: 28px; color: var(--black); }
.cart-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.cart-empty { text-align: center; padding: 60px 0; }
.cart-empty p { color: var(--muted); margin: 12px 0 22px; }

/* ---------- account ---------- */
.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  background: var(--white);
}
.auth-card.featured { background: var(--cream); border-color: var(--cream-2); }
.auth-card h2 { font-size: 24px; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.auth-card .contact-form { gap: 16px; }
.auth-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.auth-meta a { color: var(--accent); }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.benefit {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
}
.benefit .ico {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.benefit .ico svg { width: 17px; height: 17px; }
.benefit h4 { font-size: 15.5px; margin-bottom: 7px; }
.benefit p { color: var(--muted); font-size: 13.5px; }

/* ---------- order tracking ---------- */
.track-panel {
  background: var(--near-black);
  border-radius: var(--radius);
  padding: 40px;
  color: var(--white);
}
.track-panel h2 { color: var(--white); font-size: 24px; margin-bottom: 8px; }
.track-panel > p { color: #beb9ad; font-size: 14.5px; margin-bottom: 22px; }
.track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.track-form label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: #9a9686; margin-bottom: 7px;
}
.track-form input {
  width: 100%;
  background: #262521;
  border: 1px solid #3a382f;
  border-radius: 10px;
  padding: 12px 15px;
  color: var(--white);
  font-family: var(--sans); font-size: 14px;
  outline: none;
}
.track-form input:focus { border-color: var(--accent-light); }
.track-form input::placeholder { color: #8b8778; }
.track-form button {
  border: none; border-radius: 10px;
  padding: 13px 24px;
  background: var(--accent-light); color: #221c0e;
  font-weight: 700; font-size: 13.5px;
  font-family: var(--sans); cursor: pointer;
  white-space: nowrap;
}
.track-hint { margin-top: 14px; font-size: 12.5px; color: #9a9686; }
.track-hint code {
  background: #262521; border: 1px solid #3a382f;
  border-radius: 5px; padding: 2px 7px;
  color: var(--accent-light); font-size: 12px;
}
.track-error { margin-top: 16px; font-size: 13.5px; color: var(--accent-light); min-height: 18px; }

.order-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 30px;
}
.order-head {
  background: var(--cream);
  padding: 24px 28px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.order-head h3 { font-size: 21px; }
.order-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--black); color: var(--white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px;
}
.status-pill.done { background: #2f6b3d; }
.status-pill.transit { background: var(--accent); }

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 34px 28px 10px;
  position: relative;
}
.tl-step { text-align: center; position: relative; }
.tl-step::before {
  content: "";
  position: absolute;
  top: 11px; left: -50%;
  width: 100%; height: 2px;
  background: var(--line);
  z-index: 0;
}
.tl-step:first-child::before { display: none; }
.tl-step.on::before { background: var(--accent); }
.tl-dot {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--line);
  margin: 0 auto 12px;
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
}
.tl-step.on .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-step.on .tl-dot svg { display: block; width: 12px; height: 12px; }
.tl-dot svg { display: none; }
.tl-step .lbl { font-size: 13px; font-weight: 600; color: var(--ink); }
.tl-step:not(.on) .lbl { color: #b0aa9d; }
.tl-step .date { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

.order-body { padding: 10px 28px 28px; }
.order-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.order-meta .k {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 5px;
}
.order-meta .v { font-size: 14px; }
.order-meta .v a { color: var(--accent); }
.order-totals {
  margin-top: 20px; margin-left: auto;
  max-width: 300px;
  display: flex; flex-direction: column; gap: 9px;
}
.order-totals .row { display: flex; justify-content: space-between; font-size: 14px; }
.order-totals .row.grand {
  border-top: 1px solid var(--line);
  padding-top: 11px; margin-top: 4px;
  font-family: var(--serif); font-size: 20px;
}
.order-totals .lbl { color: var(--muted); }

/* ---------- rewards ---------- */
.tier-badge {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.tier-research     { background: #ece7db; color: #55503f; }
.tier-verified     { background: rgba(204,148,35,0.16); color: var(--accent); border-color: rgba(204,148,35,0.4); }
.tier-principal    { background: var(--accent); color: #241a05; }
.tier-institutional{ background: var(--black); color: var(--accent-light); }

.points-panel {
  background: var(--near-black);
  border-radius: var(--radius);
  color: var(--white);
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}
.points-figure .k {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #9a9686; margin-bottom: 8px;
}
.points-figure .v {
  font-family: var(--serif);
  font-size: 52px; line-height: 1;
  color: var(--accent-light);
}
.points-figure .sub { color: #beb9ad; font-size: 14px; margin-top: 10px; }
.points-side { display: flex; flex-direction: column; gap: 12px; }
.points-side .who { font-size: 13.5px; color: #beb9ad; word-break: break-word; }
.points-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.points-meta .k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #9a9686; }
.points-meta .v { font-size: 16px; color: var(--white); margin-top: 3px; }

.tier-progress { margin-top: 6px; }
.tier-progress .bar {
  height: 7px; border-radius: 999px;
  background: #34322a; overflow: hidden;
}
.tier-progress .fill { height: 100%; background: var(--accent-light); border-radius: 999px; }
.tier-progress .cap {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12px; color: #9a9686; margin-top: 8px;
}

.tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tier-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white);
}
.tier-card.is-current { border-color: var(--accent); background: var(--cream); }
.tier-card .thr { font-family: var(--serif); font-size: 21px; }
.tier-card .mult { font-size: 13px; color: var(--accent); font-weight: 600; }
.tier-card ul { display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.tier-card li { font-size: 13.5px; color: var(--muted); padding-left: 15px; position: relative; }
.tier-card li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent);
}

.ledger { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td {
  text-align: left; padding: 13px 12px;
  border-bottom: 1px solid var(--line); font-size: 14px;
}
.ledger th {
  font-family: var(--sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.ledger td.pts { text-align: right; font-weight: 600; white-space: nowrap; }
.ledger td.pts.plus { color: #2f6b3d; }
.ledger td.pts.minus { color: var(--accent); }
.ledger td.note { color: var(--muted); font-size: 13px; }

.earn-line {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: rgba(204,148,35,0.10);
  border: 1px solid rgba(204,148,35,0.35);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 13.5px;
}
.earn-line strong { color: var(--accent); }
/* ---------- promotion code ---------- */
.promo-box {
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-top: 4px;
  display: flex; flex-direction: column; gap: 9px;
}
.promo-label-head {
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.promo-entry { display: flex; gap: 8px; }
.promo-entry input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--sans); font-size: 13.5px;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--white); color: var(--ink); outline: none;
}
.promo-entry input::placeholder { letter-spacing: 0; text-transform: none; color: #a8a293; }
.promo-entry input:focus { border-color: var(--accent); }
.promo-entry .btn { flex: none; }
.promo-msg { color: var(--accent); margin: 0; }
.promo-applied {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: rgba(204,148,35,0.10);
  border: 1px solid rgba(204,148,35,0.35);
  border-radius: 10px;
  padding: 11px 14px;
}
.promo-tag {
  display: inline-block;
  background: var(--black); color: var(--accent-light);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  padding: 3px 9px; border-radius: 5px;
  margin-right: 9px;
}
.promo-label { font-size: 13px; color: var(--ink); }
.cart-summary .total-row {
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-top: 2px;
}

.redeem-box {
  border-top: 1px solid var(--line);
  padding-top: 14px; margin-top: 4px;
  display: flex; flex-direction: column; gap: 10px;
}
.redeem-box .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.redeem-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.redeem-controls select {
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; font-family: var(--sans); font-size: 13px;
  background: var(--white); color: var(--ink); outline: none;
}
.redeem-controls select:focus { border-color: var(--accent); }
.discount { color: var(--accent); }

.demo-accounts { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.demo-accounts button {
  text-align: left;
  border: 1px solid var(--line); background: var(--white);
  border-radius: 10px; padding: 11px 14px;
  font-family: var(--sans); font-size: 13.5px; color: var(--ink);
  cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.demo-accounts button:hover { border-color: var(--accent); }
.demo-accounts .em { color: var(--muted); font-size: 12.5px; }

/* ---------- authentication ---------- */
.auth-providers { display: flex; flex-direction: column; gap: 10px; }
.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: box-shadow .15s ease, transform .12s ease, background .15s ease;
}
.auth-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(20,18,10,0.45); }
.auth-btn-light { background: var(--white); color: #3c4043; border-color: #dadce0; }
.auth-btn-light:hover { background: #f8f9fa; }
.auth-btn-icon { display: inline-flex; width: 18px; height: 18px; flex: none; }
.auth-btn-icon svg { width: 18px; height: 18px; }
.auth-btn-unconfigured { opacity: .55; cursor: not-allowed; }
.auth-btn-unconfigured:hover { transform: none; box-shadow: none; }
.auth-btn-badge { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .8; margin-left: 2px; }

.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0;
  color: var(--muted); font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* header signed-in state */
.auth-slot { display: inline-flex; align-items: center; gap: 12px; }
.auth-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  white-space: nowrap;
}
.auth-chip:hover { color: var(--accent); }
.auth-chip-avatar {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--black); color: var(--accent-light);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em;
  flex: none;
}
.auth-signout {
  background: none; border: none; padding: 0;
  font-family: var(--sans); font-size: 13.5px; color: var(--muted);
  cursor: pointer; white-space: nowrap;
}
.auth-signout:hover { color: var(--accent); }

/* simulated provider chooser */
.auth-modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(18,18,18,0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-modal-card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  width: 100%; max-width: 440px;
  max-height: 90vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.45);
}
.auth-modal-head { display: flex; align-items: center; gap: 14px; }
.auth-modal-head h3 { font-size: 20px; }
.auth-modal-head .em { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.auth-modal-icon {
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--line); border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.auth-modal-icon svg { width: 21px; height: 21px; }
.auth-modal-warn {
  background: rgba(204,148,35,0.10);
  border: 1px solid rgba(204,148,35,0.35);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px; color: var(--ink);
}
.auth-modal-warn strong { color: var(--accent); }
.auth-choices { display: flex; flex-direction: column; gap: 8px; }
.auth-choice {
  display: flex; align-items: center; gap: 12px;
  text-align: left;
  border: 1px solid var(--line); background: var(--white);
  border-radius: 10px; padding: 12px 14px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  cursor: pointer;
}
.auth-choice:hover { border-color: var(--accent); background: #fdfcf9; }
.auth-choice .em { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.auth-choice-avatar {
  width: 34px; height: 34px; border-radius: 999px; flex: none;
  background: var(--cream); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ---------- disclaimer strip ---------- */
.ruo-strip {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 32px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.ruo-strip strong { color: var(--black); }

/* ---------- footer ---------- */
footer.site-footer {
  background: var(--black);
  color: #d9d5c9;
  margin-top: 90px;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid #2c2b26;
}
.footer-grid .logo { color: var(--white); }
.footer-grid .logo-mark { box-shadow: 0 0 0 1px rgba(255,255,255,0.08); }
.footer-grid p.tag { color: #9a9686; font-size: 13.5px; margin-top: 12px; max-width: 260px; }
.footer-col h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: #9a9686; margin-bottom: 16px; font-family: var(--sans); font-weight: 700;
}
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 10px; color: #d9d5c9; }
.footer-col a:hover { color: var(--accent-light); }
.footer-legal { padding-top: 26px; font-size: 12px; color: #83806f; line-height: 1.7; }
.footer-legal .row {
  display: flex; justify-content: space-between; gap: 20px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.footer-legal .row a { color: #83806f; }
.footer-legal .row a:hover { color: var(--accent-light); }

/* ---------- responsive ---------- */
/* six nav items plus the logo and cart run out of room before the mobile
   breakpoint, so tighten the header first */
@media (max-width: 1080px) {
  .nav-row { gap: 14px; padding: 16px 24px; }
  .nav-left, .nav-right { gap: 16px; }
  .nav-left a, .nav-right a { font-size: 13.5px; }
  .logo { font-size: 23px; }
  .logo-mark { width: 29px; height: 29px; margin-right: 8px; }
  .nav-search input { width: 100px; }
}

/* collapse the nav to the hamburger while there is still room for the logo
   and cart — six items no longer fit on a tablet */
@media (max-width: 820px) {
  .nav-left {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 16px;
    z-index: 41;
  }
  .nav-left.open { display: flex; }
  .nav-left a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
}

@media (max-width: 980px) {
  .tiles-steps { grid-template-columns: minmax(0, 1fr); }
  .coa-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  section { padding: 64px 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-row { padding: 14px 20px; gap: 12px; }
  .nav-left {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
  }
  .nav-left.open { display: flex; }
  .nav-left a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .logo { font-size: 19px; }
  .logo-mark { width: 25px; height: 25px; margin-right: 7px; }
  .nav-right { gap: 12px; }
  .nav-right a { font-size: 13px; }
  /* wishlist is decorative on small screens — drop it so the row fits */
  .nav-right a[aria-label="Wishlist"] { display: none; }
  /* the shop page's own search box covers this; the header one is dropped
     so the cart/account row fits on small screens */
  .nav-search { display: none; }
  .shop-search { min-width: 0; width: 100%; }
  /* the name alone identifies the session; sign-out stays on the account page */
  .auth-chip-name, .auth-signout { display: none; }
  .auth-slot { gap: 0; }
  .hero .wrap { padding: 20px 20px 0; }
  .hero-image { aspect-ratio: 16 / 10; }
  .hero-image img { object-position: 68% 45%; }
  .hero-foot { padding: 20px 0 8px; }
  .hero-badges { gap: 14px; }
  .tiles-steps { padding: 0 20px 24px; }
  .tile { padding: 26px; min-height: 0; }
  .step-condensed { flex-direction: column; }
  .step-img { width: 100%; height: 120px; border-right: none; border-bottom: 1px solid var(--line); }
  .proof-foot { gap: 24px; }
  .coa-grid { grid-template-columns: 1fr; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-banner, .proof { margin: 0 20px; }
  .cta-banner { padding: 44px 24px; }
  .pdp-grid { grid-template-columns: 1fr; gap: 26px; }
  .pdp-media { padding: 24px; }
  .cart-summary { max-width: none; }
  .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 24px; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .points-panel { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
  .points-figure .v { font-size: 42px; }
  .tier-grid { grid-template-columns: minmax(0, 1fr); }
  .ledger th:nth-child(4), .ledger td.note { display: none; }
  .track-panel { padding: 26px 20px; }
  .track-form { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 26px; padding: 26px 20px 6px; }
  .tl-step::before { display: none; }
  .order-head, .order-body { padding-left: 20px; padding-right: 20px; }
  .order-meta { grid-template-columns: 1fr; }
  .order-totals { max-width: none; }
}
@media (max-width: 980px) {
  .pdp-grid { grid-template-columns: 1fr; gap: 32px; }
  .auth-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .points-panel { grid-template-columns: minmax(0, 1fr); gap: 26px; }
}
