/* ================================================================
   DESIGN SYSTEM
   ================================================================ */
:root {
  /* Clinical Precision - Light Mode */
  --navy: #0B3D6F;
  --steel: #1A6DB5;
  --ice: #E8F1FA;
  --cloud: #f3efe6;
  --ink: #1B2A3D;
  --forest-deep: #0B3D6F;
  --forest-mid: #0e4a82;
  --forest-canopy: #1A6DB5;
  --forest-floor: #071e38;
  --river-blue: #1A6DB5;
  --river-glow: rgba(26,109,181,0.25);
  --river-pale: #a3cce8;
  --moss: #2EAD6B;
  --moss-dim: rgba(46,173,107,0.1);
  --bark: #3d4a5c;
  --gold: #E8A317;
  --gold-dim: rgba(232,163,23,0.08);
  --gold-glow: rgba(232,163,23,0.2);
  --bg: #f3efe6;
  --bg-card: #f3efe6;
  --bg-elevated: #EDF1F6;
  --bg-input: #FFFFFF;
  --border: #D6DDE6;
  --border-hover: #B0BCC9;
  --text: #1B2A3D;
  --text-muted: #546478;
  --text-dim: #7284A0;
  --accent: #1A6DB5;
  --accent-dim: rgba(26,109,181,0.08);
  --accent-glow: rgba(26,109,181,0.15);
  --warning: #E8A317;
  --danger: #D94040;
  --success: #2EAD6B;
  --btc: #f7931a;
  --radius: 10px;
  --radius-lg: 16px;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-display: 'Inter', -apple-system, sans-serif;
  --transition: 0.2s ease;
  --shadow: 0 2px 16px rgba(11,61,111,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: #050d1c; font-size: 16px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: hidden; }
/* Safari tints the iPhone status-bar strip with the body layer, so body stays
   dark and the page colour moves onto .app inside it. */
body {
  font-family: var(--font-body);
  background-color: #050d1c;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

/* ================================================================
   LANDING PAGE - MARK-LED SPLASH
   ================================================================ */
#landing {
  position: fixed; inset: 0; z-index: 9000;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(127,179,255,0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(127,179,255,0.06), transparent 70%),
    linear-gradient(180deg, #051a30 0%, #0a2746 55%, #0f3866 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
#landing.exiting {
  opacity: 0;
  transform: scale(1.05);
  pointer-events: none;
}
#landing.gone { display: none; }
body.skip-landing #landing { display: none; }

/* Atmosphere layers (mist/glow/grain only — solid bg is on #landing) */
.splash-atmosphere {
  position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden;
}
.splash-mist-1 {
  position: absolute; left: -10%; right: -10%; bottom: -20%; height: 80%;
  background: radial-gradient(ellipse, rgba(232,241,250,0.10) 0%, transparent 65%);
  animation: splashMist1 16s ease-in-out infinite;
  filter: blur(20px);
}
.splash-mist-2 {
  position: absolute; left: -15%; right: -15%; bottom: 10%; height: 60%;
  background: radial-gradient(ellipse, rgba(232,241,250,0.06) 0%, transparent 70%);
  animation: splashMist2 22s ease-in-out infinite;
  filter: blur(30px);
}
.splash-glow {
  position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: radial-gradient(ellipse 60% 100% at 50% 100%, rgba(127,179,255,0.20), transparent 70%);
  animation: splashGlow 8s ease-in-out infinite;
}
.splash-grain {
  position: absolute; inset: 0; opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
@keyframes splashMist1 {
  0%   { transform: translate3d(-4%, 0, 0) scale(1); opacity: 0.42; }
  50%  { transform: translate3d(3%, -1%, 0) scale(1.06); opacity: 0.55; }
  100% { transform: translate3d(-4%, 0, 0) scale(1); opacity: 0.42; }
}
@keyframes splashMist2 {
  0%   { transform: translate3d(2%, 0, 0) scale(1.04); opacity: 0.32; }
  50%  { transform: translate3d(-3%, 1%, 0) scale(1); opacity: 0.45; }
  100% { transform: translate3d(2%, 0, 0) scale(1.04); opacity: 0.32; }
}
@keyframes splashGlow {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.8; }
}

/* Hash-grid backdrop (above mist atmosphere, below content) */
.splash-hashgrid-wrap {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; pointer-events: none;
}
.splash-hashgrid {
  display: grid; grid-template-columns: repeat(14, 1fr);
  gap: 2px; width: 760px; height: 760px; opacity: 0.18;
}
.splash-hashgrid-cell { aspect-ratio: 1; }
.splash-reg {
  position: absolute; pointer-events: none;
}
.splash-reg-tl { top: -24px; left: -24px; }
.splash-reg-tr { top: -24px; right: -24px; }
.splash-reg-bl { bottom: -24px; left: -24px; }
.splash-reg-br { bottom: -24px; right: -24px; }

/* Content */
.splash-content {
  position: relative; z-index: 3;
  text-align: center; max-width: 720px;
  padding: 48px;
  opacity: 0;
}
.splash-tagline {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 15px; line-height: 1.6;
  color: rgba(232,238,249,0.6);
  max-width: 480px; margin: 0 auto 44px;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums;
}
.enter-btn {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 18px 32px;
  background: transparent;
  color: #e8eef9;
  border: 1px solid rgba(232,238,249,0.6);
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px; font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.enter-btn:hover {
  background: rgba(232,238,249,0.95);
  border-color: rgba(232,238,249,0.95);
  color: #051a30;
}
.enter-btn .arrow {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  transition: transform 0.25s ease;
  line-height: 1;
}
.enter-btn:hover .arrow { transform: translateX(4px); }

/* Footer */
.splash-footer {
  position: absolute; bottom: 32px; left: 48px; right: 48px;
  display: flex; justify-content: center; align-items: center;
  color: rgba(232,238,249,0.4); font-size: 17px;
  letter-spacing: 0.05em; text-transform: lowercase;
  font-family: 'Alegreya SC', Georgia, serif;
  z-index: 3;
}


/* ================================================================
   MAIN APP
   ================================================================ */
.app { display: none; flex-direction: column; min-height: 100vh; position: relative; background: var(--bg); }
.app.visible { display: flex; animation: fadeIn 0.6s ease; }
body.skip-landing .app { display: flex; }
/* Without the splash the app is already on screen; replaying the fade would
   hide the first paint from Largest Contentful Paint. */
body.skip-landing .app.visible { animation: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.app.show-hero-gradient::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 90vh;
  background: linear-gradient(180deg, #051a30 0%, #0B3D6F 30%, #0e4a82 65%, #1A6DB5 100%);
  z-index: 0;
  pointer-events: none;
}

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  padding-top: calc(20px + env(safe-area-inset-top));
  background: linear-gradient(to bottom, rgba(5,13,28,0.94), rgba(5,13,28,0.86));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: none;
}
.nav-left { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav-logo-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400; font-size: 26px;
  letter-spacing: 0.04em; color: #fff; line-height: 1;
}
.nav-logo-sep {
  width: 1px; height: 22px;
  background: rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.nav-logo-sub {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 14px; text-transform: lowercase;
  letter-spacing: 0.05em; color: rgba(255,255,255,0.7);
  line-height: 1.3;
}
.nav-pill-wrap {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; padding: 4px;
}
.nav-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  color: rgba(232,238,249,0.78);
  text-decoration: none;
  background: transparent;
  border: none; cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-pill:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-pill.active { background: #fff; color: #0a1830; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(232,238,249,0.7);
  padding: 10px 18px;
  cursor: pointer; font-size: 15px; font-family: inherit;
  display: flex; align-items: center; gap: 6px;
  transition: background 0.2s, border-color 0.2s;
}
.cart-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }
.cart-count {
  background: #fff; color: #0a1830;
  font-size: 11px; font-weight: 700; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.auth-btn {
  background: #fff; color: #0a1830;
  border: none; border-radius: 999px;
  padding: 11px 22px; font-weight: 600; font-size: 15px;
  cursor: pointer; font-family: inherit; transition: opacity 0.2s;
}
.auth-btn:hover { opacity: 0.9; }
/* Six pills (with Learn) plus the cart and Sign In overflow small laptops and
   tablets in landscape, so tighten them until the phone menu takes over at 768px. */
@media (min-width: 769px) and (max-width: 1120px) {
  nav { padding-left: 20px; padding-right: 20px; gap: 12px; }
  .nav-pill-wrap { gap: 0; }
  .nav-pill { padding: 10px 12px; font-size: 14px; white-space: nowrap; }
  .nav-right { gap: 8px; }
  .cart-btn { padding: 9px 12px; }
  .auth-btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
}
@media (min-width: 769px) and (max-width: 900px) {
  nav .nav-left img { height: 36px !important; }
  .nav-pill { padding: 9px 8px; font-size: 13.5px; }
}
.user-menu-wrap { position: relative; }
.user-menu {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(232,238,249,0.82); font-size: 1.1rem; cursor: pointer;
  padding: 0.3rem 0.5rem; border-radius: var(--radius);
  transition: var(--transition); user-select: none;
}
.user-menu:hover { background: rgba(255,255,255,0.07); color: #fff; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 1rem;
}
.user-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 4px 20px rgba(11,61,111,0.12);
  min-width: 190px; z-index: 200; display: none;
}
.user-dropdown.open { display: block; animation: fadeIn 0.15s ease; }
.user-dropdown a {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  color: var(--text); font-size: 0.92rem; cursor: pointer;
  transition: var(--transition); text-decoration: none;
}
.user-dropdown a:hover { background: var(--bg-elevated); color: var(--accent); }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 0.25rem 0; }
.user-dropdown a.danger { color: var(--danger); }
.user-dropdown a.danger:hover { background: rgba(217,64,64,0.06); color: var(--danger); }
.form-message { padding: 0.7rem 1rem; border-radius: var(--radius); font-size: 0.92rem; margin-bottom: 1rem; }
.form-message.success { background: var(--moss-dim); color: #1a7a4a; border: 1px solid rgba(46,173,107,0.3); }
.form-message.error { background: rgba(217,64,64,0.08); color: var(--danger); border: 1px solid rgba(217,64,64,0.3); }
.ordering-paused-note {
  border: 1px solid rgba(232,163,23,0.35);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(232,163,23,0.1);
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.ordering-paused-label { color: #9a6a00; font-weight: 700; font-size: 0.9rem; }
.add-btn:disabled, .btn-primary:disabled, .btn-secondary:disabled, .qty-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}
.add-btn:disabled:hover, .btn-primary:disabled:hover, .btn-secondary:disabled:hover {
  filter: none;
  transform: none;
}
#page-checkout.ordering-paused-page > :not(.ordering-paused-checkout) { display: none; }
.ordering-paused-checkout { display: block; }

.discount-section { margin: 16px 0; }
.discount-collapse summary { font-size: 14px; color: var(--accent); cursor: pointer; font-weight: 500; user-select: none; }
.discount-input-row { display: flex; gap: 8px; margin-top: 10px; }
.discount-input-row input { flex: 1; font-size: 16px; padding: 10px 12px; border: 1px solid #d4cfc4; border-radius: 6px; text-transform: uppercase; background: var(--bg); }
.discount-input-row input:disabled { opacity: 0.65; }
.discount-success { color: #2EAD6B; font-size: 13px; font-weight: 500; margin-top: 6px; display: block; }
.discount-error   { color: #D94040; font-size: 13px; font-weight: 500; margin-top: 6px; display: block; }
.cart-subtotal-row { display: flex; justify-content: space-between; font-size: 0.95rem; color: var(--text-muted); padding: 4px 0; }
.cart-discount-row { display: flex; justify-content: space-between; font-size: 0.95rem; padding: 4px 0; }
.checkout-identity-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem 1rem; margin-bottom: 1rem; color: var(--text-muted); font-size: 0.95rem;
}
.checkout-identity-summary strong { color: var(--text); font-weight: 600; }
.checkout-identity-summary button {
  border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 600;
  cursor: pointer; padding: 0.2rem 0;
}
.checkout-trust-panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.checkout-trust-panel p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; margin: 0; }
.checkout-trust-panel strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 0.25rem; }
.password-field { position: relative; }
.password-field input { width: 100%; padding-right: 4.4rem; }
.password-toggle {
  position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; padding: 0.2rem;
}
.password-helper { color: var(--text-muted); font-size: 0.82rem; margin-top: 0.35rem; display: block; }
.notice-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.75rem; flex-wrap: wrap; }
.notice-link, .notice-dismiss {
  border: 0; background: transparent; color: var(--accent); font: inherit; font-weight: 600;
  cursor: pointer; padding: 0;
}
.auth-divider {
  display: flex; align-items: center; margin: 18px 0; gap: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1; height: 1px; background: #d4cfc4;
}
.auth-divider span {
  font-size: 13px; color: #7284A0;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* Main — top padding accounts for fixed nav (~64px) */
main { flex: 1; max-width: 1200px; width: 100%; margin: 0 auto; padding: calc(64px + 2rem + env(safe-area-inset-top)) 2rem 2rem; position: relative; z-index: 1; }

/* Hero (inside app) */
.hero {
  text-align: center; position: relative;
  margin: -2rem -2rem 0 -2rem;
  padding: 4rem 2rem 3rem;
  background: transparent;
  z-index: 1;
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.15; margin-bottom: 1rem; font-weight: 700; position: relative; color: #FFFFFF;
}
.hero h1 em { font-style: normal; color: rgba(232,241,250,0.7); font-weight: 700; }
.hero p {
  color: rgba(255,255,255,0.6); font-size: 1.25rem; max-width: 540px;
  margin: 0 auto 2rem; line-height: 1.7; position: relative;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #FFFFFF; color: #0B3D6F;
  padding: 0.85rem 1.8rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1.1rem; text-decoration: none;
  cursor: pointer; transition: var(--transition); border: none; font-family: var(--font-body);
}
.hero-cta:hover { filter: brightness(0.95); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

.trust-bar {
  display: flex; justify-content: center; gap: 2.5rem; margin-top: 2.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.trust-item { text-align: center; }
.trust-item .num { font-size: 2rem; font-weight: 700; color: #FFFFFF; }
.trust-item .label { font-size: 1.1rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }


/* Catalog section */
#catalog {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

/* Section Headers */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.section-header h2 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; }
.section-header h2 span { color: var(--accent); }

/* Search */
.search-bar { position: relative; max-width: 360px; width: 100%; }
.search-bar input {
  width: 100%; padding: 0.65rem 1rem 0.65rem 2.5rem;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 1rem;
  transition: var(--transition); outline: none;
}
.search-bar input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.search-bar input::placeholder { color: var(--text-dim); }
.search-bar .icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--text-dim); font-size: 1rem; pointer-events: none;
}
.catalog-search-input[readonly] { cursor: text; }
@keyframes catalogSearchAutofill {
  from { opacity: 1; }
  to { opacity: 1; }
}
.catalog-search-input:-webkit-autofill {
  animation-name: catalogSearchAutofill;
  animation-duration: 1ms;
}

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.popular-tests {
  margin: 72px 0 0;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(10,24,48,0.12);
}
.popular-tests .section-header { margin-bottom: 18px; }
.popular-tests .section-header p {
  margin: 0;
  max-width: 520px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}
.product-card {
  background: var(--bg-card); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all 0.25s ease; display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card.clickable { cursor: pointer; }
.product-card.clickable:hover .card-seemore { text-decoration: underline; }
.product-tag {
  display: inline-block; font-size: 0.98rem; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 0.2rem 0.5rem; border-radius: 4px;
  background: var(--accent-dim); color: var(--accent); font-weight: 600;
  margin-bottom: 0.75rem; width: fit-content;
}
.product-card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.4rem; }
.product-card .desc { font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem; flex: 1; }
.product-card .card-seemore { display: inline-block; width: fit-content; font-size: 0.9rem; font-weight: 600; color: var(--accent); text-decoration: none; margin: -0.5rem 0 1rem; }
.product-card .card-seemore:hover { text-decoration: underline; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.add-btn {
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text); padding: 0.5rem 1rem; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: var(--transition);
}
.add-btn:hover { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.add-btn.added { background: var(--accent-dim); color: var(--accent); border-color: transparent; pointer-events: none; }

/* Pages */
.page { display: none; }
.page.active { display: block; }
/* Fade only when switching views in the app. On first load the page must paint
   visible at once, or Chrome cannot count it as the Largest Contentful Paint. */
.app.page-switched .page.active { animation: pageFade 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pageFade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Transactional pages: tighter, focused layout */
.page-focused { max-width: 720px; margin: 0 auto; }
.page-focused .section-header h2 { font-size: 1.4rem; }

/* Cart */
.cart-items { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.cart-item {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.cart-item-main { display: flex; align-items: center; justify-content: space-between; }
.cart-item-info h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.cart-item-info p { font-size: 1rem; color: var(--text-muted); }
.cart-item-right { display: flex; align-items: center; gap: 1rem; }
.cart-item-price { font-weight: 600; color: var(--accent); }
.cart-item-subtotal { font-size: 0.85rem; font-weight: 600; text-align: right; color: var(--text); padding-top: 0.4rem; border-top: 1px solid var(--border); }
/* Standard inclusions — catalog banner + per-item cart line */
.catalog-includes { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.85rem; margin: 0 0 1.25rem; font-size: 0.9rem; }
.catalog-includes-label { font-weight: 600; color: var(--text); }
.catalog-includes-items { display: flex; flex-wrap: wrap; gap: 0.4rem 0.85rem; }
.catalog-includes-items .ci-item { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--text-muted); font-weight: 500; }
.catalog-includes-items .ci-item::before { content: '✓'; color: var(--accent); font-weight: 700; }
.catalog-includes-note { color: var(--text-dim); font-size: 0.82rem; }
.cart-item-includes { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.4rem; }
.cart-item-includes strong { color: var(--text-muted); font-weight: 600; }
/* Some tests cannot share a vial, so the count moves as add-ons are ticked. */
.cart-item-vials { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.55rem; padding: 0.45rem 0.6rem; border-radius: 4px; background: rgba(255,255,255,0.03); border-left: 2px solid var(--accent-dim); }
.cart-item-vials.multi { border-left-color: var(--accent); }
.cart-item-vials strong { color: var(--text); font-weight: 600; }
.checkout-vial-line { font-size: 0.78rem; color: var(--text-dim); text-align: right; margin-top: 0.2rem; }
.checkout-vial-total { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.checkout-vial-total strong { color: var(--text); font-weight: 600; }
.cart-vial-total { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
.cart-vial-total strong { color: var(--text); font-weight: 600; }
/* Checkout order summary */
.checkout-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.5rem; }
.checkout-summary h3 { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 0.75rem; }
.checkout-summary-item { padding: 0.6rem 0; border-bottom: 1px solid var(--bg-elevated); }
.checkout-summary-item:last-child { border-bottom: none; }
.checkout-summary-main { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.95rem; gap: 0.5rem; }
.checkout-summary-main span:first-child { flex: 1; }
.checkout-summary-total { display: flex; justify-content: space-between; font-weight: 600; font-size: 1rem; margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border); }
.remove-btn {
  background: none; border: none; color: var(--text-dim);
  cursor: pointer; font-size: 1.1rem; padding: 0.25rem; transition: var(--transition);
}
.remove-btn:hover { color: var(--danger); }
.cart-summary {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
}
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 600; margin-bottom: 1.25rem; }
.cart-total .amount { color: var(--accent); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 1rem; color: var(--text-muted); font-weight: 500; }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.7rem 1rem; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 1rem; outline: none; transition: var(--transition);
}
.form-group textarea { resize: vertical; min-height: 96px; line-height: 1.45; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

.btn-primary {
  background: var(--accent); color: #FFFFFF; border: none;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  font-family: var(--font-body); transition: var(--transition); width: 100%;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--border); padding: 0.85rem 2rem;
  border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  cursor: pointer; font-family: var(--font-body); transition: var(--transition); width: 100%;
}
.btn-secondary:hover { border-color: var(--border-hover); }

/* Payment Toggle */
.payment-toggle {
  display: flex; gap: 0; background: var(--bg-input);
  border-radius: var(--radius); padding: 4px;
  margin-bottom: 1.5rem; border: 1px solid var(--border);
}
.payment-toggle button {
  flex: 1; padding: 0.7rem; background: transparent;
  border: none; border-radius: calc(var(--radius) - 2px);
  color: var(--text-muted); font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: var(--transition); font-family: var(--font-body);
}
.payment-toggle button.active {
  background: var(--bg-elevated); color: var(--text); box-shadow: 0 2px 8px rgba(11,61,111,0.1);
}

.btc-payment {
  text-align: center; padding: 2rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.btc-qr {
  width: 180px; height: 180px; margin: 1.5rem auto;
  background: white; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.btc-qr::after {
  content: ''; position: absolute; inset: 8px;
  background: repeating-conic-gradient(#000 0% 25%, transparent 0% 50%) 50%/12px 12px;
  opacity: 0.7; border-radius: 4px;
}
.btc-address {
  font-family: monospace; font-size: 0.98rem; color: var(--btc);
  background: rgba(247,147,26,0.08); padding: 0.6rem 1rem;
  border-radius: var(--radius); margin: 1rem auto; max-width: 420px; word-break: break-all;
}

/* Status Tracker */
.status-tracker { display: flex; align-items: center; gap: 0; margin: 2rem 0; position: relative; }
.status-step { flex: 1; text-align: center; position: relative; z-index: 1; }
.status-dot {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-elevated); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.5rem; font-size: 1rem; color: var(--text-dim); transition: var(--transition);
}
.status-step.completed .status-dot { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.status-step.current .status-dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.status-label { font-size: 1rem; color: var(--text-dim); }
.status-step.completed .status-label, .status-step.current .status-label { color: var(--text-muted); }
.status-line { position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: var(--border); z-index: 0; }

/* Orders */
.orders-list { display: flex; flex-direction: column; gap: 0.75rem; }
.order-row {
  display: grid; grid-template-columns: 130px 1fr 110px 130px 110px;
  align-items: center; gap: 1rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; transition: var(--transition);
}
.order-row:hover { border-color: var(--border-hover); }
.order-substances { font-size: 0.98rem; color: var(--text-muted); }
.order-date { font-size: 1rem; color: var(--text-dim); }
.order-amount { font-weight: 600; }
.order-status {
  font-size: 1rem; font-weight: 600; padding: 0.3rem 0.7rem;
  border-radius: 20px; text-align: center; width: fit-content;
}
.order-status.received { background: rgba(46,173,107,0.1); color: #1e8a54; }
.order-status.testing { background: rgba(26,109,181,0.08); color: #1A6DB5; }
.order-status.complete { background: rgba(26,109,181,0.1); color: var(--accent); }
.order-status.shipped { background: rgba(232,163,23,0.1); color: #b07d0a; }

/* COA Cards */
/* Confirmation */
.confirmation-box {
  text-align: center; padding: 3rem 2rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); max-width: 600px; margin: 0 auto;
}
.confirmation-box .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 1.5rem;
}
.confirmation-box h2 { font-family: var(--font-display); font-size: 1.65rem; margin-bottom: 0.5rem; font-weight: 700; }
.confirmation-box .order-ref {
  font-family: monospace; color: var(--accent);
  background: var(--accent-dim); padding: 0.5rem 1rem;
  border-radius: var(--radius); display: inline-block; margin: 1rem 0;
}
.shipping-instructions {
  text-align: left; background: var(--bg-elevated);
  border-radius: var(--radius); padding: 1.25rem; margin-top: 1.5rem;
}
.shipping-instructions h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.shipping-instructions p { font-size: 0.98rem; color: var(--text-muted); margin-bottom: 0.5rem; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11,61,111,0.4); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 420px; width: 90%; box-shadow: 0 24px 64px rgba(11,61,111,0.15);
}
.modal h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.5rem; font-weight: 700; }
.modal p.subtitle { color: var(--text-muted); font-size: 1rem; margin-bottom: 1.5rem; }
.modal-switch { text-align: center; margin-top: 1rem; font-size: 0.98rem; color: var(--text-dim); }
.modal-switch a { color: var(--accent); cursor: pointer; text-decoration: none; }
.modal-switch a:hover { text-decoration: underline; }

/* Admin */
.admin-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.admin-tab {
  padding: 0.75rem 1.25rem; background: none; border: none;
  color: var(--text-dim); font-weight: 500; font-size: 1rem;
  cursor: pointer; font-family: var(--font-body);
  border-bottom: 2px solid transparent; transition: var(--transition);
}
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.admin-tab:hover { color: var(--text-muted); }
.admin-order-detail {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; margin-bottom: 1rem;
}
.admin-actions { display: flex; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.admin-actions button {
  padding: 0.55rem 1.1rem; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; cursor: pointer;
  font-family: var(--font-body); transition: var(--transition);
  border: 1px solid var(--border); background: var(--bg-elevated); color: var(--text);
}
.admin-actions button:hover { border-color: var(--accent); color: var(--accent); }
.admin-actions button.primary { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 0; color: var(--text-dim); margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1.1fr 1.1fr;
  gap: 2rem; padding: 2.5rem 2rem;
  max-width: 1200px; margin: 0 auto;
}
.footer-col h4 {
  font-size: 0.88rem; font-weight: 600; color: var(--text);
  margin-bottom: 0.75rem;
}
.footer-col p {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 0.5rem;
}
.footer-col a {
  display: block; font-size: 0.85rem; color: var(--text-dim);
  text-decoration: none; padding: 0.2rem 0; cursor: pointer;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  max-width: 1200px; margin: 0 auto;
}
.footer-legal {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  max-width: 1200px; margin: 0 auto;
}
.footer-legal h4 {
  font-size: 0.82rem; font-weight: 600; color: var(--text-dim);
  margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-legal p {
  font-size: 0.78rem; color: var(--text-dim); line-height: 1.7;
}
.footer-bottom-row {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.75rem;
}
.footer-bottom-row p { font-size: 0.78rem; color: var(--text-dim); }
.footer-bottom .links { display: flex; gap: 1.25rem; }
.footer-bottom .links a { color: var(--text-dim); text-decoration: none; font-size: 0.78rem; }
.footer-bottom .links a:hover { color: var(--text-muted); }

/* Empty State */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-dim); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.5; }
.empty-state p { margin-bottom: 1rem; }

/* ================================================================
   MOBILE HAMBURGER MENU
   ================================================================ */
.mobile-menu-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; margin-right: 0.25rem;
  flex-direction: column; gap: 4px;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 2px;
  background: #546478; border-radius: 1px;
  transition: all 0.3s ease;
}
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Nav dark mode (home page only) */
.nav-dark { background: transparent !important; border-bottom: none !important; backdrop-filter: none !important; }
.nav-dark .nav-logo { color: #FFFFFF; }
.nav-dark .nav-logo span { color: rgba(255,255,255,0.7); }
.nav-dark .nav-tag { color: #f0c45c; background: rgba(232,163,23,0.2); }
.nav-dark .nav-links a { color: rgba(255,255,255,0.6); }
.nav-dark .nav-links a:hover, .nav-dark .nav-links a.active { color: #FFFFFF; background: rgba(255,255,255,0.1); }
.nav-dark .cart-btn { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.15); color: #FFFFFF; }
.nav-dark .cart-btn:hover { border-color: rgba(255,255,255,0.3); }
.nav-dark .cart-count { background: #FFFFFF; color: #0B3D6F; }
.nav-dark .auth-btn { background: #FFFFFF; color: #0B3D6F; }
.nav-dark .user-menu { color: rgba(255,255,255,0.7); }
.nav-dark .user-avatar { background: rgba(255,255,255,0.15); color: #FFFFFF; }
.nav-dark .mobile-menu-btn span { background: rgba(255,255,255,0.7); }

.mobile-nav {
  display: none; position: fixed;
  top: calc(64px + env(safe-area-inset-top)); left: 0; right: 0; bottom: 0;
  background: #050d1c; z-index: 99;
  padding: 1rem; flex-direction: column; gap: 0.25rem;
  animation: mobileNavIn 0.25s ease;
  overflow-y: auto;
}
.mobile-nav.visible { display: flex; }
@keyframes mobileNavIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-nav a {
  display: block; padding: 1rem; color: rgba(255,255,255,0.8);
  text-decoration: none; font-size: 1rem; font-weight: 500;
  border-radius: var(--radius); transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.mobile-nav a:hover, .mobile-nav a:active { background: rgba(255,255,255,0.1); }
.mobile-nav a.active { color: #FFFFFF; background: rgba(255,255,255,0.15); }
.mobile-nav .mobile-nav-divider {
  height: 1px; background: rgba(255,255,255,0.1); margin: 0.5rem 0;
}
nav.nav-dark ~ .mobile-nav { background: #0B3D6F; }
nav.nav-dark ~ .mobile-nav a { color: rgba(255,255,255,0.8); }
nav.nav-dark ~ .mobile-nav a:hover { background: rgba(255,255,255,0.1); }
nav.nav-dark ~ .mobile-nav a.active { color: #FFFFFF; background: rgba(255,255,255,0.15); }
nav.nav-dark ~ .mobile-nav .mobile-nav-divider { background: rgba(255,255,255,0.1); }

/* ================================================================
   RESPONSIVE: TABLETS
   ================================================================ */
@media (max-width: 900px) {
  .order-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .order-row .order-substances {
    grid-column: 1 / -1;
  }
  .affiliate-grid,
  .affiliate-panel-grid { grid-template-columns: 1fr; }
  .affiliate-metrics { grid-template-columns: 1fr 1fr; }
}

/* ================================================================
   RESPONSIVE: MOBILE
   ================================================================ */
@media (max-width: 768px) {
  /* --- NAV --- */
  nav { padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); gap: 0.5rem; }
  .nav-pill-wrap { display: none; }
  .nav-left { gap: 6px; }
  /* Logo 3.40:1 ratio — at height 48px it renders 163px wide, overflowing the 150px
     available on 375px viewport. Drop to 40px → 136px wide, fits with 14px to spare. */
  nav .nav-left img { height: 40px !important; }
  .nav-logo-text { font-size: 20px; }
  .nav-logo-sub { display: none; }
  .nav-logo-sep { display: none; }
  .nav-tag { font-size: 0.55rem; padding: 0.12rem 0.35rem; flex-shrink: 0; }
  .mobile-menu-btn { display: flex; flex-shrink: 0; padding: 0.4rem; margin-right: 0; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  .nav-right { gap: 0.6rem; flex-shrink: 0; }
  .cart-btn { padding: 0.45rem 0.6rem; font-size: 1rem; min-height: 44px; }
  .auth-btn { padding: 0.45rem 0.75rem; font-size: 1rem; min-height: 44px; }
  .user-menu span { display: none; }
  .user-avatar { width: 30px; height: 30px; font-size: 1rem; }
  .mobile-nav { top: calc(64px + env(safe-area-inset-top)); }

  /* --- MAIN --- */
  main { padding: calc(64px + 1rem + env(safe-area-inset-top)) 0.75rem 1rem; }

  /* --- LANDING --- */
  .landing-content { padding: 1rem; }
  .landing-title { font-size: 2.4rem !important; }
  .landing-subtitle { font-size: 1rem !important; margin-bottom: 2rem; }
  .landing-badge { font-size: 0.65rem; padding: 0.3rem 0.75rem; }
  .enter-btn { padding: 0.85rem 2rem; font-size: 1rem; }
  .landing-footer { bottom: 1rem; font-size: 0.65rem; padding: 0 1rem; }

  /* --- HERO --- */
  .hero { padding: 1.5rem 0 0.5rem; min-height: 80vh; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1.1rem; margin-bottom: 1.5rem; }
  .hero-cta { padding: 0.75rem 1.5rem; font-size: 1rem; }
  .hero::before { width: 300px; height: 300px; }
  .trust-bar { gap: 1rem; margin-top: 1.5rem; padding-top: 1.25rem; flex-wrap: wrap; }
  #catalog { padding-top: 2rem; padding-bottom: 2.5rem; }
  .trust-item .num { font-size: 1.2rem; }
  .trust-item .label { font-size: 1rem; }


  /* --- SECTION HEADERS --- */
  .section-header { margin-bottom: 1rem; }
  .section-header h2 { font-size: 1.35rem; }
  .search-bar { max-width: 100%; }
  .search-bar input { font-size: 16px; }

  /* --- PRODUCT GRID --- */
  .product-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .product-card { padding: 1.15rem; }
  .product-card h3 { font-size: 1rem; }
  .product-card .desc { font-size: 1rem; margin-bottom: 0.75rem; }
  .product-price { font-size: 1rem; }
  .add-btn { padding: 0.55rem 0.9rem; min-height: 44px; }

  /* --- CART --- */
  .cart-item { padding: 0.85rem; flex-wrap: wrap; gap: 0.5rem; }
  .cart-item-info { flex: 1; min-width: 0; }
  .cart-item-info h4 { font-size: 1rem; }
  .cart-item-right { gap: 0.75rem; }
  .remove-btn { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .cart-summary { padding: 1.15rem; }

  /* --- FORMS --- */
  .form-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .form-group input, .form-group select, .form-group textarea { padding: 0.75rem 1rem; font-size: 16px; }

  /* --- PAYMENT --- */
  .payment-toggle button { padding: 0.65rem 0.5rem; font-size: 1rem; }
  .btc-qr { width: 150px; height: 150px; }
  .btc-address { font-size: 0.98rem; padding: 0.5rem 0.75rem; }

  /* --- ORDERS --- */
  .order-row {
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
    padding: 0.85rem;
  }
  .order-substances { grid-column: 1 / -1; font-size: 1rem; }
  .order-date { font-size: 1rem; }
  .order-amount { font-size: 1rem; }
  .order-status { font-size: 1rem; padding: 0.25rem 0.55rem; }

  /* --- STATUS TRACKER --- */
  .status-tracker { margin: 1.25rem 0; }
  .status-dot { width: 28px; height: 28px; font-size: 0.98rem; }
  .status-label { font-size: 0.62rem; line-height: 1.3; }
  .status-line { top: 14px; }

  /* --- CONFIRMATION --- */
  .confirmation-box { padding: 1.75rem 1.15rem; }
  .confirmation-box h2 { font-size: 1.35rem; }
  .confirmation-box .order-ref { font-size: 0.98rem; }
  .shipping-instructions { padding: 1rem; }
  .shipping-instructions p { font-size: 1rem; }

  /* --- ADMIN --- */
  .admin-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-tab { white-space: nowrap; padding: 0.65rem 1rem; font-size: 0.98rem; }
  .admin-order-detail { padding: 1.15rem; }
  .admin-actions { gap: 0.5rem; }
  .admin-actions button { flex: 1; min-width: 0; min-height: 44px; font-size: 0.98rem; padding: 0.5rem 0.65rem; text-align: center; }

/* --- MODAL --- */
  .modal { padding: 1.5rem; width: 95%; }
  .modal h2 { font-size: 1.3rem; }
  .checkout-identity-summary { align-items: flex-start; flex-direction: column; }
  .checkout-trust-panel { grid-template-columns: 1fr; }

  /* --- FOOTER --- */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 2rem 1rem; }
  .footer-col a { padding: 0.45rem 0; }
  .footer-bottom { padding: 1rem; }
  .footer-bottom-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* --- EMPTY STATE --- */
  .empty-state { padding: 2.5rem 1rem; }
  .empty-state .icon { font-size: 2rem; }
}

/* ================================================================
   RESPONSIVE: SMALL PHONES
   ================================================================ */
@media (max-width: 420px) {
  main { padding-bottom: 5.25rem; }
  .landing-title { font-size: 2rem !important; }
  .nav-logo { font-size: 1rem; }
  .nav-tag { display: none; }
  .nav-left { gap: 0.35rem; }
  nav { padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top)); }
  nav .nav-left img { height: 32px !important; }
  .nav-right { gap: 0.35rem; }
  /* While ordering is paused the cart pill reads "Ordering Soon", which is far
     wider than the cart icon. Without this the Sign In button is pushed off a
     375px screen (iPhone SE / 13 mini). */
  .cart-btn { padding: 0.4rem 0.5rem; font-size: 0.82rem; }
  .auth-btn { padding: 0.4rem 0.55rem; font-size: 0.85rem; }
  .trust-bar { flex-direction: column; gap: 0.75rem; }
  .status-label { font-size: 0.55rem; }
  .status-dot { width: 24px; height: 24px; font-size: 0.65rem; }
  .status-line { top: 12px; }
  .enter-btn { padding: 0.75rem 1.5rem; font-size: 0.98rem; }
  .hero h1 { font-size: 1.75rem; }
  .section-header h2 { font-size: 1.2rem; }
  .confirmation-box { padding: 1.25rem 0.85rem; }
  .confirmation-box h2 { font-size: 1.15rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  /* Splash page padding fix for very small phones */
  .splash-content { padding: 24px; }
  .splash-footer { left: 20px; right: 20px; bottom: 20px; }
  .payment-toggle { flex-direction: column; gap: 4px; }
  .payment-toggle button { text-align: center; }
}
/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-it-works {
  padding: 3rem 0 4rem;
  border-bottom: 2px solid #d4cfc4;
}
.hiw-header {
  text-align: center; margin-bottom: 2.5rem;
}
.hiw-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 0.6rem;
}
.hiw-header h2 em {
  font-style: normal; color: var(--accent); font-weight: 300;
}
.hiw-header p {
  font-size: 1rem; color: var(--text-muted);
}
.how-it-works h2 span { color: var(--accent); }
.steps-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem;
  position: relative;
}
.steps-grid::before {
  content: ''; position: absolute; top: 28px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent);
  z-index: 0;
}
.step-card {
  text-align: center; position: relative; z-index: 1;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: #0B3D6F; border: 2px solid #0B3D6F;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.3rem;
  color: #FFFFFF;
  font-weight: 700;
  transition: all 0.4s ease;
}
.step-card:hover .step-num {
  background: #1A6DB5; border-color: #1A6DB5;
  box-shadow: 0 0 0 4px rgba(26,109,181,0.15);
  color: #FFFFFF;
}
.step-card h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.35rem; }
.step-card p { font-size: 1rem; color: var(--text-muted); line-height: 1.5; }

/* ================================================================
   SCROLL REVEAL
   ================================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ================================================================
   CATEGORY TAG COLORS
   ================================================================ */
.product-tag.cat-peptide { background: rgba(26,109,181,0.08); color: #1A6DB5; }
.product-tag.cat-glp1 { background: rgba(46,173,107,0.08); color: #2EAD6B; }
.product-tag.cat-small { background: rgba(232,163,23,0.08); color: #c48a0e; }
.product-tag.cat-custom { background: rgba(140,100,180,0.08); color: #7a56a8; }
.product-tag.cat-addon { background: rgba(212,100,70,0.08); color: #c25a3a; }
.product-card.cat-peptide { border-top: 3px solid #1A6DB5; }
.product-card.cat-glp1 { border-top: 3px solid #2EAD6B; }
.product-card.cat-small { border-top: 3px solid #E8A317; }
.product-card.cat-custom { border-top: 3px solid #7a56a8; }
.product-card.cat-addon { border-top: 3px solid #c25a3a; }

/* ================================================================
   SAMPLE COA PREVIEW
   ================================================================ */
.coa-preview {
  padding: 4rem 0 3rem;
  border-bottom: 2px solid #d4cfc4;
}
.coa-preview-header {
  text-align: center; margin-bottom: 2rem;
}
.coa-preview-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; line-height: 1.2;
}
.coa-preview-header h2 span { color: var(--accent); font-weight: 300; font-style: normal; }
.coa-preview-header p { color: var(--text-muted); font-size: 1rem; margin-top: 0.5rem; }

.coa-preview-doc {
  max-width: 620px; margin: 0 auto;
}
/* The image is a render of the real certificate, so it must not be cropped,
   recoloured or covered: the page is white on any background. */
.coa-preview-doc img {
  display: block; width: 100%; height: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px -28px rgba(11,61,111,0.35);
}
.coa-preview-doc figcaption {
  margin-top: 0.9rem; text-align: center;
  font-size: 0.95rem; color: var(--text-dim);
}

/* ================================================================
   CATEGORY FILTER TABS
   ================================================================ */
.category-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.cat-tab {
  padding: 0.45rem 0.95rem; border-radius: 20px;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 1rem; font-weight: 500;
  cursor: pointer; font-family: var(--font-body);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.cat-tab:hover { border-color: var(--border-hover); color: var(--text); }
.cat-tab.active {
  background: var(--accent-dim); border-color: var(--accent);
  color: var(--accent);
}

/* ================================================================
   QUANTITY SELECTOR
   ================================================================ */
.qty-row {
  display: flex; align-items: center; gap: 0.5rem;
}
.qty-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body); transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}
.qty-btn:hover { border-color: var(--accent); color: var(--accent); }
.qty-val {
  font-size: 1rem; font-weight: 600; min-width: 20px; text-align: center;
}


/* ================================================================
   PARALLAX LANDING
   ================================================================ */
.parallax-layer {
  position: absolute; inset: 0;
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* ================================================================
   CRYPTO PAYMENT (NOWPayments)
   ================================================================ */
.crypto-selector {
  display: flex; gap: 0.5rem; justify-content: center;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.crypto-coin {
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 0.65rem 1rem; border-radius: var(--radius);
  background: var(--bg-elevated); border: 1px solid var(--border);
  color: var(--text-dim); cursor: pointer;
  font-family: var(--font-body); transition: var(--transition);
  min-width: 64px;
  -webkit-tap-highlight-color: transparent;
}
.crypto-coin:hover { border-color: var(--border-hover); color: var(--text-muted); }
.crypto-coin.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.coin-symbol { font-size: 1.2rem; }
.coin-name { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.crypto-invoice {
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem;
}
.crypto-invoice-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.crypto-invoice-row:last-child { border-bottom: none; }
.crypto-label { font-size: 0.85rem; color: var(--text-dim); }
.crypto-value { font-size: 0.88rem; color: var(--text); font-weight: 500; text-align: right; }
.crypto-addr { font-family: monospace; font-size: 0.75rem; word-break: break-all; max-width: 260px; }
.crypto-timer { color: var(--warning); font-weight: 600; }

/* ================================================================
   PUBLIC TESTS
   ================================================================ */
/* ================================================================
   PUBLIC TESTS PAGE
   ================================================================ */
.pt-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Alegreya SC', Georgia, serif; font-size: 1.02rem;
  letter-spacing: 0.05em; color: var(--accent); margin-bottom: 0.75rem;
  text-transform: lowercase;
}
#page-public, #page-dashboard, #page-affiliate, #page-enterprise, #page-enterprise-apply { padding-top: 2.75rem; }
.enterprise-grid { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:20px; align-items:start; }
.enterprise-panel { border:1px solid var(--border); background:var(--bg-card); border-radius:8px; padding:18px; }
.enterprise-toolbar { display:flex; gap:12px; align-items:center; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; }
.enterprise-view-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.enterprise-view-tab { width:auto; min-height:32px; padding:0.35rem 0.7rem; font-size:12px; border-radius:6px; }
.enterprise-view-tab.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.enterprise-product-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:1rem; }
.enterprise-product-list .product-card { padding:1.15rem; }
.enterprise-product-list .product-footer { gap:10px; }
.enterprise-product-list .add-btn { padding:0.45rem 0.7rem; min-height:38px; font-size:0.9rem; white-space:nowrap; }
.enterprise-product-list .qty-row { flex-shrink:0; }
.enterprise-product-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; border:1px solid var(--border); border-radius:8px; padding:14px; background:var(--bg-elevated); }
.enterprise-price-stack { text-align:right; white-space:nowrap; }
.enterprise-card-price { display:flex; flex-direction:column; gap:2px; }
.enterprise-catalog-price { font-size:0.78rem; color:var(--text-dim); text-decoration:line-through; font-weight:500; }
.enterprise-cart-line { border-bottom:1px solid var(--border); padding:12px 0; }
.enterprise-addon-list { display:grid; gap:6px; margin-top:10px; }
.enterprise-addon-list label { display:flex; justify-content:space-between; gap:10px; font-size:13px; color:var(--text-muted); }
.enterprise-addon-bulk-tools { border:1px solid var(--border); border-radius:8px; padding:12px; margin-bottom:14px; }
.enterprise-addon-bulk-title { font-size:12px; text-transform:uppercase; letter-spacing:0.06em; color:var(--text-dim); font-weight:700; margin-bottom:8px; }
.enterprise-addon-bulk-list { display:grid; gap:8px; }
.enterprise-addon-bulk-btn { width:100%; min-height:42px; padding:0.55rem 0.75rem; font-size:12px; line-height:1.25; white-space:normal; text-align:left; justify-content:flex-start; }
.enterprise-total-breakdown { border-top:1px solid var(--border); margin-top:16px; padding-top:12px; display:grid; gap:7px; }
.enterprise-total-row { display:flex; justify-content:space-between; gap:12px; font-size:13px; color:var(--text-muted); }
.enterprise-total-row strong { color:var(--text); font-size:15px; }
.enterprise-pricing-note { margin:10px 0 0; font-size:11px; line-height:1.5; color:var(--text-dim); }
.enterprise-order-copy-btn { width:auto; min-height:32px; padding:0.35rem 0.65rem; font-size:12px; white-space:nowrap; }
.enterprise-copy-message { font-size:12px; color:#1f7a43; margin:8px 0 0; }
.enterprise-orders { margin-top:24px; }
.enterprise-payment-toggle { width:max-content; min-width:180px; margin-bottom:0; }
.enterprise-payment-toggle button { min-height:30px; padding:0.32rem 0.75rem; font-size:12px; }
@media (max-width: 860px) { .enterprise-grid { grid-template-columns:1fr; } .enterprise-product-row { grid-template-columns:1fr; } .enterprise-price-stack { text-align:left; } }
.pt-h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.015em; color: var(--text);
  margin: 0 0 0.25rem;
}
.pt-h1 em { font-style: italic; color: var(--accent); }
.pt-subhead {
  margin-top: 0.5rem; font-family: 'Newsreader', serif; font-size: 1.05rem;
  line-height: 1.55; color: var(--text-muted); max-width: 560px;
  margin-bottom: 1.75rem;
}
.pt-verify {
  background: var(--bg-elevated); padding: 1.25rem 1.5rem;
  border: 1px solid var(--border); margin-bottom: 1.25rem;
}
.pt-verify-label {
  font-family: 'Alegreya SC', Georgia, serif; font-size: 0.97rem;
  letter-spacing: 0.05em; color: var(--accent); margin-bottom: 0.5rem;
  text-transform: lowercase;
}
.pt-verify-desc {
  font-family: 'Instrument Serif', Georgia, serif; font-size: 1.1rem;
  font-style: italic; color: var(--text); margin-bottom: 0.9rem; line-height: 1.3;
}
.pt-verify-row { display: flex; gap: 0.75rem; align-items: center; }
.pt-verify-input {
  flex: 1; padding: 0.65rem 1rem;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text); font-family: 'Alegreya SC', Georgia, serif;
  font-size: 0.85rem; letter-spacing: 0.06em; outline: none;
  transition: var(--transition); border-radius: 0;
  font-variant-numeric: lining-nums;
}
.pt-verify-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.pt-verify-input::placeholder { color: var(--text-dim); }
.pt-verify-btn {
  padding: 0.65rem 1.4rem; background: var(--text); color: #fff;
  border: none; font-family: var(--font-body); font-size: 0.88rem;
  font-weight: 600; cursor: pointer; border-radius: 0; transition: var(--transition);
}
.pt-verify-btn:hover { background: var(--accent); }
#verifyResult { margin-top: 1rem; }
.verify-found {
  background: rgba(46,173,107,0.06); border: 1px solid rgba(46,173,107,0.2);
  border-radius: var(--radius); padding: 1.25rem;
}
.verify-found h4 { color: #1e8a54; font-size: 0.95rem; margin-bottom: 0.75rem; }
.verify-found-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}
.verify-found-item .vf-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); margin-bottom: 0.15rem; font-weight: 600;
}
.verify-found-item .vf-value { font-size: 0.92rem; color: var(--text); }
.verify-not-found {
  background: rgba(217,64,64,0.06); border: 1px solid rgba(217,64,64,0.2);
  border-radius: var(--radius); padding: 1rem;
  color: var(--danger); font-size: 0.92rem;
}
.pt-search {
  display: flex; gap: 1rem; align-items: center; padding: 0.75rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 0.25rem; flex-wrap: wrap;
}
.pt-search-label {
  font-family: 'Alegreya SC', Georgia, serif; font-size: 0.97rem;
  letter-spacing: 0.05em; color: var(--text-muted); flex-shrink: 0;
  text-transform: lowercase;
}
.pt-search-input {
  flex: 1; min-width: 140px; padding: 0.35rem 0;
  background: transparent; border: none; outline: none;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--text);
}
.pt-search-input::placeholder { color: var(--text-dim); }
.pt-search-divider { width: 1px; height: 16px; background: var(--border); flex-shrink: 0; }
.pt-search-count {
  font-family: 'Alegreya SC', Georgia, serif; font-size: 0.97rem;
  letter-spacing: 0.05em; color: var(--text-muted); white-space: nowrap;
  text-transform: lowercase;
}
.pt-search select {
  background: transparent; border: none; outline: none; cursor: pointer;
  font-family: var(--font-body); font-size: 0.88rem; color: var(--text);
  padding: 0.35rem 0.4rem; appearance: none; -webkit-appearance: none;
}
.pt-search select option { background: var(--bg-card); }
.pt-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pt-table { width: 100%; border-collapse: collapse; }
.pt-table thead tr { border-bottom: 2px solid rgba(27,42,61,0.35); }
.pt-table th {
  padding: 0.8rem 0.65rem 0.8rem 0; text-align: left;
  font-family: 'Alegreya SC', Georgia, serif; font-size: 0.94rem;
  font-weight: 400; letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--text-muted); white-space: nowrap;
}
.pt-table th.pt-align-r { text-align: right; }
.pt-table td {
  padding: 0.85rem 0.65rem 0.85rem 0;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.pt-table tbody tr { transition: var(--transition); cursor: pointer; }
.pt-table tbody tr:hover { background: rgba(26,109,181,0.04); }
.pt-table tbody tr:last-child td { border-bottom: none; }
.pt-td-id { font-family: 'Alegreya SC', Georgia, serif; font-size: 0.74rem; color: var(--accent); font-variant-numeric: lining-nums; }
.pt-td-compound { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.08rem; font-style: italic; }
.pt-td-vendor { font-size: 0.88rem; }
.pt-td-purity { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.1rem; text-align: right; }
.pt-td-purity.high { color: var(--text); }
.pt-td-purity.mid { color: var(--warning); }
.pt-td-purity.low { color: var(--danger); }
.pt-td-mass { font-family: 'Alegreya SC', Georgia, serif; font-size: 0.74rem; text-align: right; font-variant-numeric: lining-nums; }
.pt-td-method { font-family: 'Alegreya SC', Georgia, serif; font-size: 0.66rem; letter-spacing: 0.04em; color: var(--text-muted); font-variant-numeric: lining-nums; }
.pt-td-date { font-size: 0.82rem; color: var(--text-muted); text-align: right; }
.pt-td-r { text-align: right; }
.pt-pill {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px;
  font-family: 'Alegreya SC', Georgia, serif; font-size: 0.94rem;
  letter-spacing: 0.05em; text-transform: lowercase;
}
.pt-pill-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.pt-pill.pass { background: rgba(26,109,181,0.08); color: var(--accent); }
.pt-pill.pass .pt-pill-dot { background: var(--accent); }
.pt-pill.fail { background: rgba(217,64,64,0.08); color: var(--danger); }
.pt-pill.fail .pt-pill-dot { background: var(--danger); }
.pt-pill.na { background: var(--bg-elevated); color: var(--text-muted); }
.pt-pill.na .pt-pill-dot { background: var(--text-muted); }
@media (max-width: 640px) {
  .pt-search { gap: 0.6rem; }
  .pt-table th, .pt-table td { padding: 0.65rem 0.4rem 0.65rem 0; }
}
@media (max-width: 640px) {
  #page-public, #page-dashboard { padding-top: 2.25rem; }
  .pt-h1 { font-size: clamp(40px, 12vw, 54px); }
  .pt-subhead { font-size: 1rem; }
  .pt-verify { padding: 1rem; }
  .pt-verify-row { flex-direction: column; align-items: stretch; }
  .pt-verify-input, .pt-verify-btn { min-height: 44px; font-size: 16px; }
  .pt-search {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .pt-search-label,
  .pt-search-input,
  .pt-search-count {
    grid-column: 1 / -1;
  }
  .pt-search-input {
    min-width: 0;
    min-height: 44px;
    font-size: 16px;
  }
  .pt-search-divider { display: none; }
  .pt-search select {
    width: 100%;
    min-height: 44px;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--border);
    background: var(--bg-input);
    font-size: 16px;
  }
  .pt-table-wrap { overflow-x: visible; }
  .pt-table, .pt-table thead, .pt-table tbody, .pt-table tr, .pt-table td {
    display: block;
    width: 100%;
  }
  .pt-table thead { display: none; }
  .pt-table tbody { display: grid; gap: 0.85rem; padding-top: 0.85rem; }
  .pt-table tbody tr {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem;
    cursor: default;
  }
  .pt-table td {
    border: none;
    padding: 0.2rem 0;
    white-space: normal;
    text-align: left;
  }
  .pt-table td::before {
    content: attr(data-label);
    display: block;
    font-family: 'Alegreya SC', Georgia, serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    color: var(--text-dim);
    margin-bottom: 0.05rem;
  }
  .pt-table td:nth-child(6)::before { content: "Mass"; }
  .pt-table td:nth-child(7)::before { content: "Sterility"; }
  .pt-td-compound { font-size: 1.25rem; }
  .pt-td-purity, .pt-td-mass, .pt-td-date, .pt-td-r { text-align: left; }
}

/* ================================================================
   DASHBOARD COA INLINE
   ================================================================ */
.dash-coa {
  background: rgba(46,173,107,0.04); border: 1px solid rgba(46,173,107,0.15);
  border-radius: var(--radius); padding: 1.25rem;
  margin-top: 0.75rem;
}
.dash-coa-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem; flex-wrap: wrap; gap: 0.5rem;
}
.dash-coa-header h4 {
  font-size: 0.92rem; font-weight: 600; color: var(--text);
}
.dash-coa-date { font-size: 0.82rem; color: var(--text-dim); }
.dash-coa-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem; margin-bottom: 1rem;
}
.dash-coa-stat {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0.75rem;
  text-align: center;
}
.dash-coa-val { font-size: 1.05rem; font-weight: 700; color: var(--accent); }
.dash-coa-pass { color: var(--success); }
.dash-coa-lbl { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.2rem; }
.dash-coa-publish {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pub-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
  background: var(--success-dim);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}
.btn-pub-make {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-pub-make:hover { filter: brightness(1.1); }
.btn-pub-unpublish {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: var(--transition);
}
.btn-pub-unpublish:hover { border-color: var(--danger); color: var(--danger); }
.dash-coa-download {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent); color: #FFFFFF;
  border: none; padding: 0.6rem 1.25rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.85rem; cursor: pointer;
  font-family: var(--font-body); transition: var(--transition);
}
.dash-coa-download:hover { filter: brightness(1.1); }

/* ================================================================
   MY ORDERS — Editorial Ledger
   ================================================================ */
.editorial-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 17px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em; color: var(--accent); text-transform: lowercase;
}
.editorial-h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400; line-height: 1.05; letter-spacing: -0.015em;
  color: var(--text); font-size: 56px; margin-top: 14px;
}
.editorial-h1 em { font-style: italic; color: var(--accent); }
.editorial-sub {
  font-family: 'Newsreader', serif; font-size: 17px; line-height: 1.55;
  color: var(--text-muted); max-width: 540px; margin-top: 12px;
}
.mono-label {
  font: 400 16px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em; text-transform: lowercase; color: var(--text-muted);
}
.mono-id { font: 500 12px/1 'Alegreya SC', Georgia, serif; letter-spacing: 0.04em; color: var(--accent); font-variant-numeric: lining-nums; }
.status-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px;
  font: 600 12px/1 'IBM Plex Sans', 'Inter', sans-serif; letter-spacing: 0.02em;
  text-transform: none; white-space: nowrap; border-radius: 0;
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-pill.payment   { background: var(--gold-dim); color: #b07d0a; }
.status-pill.payment   .dot { background: var(--warning); }
.status-pill.received  { background: var(--moss-dim); color: #1e8a54; }
.status-pill.received  .dot { background: var(--success); }
.status-pill.sample    { background: var(--moss-dim); color: #1e8a54; }
.status-pill.sample    .dot { background: var(--success); }
.status-pill.testing   { background: var(--accent-dim); color: var(--accent); }
.status-pill.testing   .dot { background: var(--accent); }
.status-pill.complete  { background: var(--accent-dim); color: var(--accent); }
.status-pill.complete  .dot { background: var(--accent); }
.va-search-row {
  display: flex; gap: 16px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--border);
  background: var(--bg-input); margin: 24px 0 30px;
}
.va-search-input {
  flex: 1; min-width: 180px; padding: 7px 0; background: transparent; border: none; outline: none;
  font: 400 14px/1 'Inter', sans-serif; color: var(--text);
}
.va-search-input::placeholder { color: var(--text-dim); }
.va-search-divider { width: 1px; height: 16px; background: var(--border); }
.va-search-count { font: 400 16px/1 'Alegreya SC', Georgia, serif; letter-spacing: 0.05em; color: var(--text-muted); white-space: nowrap; text-transform: lowercase; }
.va-bulk-section { margin-bottom: 36px; }
.va-bulk-invoices { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.va-invoice-state {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 12px/1 'IBM Plex Sans', 'Inter', sans-serif; letter-spacing: 0.02em;
  text-transform: none; color: #1e8a54; background: var(--moss-dim);
  padding: 5px 8px; white-space: nowrap;
}
.va-invoice-state .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); }
.va-invoice-link { font-size: 14px; font-weight: 600; color: var(--accent); }
.va-table { width: 100%; border-collapse: collapse; margin-top: 4px; }
.va-table thead tr { border-bottom: 2px solid rgba(27,42,61,0.35); }
.va-table th {
  padding: 14px 12px 14px 0; text-align: left;
  font: 400 16px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--text-muted); white-space: nowrap; background: var(--bg);
}
.va-table th.r { text-align: right; padding-right: 0; }
.va-table tbody tr.va-main { border-bottom: 1px solid var(--border); cursor: pointer; transition: var(--transition); }
.va-table tbody tr.va-main:hover { background: rgba(26,109,181,0.04); }
.va-table tbody tr.va-main.open { background: rgba(26,109,181,0.04); border-bottom: 1px solid transparent; }
.va-table tbody tr.va-main td { padding: 16px 12px 16px 0; vertical-align: middle; }
.va-table tbody tr.va-main td.r { text-align: right; padding-right: 0; }
.va-td-compound { font-family: var(--font-body); font-size: 1.02rem; font-weight: 600; font-style: normal; color: var(--text); }
.va-td-amount { font: 500 14px/1 'Inter', sans-serif; color: var(--text); }
.va-td-date { font-size: 13px; color: var(--text-muted); }
.va-chevron { color: var(--text-dim); transition: transform 0.2s; }
.va-main.open .va-chevron { transform: rotate(90deg); color: var(--accent); }
tr.va-drawer { background: rgba(26,109,181,0.04); }
tr.va-drawer.collapsed { display: none; }
tr.va-drawer td { border-bottom: 1px solid var(--border); padding: 4px 0 28px; }
.va-drawer-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; padding: 0 12px 0 0; align-items: start; }
.va-timeline { display: grid; grid-template-columns: repeat(3, 1fr); position: relative; padding: 18px 0 6px; }
.va-timeline::before { content: ''; position: absolute; left: 12px; right: 12px; top: 30px; height: 1px; background: var(--border); }
.va-tl-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 12px; }
.va-tl-pip {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font: 500 11px/1 'Alegreya SC', Georgia, serif; color: var(--text-dim);
  position: relative; z-index: 1;
  font-variant-numeric: lining-nums;
}
.va-tl-step.done .va-tl-pip { background: var(--accent); border-color: var(--accent); color: #fff; }
.va-tl-step.current .va-tl-pip { background: var(--bg); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }
.va-tl-label { font: 500 11px/1.3 'Inter', sans-serif; color: var(--text-muted); letter-spacing: 0.02em; }
.va-tl-step.done .va-tl-label, .va-tl-step.current .va-tl-label { color: var(--text); }
.va-drawer-side { padding-top: 18px; }
.va-drawer-side > h4 {
  font: 400 16px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--text-muted); margin-bottom: 10px;
}
.va-detail-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px; }
.va-detail-rows dt { color: var(--text-muted); }
.va-detail-rows dd { color: var(--text); text-align: right; }
.va-drawer-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.cta-now {
  background: var(--accent); color: #fff; border: 1px solid var(--accent); border-radius: 0;
  padding: 8px 16px; font: 600 17px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em; text-transform: lowercase; cursor: pointer;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.cta-now:hover { filter: brightness(1.08); }
.cta-results {
  background: var(--text); color: #fff; border: 1px solid var(--text); border-radius: 0;
  padding: 8px 16px; font: 600 17px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em; text-transform: lowercase; cursor: pointer;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.cta-results:hover { background: var(--accent); border-color: var(--accent); }

/* ================================================================
   AFFILIATE PORTAL
   ================================================================ */
.affiliate-shell { max-width: 1120px; margin: 0 auto; }
.affiliate-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px; align-items: end; padding-bottom: 28px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.affiliate-hero-main { max-width: 720px; }
.affiliate-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font: 400 17px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em; color: var(--accent); text-transform: lowercase;
}
.affiliate-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(44px, 6vw, 72px); font-weight: 400; line-height: 0.98;
  color: var(--text); margin-top: 14px; letter-spacing: -0.01em;
}
.affiliate-title em { color: var(--accent); font-style: italic; }
.affiliate-title-accent { color: var(--accent); font-style: normal; font-weight: 700; }
.affiliate-sub {
  font-family: 'Newsreader', serif; font-size: 17px; line-height: 1.55;
  color: var(--text-muted); margin-top: 14px; max-width: 650px;
}
.affiliate-hero-side {
  min-width: 210px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  border-left: 1px solid var(--border); padding-left: 24px;
}
.affiliate-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 16px/1 'Alegreya SC', Georgia, serif; letter-spacing: 0.05em;
  text-transform: lowercase; color: #1e8a54; background: var(--moss-dim);
  padding: 8px 10px; white-space: nowrap;
}
.affiliate-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.affiliate-rate {
  font: 400 14px/1.4 'Inter', sans-serif; color: var(--text-muted);
}
.affiliate-rate strong {
  display: block; font-family: var(--font-body);
  font-size: 1.45rem; line-height: 1.1; font-weight: 700; color: var(--accent);
}
.affiliate-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 18px; margin-bottom: 18px; }
.affiliate-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.affiliate-card-title {
  font-size: 0.92rem; font-weight: 700; color: var(--text);
  margin-bottom: 0.35rem;
}
.affiliate-card-sub { font-size: 0.92rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 18px; }
.affiliate-copy-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px;
  align-items: stretch; margin-top: 14px;
}
.affiliate-copy-input {
  width: 100%; min-width: 0; background: var(--bg-input); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); font: 500 14px/1 'Inter', sans-serif;
  padding: 12px 14px; outline: none;
}
.affiliate-copy-btn {
  background: var(--accent); border: 1px solid var(--accent); border-radius: var(--radius);
  color: #fff; cursor: pointer; font: 700 17px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em; text-transform: lowercase; padding: 0 18px; min-width: 96px;
  transition: var(--transition);
}
.affiliate-copy-btn:hover { filter: brightness(1.08); }
.affiliate-code-card {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 170px;
}
.affiliate-code-chip {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 58px; padding: 0 18px; background: var(--accent-dim);
  border: 1px solid rgba(26,109,181,0.22); color: var(--accent);
  font: 700 20px/1 'Alegreya SC', Georgia, serif; letter-spacing: 0.05em;
  align-self: flex-start;
  font-variant-numeric: lining-nums;
}
.affiliate-metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px;
}
.affiliate-metric {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
}
.affiliate-metric-value {
  font-family: var(--font-body);
  font-size: 1.35rem; line-height: 1.1; font-weight: 700; color: var(--accent);
}
.affiliate-metric-label {
  margin-top: 10px; font: 500 16px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em; text-transform: lowercase; color: var(--accent);
}
.affiliate-metric-note { margin-top: 8px; color: var(--text-muted); font-size: 0.82rem; line-height: 1.45; }
.affiliate-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.affiliate-panel { min-width: 0; }
.affiliate-form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.affiliate-empty {
  color: var(--text-muted); background: var(--bg-input);
  border: 1px dashed var(--border); border-radius: var(--radius);
  padding: 18px; font-size: 0.92rem; line-height: 1.55;
}
.affiliate-table-wrap { width: 100%; overflow-x: auto; }
.affiliate-status-pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px;
  font: 500 16px/1 'Alegreya SC', Georgia, serif; letter-spacing: 0.05em;
  text-transform: lowercase; color: var(--text-muted); background: var(--bg-input);
  white-space: nowrap;
}
.affiliate-status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); }
.affiliate-status-pill.pending { color: #b07d0a; background: var(--gold-dim); }
.affiliate-status-pill.pending::before { background: var(--warning); }
.affiliate-status-pill.approved,
.affiliate-status-pill.paid { color: #1e8a54; background: var(--moss-dim); }
.affiliate-status-pill.approved::before,
.affiliate-status-pill.paid::before { background: var(--success); }
.affiliate-status-pill.void,
.affiliate-status-pill.clawed_back,
.affiliate-status-pill.cancelled { color: var(--danger); background: rgba(217,64,64,0.08); }
.affiliate-status-pill.void::before,
.affiliate-status-pill.clawed_back::before,
.affiliate-status-pill.cancelled::before { background: var(--danger); }
.affiliate-application-card { max-width: 860px; }
@media (max-width: 700px) {
  .editorial-h1 { font-size: 36px; }
  #page-dashboard { overflow-x: auto; }
  .va-search-row { flex-wrap: wrap; gap: 12px; }
  .va-search-input { flex-basis: 100%; order: 2; min-height: 40px; }
  .va-search-divider { display: none; }
  .va-search-count { margin-left: auto; }
  .va-table { min-width: 600px; }
  .va-table.va-cards { min-width: 0; }
  .va-cards thead { display: none; }
  .va-cards, .va-cards tbody { display: block; width: 100%; }
  .va-cards tr.va-main, .va-cards tr.va-drawer:not(.collapsed) { display: block; padding: 12px 0; }
  .va-cards tbody tr.va-main td, .va-cards tr.va-drawer td { display: block; padding: 4px 0; text-align: left; }
  .va-cards tbody tr.va-main td.r { text-align: left; padding-right: 0 !important; }
  .va-cards tr.va-main td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 96px; margin-right: 8px; font: 400 14px/1.4 'Alegreya SC', Georgia, serif; letter-spacing: 0.05em; text-transform: lowercase; color: var(--text-muted); }
  .va-cards tr.va-main td:first-child:not([data-label]) { display: none; }
  .va-cards .status-pill { float: none !important; }
  .va-cards tr.va-drawer td { padding: 0 0 16px; }
  .va-drawer-inner { grid-template-columns: 1fr; gap: 24px; }
  .affiliate-hero,
  .affiliate-grid,
  .affiliate-panel-grid { grid-template-columns: 1fr; }
  .affiliate-hero-side { border-left: none; border-top: 1px solid var(--border); padding: 18px 0 0; }
  .affiliate-metrics { grid-template-columns: 1fr 1fr; }
  .affiliate-copy-row { grid-template-columns: 1fr; }
  .affiliate-copy-btn { min-height: 44px; }
  .affiliate-card { padding: 18px; }
}

/* ================================================================
   VERIFY COA
   ================================================================ */
.vcoa-intro {
  max-width: 650px; margin: 0 auto 2rem;
  font-size: 0.95rem; color: var(--text-muted); line-height: 1.7;
  text-align: center;
}
.vcoa-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  max-width: 540px; margin: 0 auto 2rem;
  text-align: center;
}
.vcoa-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: 0.6; }
.vcoa-box h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.35rem; }
.vcoa-box > p {
  font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.6;
}
.vcoa-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.25rem; text-align: left;
}
#vcoaResult { margin-top: 1.5rem; text-align: left; }
.vcoa-success {
  background: rgba(46,173,107,0.05); border: 1px solid rgba(46,173,107,0.18);
  border-radius: var(--radius); padding: 1.5rem;
}
.vcoa-success h4 {
  color: #1e8a54; font-size: 1rem; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.vcoa-success-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.vcoa-success-item .vs-label {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim); margin-bottom: 0.15rem; font-weight: 600;
}
.vcoa-success-item .vs-value { font-size: 0.95rem; color: var(--text); }
.vcoa-download {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #FFFFFF;
  border: none; padding: 0.7rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem; cursor: pointer;
  font-family: var(--font-body); transition: var(--transition);
}
.vcoa-download:hover { filter: brightness(1.1); }
.vcoa-fail {
  background: rgba(217,64,64,0.05); border: 1px solid rgba(217,64,64,0.18);
  border-radius: var(--radius); padding: 1.25rem;
  color: var(--danger); font-size: 0.95rem;
  display: flex; align-items: start; gap: 0.5rem; line-height: 1.5;
}
.vcoa-info {
  max-width: 540px; margin: 0 auto;
  border-top: 1px solid var(--border); padding-top: 1.5rem;
}
.vcoa-info h4 {
  font-size: 0.92rem; font-weight: 600; margin-bottom: 0.4rem; margin-top: 1.25rem;
}
.vcoa-info h4:first-child { margin-top: 0; }
.vcoa-info p {
  font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.5rem;
}

/* ================================================================
   ABOUT THE LAB
   ================================================================ */
.about-intro {
  max-width: 700px; margin: 0 auto 2.5rem;
  font-size: 0.98rem; color: var(--text-muted); line-height: 1.8;
  text-align: center;
}
.about-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-bottom: 2.5rem;
}
.about-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: var(--transition);
}
.about-card:hover { border-color: var(--border-hover); }
.about-card-icon {
  font-size: 1.5rem; margin-bottom: 0.75rem; opacity: 0.7;
}
.about-card h3 {
  font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem;
}
.about-card p {
  font-size: 0.98rem; color: var(--text-muted); line-height: 1.6;
}
.about-location {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
}
.about-location h3 {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 700; margin-bottom: 1.25rem;
}
.about-location-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}
.about-detail-label {
  font-size: 0.98rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-dim); margin-bottom: 0.3rem; font-weight: 600;
}
.about-detail-value {
  font-size: 1rem; color: var(--text-muted); line-height: 1.6;
}

/* ================================================================
   MOBILE OVERRIDES FOR NEW FEATURES
   ================================================================ */
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .steps-grid::before { display: none; }
  .step-num { width: 44px; height: 44px; font-size: 1.1rem; }
  .step-card p { font-size: 0.98rem; }
}
@media (max-width: 600px) {
  .steps-grid { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
  .step-card { max-width: 320px; width: 100%; }
  .step-num { width: 48px; height: 48px; font-size: 1.1rem; }
  .step-card h3 { font-size: 1rem; margin-top: 0.6rem; }
  .step-card p { font-size: 0.9rem; line-height: 1.5; margin-top: 0.35rem; }

  .category-tabs { gap: 0.35rem; }
  .cat-tab { padding: 0.4rem 0.75rem; font-size: 0.98rem; min-height: 44px; }

  .qty-btn { width: 44px; height: 44px; font-size: 1.1rem; flex-shrink: 0; }


  .how-it-works { padding: 4rem 0 2.5rem; }
  .coa-preview { padding: 2.5rem 0 2rem; }
  .hiw-header h2 { font-size: 1.6rem; }
  .hiw-header p { font-size: 0.88rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-location-grid { grid-template-columns: 1fr; }
  .about-intro { font-size: 0.98rem; }

  .crypto-selector { gap: 0.35rem; }
  .crypto-coin { padding: 0.5rem 0.65rem; min-width: 56px; }
  .coin-symbol { font-size: 1rem; }
  .crypto-addr { font-size: 0.68rem; max-width: 180px; }

  .verify-input-row { flex-direction: column; align-items: stretch; }
  .verify-input-row input { font-size: 16px; }
  .verify-input-row .btn-primary { width: 100% !important; min-height: 44px; }
  .verify-found-grid { grid-template-columns: 1fr 1fr; }
  .public-filters { flex-direction: column; }
  .public-filters select { width: 100%; font-size: 16px; }
  .public-table { font-size: 0.82rem; }
  .public-table th, .public-table td { padding: 0.6rem 0.75rem; }

  .vcoa-fields { grid-template-columns: 1fr; }
  .vcoa-fields input { font-size: 16px; }
  .vcoa-input { font-size: 16px; }
  .vcoa-success-grid { grid-template-columns: 1fr; }
  .vcoa-box { padding: 1.5rem 1.15rem; }
  .vcoa-intro { font-size: 0.88rem; }

  .dash-coa-grid { grid-template-columns: 1fr 1fr; }
  .dash-coa-header { flex-direction: column; align-items: flex-start; }

  /* --- CART (375px fixes) --- */
  /* Pull remove button out of the flex row and anchor it top-right */
  .cart-item { position: relative; padding: 16px; }
  .cart-item-main { flex-direction: column; align-items: stretch; gap: 8px; }
  .cart-item-info { width: 100%; padding-right: 36px; text-align: left; } /* clear the abs remove btn */
  .cart-item-info h4 { font-size: 16px; font-weight: 600; }
  /* Row 2: qty left, price right */
  .cart-item-right { width: 100%; justify-content: flex-start; }
  .cart-item-price { font-size: 16px; font-weight: 600; }
  .remove-btn { position: absolute; top: 12px; right: 12px; min-width: 44px; min-height: 44px; }

  /* Addons breathing room */

  /* Subtotal separation */
  .cart-item-subtotal { font-size: 15px; padding-top: 14px; margin-top: 4px; }

  /* Checkout button tap target */
  .cart-summary .btn-primary { padding: 16px; font-size: 16px; }
}
@media (max-width: 420px) {
  .steps-grid { gap: 1.5rem; }
}

/* ================================================================
   ABOUT PAGE — REDESIGN
   ================================================================ */

/* When About is active, main goes full-width, no padding */
#app.show-about main {
  max-width: none;
  padding: 0;
}

/* When home hero-gradient is active, main goes full-width */
#app.show-hero-gradient main {
  max-width: none;
  padding: 0;
}

/* When Verify is active, main goes full-width */
#app.show-verify main {
  max-width: none;
  padding: 0;
}

/* ================================================================
   VERIFY COA PAGE (Editorial design)
   ================================================================ */
:root {
  --vcoa-blue: #1e4d8c;
  --vcoa-blue-deep: #0f2d5c;
  --vcoa-ink: #141518;
  --vcoa-paper: #fafaf7;
  --vcoa-rule: rgba(20,21,24,0.10);
  --vcoa-mute: rgba(20,21,24,0.55);
  --vcoa-green: #1a7a4a;
  --vcoa-green-bg: rgba(46,173,107,0.06);
  --vcoa-red: #c23e3e;
  --vcoa-red-bg: rgba(194,62,62,0.06);
}

/* Hero */
.vcoa-hero {
  background: var(--vcoa-paper);
  padding: 140px 48px 80px;
  border-bottom: 1px solid var(--vcoa-rule);
}
.vcoa-hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 96px; align-items: start;
}

/* Eyebrow */
.vcoa-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 17px; letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--vcoa-blue);
}

/* Headline */
.vcoa-h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(56px, 6.5vw, 92px);
  font-weight: 400; line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--vcoa-ink);
  margin: 20px 0 24px;
}
.vcoa-h1 em { font-style: italic; color: var(--vcoa-blue-deep); }

.vcoa-lead {
  font-size: 18px; line-height: 1.55;
  color: var(--vcoa-mute); max-width: 520px; margin: 0;
}

/* Stats strip */
.vcoa-stats {
  margin-top: 36px;
  display: flex; gap: 32px;
  padding-top: 24px; border-top: 1px solid var(--vcoa-rule);
  align-items: flex-end;
}
.vcoa-stat-n {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 32px; font-style: italic;
  color: var(--vcoa-ink); line-height: 1; font-weight: 400;
  letter-spacing: -0.01em;
}
.vcoa-stat-label {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 16px; letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--vcoa-mute); margin-top: 8px;
}
.vcoa-stat-divider { width: 1px; align-self: stretch; background: var(--vcoa-rule); }

/* Form card */
.vcoa-form-card {
  background: #fff;
  border: 1px solid var(--vcoa-rule);
  border-radius: 6px; padding: 32px;
  box-shadow: 0 1px 0 rgba(20,21,24,0.02), 0 24px 48px -24px rgba(20,21,24,0.12);
}
.vcoa-form-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.vcoa-form-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 22px; color: var(--vcoa-ink); font-style: italic;
}
.vcoa-form-num {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 16px; letter-spacing: 0.05em; color: var(--vcoa-mute);
  text-transform: lowercase;
}
.vcoa-form-body { display: grid; gap: 18px; }
.vcoa-label {
  display: block;
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 16px; letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--vcoa-mute); margin-bottom: 6px;
}
.vcoa-input {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--vcoa-rule); border-radius: 6px;
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 14px; letter-spacing: 0.04em;
  background: #fff; color: var(--vcoa-ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  font-variant-numeric: lining-nums;
}
.vcoa-input:focus {
  border-color: var(--vcoa-blue);
  box-shadow: 0 0 0 3px rgba(30,77,140,0.13);
}
.vcoa-hint { display: block; font-size: 12px; color: rgba(20,21,24,0.45); margin-top: 5px; }
.vcoa-submit {
  width: 100%; margin-top: 6px;
  background: var(--vcoa-blue); color: #fff; border: none;
  border-radius: 6px; padding: 13px 18px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.15s;
}
.vcoa-submit:hover { opacity: 0.9; }
.vcoa-rate-notice {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--vcoa-mute);
  display: flex; align-items: center; gap: 6px;
  font-variant-numeric: lining-nums;
}

/* Result states */
@keyframes resultFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-fade { animation: resultFade 0.4s cubic-bezier(0.2,0.8,0.2,1); }
@keyframes spin { to { transform: rotate(360deg); } }
.vcoa-spinner {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: spin 0.8s linear infinite; vertical-align: middle;
}

.vcoa-result-success {
  margin-top: 12px;
  border: 1px solid var(--vcoa-rule);
  border-top: 2px solid var(--vcoa-green);
  border-radius: 4px; background: #fff; overflow: hidden;
}
.vcoa-result-success-header {
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  background: var(--vcoa-green-bg);
  border-bottom: 1px solid var(--vcoa-rule);
}
.vcoa-result-seal {
  width: 28px; height: 28px; flex-shrink: 0;
}
.vcoa-verified-tag {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 16px; letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--vcoa-green); font-weight: 600;
}
.vcoa-verified-desc { font-size: 13px; color: var(--vcoa-ink); margin-top: 2px; }
.vcoa-result-table { overflow-x: auto; margin-top: 18px; }
.vcoa-result-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.vcoa-result-table th, .vcoa-result-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--vcoa-rule); }
.vcoa-result-dim { opacity: .55; }
.vcoa-result-tag { border: 1px solid var(--vcoa-rule); border-radius: 3px; padding: 2px 5px; font-weight: 600; }
.vcoa-result-methods { font-size: 13px; color: var(--vcoa-ink); }
.vcoa-result-body { padding: 20px 24px 22px; }
.vcoa-result-compound {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px; line-height: 1.15;
  color: var(--vcoa-ink); font-style: italic;
}
.vcoa-result-meta {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 13px; letter-spacing: 0.05em;
  color: var(--vcoa-mute); margin-top: 2px;
  font-variant-numeric: lining-nums;
}
.vcoa-result-grid {
  margin-top: 18px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding-top: 18px; border-top: 1px solid var(--vcoa-rule);
}
.vcoa-data-label {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 16px; letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--vcoa-mute);
}
.vcoa-data-value {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 14px; color: var(--vcoa-ink);
  margin-top: 4px; font-weight: 500;
  font-variant-numeric: lining-nums;
}
.vcoa-result-footer {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--vcoa-rule);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.vcoa-sha-note {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 11px; color: var(--vcoa-mute); letter-spacing: 0.06em;
  font-variant-numeric: lining-nums;
}
.vcoa-download-link {
  font-size: 13px; font-weight: 600; color: var(--vcoa-blue);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.vcoa-download-link:hover { text-decoration: underline; }

.vcoa-result-notfound {
  margin-top: 12px;
  border: 1px solid var(--vcoa-rule);
  border-top: 2px solid var(--vcoa-red);
  border-radius: 4px;
  background: var(--vcoa-red-bg);
  padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
}
.vcoa-error-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--vcoa-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; flex-shrink: 0;
}
.vcoa-notfound-tag {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 16px; letter-spacing: 0.05em; text-transform: lowercase;
  color: var(--vcoa-red); font-weight: 600;
}
.vcoa-notfound-body { font-size: 14px; color: var(--vcoa-ink); margin-top: 6px; line-height: 1.5; }
.vcoa-notfound-body a { color: var(--vcoa-blue); font-weight: 500; }

/* Anatomy section */
.vcoa-anatomy {
  background: var(--vcoa-paper);
  padding: 100px 48px;
}
.vcoa-anatomy-inner { max-width: 1280px; margin: 0 auto; }
.vcoa-anatomy-header { text-align: center; margin-bottom: 56px; }
.vcoa-anatomy-h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(34px, 3.5vw, 50px);
  font-weight: 400; line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--vcoa-ink);
  margin: 16px auto 0; max-width: 720px;
}
.vcoa-anatomy-h2 em { font-style: italic; color: var(--vcoa-blue-deep); }

/* Decorative COA card */
.vcoa-coa-preview {
  background: #fff;
  border: 1px solid var(--vcoa-rule);
  padding: 32px;
  aspect-ratio: 8.5 / 11;
  max-width: 460px; margin: 0 auto;
  box-shadow: 0 1px 0 rgba(20,21,24,0.02), 0 30px 60px -28px rgba(20,21,24,0.18);
  position: relative; font-size: 11px;
  box-sizing: border-box;
}
.vcoa-coa-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.vcoa-coa-meta-label { font-family: 'Alegreya SC', Georgia, serif; font-size: 14px; letter-spacing: 0.05em; color: var(--vcoa-mute); text-transform: lowercase; }
.vcoa-coa-meta-val { font-family: 'Alegreya SC', Georgia, serif; font-size: 13px; color: var(--vcoa-ink); margin-top: 2px; font-weight: 500; font-variant-numeric: lining-nums; }
.vcoa-coa-meta-val.accent { color: var(--vcoa-blue); font-weight: 600; }
.vcoa-coa-compound-block { border-bottom: 1px solid var(--vcoa-rule); padding-bottom: 16px; margin-bottom: 16px; }
.vcoa-coa-compound-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px; font-style: italic; color: var(--vcoa-ink); margin-top: 4px;
}
.vcoa-coa-compound-sub { font-family: 'Alegreya SC', Georgia, serif; font-size: 11px; color: var(--vcoa-mute); margin-top: 2px; font-variant-numeric: lining-nums; }
.vcoa-coa-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.vcoa-coa-trace { height: 70px; position: relative; margin-bottom: 18px; background: rgba(20,21,24,0.02); }
.vcoa-coa-footer { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--vcoa-rule); }
.vcoa-coa-hplc { font-family: 'Alegreya SC', Georgia, serif; font-size: 9px; color: var(--vcoa-mute); font-variant-numeric: lining-nums; }
.vcoa-coa-analyst { font-family: 'Instrument Serif', Georgia, serif; font-size: 14px; font-style: italic; color: var(--vcoa-ink); }

/* Responsive */
@media (max-width: 900px) {
  .vcoa-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .vcoa-h1 { font-size: clamp(44px, 8vw, 72px); }
  .vcoa-hero { padding: 110px 32px 64px; }
  .vcoa-anatomy { padding: 72px 32px; }
}
@media (max-width: 600px) {
  .vcoa-hero { padding: 90px 20px 48px; }
  .vcoa-anatomy { padding: 56px 20px; }
  .vcoa-stats { gap: 20px; flex-wrap: wrap; }
  .vcoa-result-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .vcoa-result-grid { grid-template-columns: 1fr; }
  .vcoa-result-footer { align-items: flex-start; flex-direction: column; }
  .vcoa-data-value { overflow-wrap: anywhere; }
}

/* ================================================================
   HERO FULLBLEED
   ================================================================ */
.hero-fullbleed {
  position: relative;
  padding: 130px 0 80px;
  min-height: 100vh;
  background: linear-gradient(180deg, #050d1c 0%, #0a1830 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hfb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hfb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
  width: 100%;
}
.hfb-content { max-width: 720px; }
@media (min-width: 769px) {
  .hfb-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "content" "stats" "media";
  }
  .hfb-content { grid-area: content; }
  .hfb-media-col { grid-area: media; min-width: 0; max-width: 460px; margin-top: 44px; }
  .hfb-stats { grid-area: stats; }
}
@media (min-width: 1000px) {
  .hfb-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "content media" "stats media";
    column-gap: 48px;
  }
  .hfb-media-col { position: relative; max-width: none; margin-top: 0; }
  /* Card spans the headline top to the bottom of the stats row: it takes the
     text column's height and gets its width from the 4:5 shape. */
  .hfb-media-col .eca-hero-media {
    position: absolute; top: 0; left: 50%;
    height: 100%; width: auto; max-width: 100%;
    transform: translateX(-50%);
  }
  /* When the column is too narrow for the full height, keep 4:5 and center
     the card on the text instead of squishing it. */
  @supports (container-type: size) {
    .hfb-media-col { container-type: size; }
    .hfb-media-col .eca-hero-media {
      top: 50%; height: auto; max-width: none;
      width: min(100cqw, 80cqh);
      transform: translate(-50%, -50%);
    }
  }
}
@media (min-width: 1200px) {
  .hfb-inner { grid-template-columns: minmax(0, 720px) minmax(0, 1fr); }
}
/* Large screens: let the video column reach into the right margin (up to
   160px) so the card can grow, while the text stays aligned with the
   sections below. */
@media (min-width: 1440px) {
  .hfb-media-col { margin-right: calc(-1 * min(160px, (100vw - 1344px) / 2)); }
}
/* Laptops: the text block is short, so let the card run a little past the
   headline top and stats bottom (centered on the text) instead of shrinking. */
@media (min-width: 1000px) and (max-width: 1599px) {
  @supports (container-type: size) {
    .hfb-media-col .eca-hero-media { width: min(100cqw, 92cqh); }
  }
}
.hfb-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(56px, 8vw, 112px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  color: #fff;
  margin: 0 0 28px;
}
.hfb-headline-line { display: block; }
.hfb-headline em {
  font-style: italic;
  color: rgba(232,238,249,0.55);
}
.hfb-sub {
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(232,238,249,0.7);
  max-width: 520px;
  margin: 0 0 44px;
}
.hfb-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hfb-cta-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  background: #fff; color: #0a1830;
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: none; cursor: pointer;
  box-shadow: 0 4px 24px rgba(255,255,255,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hfb-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(255,255,255,0.18);
}
.hfb-cta-secondary {
  display: inline-flex; align-items: center;
  padding: 16px 24px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.2s;
}
.hfb-cta-secondary:hover { background: rgba(255,255,255,0.06); }
.hfb-stats {
  display: flex; align-items: stretch;
  margin-top: 52px;
}
.hfb-stat { padding: 0 26px; border-left: 1px solid rgba(255,255,255,0.16); }
.hfb-stat:first-child { padding-left: 0; border-left: none; }
.hfb-stat-value {
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  font-size: 30px; color: #fff; line-height: 1; font-weight: 600;
  letter-spacing: -0.01em;
}
.hfb-stat-label {
  font-family: 'IBM Plex Sans', 'Inter', sans-serif;
  font-size: 14px; font-weight: 400; letter-spacing: 0;
  color: rgba(232,238,249,0.62); margin-top: 8px;
}

/* Hero video card */
.eca-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  background: #0A1327 url("/media/ECA_Hero_Video_4x5_poster.jpg") center / cover no-repeat;
}
.eca-hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.eca-sound-btn {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(8, 14, 30, 0.78);
  color: #fff; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1;
  cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.eca-sound-btn:hover { background: rgba(8, 14, 30, 0.92); }
.eca-sound-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* Big play button: only when autoplay is blocked or reduced motion is on */
.eca-play-btn {
  position: absolute; left: 50%; top: 72%; transform: translate(-50%, -50%); z-index: 2;
  display: none; align-items: center; gap: 10px;
  padding: 14px 22px 14px 18px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(8, 14, 30, 0.8);
  color: #fff; font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.eca-play-btn svg { width: 14px; height: 14px; fill: currentColor; }
.eca-hero-media.is-idle .eca-play-btn { display: inline-flex; }
.eca-hero-media.is-idle .eca-sound-btn { display: none; }
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
  transition: opacity 0.2s;
}
.scroll-hint-label {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 14px; letter-spacing: 0.05em; text-transform: lowercase;
  color: rgba(232,238,249,0.5);
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, rgba(232,238,249,0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.5; }
  50%       { transform: scaleY(0.4); transform-origin: top; opacity: 1; }
}

/* ================================================================
   CATALOG SECTION WRAPPER (below hero)
   ================================================================ */
.catalog-section {
  background: var(--bg);
  padding: 0 32px 120px;
}
.catalog-inner { max-width: 1280px; margin: 0 auto; }

/* ================================================================
   HOW IT WORKS — animated 4-step band
   Design: "ECA How It Works Animation" project, variant 1A.
   Four columns, each looping its own product moment. Pure CSS:
   no state, no scroll trigger, no interaction. Loop lengths differ
   per step (9s / 7s / 4.5s / 4.5s) so the columns never sync into
   one pulsing beat.
   ================================================================ */
.hiw-strip {
  background: #fffdf8;
  border-top: 1px solid #e2e0d6;
  border-bottom: 1px solid #e2e0d6;
  padding: clamp(28px, 4vw, 52px) clamp(16px, 3vw, 40px);
}
/* margin-left:-1px + overflow:hidden clips the first column's left rule */
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  margin-left: -1px;
}
.hiw-strip-step {
  border-left: 1px solid #e2e0d6;
  padding: 4px clamp(16px, 2.4vw, 30px) 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hiw-strip-num {
  font: 600 20px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em;
  color: #1a6db5;
  text-transform: lowercase;
}
.hiw-strip-title {
  margin: 0;
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 29px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #071e38;
}
.hiw-strip-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #566577;
  text-wrap: pretty;
}
/* flex:none keeps each scene at its own size instead of being squeezed.
   110px is the largest floor that costs no height: step 01's three rows
   (138px) set the band, and above 110 step 02's two-line body plus a padded
   well overtakes it and pushes the whole band taller. */
.hiw-well {
  margin-top: 8px;
  min-height: 110px;
  flex: none;
}

/* --- 01 Order online (plays 0-17.3%) --- */
/* The cursor rises from below, clicks the middle row, then leaves. That row
   stays selected for the rest of the loop while steps 02-04 play. */
.hiw-well-order {
  display: flex; flex-direction: column; gap: 7px;
  padding-bottom: 4px; position: relative;
}
.hiw-row {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid #e2e0d6; border-radius: 9px;
  padding: 9px 11px; background: #fff;
}
.hiw-row-live { animation: eca-pick 7.5s linear infinite; }
.hiw-box {
  width: 14px; height: 14px; border-radius: 4px;
  border: 1.5px solid #bcc6d2; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.hiw-row-live .hiw-box { animation: eca-box 7.5s linear infinite; }
.hiw-tick {
  width: 7px; height: 7px; border-radius: 2px; background: #1a6db5;
  animation: eca-tick 7.5s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}
.hiw-row-name { font-size: 12.5px; font-weight: 600; color: #16233a; }
.hiw-row-price { margin-left: auto; font: 600 12px/1 "JetBrains Mono", monospace; color: #566577; }
.hiw-cursor {
  position: absolute; right: -2px; top: 104px; width: 15px; opacity: 0;
  animation: eca-cursor 7.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.hiw-cursor svg {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 2px 3px rgba(7,30,56,0.35));
}

/* --- 02 Ship sample (plays 11.3-36.7%) --- */
/* The package rides in from the left, up the tailgate ramp, into the truck.
   The ramp folds up, then the truck drives off. */
/* overflow:hidden keeps the departing truck inside its own column instead of
   sliding across the divider into step 03. */
.hiw-ship { position: relative; height: 108px; overflow: hidden; }
.hiw-road {
  position: absolute; bottom: 6px; left: 0; right: 0; height: 1.5px;
  background: repeating-linear-gradient(90deg, #c9d2dc 0 7px, transparent 7px 15px);
}
.hiw-pkg {
  position: absolute; bottom: 7px; width: 26px;
  animation: eca-pkg 7.5s linear infinite;
}
.hiw-pkg svg { display: block; width: 100%; height: auto; }
.hiw-truck {
  position: absolute; left: 26%; bottom: 3px; width: min(158px, 68%);
  animation: eca-truck 7.5s linear infinite;
}
.hiw-truck > svg { display: block; width: 100%; height: auto; overflow: visible; }
.hiw-wheel {
  transform-box: fill-box; transform-origin: center;
  animation: eca-wheel 7.5s linear infinite;
}
.hiw-ramp {
  position: absolute; bottom: 17px; right: calc(100% - 7px);
  width: 50px; height: 3.5px; border-radius: 2px; background: #071e38;
  transform-origin: right center;
  transform: rotate(-16deg) scaleX(1);
  animation: eca-ramp 7.5s linear infinite;
}

/* --- 03 Lab analysis (plays 32-48%) --- */
.hiw-card {
  position: relative; border: 1px solid #e2e0d6; border-radius: 9px;
  background: #fff;
}
.hiw-card-hplc { padding: 10px 10px 8px; overflow: hidden; }
.hiw-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
}
.hiw-mono-label {
  font: 700 14px/1 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.05em; color: #566577;
  text-transform: lowercase;
}
.hiw-status {
  font: 600 9.5px/1 'Alegreya SC', Georgia, serif; color: #12558f;
  animation: eca-shimmer 1.8s ease-in-out infinite;
  font-variant-numeric: lining-nums;
}
.hiw-chart { display: block; width: 100%; height: 96px; overflow: visible; }
.hiw-trace { animation: eca-draw 7.5s linear infinite; }
.hiw-peak { animation: eca-peak 7.5s ease-out infinite; }

/* --- 04 Receive CoA (plays 48-62.7%, then holds completed) --- */
.hiw-card-coa {
  padding: 12px 13px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 18px 30px -28px rgba(7,30,56,0.7);
}
.hiw-coa-head {
  display: flex; justify-content: space-between; align-items: center;
  animation: eca-coa-in 7.5s ease-out infinite;
}
.hiw-skel { height: 5px; border-radius: 3px; background: #eef1f5; overflow: hidden; }
.hiw-skel-short { width: 72%; }
.hiw-skel span {
  display: block; height: 100%; background: #bcc6d2; transform-origin: left;
  animation: eca-line 7.5s ease-out infinite;
}
.hiw-skel-short span { animation-name: eca-line-b; }
.hiw-result {
  display: flex; align-items: baseline; gap: 8px; margin-top: 2px;
  animation: eca-result 7.5s cubic-bezier(0.2, 1.1, 0.4, 1) infinite;
}
.hiw-pct {
  font: 800 24px/1 'Alegreya SC', Georgia, serif; color: #071e38; letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.hiw-pct span { font-size: 14px; }
.hiw-pass {
  font-size: 11px; font-weight: 600; color: #1c8557;
  background: rgba(38,162,105,0.13); padding: 3px 8px; border-radius: 999px;
}
.hiw-hash {
  font: 600 9.5px/1.5 'Alegreya SC', Georgia, serif; color: #12558f;
  word-break: break-all; animation: eca-hash 7.5s linear infinite;
  font-variant-numeric: lining-nums;
}
.hiw-stamp {
  position: absolute; right: 12px; bottom: 12px;
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(26,109,181,0.55); color: #12558f;
  display: flex; align-items: center; justify-content: center;
  font: 700 8px/1.15 'Alegreya SC', Georgia, serif;
  letter-spacing: 0.06em; text-align: center;
  animation: eca-stamp 7.5s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
  font-variant-numeric: lining-nums;
}

/* One 7.5s master timeline. The four steps keep their original timing within
   the first 4.7s, then the completed CoA holds for about 2.6s before reset.
   Only .hiw-status keeps its own independent pulse. */

/* --- 01 --- */
@keyframes eca-cursor {
  0%        { top: 104px; opacity: 0; }
  1.3%       { top: 100px; opacity: 1; }
  7.3%       { top: 49px;  opacity: 1; }
  8.7%       { top: 53px;  opacity: 1; }
  10%, 14%   { top: 49px;  opacity: 1; }
  17.3%, 100% { top: 49px; opacity: 0; }
}
@keyframes eca-pick {
  0%, 8%    { background: #fff; border-color: #e2e0d6; }
  10%, 97%  { background: rgba(26,109,181,0.09); border-color: rgba(26,109,181,0.45); }
  99%, 100% { background: #fff; border-color: #e2e0d6; }
}
@keyframes eca-box {
  0%, 8%    { border-color: #bcc6d2; }
  10%, 97%  { border-color: #1a6db5; }
  99%, 100% { border-color: #bcc6d2; }
}
@keyframes eca-tick {
  0%, 8%    { opacity: 0; transform: scale(0.4); }
  10.7%, 97% { opacity: 1; transform: scale(1); }
  99%, 100% { opacity: 0; transform: scale(0.4); }
}

/* --- 02 --- */
/* Many keyframes on purpose: the package keeps a constant speed on the flat
   and up the ramp. Collapsing this to a few frames with an ease looks jerky. */
@keyframes eca-pkg {
  0%, 11.3% { left: -12%;  bottom: 7px;   opacity: 0;   transform: translate(-50%, 0) rotate(0deg) scale(1); }
  12.7%     { left: -7%;   bottom: 7px;   opacity: 1;   transform: translate(-50%, 0) rotate(0deg) scale(1); }
  16%       { left: 7%;    bottom: 7px;   opacity: 1;   transform: translate(-50%, 0) rotate(0deg) scale(1); }
  17.3%     { left: 12%;   bottom: 8.6px; opacity: 1;   transform: translate(-50%, 0) rotate(-16deg) scale(1); }
  21.3%     { left: 22%;   bottom: 16px;  opacity: 1;   transform: translate(-50%, 0) rotate(-16deg) scale(1); }
  23.3%     { left: 27.4%; bottom: 23px;  opacity: 1;   transform: translate(-50%, 0) rotate(-6deg) scale(1); }
  24.7%     { left: 29.5%; bottom: 23px;  opacity: 1;   transform: translate(-50%, 0) rotate(0deg) scale(1); }
  26%       { left: 32.5%; bottom: 23px;  opacity: 0.4; transform: translate(-50%, 0) rotate(0deg) scale(0.95); }
  27.3%, 100% { left: 35.5%; bottom: 23px; opacity: 0;  transform: translate(-50%, 0) rotate(0deg) scale(0.9); }
}
@keyframes eca-ramp {
  0%, 26.7% { transform: rotate(-16deg) scaleX(1); }
  28.7%     { transform: rotate(-16deg) scaleX(0.55); }
  30%, 97%  { transform: rotate(-16deg) scaleX(0.03); }
  98%, 100% { transform: rotate(-16deg) scaleX(1); }
}
@keyframes eca-truck {
  0%, 28.7% { transform: translateX(0);    opacity: 1; }
  30.7%     { transform: translateX(12%);  opacity: 1; }
  33.3%     { transform: translateX(62%);  opacity: 1; }
  35.3%     { transform: translateX(140%); opacity: 1; }
  36.7%     { transform: translateX(180%); opacity: 0; }
  37.3%, 97% { transform: translateX(0);   opacity: 0; }
  100%      { transform: translateX(0);    opacity: 1; }
}
@keyframes eca-wheel {
  0%, 28.7% { transform: rotate(0deg); }
  30.7%     { transform: rotate(110deg); }
  33.3%     { transform: rotate(430deg); }
  35.3%     { transform: rotate(780deg); }
  36.7%, 100% { transform: rotate(900deg); }
}

/* --- 03 --- */
@keyframes eca-draw {
  0%, 32%   { stroke-dashoffset: 620; }
  46.7%, 97% { stroke-dashoffset: 0; }
  98%, 100% { stroke-dashoffset: 620; }
}
@keyframes eca-peak {
  0%, 41.3% { opacity: 0; transform: translateY(4px); }
  45.3%, 97% { opacity: 1; transform: translateY(0); }
  99%, 100% { opacity: 0; transform: translateY(4px); }
}

/* --- 04 --- */
@keyframes eca-coa-in {
  0%, 48%   { opacity: 0; transform: translateY(5px); }
  53.3%, 97% { opacity: 1; transform: translateY(0); }
  99%, 100% { opacity: 0; transform: translateY(5px); }
}
@keyframes eca-line {
  0%, 48%   { transform: scaleX(0); }
  53.3%, 97% { transform: scaleX(1); }
  99%, 100% { transform: scaleX(0); }
}
@keyframes eca-line-b {
  0%, 50%   { transform: scaleX(0); }
  55.3%, 97% { transform: scaleX(1); }
  99%, 100% { transform: scaleX(0); }
}
@keyframes eca-result {
  0%, 56%   { opacity: 0; transform: translateY(6px); }
  60%, 97%  { opacity: 1; transform: translateY(0); }
  99%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes eca-stamp {
  0%, 56%   { opacity: 0; transform: scale(1.6) rotate(-8deg); }
  60.7%, 97% { opacity: 1; transform: scale(1) rotate(-8deg); }
  99%, 100% { opacity: 0; transform: scale(1.6) rotate(-8deg); }
}
@keyframes eca-hash {
  0%, 58.7% { opacity: 0; }
  62.7%, 97% { opacity: 1; }
  99%, 100% { opacity: 0; }
}

@keyframes eca-shimmer {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* Reduced motion: drop the loops and hold each step's final resting
   frame, so the section still reads as finished work. */
@media (prefers-reduced-motion: reduce) {
  .hiw-row-live, .hiw-row-live .hiw-box, .hiw-tick, .hiw-cursor, .hiw-pkg,
  .hiw-truck, .hiw-wheel, .hiw-ramp, .hiw-status, .hiw-trace, .hiw-peak,
  .hiw-coa-head, .hiw-skel span, .hiw-result, .hiw-hash, .hiw-stamp {
    animation: none !important;
  }
  .hiw-row-live { background: rgba(26,109,181,0.09); border-color: rgba(26,109,181,0.45); }
  .hiw-row-live .hiw-box { border-color: #1a6db5; }
  .hiw-tick, .hiw-peak, .hiw-coa-head, .hiw-result, .hiw-stamp { opacity: 1; transform: none; }
  .hiw-stamp { transform: rotate(-8deg); }
  .hiw-status, .hiw-hash { opacity: 1; }
  /* Package loaded, ramp folded away, truck still at the kerb. */
  .hiw-cursor, .hiw-pkg { opacity: 0; }
  .hiw-ramp { transform: rotate(-16deg) scaleX(0.03); }
  .hiw-trace { stroke-dashoffset: 0; }
  .hiw-skel span { transform: scaleX(1); }
}

/* Catalog header row (inside .catalog-inner) */
.catalog-section .section-header { margin-top: 80px; margin-bottom: 24px; }
.popular-tests .catalog-search-panel-form {
  max-width: 360px;
}
.catalog-section #catalog { margin: 0; padding: 0; border-bottom: none; }

/* Short desktop/laptop screens: preserve the hero while keeping the CTA visible. */
@media (max-height: 900px) and (min-width: 769px) {
  .hero-fullbleed {
    padding: 104px 0 44px;
    min-height: 100svh;
  }
  .hfb-content { max-width: 650px; }
  .hfb-headline {
    font-size: clamp(54px, min(7vw, 13vh), 92px);
    line-height: 0.94;
    margin-bottom: 18px;
  }
  .hfb-sub {
    max-width: 500px;
    margin-bottom: 34px;
    font-size: 16px;
    line-height: 1.42;
  }
  .hfb-cta-primary,
  .hfb-cta-secondary {
    padding: 13px 24px;
  }
  .hfb-stats { margin-top: 38px; }
  .hfb-stat { padding: 0 22px; }
  .hfb-stat-value { font-size: 26px; }
  .hfb-stat-label {
    font-size: 13px;
    margin-top: 6px;
  }
  .scroll-hint {
    bottom: 12px;
    gap: 7px;
    opacity: 0.8;
  }
  .scroll-hint-label {
    font-size: 9px;
    color: rgba(232,238,249,0.68);
  }
  .scroll-line {
    height: 28px;
    background: linear-gradient(180deg, rgba(232,238,249,0.7), transparent);
  }
}

@media (max-height: 760px) and (min-width: 769px) {
  .hero-fullbleed { padding: 92px 0 34px; }
  .hfb-headline {
    font-size: clamp(48px, min(6.2vw, 12vh), 76px);
    margin-bottom: 14px;
  }
  .hfb-sub {
    max-width: 480px;
    margin-bottom: 26px;
    font-size: 15px;
    line-height: 1.38;
  }
  .hfb-stats { margin-top: 28px; }
  .hfb-stat { padding: 0 18px; }
  .hfb-stat-value { font-size: 22px; }
  .hfb-stat-label { font-size: 12px; margin-top: 5px; }
  .scroll-hint {
    bottom: 8px;
    gap: 5px;
  }
  .scroll-hint-label {
    display: block;
    font-size: 8px;
    letter-spacing: 0.18em;
  }
  .scroll-line { height: 18px; }
}

/* Mobile: hero */
@media (max-width: 768px) {
  .hfb-inner { padding: 0 20px; }
  .hfb-content { max-width: min(560px, calc(100vw - 40px)); }
  .hfb-stats { display: none; }
  .hfb-media-col { margin-top: 36px; max-width: min(560px, calc(100vw - 40px)); }
  .hero-fullbleed { padding: 100px 0 80px; min-height: 100vh; min-height: 100dvh; }
  .hfb-headline {
    font-size: clamp(40px, 10vw, 54px);
    max-width: min(560px, calc(100vw - 40px));
  }
  .hfb-sub { max-width: min(560px, calc(100vw - 40px)); }
  .catalog-section { padding: 0 16px 80px; }
  .popular-tests .catalog-search-panel-form { max-width: 100%; }
  .popular-tests { margin-top: 48px; padding-bottom: 40px; }
  .popular-tests .section-header { align-items: flex-start; }
}
@media (max-width: 600px) {
  .hfb-content { max-width: 335px; }
  .hfb-media-col { max-width: 335px; }
  .hfb-headline {
    font-size: 38px;
    line-height: 1;
    max-width: 335px;
  }
  .hfb-sub {
    font-size: 16px;
    max-width: 335px;
  }
}

/* How It Works: 4 → 2×2 → 1 column. Never 3, which would orphan step 04. */
@media (max-width: 1040px) {
  .hiw-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 560px) {
  .hiw-grid { grid-template-columns: 1fr; row-gap: 34px; }
}

/* ── 1. Hero ─────────────────────────────────────────────── */
.about-hero {
  background: #f3efe6;
  padding: 140px 64px 64px;
  border-bottom: 1px solid rgba(20,23,28,0.12);
  overflow: hidden;
}
.about-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.about-eyebrow {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.05em;
  color: #1e4d8c;
  text-transform: lowercase;
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.about-h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0;
  color: #14171c;
}
.about-h1-em { font-style: italic; color: #1e4d8c; }
.about-subhead {
  margin-top: 36px;
  font-family: 'Newsreader', serif;
  font-size: 20px;
  line-height: 1.55;
  max-width: 540px;
  color: rgba(20,23,28,0.62);
}
.about-ctas { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.about-btn-primary {
  padding: 14px 24px;
  background: #14171c;
  color: #fff;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  transition: opacity 0.15s;
}
.about-btn-primary:hover { opacity: 0.82; color: #fff; }
.about-btn-secondary {
  padding: 14px 24px;
  border: 1px solid #14171c;
  color: #14171c;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  display: inline-block;
  transition: background 0.15s;
}
.about-btn-secondary:hover { background: rgba(20,23,28,0.06); color: #14171c; }

/* COA card */
/* The real certificate render, shown as a sheet of paper on the page:
   a hairline edge and a soft shadow, no backdrop. */
.about-coa-frame { display: flex; justify-content: center; align-items: flex-start; }
.about-coa-frame a { display: block; max-width: 100%; }
.about-coa-doc {
  display: block; width: 100%; height: auto;
  background: #fff;
  border: 1px solid rgba(20,23,28,0.12);
  box-shadow: 0 1px 2px rgba(20,23,28,0.06), 0 14px 36px rgba(20,23,28,0.14);
}

/* ── 2. Pull quote ───────────────────────────────────────── */
.about-pullquote { background: #e8e2d3; padding: 80px 64px; }
.about-pullquote-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.about-pq-eyebrow {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 24px; letter-spacing: 0.05em; color: #1e4d8c; margin-bottom: 28px;
  text-transform: lowercase;
}
.about-quote {
  font-family: 'Instrument Serif', serif;
  font-size: 48px; line-height: 1.2; margin: 0;
  color: #14171c; font-style: italic; letter-spacing: -0.015em;
}
.about-quote-em { color: #1e4d8c; }

/* ── 3. Process ─────────────────────────────────────────── */
.about-process { background: #f3efe6; padding: 112px 64px; }
.about-process-inner { max-width: 1280px; margin: 0 auto; }
.about-process-heading-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: end; margin-bottom: 56px;
}
.about-process-h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 72px; line-height: 1.02;
  font-weight: 400; letter-spacing: -0.02em; margin: 0; color: #14171c;
}
.about-process-h2 em { font-style: italic; color: #1e4d8c; display: block; }
.about-process-intro {
  font-family: 'Newsreader', serif;
  font-size: 17px; line-height: 1.6;
  color: rgba(20,23,28,0.62); margin: 0; max-width: 500px;
}
.about-process-timeline {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; border-top: 2px solid #14171c;
}
.about-process-step {
  padding: 28px 20px 28px 20px;
  position: relative;
  border-right: 1px solid rgba(20,23,28,0.12);
}
.about-process-step:first-child { padding-left: 0; }
.about-process-step:last-child { border-right: none; }
.about-process-num {
  position: absolute; top: -11px; left: 20px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #14171c; color: #f3efe6;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Alegreya SC', Georgia, serif; font-size: 11px;
  font-variant-numeric: lining-nums;
}
.about-process-step:first-child .about-process-num { left: 0; }
.about-step-title {
  font-family: 'Instrument Serif', serif;
  font-size: 28px; color: #14171c;
  font-weight: 400; font-style: italic; margin-top: 12px;
}
.about-step-body {
  margin-top: 14px; font-family: 'Inter', sans-serif;
  font-size: 14px; line-height: 1.55; color: rgba(20,23,28,0.62);
}

/* ── 4. Pillars ─────────────────────────────────────────── */
.about-pillars {
  background: #fff; padding: 112px 64px;
  border-top: 1px solid rgba(20,23,28,0.12);
  border-bottom: 1px solid rgba(20,23,28,0.12);
}
.about-pillars-inner { max-width: 1280px; margin: 0 auto; }
.about-pillars-eyebrow {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 24px; letter-spacing: 0.05em; color: #1e4d8c; margin-bottom: 16px;
  text-transform: lowercase;
}
.about-pillars-h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 64px; line-height: 1.02;
  font-weight: 400; margin: 0 0 48px; color: #14171c; max-width: 900px;
}
.about-pillars-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.about-pillar { padding: 8px 28px 8px 0; }
.about-pillar + .about-pillar {
  border-left: 1px solid rgba(20,23,28,0.12);
  padding-left: 28px;
}
.about-pillar-num {
  font-family: 'Instrument Serif', serif;
  font-size: 40px; color: #1e4d8c;
  font-style: italic; font-weight: 400; letter-spacing: -0.02em;
}
.about-pillar-name {
  margin-top: 16px; font-family: 'Inter', sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: #14171c;
}
.about-pillar-body {
  margin-top: 12px; font-family: 'Inter', sans-serif;
  font-size: 15px; line-height: 1.6; color: rgba(20,23,28,0.62);
}

/* ── 5. Location ────────────────────────────────────────── */
.about-location-sec { background: #f3efe6; padding: 96px 64px; }
.about-location-card {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; padding: 48px;
  background: #fff; border: 1px solid rgba(20,23,28,0.12);
}
.about-loc-eyebrow {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 20px; letter-spacing: 0.05em; color: #1e4d8c; margin-bottom: 16px;
  text-transform: lowercase;
}
.about-loc-title {
  font-family: 'Instrument Serif', serif;
  font-size: 38px; line-height: 1.1; color: #14171c; font-style: italic;
}
.about-loc-col {
  border-left: 1px solid rgba(20,23,28,0.12);
  padding-left: 24px;
}
.about-loc-label {
  font-family: 'Alegreya SC', Georgia, serif;
  font-size: 19px; letter-spacing: 0.05em;
  color: rgba(20,23,28,0.62); margin-bottom: 14px;
  text-transform: lowercase;
}
.about-loc-body {
  font-family: 'Inter', sans-serif;
  font-size: 15px; line-height: 1.7; color: #14171c; white-space: pre-line;
}

/* ── Responsive: ≤960px ─────────────────────────────────── */
@media (max-width: 960px) {
  .about-hero { padding: 110px 40px 48px; }
  .about-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-h1 { font-size: 80px; }
  .about-coa-frame { max-width: 490px; margin: 0 auto; }

  .about-pullquote { padding: 64px 40px; }
  .about-quote { font-size: 36px; }

  .about-process { padding: 80px 40px; }
  .about-process-heading-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 48px; }
  .about-process-h2 { font-size: 52px; }
  .about-process-timeline {
    display: flex; flex-direction: column; border-top: none;
  }
  .about-process-step {
    border-right: none; border-top: 2px solid #14171c;
    padding: 24px 0 24px 36px;
  }
  .about-process-step:first-child { padding-left: 36px; }
  .about-process-num { left: 0; top: 13px; }
  .about-process-step:first-child .about-process-num { left: 0; }

  .about-pillars { padding: 80px 40px; }
  .about-pillars-h2 { font-size: 48px; margin-bottom: 48px; }
  .about-pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 48px; }
  .about-pillar, .about-pillar + .about-pillar {
    border-left: none; padding-left: 0; padding-right: 0;
  }

  .about-location-sec { padding: 64px 40px; }
  .about-location-card {
    grid-template-columns: 1fr 1fr; padding: 32px; gap: 32px;
  }
  .about-loc-col { border-left: none; padding-left: 0; }
}

/* ── Responsive: ≤640px ─────────────────────────────────── */
@media (max-width: 640px) {
  .about-hero { padding: 90px 20px 40px; }
  .about-h1 { font-size: 56px; }
  .about-subhead { font-size: 17px; }
  .about-coa-frame { max-width: 490px; margin: 0 auto; }

  .about-pullquote { padding: 56px 20px; }
  .about-quote { font-size: 28px; }
  .about-pq-eyebrow { font-size: 12px; }

  .about-process { padding: 56px 20px; }
  .about-process-h2 { font-size: 40px; }
  .about-process-intro { font-size: 15px; }
  .about-process-step { padding: 20px 0 20px 32px; }

  .about-pillars { padding: 56px 20px; }
  .about-pillars-h2 { font-size: 36px; margin-bottom: 36px; }
  .about-pillars-grid { grid-template-columns: 1fr; gap: 0; }
  .about-pillar, .about-pillar + .about-pillar {
    border-left: none; padding: 0; padding-top: 28px;
  }
  .about-pillar:first-child { padding-top: 0; }
  .about-pillar + .about-pillar {
    border-top: 1px solid rgba(20,23,28,0.12);
  }

  .about-location-sec { padding: 48px 20px; }
  .about-location-card { grid-template-columns: 1fr; padding: 24px; gap: 0; }
  .about-loc-col {
    border-left: none; padding-left: 0;
    border-top: 1px solid rgba(20,23,28,0.12); padding-top: 24px; margin-top: 24px;
  }
  .about-loc-title { font-size: 28px; }
}

/* ── Responsive: short desktop/laptop screens ───────────── */
/* Targets viewports shorter than ~950px (e.g. 1366×768, 1440×900)
   while keeping the two-column layout intact (width > 960px).
   Goal: the about-hero fits within one viewport so the pullquote
   color change is visible without scrolling. */
@media (max-height: 950px) and (min-width: 961px) {
  .about-hero { padding: 140px 64px 48px; }
  .about-h1 { font-size: 80px; }
  .about-hero-inner { gap: 48px; }
  .about-coa-doc { width: auto; max-width: 100%; max-height: calc(100vh - 240px); }
}

/* ================================================================
   RESPONSIVE: NARROW PHONES (≤ 480px)
   ================================================================ */
@media (max-width: 480px) {
  /* Hero headline — prevent "Know exactly" from overflowing 335px content */
  .hfb-headline { font-size: clamp(36px, 10.5vw, 52px); }

  /* About H1 — "that signs its" line would exceed 335px at 56px */
  .about-h1 { font-size: 44px; }

}
