/* ============================================================
   LEDGER BIO — site styles · modern flowy edition
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* === Brand tokens — warm edition === */
:root {
  --ink: #1F1611;            /* warm coffee black */
  --ink-soft: #2A1F18;       /* warm soft brown */
  --paper: #F5F1E8;          /* cream — kept */
  --paper-warm: #FAEFE0;     /* slightly more golden */
  --paper-deep: #ECE3D1;     /* warmer cream */
  --stamp: #C8201E;          /* brand red — kept */
  --stamp-soft: #E8615A;     /* warm coral */
  --honey: #C98E43;          /* new warm accent */
  --slate: #5C4D40;          /* warm brown-gray (replaces cool slate) */
  --mute: #C5B49E;           /* warm tan (replaces cool mute) */
  --content-bg: #FAF5EA;     /* warmer cream */
  --max-width: 1180px;
  --max-narrow: 760px;
  --max-wide: 1320px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-soft: 0 4px 24px rgba(46, 30, 20, 0.06), 0 1px 3px rgba(46, 30, 20, 0.04);
  --shadow-lift: 0 24px 64px -16px rgba(46, 30, 20, 0.20), 0 8px 24px -8px rgba(46, 30, 20, 0.10);
  --shadow-stamp: 0 0 0 1px rgba(200, 32, 30, 0.10), 0 8px 32px -8px rgba(200, 32, 30, 0.18);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }

/* === Base === */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;

  /* Warm organic backdrop — paper grain + radial gradients (red, honey, ink-warm) */
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.08  0 0 0 0 0.05  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
    radial-gradient(at 8% 4%, rgba(200, 32, 30, 0.05) 0px, transparent 55%),
    radial-gradient(at 96% 22%, rgba(201, 142, 67, 0.07) 0px, transparent 52%),
    radial-gradient(at 12% 96%, rgba(200, 32, 30, 0.04) 0px, transparent 50%),
    radial-gradient(at 70% 80%, rgba(201, 142, 67, 0.04) 0px, transparent 48%);
  background-attachment: fixed;
}

::selection { background: var(--stamp); color: var(--paper); }

/* === Scroll progress bar (slim line at top of viewport) === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--stamp), var(--stamp-soft));
  z-index: 1000;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 32px; }

@media (max-width: 600px) {
  .container, .container-narrow, .container-wide { padding: 0 24px; }
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
}
h1 {
  font-size: clamp(2.875rem, 8vw, 7.5rem);
  line-height: 0.98;
  margin-bottom: 0.4em;
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* Hero h1 — warm ink, breathable tracking */
.hero h1 {
  color: var(--ink);
}
h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 0.5em;
  letter-spacing: -0.018em;
}
h3 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  line-height: 1.3;
  margin-bottom: 0.5em;
  letter-spacing: -0.01em;
}
h4 { font-size: 1.125rem; line-height: 1.35; margin-bottom: 0.5em; }

p { font-size: 1.0625rem; line-height: 1.75; margin-bottom: 1.25rem; }
.lead {
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.55;
  color: var(--slate);
  font-weight: 400;
}
.tagline { font-family: 'Fraunces', serif; font-style: italic; color: var(--slate); }
.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--stamp);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.mono { font-family: 'JetBrains Mono', Menlo, Consolas, monospace; }

/* === Links === */
a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(31, 22, 17, 0.3);
  transition: color 0.25s var(--ease-out), text-decoration-color 0.25s var(--ease-out);
}
a:hover { color: var(--stamp); text-decoration-color: var(--stamp); }
a.no-underline { text-decoration: none; }
a.no-underline:hover { text-decoration: none; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--paper);
  padding: 1em 1.85em;
  font-family: 'Inter', sans-serif;
  font-size: 0.925rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.25s var(--ease-out);
  box-shadow: 0 2px 8px rgba(31, 22, 17, 0.08);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 22, 17, 0.18);
  color: var(--paper);
}
.btn:hover::before { transform: translateX(100%); }
.btn:active { transform: translateY(0); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(31, 22, 17, 0.25);
  box-shadow: none;
}
.btn-secondary:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* === Header === */
.site-header {
  background: #FAF6EC;
  border-bottom: 1px solid rgba(31, 22, 17, 0.08);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: padding 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.site-header.scrolled {
  padding: 10px 0;
  border-bottom-color: rgba(31, 22, 17, 0.18);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; transition: opacity 0.25s var(--ease-out); }
.logo:hover { color: var(--ink); opacity: 0.8; }
.logo svg { height: 32px; width: auto; flex-shrink: 0; }
.logo-text {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease-out);
}
.site-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--stamp);
  transition: width 0.3s var(--ease-out);
}
.site-nav a:hover { color: var(--stamp); }
.site-nav a:hover::after { width: 100%; }
.site-nav a[aria-current="page"] { color: var(--stamp); }
.site-nav a[aria-current="page"]::after { width: 100%; }
.menu-toggle {
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  padding: 4px;
}

/* === Sections === */
section {
  padding: 120px 0;
  position: relative;
}
section.hero { padding: 140px 0 100px; }
section.tight { padding: 60px 0; }

/* Modern flowing alternating sections — no hard color borders.
   Soft gradient seams blend cream → warm cream → cream. */
section.alt {
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 18%, var(--paper-warm) 82%, var(--paper) 100%);
  position: relative;
}
section.alt::before, section.alt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 22, 17, 0.06), transparent);
}
section.alt::before { top: 0; }
section.alt::after { bottom: 0; }

section.dark {
  background: radial-gradient(ellipse at 30% 20%, #2A1F18 0%, #1A130E 65%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
section.dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 80% 90%, rgba(200, 32, 30, 0.20) 0px, transparent 45%),
    radial-gradient(at 10% 110%, rgba(200, 32, 30, 0.08) 0px, transparent 50%),
    radial-gradient(at 95% 8%, rgba(201, 142, 67, 0.10) 0px, transparent 45%);
  pointer-events: none;
}
section.dark > * { position: relative; z-index: 1; }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: var(--paper); }
section.dark .lead { color: rgba(245, 241, 232, 0.7); }
section.dark a { color: var(--paper); }

/* === Hero === */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Soft gradient blob behind the headline */
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(200, 32, 30, 0.10), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  animation: drift 24s ease-in-out infinite alternate;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 60%, rgba(31, 22, 17, 0.05), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  animation: drift-slow 32s ease-in-out infinite alternate-reverse;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 32px; max-width: 16ch; }
.hero .lead { margin-bottom: 40px; max-width: 660px; }

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.08); }
}
@keyframes drift-slow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(60px, -40px) scale(1.12); }
}

/* === Receipts strip · MARQUEE === */
.receipts-strip {
  background: linear-gradient(180deg, var(--content-bg), var(--paper-warm));
  border-top: 1px solid rgba(31, 22, 17, 0.06);
  border-bottom: 1px solid rgba(31, 22, 17, 0.06);
  padding: 32px 0;
  overflow: hidden;
  position: relative;
}
.receipts-strip::before, .receipts-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.receipts-strip::before {
  left: 0;
  background: linear-gradient(90deg, var(--paper-warm), transparent);
}
.receipts-strip::after {
  right: 0;
  background: linear-gradient(-90deg, var(--paper-warm), transparent);
}
.receipts-strip .container {
  display: flex;
  gap: 64px;
  animation: marquee 38s linear infinite;
  width: max-content;
  max-width: none;
  padding: 0 32px;
}
.receipts-strip:hover .container { animation-play-state: paused; }
.receipt-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  color: var(--slate);
  line-height: 1.5;
  flex-shrink: 0;
  padding-right: 64px;
  border-right: 1px solid rgba(31, 22, 17, 0.08);
}
.receipt-item:last-child { border-right: none; }
.receipt-item strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Stamp rule === */
.stamp-rule {
  display: block;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--stamp), var(--stamp-soft));
  margin: 0 0 1.5rem;
  border: none;
  border-radius: 2px;
  animation: draw-rule 1.2s var(--ease-out) 0.2s forwards;
}
@keyframes draw-rule {
  0% { width: 0; opacity: 0; }
  100% { width: 72px; opacity: 1; }
}

/* === Verified stamp === */
.verified-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border: 1.5px solid var(--stamp);
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--stamp);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(-8deg);
  text-align: center;
  line-height: 1.15;
  box-shadow: var(--shadow-stamp);
  background: rgba(245, 241, 232, 0.4);
  backdrop-filter: blur(2px);
  flex-shrink: 0;
  transition: transform 0.5s var(--ease-out);
}
.verified-stamp:hover { transform: rotate(-3deg) scale(1.05); }

/* === Product cards === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  background: linear-gradient(180deg, var(--content-bg), var(--paper-warm));
  border: 1px solid rgba(31, 22, 17, 0.06);
  border-radius: 16px;
  padding: 32px;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
  box-shadow: var(--shadow-soft);
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(200, 32, 30, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.product-card::after {
  content: "→";
  position: absolute;
  top: 28px;
  right: 28px;
  font-size: 1.25rem;
  color: var(--stamp);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 22, 17, 0.18);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
  text-decoration: none;
}
.product-card:hover::before { opacity: 1; }
.product-card:hover::after { opacity: 1; transform: translateX(0); }
.product-card h3 { margin-bottom: 6px; }
.product-card .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.6;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(31, 22, 17, 0.06);
}

/* === Batch data === */
.batch-data {
  background: linear-gradient(180deg, var(--content-bg), var(--paper-warm));
  border: 1px solid rgba(31, 22, 17, 0.06);
  border-radius: 12px;
  padding: 1.75rem 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  line-height: 2;
  color: var(--slate);
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
}
.batch-data strong { color: var(--ink); font-weight: 500; }
.batch-data .row {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid rgba(31, 22, 17, 0.05);
  padding: 4px 0;
}
.batch-data .row:last-child { border-bottom: none; }
.batch-data .label { min-width: 200px; color: var(--slate); }
.batch-data .value { color: var(--ink); }

/* === Spec table === */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  margin: 1.75rem 0;
}
.spec-table td {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(31, 22, 17, 0.06);
  vertical-align: top;
}
.spec-table td:first-child { color: var(--slate); width: 40%; padding-right: 16px; }
.spec-table tr:last-child td { border-bottom: none; }

/* === References / numbered list === */
.references {
  list-style: none;
  font-size: 1rem;
  counter-reset: ref;
}
.references li {
  position: relative;
  padding-left: 36px;
  margin-bottom: 1rem;
  counter-increment: ref;
  line-height: 1.7;
}
.references li::before {
  content: counter(ref, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--stamp);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* === RUO block === */
.ruo-block {
  background: linear-gradient(180deg, var(--content-bg), var(--paper-warm));
  border-left: 3px solid var(--stamp);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 1.75rem;
  font-style: italic;
  color: var(--slate);
  font-size: 0.975rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
}

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 2rem 0;
}
.price-tier {
  background: linear-gradient(180deg, var(--content-bg), var(--paper-warm));
  border: 1px solid rgba(31, 22, 17, 0.06);
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  box-shadow: var(--shadow-soft);
}
.price-tier:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 22, 17, 0.18);
  box-shadow: var(--shadow-lift);
}
.price-tier .mass {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.price-tier .price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.125rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.price-tier .btn { width: 100%; }

/* === Quote / blockquote === */
blockquote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--ink);
  border-left: 3px solid var(--stamp);
  padding-left: 1.75rem;
  margin: 2.5rem 0;
  letter-spacing: -0.01em;
}

/* === Forms === */
form { display: grid; gap: 1.25rem; }
label {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], textarea, select {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--content-bg);
  border: 1px solid rgba(31, 22, 17, 0.1);
  border-radius: 10px;
  padding: 0.95rem 1.15rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
/* Give password fields extra right padding so text doesn't slide under the Show button */
.auth-password-field input[type="password"],
.auth-password-field input[type="text"] {
  padding-right: 4rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(31, 22, 17, 0.08);
}
textarea { min-height: 160px; resize: vertical; }

/* === Product hero (text left, illustrated vial right) === */
.product-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}
.product-hero-text { min-width: 0; }
.product-hero-text h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  margin-bottom: 0.4em;
}
.product-hero-image {
  margin: 0;
  filter: drop-shadow(0 32px 56px rgba(31, 22, 17, 0.12));
  transition: transform 0.6s var(--ease-out);
}
.product-hero-image svg,
.product-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  overflow: hidden;
}
.product-hero-image:hover { transform: translateY(-4px); }

/* Photo variant — for real product photography */
.product-hero-photo img {
  object-fit: cover;
  aspect-ratio: 4 / 5;  /* matches the Gemini portrait output */
}

@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: 40px; }
  .product-hero-image { max-width: 480px; margin: 0 auto; order: -1; }
}

/* === Two-column layouts === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
@media (max-width: 640px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
}

/* === FAQ === */
.faq-item {
  border-bottom: 1px solid rgba(31, 22, 17, 0.08);
  padding: 1.75rem 0;
  transition: padding-left 0.3s var(--ease-out);
}
.faq-item:hover { padding-left: 8px; }
.faq-item h3 { margin-bottom: 0.85rem; font-size: 1.375rem; letter-spacing: -0.015em; }
.faq-item p:last-child { margin-bottom: 0; }

/* === Transparency table === */
.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  margin: 1.75rem 0;
}
.tx-table th, .tx-table td {
  padding: 1rem 16px 1rem 0;
  border-bottom: 1px solid rgba(31, 22, 17, 0.06);
  text-align: left;
  vertical-align: top;
}
.tx-table th {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tx-table tr { transition: background 0.2s var(--ease-out); }
.tx-table tbody tr:hover { background: rgba(31, 22, 17, 0.02); }
.tx-table td.failed { color: var(--stamp); font-weight: 500; }

/* === Footer === */
.site-footer {
  background: radial-gradient(ellipse at 20% 0%, #2A1F18 0%, #1A130E 70%);
  color: var(--paper);
  padding: 96px 0 40px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 90% 100%, rgba(200, 32, 30, 0.14) 0px, transparent 45%),
    radial-gradient(at 8% 100%, rgba(201, 142, 67, 0.08) 0px, transparent 45%);
  pointer-events: none;
}
.site-footer > * { position: relative; }
.site-footer a {
  color: var(--paper);
  text-decoration: none;
  text-decoration-color: transparent;
}
.site-footer a:hover { color: var(--stamp-soft); text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 64px;
}
.footer-brand h2 {
  font-family: 'Fraunces', serif;
  color: var(--paper);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}
.footer-brand p { font-style: italic; color: rgba(245, 241, 232, 0.6); font-size: 0.975rem; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(245, 241, 232, 0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.25s var(--ease-out), padding-left 0.25s var(--ease-out);
}
.footer-col a:hover { padding-left: 4px; }
.footer-disclosure {
  border-top: 1px solid rgba(245, 241, 232, 0.12);
  padding-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(245, 241, 232, 0.5);
  line-height: 1.7;
}
.footer-meta {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: rgba(245, 241, 232, 0.45);
}

/* === Word-stagger hero entrance ===
   Each word in the hero h1 is wrapped in a span by JS; spans
   animate up + in with a 70ms stagger. */
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: word-rise 0.85s var(--ease-out) forwards;
  /* preserve the visible space between words */
  margin-right: 0.22em;
}
@keyframes word-rise {
  0% { opacity: 0; transform: translateY(0.4em); }
  100% { opacity: 1; transform: translateY(0); }
}

/* === Numbered section eyebrows ===
   JS prepends a counter ("01 —") into each .eyebrow inside main. */
.eyebrow .eyebrow-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  margin-right: 8px;
  color: rgba(200, 32, 30, 0.55);
  letter-spacing: 0.05em;
}

/* === Product card 3D tilt ===
   A perspective wrapper effect — JS sets --rx and --ry per card on mousemove. */
.product-card {
  transform: perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--ty, 0px));
  transform-style: preserve-3d;
  will-change: transform;
}
.product-card:hover {
  /* override the static translateY transform from earlier; tilt drives it */
  transform: perspective(900px)
    rotateX(var(--rx, 0deg))
    rotateY(var(--ry, 0deg))
    translateY(var(--ty, -6px));
}
.product-card > * {
  transform: translateZ(0);
}
.product-card h3,
.product-card .meta {
  transition: transform 0.4s var(--ease-out);
}
.product-card:hover h3 { transform: translateZ(20px); }
.product-card:hover .meta { transform: translateZ(10px); }

/* === SCROLL-TRIGGERED FADE-UP ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children of grids */
.product-grid .reveal:nth-child(1) { transition-delay: 0s; }
.product-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.product-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.product-grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.product-grid .reveal:nth-child(5) { transition-delay: 0.32s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .receipts-strip .container { animation: none; flex-wrap: wrap; width: 100%; }
  .stamp-rule { width: 72px; opacity: 1; animation: none; }
  .hero h1 .word { opacity: 1; transform: none; animation: none; }
  .product-card { transform: none !important; }
}

/* === Tablet + small laptop (≤1023px) — 2-col footer, tighter sections, 2-col product grid === */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  section { padding: 72px 0; }
  section.hero { padding: 72px 0 56px; }
  .product-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* === Hamburger nav (≤900px) — collapses nav into a drawer === */
@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid rgba(31, 22, 17, 0.14);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .site-header { position: relative; }
}

/* === Mobile only (≤767px) — tighter padding, single column === */
@media (max-width: 767px) {
  section { padding: 64px 0; }
  section.hero { padding: 64px 0 48px; }
  .product-grid { grid-template-columns: 1fr !important; }
  .receipts-strip .container { gap: 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .logo-text { font-size: 1.2rem; }
  .receipt-item { padding-right: 32px; }
  .receipts-strip .container { gap: 32px; }
  .product-card { padding: 24px; }
  .batch-data { padding: 1.25rem 1.25rem; }
  .batch-data .row { flex-direction: column; gap: 0; padding: 8px 0; }
  .batch-data .label { min-width: 0; font-size: 0.75rem; }
}

/* === Purchase module (in product page hero) === */
.purchase-module {
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--content-bg) 100%);
  border: 1px solid rgba(31, 22, 17, 0.08);
  border-radius: 18px;
  padding: 28px 28px 24px;
  margin: 2rem 0 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.purchase-module::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--stamp), var(--stamp-soft));
  opacity: 0.85;
}

.purchase-module-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.purchase-module-head .label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.purchase-module-head .stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--slate);
  letter-spacing: 0.04em;
}
.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2faa5c;
  box-shadow: 0 0 0 3px rgba(47, 170, 92, 0.18);
  animation: stock-pulse 2.4s ease-in-out infinite;
}
@keyframes stock-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(47, 170, 92, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(47, 170, 92, 0.10); }
}

.mass-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.mass-option {
  position: relative;
  display: block;
  padding: 14px 10px 12px;
  background: var(--paper);
  border: 1.5px solid rgba(31, 22, 17, 0.1);
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.25s var(--ease-out),
              background 0.25s var(--ease-out),
              transform 0.25s var(--ease-out),
              box-shadow 0.25s var(--ease-out);
}
.mass-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.mass-option:hover {
  border-color: rgba(31, 22, 17, 0.28);
  transform: translateY(-1px);
}
.mass-option.selected {
  border-color: var(--stamp);
  background: linear-gradient(180deg, rgba(200, 32, 30, 0.04), var(--paper) 80%);
  box-shadow: 0 0 0 3px rgba(200, 32, 30, 0.10), var(--shadow-soft);
}
.mass-option .mass-label {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.mass-option .mass-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 500;
}
.mass-option.selected .mass-price { color: var(--ink); }
.mass-option .mass-savings {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--stamp);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 5px;
  display: block;
  min-height: 0.62rem;
}

.purchase-divider {
  border-top: 1px solid rgba(31, 22, 17, 0.08);
  padding-top: 18px;
}
.purchase-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}
.purchase-price-display {
  display: flex;
  flex-direction: column;
}
.purchase-price-value {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
  transition: opacity 0.2s var(--ease-out);
}
.purchase-price-value.flash {
  animation: price-flash 0.4s var(--ease-out);
}
@keyframes price-flash {
  0% { opacity: 0.4; transform: translateY(-3px); }
  100% { opacity: 1; transform: translateY(0); }
}
.purchase-price-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.purchase-cta {
  width: 100%;
  padding: 1.05em 1.5em;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.purchase-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.purchase-secondary {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.purchase-secondary a {
  font-family: 'Inter', sans-serif;
  font-size: 0.825rem;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s var(--ease-out);
}
.purchase-secondary a:hover { color: var(--stamp); }

.purchase-coa-btn {
  width: 100%;
  margin-top: 10px;
  padding: 0.82em 1.5em;
  font-size: 0.9rem;
  gap: 9px;
}
.purchase-coa-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .purchase-module { padding: 22px 20px 20px; }
  .mass-options { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .mass-option { padding: 12px 6px 10px; }
}

/* === Payment options modal === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 22, 17, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--paper);
  border-radius: 20px;
  max-width: 560px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(31, 22, 17, 0.32);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.45s var(--ease-out);
  position: relative;
}
.modal-backdrop.visible .modal {
  transform: translateY(0) scale(1);
}
.modal-header {
  padding: 32px 32px 0;
  position: relative;
}
.modal-header .stamp-rule {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--stamp), var(--stamp-soft));
  margin-bottom: 1rem;
  border-radius: 2px;
}
.modal-header h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.modal-header p {
  color: var(--slate);
  font-size: 0.95rem;
  margin-bottom: 0;
}
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(31, 22, 17, 0.06);
  color: var(--ink);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.modal-close:hover {
  background: rgba(31, 22, 17, 0.12);
  transform: rotate(90deg);
}
.modal-body { padding: 28px 32px 24px; }
.modal-footer {
  padding: 16px 32px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.modal-footer .note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--slate);
  letter-spacing: 0.04em;
  flex: 1;
  min-width: 0;
}

.payment-methods {
  display: grid;
  gap: 12px;
}
.payment-method {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  background: var(--content-bg);
  border: 1px solid rgba(31, 22, 17, 0.06);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.payment-method:hover {
  border-color: rgba(31, 22, 17, 0.18);
  transform: translateY(-1px);
}
.payment-method-icon {
  width: 44px;
  height: 44px;
  background: var(--paper);
  border: 1px solid rgba(31, 22, 17, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.payment-method-icon svg {
  width: 22px;
  height: 22px;
}
.payment-method-text h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.payment-method-text p {
  font-size: 0.825rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}
.payment-method-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--slate);
  text-align: right;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 4px;
}
.payment-stripe-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(99, 91, 255, 0.08);
  color: #635bff;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  margin-top: 4px;
}

@media (max-width: 480px) {
  .modal-header, .modal-body, .modal-footer { padding-left: 20px; padding-right: 20px; }
  .modal-footer { flex-direction: column; align-items: stretch; }
  .payment-method { grid-template-columns: 36px 1fr; }
  .payment-method-meta { grid-column: 1 / -1; text-align: left; }
}

.checkout-payment-preview {
  margin-top: 14px;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid rgba(31, 22, 17, 0.08);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--ink);
  text-align: left;
}
.checkout-payment-preview:hover {
  border-color: rgba(31, 22, 17, 0.2);
  background: var(--paper-warm);
}
.checkout-payment-preview-icons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.checkout-payment-preview-icons svg {
  width: 18px;
  height: 18px;
  color: var(--slate);
}
.checkout-payment-preview-arrow {
  color: var(--slate);
  transition: transform 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.checkout-payment-preview:hover .checkout-payment-preview-arrow {
  transform: translateX(3px);
  color: var(--stamp);
}

/* === Disclaimer (age-gate) page — redesigned === */
.disclaimer-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.disclaimer-page main { flex: 1; display: flex; align-items: center; }
.disclaimer-page .site-header {
  border-bottom: 1px solid rgba(31, 22, 17, 0.06);
  background: rgba(245, 241, 232, 0.92);
}
.disclaimer-page .header-inner { justify-content: center; }

/* Centered single-column layout (no vial) */
.disclaimer-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px 80px;
  text-align: center;
  width: 100%;
}
.disclaimer-content .stamp-rule {
  margin-left: auto;
  margin-right: auto;
}
.disclaimer-content .eyebrow {
  color: var(--stamp);
  margin-bottom: 1rem;
}
.disclaimer-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 0.5em;
}
.disclaimer-content .lead {
  max-width: 600px;
  margin: 0 auto 2.25rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
}

.btn-large {
  width: 100%;
  max-width: 440px;
  padding: 1.4em 2.5em;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.btn-large .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.btn-large:hover .arrow { transform: translateX(4px); }

.disclaimer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.disclaimer-redirect {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--slate);
  letter-spacing: 0.18em;
  font-weight: 500;
  margin: 0;
}

.disclaimer-decline {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--slate);
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 0;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}
.disclaimer-decline:hover { color: var(--stamp); }

.disclaimer-promises {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(31, 22, 17, 0.1);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.disclaimer-promises .eyebrow {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--stamp);
  text-align: center;
}
.disclaimer-promises ul {
  list-style: none;
  display: grid;
  gap: 16px;
  text-align: left;
}
.disclaimer-promises li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.925rem;
  color: var(--slate);
  line-height: 1.65;
}
.disclaimer-promises li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--stamp);
  background: rgba(200, 32, 30, 0.06);
  margin-top: 2px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8201E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.ineligible-message {
  text-align: center;
  padding: 80px 32px;
  max-width: 600px;
  margin: 0 auto;
}
.ineligible-message h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5em;
}

@media (max-width: 600px) {
  .disclaimer-content { padding: 48px 24px 64px; }
  .disclaimer-promises { margin-top: 48px; padding-top: 28px; }
}

/* === Login / account page — redesigned === */
.auth-card {
  max-width: 580px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--content-bg) 100%);
  border: 1px solid rgba(31, 22, 17, 0.06);
  border-radius: 20px;
  padding: 44px;
  box-shadow: var(--shadow-soft);
}
.auth-header {
  text-align: center;
  margin-bottom: 28px;
}
.auth-header .stamp-rule {
  margin-left: auto;
  margin-right: auto;
}
.auth-header h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.375rem);
  margin-bottom: 0.4em;
  letter-spacing: -0.02em;
}
.auth-header .lead {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: var(--slate);
}

.auth-banner {
  background: linear-gradient(180deg, rgba(200, 32, 30, 0.05) 0%, var(--paper) 100%);
  border: 1px solid rgba(200, 32, 30, 0.18);
  border-left: 3px solid var(--stamp);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 28px;
}
.auth-banner-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--stamp);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.auth-banner-text {
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.auth-banner-text a {
  font-weight: 500;
  color: var(--ink);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border: 1px solid rgba(31, 22, 17, 0.1);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
  position: relative;
}
.auth-tab {
  background: none;
  border: none;
  padding: 11px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.01em;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.active {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 2px 8px rgba(31, 22, 17, 0.12);
}

.auth-form { display: none; }
.auth-form.active { display: grid; gap: 1.125rem; }

.auth-form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}
.auth-form-meta a {
  font-family: 'Inter', sans-serif;
  font-size: 0.825rem;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}
.auth-form-meta a:hover { color: var(--stamp); }

.auth-actions { margin-top: 0.75rem; }
.auth-actions .btn { width: 100%; padding: 1em 2em; font-size: 0.975rem; }

.auth-password-note {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--slate);
  letter-spacing: 0.12em;
  text-align: center;
  margin: 0;
}

/* === Account terms / Research-Use-Only block === */
.account-terms {
  background: var(--paper);
  border: 1px solid rgba(31, 22, 17, 0.08);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 4px;
}
.account-terms h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--stamp);
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.account-terms p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--slate);
  margin-bottom: 0.75rem;
}
.account-terms-age {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  letter-spacing: 0.06em;
  margin-bottom: 14px !important;
  margin-top: 6px;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  position: relative;
}
.terms-checkbox:not(:last-child) {
  border-bottom: 1px solid rgba(31, 22, 17, 0.06);
}
.terms-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.terms-checkbox-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--paper);
  border: 1.5px solid rgba(31, 22, 17, 0.28);
  border-radius: 5px;
  margin-top: 2px;
  transition: all 0.2s var(--ease-out);
}
.terms-checkbox-mark svg {
  width: 12px;
  height: 12px;
  color: var(--paper);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s var(--ease-out);
}
.terms-checkbox.checked .terms-checkbox-mark {
  background: var(--stamp);
  border-color: var(--stamp);
}
.terms-checkbox.checked .terms-checkbox-mark svg {
  opacity: 1;
  transform: scale(1);
}
.terms-checkbox.error .terms-checkbox-mark {
  border-color: var(--stamp);
  box-shadow: 0 0 0 3px rgba(200, 32, 30, 0.12);
  animation: shake 0.4s var(--ease-out);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.terms-checkbox-text strong { font-weight: 600; color: var(--ink); }
.terms-checkbox-text em { font-style: italic; color: var(--slate); font-size: 0.825rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 18px;
  color: var(--slate);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(31, 22, 17, 0.08);
}

@media (max-width: 600px) {
  .auth-card { padding: 32px 24px; }
  .auth-tabs { padding: 3px; }
  .auth-tab { padding: 10px 14px; font-size: 0.85rem; }
}

/* === Nav dropdowns === */
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
/* Invisible bridge fills the gap between the link and the panel so
   the mouse can travel down without the dropdown disappearing. */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-caret {
  display: inline-block;
  font-size: 0.55rem;
  margin-left: 4px;
  opacity: 0.5;
  transition: transform 0.15s, opacity 0.15s;
  vertical-align: middle;
  line-height: 1;
}
.nav-item:hover .nav-caret {
  opacity: 1;
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: var(--paper);
  border: 1px solid rgba(31, 22, 17, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.10), 0 3px 8px rgba(0, 0, 0, 0.06);
  min-width: 200px;
  z-index: 500;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  pointer-events: none;
}
.nav-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.nav-dropdown-item {
  display: block;
  padding: 10px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 440;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  border-bottom: 1px solid rgba(31, 22, 17, 0.05);
  transition: background 0.1s, color 0.12s;
  white-space: nowrap;
}
.nav-dropdown-item:last-child { border-bottom: none; }
.nav-dropdown-item:hover {
  background: rgba(31, 22, 17, 0.04);
  color: var(--stamp);
  text-decoration: none;
}
.nav-dropdown-divider {
  height: 1px;
  background: rgba(31, 22, 17, 0.08);
  margin: 3px 0;
}
/* Hide dropdowns when hamburger is active (≤900px) — drawer handles navigation */
@media (max-width: 900px) {
  .nav-dropdown { display: none !important; }
  .nav-caret { display: none; }
  .nav-item { display: contents; }
}

/* === Account avatar button in nav === */
.nav-account-wrap { position: relative; }
.nav-account {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 3px;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.nav-account:hover { opacity: 0.78; }
.nav-account:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 50%; }
.nav-account-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  user-select: none;
}
.nav-account-avatar svg { width: 17px; height: 17px; stroke: var(--paper); }
.nav-account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--paper);
  border: 1px solid rgba(31, 22, 17, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  min-width: 168px;
  z-index: 300;
  overflow: hidden;
}
.nav-account-wrap.open .nav-account-dropdown { display: block; }
.nav-account-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 450;
  color: var(--ink);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(31, 22, 17, 0.06);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s;
}
.nav-account-dropdown-item:last-child { border-bottom: none; }
.nav-account-dropdown-item:hover { background: rgba(31,22,17,.04); color: var(--ink); text-decoration: none; }
.nav-account-dropdown-signout { color: var(--stamp) !important; }

/* Sign in link — shown in nav for logged-out users on public pages */
.nav-signin-link {
  display: inline-flex;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 6px 14px;
  border: 1px solid rgba(31,22,17,0.22);
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.nav-signin-link:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  text-decoration: none;
}
@media (max-width: 900px) {
  .nav-signin-link {
    font-size: 1rem;
    padding: 10px 0;
    border: none;
    border-radius: 0;
  }
  .nav-signin-link:hover { background: transparent; color: var(--stamp); }
}

/* === Account page panels === */
.acct-panel {
  background: var(--paper);
  border: 1px solid rgba(31, 22, 17, 0.08);
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 18px;
}
@media (max-width: 600px) { .acct-panel { padding: 22px 20px; } }
.acct-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.acct-panel-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.acct-panel-action {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--stamp);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.12s;
}
.acct-panel-action:hover { background: rgba(200,32,30,.07); text-decoration: none; color: var(--stamp); }
/* Preference toggle rows */
.acct-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(31, 22, 17, 0.06);
}
.acct-toggle-row:last-child { border-bottom: none; padding-bottom: 0; }
.acct-toggle-row:first-child { padding-top: 0; }
.acct-toggle-text { flex: 1; }
.acct-toggle-label { font-family: 'Inter', sans-serif; font-size: 0.9rem; font-weight: 450; color: var(--ink); }
.acct-toggle-desc { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--slate); line-height: 1.45; margin-top: 2px; }
.acct-toggle-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.acct-toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.acct-toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(31, 22, 17, 0.15);
  border-radius: 24px;
  cursor: pointer;
  transition: background 0.2s;
}
.acct-toggle-switch input:checked + .acct-toggle-track { background: var(--stamp); }
.acct-toggle-track::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.22);
  transition: transform 0.2s;
}
.acct-toggle-switch input:checked + .acct-toggle-track::after { transform: translateX(18px); }

/* === Cart icon in nav === */
.header-actions {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  position: relative;
  padding: 6px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease-out);
}
.nav-cart:hover { color: var(--stamp); text-decoration: none; }
.nav-cart svg { width: 19px; height: 19px; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 19px;
  padding: 0 6px;
  background: var(--stamp);
  color: var(--paper);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.cart-count.empty { display: none; }

/* === Toast === */
.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 22px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 16px 48px rgba(17,17,17,0.24);
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
  max-width: calc(100vw - 56px);
}
.toast.visible {
  transform: translateY(0);
  opacity: 1;
}
.toast-mark {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--stamp);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.toast-mark::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--stamp);
}

/* === Cart page === */
.cart-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(180deg, var(--content-bg), var(--paper-warm));
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.cart-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.cart-item-icon {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: 12px;
  flex-shrink: 0;
}
.cart-item-icon svg { width: 70%; height: 70%; }
.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 12px;
  display: block;
}
.cart-item-info { min-width: 0; }
.cart-item-info h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}
.cart-item-info .meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  color: var(--slate);
  margin-bottom: 8px;
}
.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.cart-item-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}
.qty-controls {
  display: inline-flex;
  align-items: center;
  background: var(--paper);
  border: 1px solid rgba(17,17,17,0.1);
  border-radius: 999px;
  overflow: hidden;
}
.qty-btn {
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  font-size: 1.05rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.qty-btn:hover { background: rgba(17,17,17,0.06); color: var(--stamp); }
.qty-value {
  min-width: 32px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
}
.cart-remove {
  background: none;
  border: none;
  color: var(--slate);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  cursor: pointer;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0;
  transition: color 0.2s var(--ease-out);
}
.cart-remove:hover { color: var(--stamp); }

.cart-summary {
  position: sticky;
  top: 100px;
  background: linear-gradient(180deg, var(--content-bg), var(--paper-warm));
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
}
.cart-summary h3 {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.015em;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--slate);
  gap: 16px;
}
.summary-row.total {
  border-top: 1px solid rgba(17,17,17,0.1);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
  padding: 16px 0 4px;
  margin-top: 8px;
}
.summary-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--slate);
  line-height: 1.65;
  margin-top: 1rem;
}

.cart-empty {
  text-align: center;
  padding: 96px 24px;
  background: linear-gradient(180deg, var(--content-bg), var(--paper-warm));
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: 16px;
}
.cart-empty h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

/* === Checkout page === */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.checkout-form { display: grid; gap: 1.5rem; }
.form-section {
  background: linear-gradient(180deg, var(--content-bg), var(--paper-warm));
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  gap: 1.25rem;
  box-shadow: var(--shadow-soft);
}
.form-section h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.confirmation-panel {
  text-align: center;
  padding: 80px 32px;
  background: linear-gradient(180deg, var(--content-bg), var(--paper-warm));
  border: 1px solid rgba(17,17,17,0.06);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}
.confirmation-panel .verified-stamp {
  margin: 0 auto 28px;
  width: 96px;
  height: 96px;
  font-size: 0.7rem;
}
.confirmation-panel h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
}

@media (max-width: 767px) {
  .cart-grid, .checkout-grid { grid-template-columns: 1fr; gap: 32px; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 70px 1fr; }
  .cart-item-icon { width: 70px; height: 70px; }
  .cart-item-controls {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .header-actions { gap: 16px; }
  .toast { right: 16px; bottom: 16px; left: 16px; max-width: none; }
}

/* === Utility === */
.center { text-align: center; }
.text-slate { color: var(--slate); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }


/* ==========================================================================
   AUTH GATEWAY (login.html)
   Two-panel layout: brand+credentials on left, sign-in/register forms on right.
   Inspired by competitor-style "credibility panel + form" gateway pages but
   styled with Ledger Bioscience aesthetic (cream paper, Fraunces serif, stamp
   accent, mono receipts).
   ========================================================================== */
.gateway-page { background: var(--paper); }

/* Minimal header — gateway pages don't show the full nav since the user can't
   navigate the site until they've signed in. Just the brand mark. */
.site-header.gateway-header .site-nav,
.site-header.gateway-header .menu-toggle { display: none; }
.site-header.gateway-header { border-bottom: 1px solid rgba(31, 22, 17, 0.06); }

.auth-gateway-section {
  padding: 56px 0 80px;
  background:
    radial-gradient(ellipse at top, rgba(200, 32, 30, 0.04) 0%, transparent 55%),
    var(--paper);
}

/* Two-panel grid — left brand/credentials, right forms. Stacks on mobile. */
.auth-gateway {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
  margin-bottom: 32px;
}
@media (max-width: 767px) {
  .auth-gateway { grid-template-columns: 1fr; gap: 24px; }
}

/* === LEFT PANEL === */
.auth-panel-left {
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--content-bg) 100%);
  border: 1px solid rgba(31, 22, 17, 0.08);
  border-radius: 20px;
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) {
  .auth-panel-left { padding: 32px 24px 28px; }
}

/* Subtle stamp-rule accent at the very top of the left panel */
.auth-panel-left::before {
  content: "";
  position: absolute;
  top: 0; left: 44px;
  width: 56px; height: 4px;
  background: var(--stamp);
}
@media (max-width: 600px) {
  .auth-panel-left::before { left: 24px; }
}

.auth-brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.auth-brand-mark svg {
  width: 28px;
  height: 35px;
}
.auth-brand-mark span {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.auth-brand-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.auth-brand-subhead {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--slate);
  margin: 0 0 24px;
  max-width: 44ch;
}

/* Credential pills — Ledger Bioscience equivalents of the competitor's compliance pills */
.auth-credentials {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 8px;
}
.auth-credential {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid rgba(31, 22, 17, 0.08);
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.3;
  width: fit-content;
  max-width: 100%;
}
.auth-credential-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--stamp);
}

/* Receipt-style product visual — evokes the brand's "Receipts on every batch" voice
   without needing to load a 10MB GLB on the gateway page. */
.auth-product-visual {
  margin: 8px auto 24px;
  width: 100%;
  max-width: 380px;
}
.auth-receipt {
  background: var(--paper);
  border: 1px solid rgba(31, 22, 17, 0.12);
  border-radius: 6px;
  padding: 20px 22px 16px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow:
    0 1px 0 rgba(31, 22, 17, 0.04),
    0 4px 16px rgba(31, 22, 17, 0.08);
  position: relative;
}
/* Perforated edge at top + bottom for the "receipt" feel */
.auth-receipt::before,
.auth-receipt::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 6px;
  background-image: radial-gradient(circle at 4px 3px, var(--paper-warm) 2px, transparent 2.5px);
  background-size: 8px 6px;
  background-repeat: repeat-x;
}
.auth-receipt::before { top: -3px; }
.auth-receipt::after { bottom: -3px; }

.auth-receipt-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed rgba(31, 22, 17, 0.2);
}
.auth-receipt-stamp {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--stamp);
  letter-spacing: 0.12em;
}
.auth-receipt-batch {
  font-size: 0.85rem;
  color: var(--ink);
}
.auth-receipt-rows { display: grid; gap: 4px; }
.auth-receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--slate);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.auth-receipt-row span:last-child {
  color: var(--ink);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.75rem;
}
.auth-receipt-footer {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed rgba(31, 22, 17, 0.2);
}
.auth-receipt-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1.5px solid var(--stamp);
  border-radius: 999px;
  color: var(--stamp);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.auth-receipt-verified svg {
  width: 13px;
  height: 13px;
}

/* Trust strip — Ledger Bioscience's analogue of the competitor's review-platform logos */
.auth-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(31, 22, 17, 0.08);
}
.auth-trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.auth-trust-stat {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.auth-trust-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: var(--slate);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* === RIGHT PANEL === */
.auth-panel-right { display: flex; }
.auth-card-gateway {
  max-width: none;
  margin: 0;
  padding: 36px 36px;
  width: 100%;
  border-radius: 20px;
}
@media (max-width: 600px) {
  .auth-card-gateway { padding: 28px 22px; }
}

/* Center-align the "Forgot password?" link (under Continue button) instead of the right-aligned
   default — competitor-style placement, also more discoverable. */
.auth-form-meta.auth-form-meta-center {
  justify-content: center;
  margin-top: 6px;
}

/* Password field with inline Show button (competitor pattern). The button is positioned absolutely
   inside the field's container so it sits inside the input's right edge. */
.auth-password-field {
  position: relative;
}
.auth-password-show {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: transparent;
  border: none;
  padding: 8px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s var(--ease-out), background 0.15s var(--ease-out);
}
.auth-password-show:hover { color: var(--ink); background: rgba(31, 22, 17, 0.04); }
.auth-password-show:focus-visible { outline: 2px solid var(--stamp); outline-offset: 2px; }

/* ============ Bottom info bar ============ */
.auth-gateway-footer {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 28px 32px;
}
@media (max-width: 600px) {
  .auth-gateway-footer { padding: 22px 22px; }
}
.auth-gateway-footer-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stamp);
  margin-bottom: 8px;
}
.auth-gateway-footer-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--paper);
}
.auth-gateway-footer-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(250, 246, 236, 0.75);
  margin: 0;
  max-width: 70ch;
}
.auth-gateway-footer-text a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.auth-gateway-footer-text a:hover {
  color: var(--stamp);
}

/* === QC Failure Log (failures.html) === */
.failure-empty-state {
  text-align: center;
  padding: 48px 0 32px;
  max-width: 52ch;
  margin: 0 auto;
}
.failure-card {
  border: 1px solid rgba(31, 22, 17, 0.09);
  border-left: 3px solid var(--stamp);
  border-radius: 14px;
  padding: 28px 32px 24px;
  margin-bottom: 24px;
  background: var(--paper);
}
@media (max-width: 600px) { .failure-card { padding: 20px 18px; } }
.failure-card-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.failure-batch-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 0;
}
.failure-coa-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: var(--stamp);
  padding: 3px 9px;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.failure-coa-badge:hover { opacity: 0.82; text-decoration: none; color: var(--paper); }

/* Inline error message shown below form fields on failed submit */
.auth-error-msg {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--stamp);
  background: rgba(200, 32, 30, 0.06);
  border: 1px solid rgba(200, 32, 30, 0.18);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}
