/* ============================
   TOKENS
   ============================ */
:root {
  --bg: #fff1da;
  --fg: #2d2d3a;
  --fg-muted: #505064;
  --accent: #f5c1a9;
  --accent-warm: #f5c1a9;
  --accent-deep: #d7c5ff;
  --surface: #d7c5ff;
  --border: #e8d5c8;
  --check-green: #b7f0d4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
}

/* ============================
   RESET
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
}

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

/* ============================
   TYPOGRAPHY UTILITIES
   ============================ */
.section-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--fg);
}

/* ============================
   HEADER
   ============================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-xl);
  background: rgba(255, 241, 218, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  background: rgba(255, 241, 218, 0.95);
  padding: 4px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
  display: block;
  flex-shrink: 0;
}

.tagline {
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-style: italic;
  font-family: var(--font-display);
}

/* ============================
   HERO
   ============================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem var(--space-xl) var(--space-2xl);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-text { max-width: 560px; }

.headline {
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  display: flex;
  flex-direction: column;
}

.headline-small {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--fg-muted);
  font-style: italic;
}

.headline-large {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.headline-accent {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1.0;
}

.lede {
  font-size: 1.25rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: var(--space-lg);
}

.btn-hero-demo {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 700;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-hero-demo:hover { background: var(--accent-deep); transform: translateY(-2px); }

/* GRANULES VISUAL */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.granules-field {
  position: relative;
  width: 100%;
  height: 100%;
}

.granule {
  position: absolute;
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
}

.granule-1  { width: 90px;  height: 90px;  top: 5%;   left: 10%;  background: radial-gradient(circle at 35% 35%, #f9d5c0, #f5c1a9); animation-delay: 0s;    }
.granule-2  { width: 60px;  height: 60px;  top: 15%;  left: 55%;  background: radial-gradient(circle at 35% 35%, #f0bba8, #e89070); animation-delay: 0.4s;  }
.granule-3  { width: 120px; height: 120px; top: 40%;  left: 25%;  background: radial-gradient(circle at 35% 35%, #f9d5c0, #f5c1a9); animation-delay: 0.8s;  }
.granule-4  { width: 45px;  height: 45px;  top: 60%;  left: 60%;  background: radial-gradient(circle at 35% 35%, #f0bba8, #d7a08a); animation-delay: 1.2s;  }
.granule-5  { width: 80px;  height: 80px;  top: 70%;  left: 15%;  background: radial-gradient(circle at 35% 35%, #f5c1a9, #d7a08a); animation-delay: 0.2s;  }
.granule-6  { width: 55px;  height: 55px;  top: 30%;  left: 70%;  background: radial-gradient(circle at 35% 35%, #f9d5c0, #f5c1a9); animation-delay: 1.6s;  }
.granule-7  { width: 100px; height: 100px; top: 50%;  left: 40%;  background: radial-gradient(circle at 35% 35%, #f0bba8, #f5c1a9); animation-delay: 0.6s;  }
.granule-8  { width: 40px;  height: 40px;  top: 80%;  left: 50%;  background: radial-gradient(circle at 35% 35%, #f9d5c0, #e89070); animation-delay: 2.0s;  }
.granule-9  { width: 70px;  height: 70px;  top: 10%;  left: 35%;  background: radial-gradient(circle at 35% 35%, #f5c1a9, #e89070); animation-delay: 0.3s;  }
.granule-10 { width: 95px;  height: 95px;  top: 55%;  left: 75%;  background: radial-gradient(circle at 35% 35%, #f9d5c0, #f0bba8); animation-delay: 1.4s;  }
.granule-11 { width: 50px;  height: 50px;  top: 85%;  left: 25%;  background: radial-gradient(circle at 35% 35%, #f0bba8, #f5c1a9); animation-delay: 0.9s;  }
.granule-12 { width: 85px;  height: 85px;  top: 20%;  left: 80%;  background: radial-gradient(circle at 35% 35%, #f5c1a9, #d7a08a); animation-delay: 1.8s;  }
.granule-13 { width: 65px;  height: 65px;  top: 45%;  left: 5%;   background: radial-gradient(circle at 35% 35%, #f9d5c0, #e89070); animation-delay: 1.0s;  }
.granule-14 { width: 110px; height: 110px; top: 75%;  left: 65%;  background: radial-gradient(circle at 35% 35%, #f0bba8, #e89070); animation-delay: 0.5s;  }
.granule-15 { width: 48px;  height: 48px;  top: 8%;   left: 65%;  background: radial-gradient(circle at 35% 35%, #f9d5c0, #f5c1a9); animation-delay: 2.2s;  }
.granule-16 { width: 78px;  height: 78px;  top: 65%;  left: 35%;  background: radial-gradient(circle at 35% 35%, #f5c1a9, #d7a08a); animation-delay: 0.7s;  }
.granule-17 { width: 55px;  height: 55px;  top: 35%;  left: 48%;  background: radial-gradient(circle at 35% 35%, #f9d5c0, #f0bba8); animation-delay: 1.5s;  }
.granule-18 { width: 92px;  height: 92px;  top: 88%;  left: 70%;  background: radial-gradient(circle at 35% 35%, #f0bba8, #f5c1a9); animation-delay: 1.1s;  }

@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1);    opacity: 0.85; }
  50%       { transform: translateY(-18px) scale(1.03); opacity: 1;   }
}

.hero-stat {
  position: absolute;
  bottom: 10%;
  right: 5%;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  background: var(--fg);
  color: var(--bg);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

/* ============================
   MANIFESTO
   ============================ */
.manifesto {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-2xl) var(--space-xl);
}

.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
}

.manifesto-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a6182;
  margin-bottom: var(--space-md);
}

.manifesto-statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg);
  margin-bottom: var(--space-md);
}

.manifesto-emphasis {
  color: var(--accent-deep);
  font-style: italic;
}

/* ============================
   HOW IT WORKS
   ============================ */
.how-it-works {
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.hiw-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step { padding: var(--space-lg) var(--space-md); }

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--fg);
}

.step-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.step-connector {
  width: 1px;
  height: 200px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.25;
  margin-top: 5rem;
  flex-shrink: 0;
}

/* ============================
   PERSONALIZATION
   ============================ */
.personalization {
  background: var(--accent-deep);
  color: var(--bg);
  padding: var(--space-2xl) var(--space-xl);
}

.pers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.pers-content .section-label { color: var(--accent-warm); }

.pers-content .section-heading {
  color: var(--bg);
  margin-bottom: var(--space-md);
}

.pers-body {
  color: rgba(250, 248, 245, 0.7);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.pers-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.pers-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-warm);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.pers-stat-label {
  font-size: 0.75rem;
  color: rgba(250, 248, 245, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* COMPARISON CARDS */
.pers-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.comparison-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: var(--space-md);
}

.comparison-generic { opacity: 0.65; }
.comparison-yours   { border-color: var(--accent); }

.comp-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250,248,245,0.5);
  margin-bottom: var(--space-sm);
}

.comp-bar-label {
  font-size: 0.75rem;
  color: rgba(250,248,245,0.6);
  margin-top: 0.6rem;
  margin-bottom: 0.25rem;
}

.comp-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.comp-fill {
  height: 100%;
  border-radius: 3px;
  background: rgba(250,248,245,0.4);
}

.comp-fill-85 { width: 85%;  background: var(--accent-warm); }
.comp-fill-90 { width: 90%;  background: var(--accent-warm); }
.comp-fill-75 { width: 75%;  background: var(--accent-warm); }
.comp-fill-80 { width: 80%;  background: var(--accent-warm); }
.comp-fill-60 { width: 60%;  background: var(--accent-warm); }

.comp-note {
  font-size: 0.75rem;
  color: rgba(250,248,245,0.4);
  font-style: italic;
  margin-top: var(--space-sm);
}

/* ============================
   FLAVORS
   ============================ */
.flavors {
  padding: var(--space-2xl) var(--space-xl);
  max-width: 1200px;
  margin: 0 auto;
}

.flavors-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.flavors-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-top: var(--space-sm);
}

.flavor-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.flavor-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flavor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(212, 136, 58, 0.12);
}

.flavor-swatch {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  margin-bottom: var(--space-md);
}

.flavor-mango .flavor-swatch    { background: linear-gradient(135deg, #F7C56A, #E8941C); }
.flavor-orange .flavor-swatch  { background: linear-gradient(135deg, #F5A84A, #D06020); }
.flavor-strawberry .flavor-swatch { background: linear-gradient(135deg, #F291A8, #D44D6B); }

.flavor-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
  color: var(--fg);
}

.flavor-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ============================
   CLOSING
   ============================ */
.closing {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.closing-inner { max-width: 720px; margin: 0 auto; }

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: var(--space-md);
}

.closing-headline em { color: var(--accent-deep); font-style: italic; }

.closing-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-xl);
}

.wordmark-footer {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: var(--space-xs);
  line-height: 1.5;
}

.footer-note p {
  font-size: 0.75rem;
  color: var(--fg-muted);
  max-width: 400px;
  text-align: right;
  line-height: 1.5;
}

/* ============================
   FORMULA DEMO
   ============================ */
.formula-demo {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.formula-demo-inner {
  max-width: 800px;
  margin: 0 auto;
}

.formula-entry {
  text-align: center;
  padding: var(--space-xl) 0;
}

.formula-entry-heading { margin-bottom: var(--space-sm); }
.formula-entry-heading em { color: var(--accent-deep); font-style: italic; }

.formula-entry-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.65;
}

.btn-formula-cta {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1.1rem 2.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-formula-cta:hover { background: var(--accent-deep); transform: translateY(-2px); }

.formula-panel-header { margin-bottom: var(--space-lg); }
.formula-panel-header .section-heading { margin-bottom: var(--space-sm); }

.btn-sample {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-deep);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-sample:hover { background: var(--border); }

.biomarker-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.biomarker-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
}

.biomarker-meta {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.biomarker-name { font-weight: 600; font-size: 0.95rem; color: var(--fg); }
.biomarker-unit { font-size: 0.8rem; color: var(--fg-muted); }
.biomarker-range { font-size: 0.75rem; color: var(--fg-muted); margin-left: auto; font-style: italic; }

.biomarker-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.biomarker-slider { flex: 1; accent-color: var(--accent); cursor: pointer; }

.biomarker-number {
  width: 80px;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--bg);
  text-align: center;
}

.biomarker-status { font-size: 0.75rem; font-weight: 600; margin-top: 0.4rem; min-height: 1em; }
.status-ok   { color: #2E7D32; }
.status-low  { color: #C62828; }
.status-high { color: #E65100; }

.flavor-picker-section { margin-bottom: var(--space-lg); }

.flavor-picker-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: var(--space-sm);
}

.flavor-picker { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.flavor-option { cursor: pointer; }
.flavor-option input[type="radio"] { display: none; }

.flavor-chip {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}

.flavor-option input:checked + .flavor-chip { border-color: var(--accent); transform: scale(1.04); }
.flavor-chip-mango      { background: linear-gradient(135deg, #FDF0D5, #F7C56A); color: #7A4500; }
.flavor-chip-strawberry { background: linear-gradient(135deg, #FCE4EC, #F291A8); color: #880E4F; }
.flavor-chip-orange     { background: linear-gradient(135deg, #FFF3E0, #F5A84A); color: #7A3B00; }
.flavor-chip-berry      { background: linear-gradient(135deg, #EDE7F6, #B48FEA); color: #311B92; }

.btn-generate {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1.1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-generate:hover:not(:disabled) { background: var(--accent-deep); }
.btn-generate:disabled { opacity: 0.65; cursor: not-allowed; }

.formula-result { margin-top: var(--space-lg); }

.result-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
  box-shadow: 0 12px 48px rgba(0,0,0,0.08);
}

.result-bg-gradient { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.result-card-inner {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) var(--space-lg);
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(8px);
}

.result-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: var(--space-sm);
}

.result-headline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.result-section-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
  margin-bottom: var(--space-sm);
}

.result-deficiencies { margin-bottom: var(--space-md); }

.deficiency-tag {
  display: inline-block;
  background: #FFF3E0;
  color: #7A3B00;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 4px;
  margin: 0 0.3rem 0.3rem 0;
  border: 1px solid #F5A84A;
}

.deficiency-ok { background: #E8F5E9; color: #1B5E20; border-color: #81C784; }

.result-nutrients { margin-bottom: var(--space-md); }

.nutrient-row { border-top: 1px solid var(--border); padding: var(--space-sm) 0; }
.nutrient-row:last-child { border-bottom: 1px solid var(--border); }

.nutrient-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.nutrient-name { font-weight: 600; font-size: 0.95rem; color: var(--fg); }

.nutrient-dose {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--surface);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.nutrient-rationale { font-size: 0.85rem; color: var(--fg-muted); line-height: 1.5; }

.result-summary {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-md);
  padding: var(--space-sm);
  background: var(--surface);
  border-radius: 6px;
  border-left: 3px solid var(--accent);
}

.result-disclaimer {
  font-size: 0.72rem;
  color: var(--fg-muted);
  opacity: 0.7;
  line-height: 1.4;
  text-align: center;
}

.result-waitlist-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
}

.btn-waitlist {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-waitlist:hover { background: var(--accent-deep); }

.btn-retake {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-retake:hover { color: var(--fg); }

.hidden { display: none !important; }

/* ============================
   WAITLIST
   ============================ */
.waitlist-section {
  background: var(--fg);
  color: var(--bg);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.waitlist-inner {
  max-width: 600px;
  margin: 0 auto;
}

.waitlist-section .section-label { color: #9b7fbf; }

.waitlist-heading {
  color: var(--bg);
  margin-bottom: var(--space-sm);
}

.waitlist-heading em { color: #9b7fbf; font-style: italic; }

.waitlist-sub {
  font-size: 1rem;
  color: rgba(250, 248, 245, 0.65);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto var(--space-lg);
}

.waitlist-form { width: 100%; }

.waitlist-input-row {
  display: flex;
  gap: 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: var(--space-sm);
}

.waitlist-email {
  flex: 1;
  padding: 0.9rem 1.2rem;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
}

.waitlist-email::placeholder { color: rgba(250,248,245,0.4); }
.waitlist-email:focus { background: rgba(255,255,255,0.15); }

.btn-waitlist-submit {
  padding: 0.9rem 1.5rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.btn-waitlist-submit:hover:not(:disabled) { background: var(--accent-warm); }
.btn-waitlist-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.waitlist-privacy {
  font-size: 0.75rem;
  color: rgba(250,248,245,0.4);
  text-align: center;
}

.waitlist-success { text-align: center; padding: var(--space-lg) 0; }

.waitlist-success-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.waitlist-success-heading {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--bg);
  margin-bottom: var(--space-sm);
}

.waitlist-success-body {
  font-size: 0.95rem;
  color: rgba(250,248,245,0.6);
  line-height: 1.65;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }

  .pers-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { display: none; }

  .flavor-cards { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }
  .footer-note p { text-align: left; }
}

@media (max-width: 600px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }
  .site-header { padding: var(--space-sm) var(--space-md); }
  .hero { padding: 7rem var(--space-md) var(--space-xl); }
  .how-it-works, .personalization, .flavors, .closing, .waitlist-section { padding-left: var(--space-md); padding-right: var(--space-md); }
  .pers-stats { flex-direction: column; gap: var(--space-md); }
}

/* ============================
   BLOOD UPLOAD
   ============================ */
.blood-upload-section {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.blood-upload-inner {
  max-width: 700px;
  margin: 0 auto;
}

.bu-entry { text-align: center; padding: var(--space-xl) 0; }
.bu-entry-heading { margin-bottom: var(--space-sm); }
.bu-entry-heading em { color: var(--accent-deep); font-style: italic; }
.bu-entry-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto var(--space-lg);
  line-height: 1.65;
}

.btn-bu-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.2s ease, transform 0.1s ease;
}
.btn-bu-cta:hover { background: var(--accent-deep); transform: translateY(-2px); }

.bu-panel-header { margin-bottom: var(--space-lg); }
.bu-panel-header .section-heading { margin-bottom: 0.5rem; }
.bu-upload-sub { font-size: 0.85rem; color: var(--fg-muted); margin-top: 0.25rem; }

/* Dropzone */
.bu-dropzone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: var(--space-md);
  position: relative;
  background: var(--bg);
}
.bu-dropzone:hover { border-color: var(--accent); background: rgba(212,136,58,0.04); }
.bu-drag-over { border-color: var(--accent); background: rgba(212,136,58,0.08); }

.bu-dropzone-inner { padding: var(--space-md) 0; }
.bu-upload-icon { font-size: 2.5rem; margin-bottom: var(--space-sm); }
.bu-drop-text { font-size: 1rem; color: var(--fg); margin-bottom: 0.25rem; }
.bu-browse-link { color: var(--accent); text-decoration: underline; cursor: pointer; }
.bu-drop-hint { font-size: 0.8rem; color: var(--fg-muted); }

.bu-file-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 0;
}
.bu-file-name { font-size: 0.95rem; color: var(--fg); font-weight: 500; }
.bu-remove-file {
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
}
.bu-remove-file:hover { background: var(--border); color: var(--fg); }

.bu-upload-progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: var(--space-sm);
}
.bu-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.bu-error {
  background: #FFF3F3;
  border: 1px solid #F5B7B1;
  color: #922B21;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.btn-bu-analyze {
  width: 100%;
  background: var(--fg);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.btn-bu-analyze:hover:not(:disabled) { background: #333; }
.btn-bu-analyze:disabled { opacity: 0.5; cursor: not-allowed; }
.bu-spinner { font-size: 1rem; }

/* Results panel */
.bu-results { margin-top: var(--space-lg); }
.bu-biomarker-review {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.bu-biomarker-row {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: var(--space-md);
}

.bu-bm-meta { display: flex; flex-direction: column; gap: 2px; }
.bu-bm-name { font-weight: 600; font-size: 0.95rem; color: var(--fg); }
.bu-bm-range { font-size: 0.75rem; color: var(--fg-muted); font-style: italic; }

.bu-bm-input-wrap { display: flex; align-items: center; gap: 0.5rem; }
.bu-bm-num {
  width: 90px;
  padding: 0.4rem 0.6rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  background: var(--surface);
  text-align: center;
}
.bu-bm-num:focus { outline: none; border-color: var(--accent); }
.bu-bm-unit { font-size: 0.8rem; color: var(--fg-muted); white-space: nowrap; }

.bu-bm-status { font-size: 0.75rem; font-weight: 700; padding: 0.3rem 0.6rem; border-radius: 4px; white-space: nowrap; }
.bu-status-ok   { background: #E8F5E9; color: #1B5E20; }
.bu-status-low  { background: #FFF3E0; color: #7A3B00; }
.bu-status-high { background: #FFF8E1; color: #6D4C00; }

.bu-flavor-section { margin-top: var(--space-lg); }
.bu-retake-btn {
  display: block;
  margin: var(--space-sm) auto 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fg-muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bu-retake-btn:hover { color: var(--fg); }

/* Privacy note in dropzone */
.bu-privacy-note { color: var(--accent-deep); font-weight: 600; }
.bu-privacy-inline {
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-top: 0.5rem;
  opacity: 0.85;
}

/* Post-formula email capture */
.bu-email-capture { text-align: center; margin-bottom: var(--space-md); }
.bu-email-capture-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: var(--space-sm);
}
.bu-email-row {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto var(--space-xs);
}
.bu-email-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--fg);
  outline: none;
}
.btn-bu-save {
  padding: 0.75rem 1.2rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-bu-save:hover:not(:disabled) { background: var(--accent-deep); }
.btn-bu-save:disabled { opacity: 0.65; cursor: not-allowed; }
.bu-email-privacy {
  font-size: 0.72rem;
  color: var(--fg-muted);
  opacity: 0.75;
}
.bu-email-error {
  font-size: 0.82rem;
  color: #c0392b;
  margin-top: 0.4rem;
}
.bu-email-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-md);
}
.bu-email-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #2E7D32;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.bu-email-success-text {
  font-size: 0.95rem;
  color: #2E7D32;
  font-weight: 600;
}

@media (max-width: 600px) {
  .bu-email-row { flex-direction: column; border-radius: 6px; }
  .btn-bu-save { border-radius: 0 0 4px 4px; text-align: center; }
  .bu-biomarker-row { grid-template-columns: 1fr auto; gap: var(--space-sm); }
  .bu-bm-status { grid-column: 1 / -1; }
}

/* ============================
   WAITLIST QUIZ
   ============================ */
.waitlist-section {
  padding: var(--space-2xl) var(--space-xl);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.waitlist-inner {
  max-width: 600px;
  margin: 0 auto;
}

/* Entry state */
.wl-entry { text-align: center; }
.wl-entry-heading { margin-bottom: var(--space-md); }
.wl-entry-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}

.btn-wl-start {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-wl-start:hover { background: var(--accent-deep); }

/* Progress */
.wl-progress-wrap {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}
.wl-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.wl-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--space-lg);
}

/* Steps */
.wl-step-heading {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--fg);
  margin-bottom: var(--space-sm);
}
.wl-step-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-bottom: var(--space-md);
}

/* Fields */
.wl-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-md);
}
.wl-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fg-muted);
}
.wl-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--fg);
  transition: border-color 0.15s;
}
.wl-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Chips (health concerns) */
.wl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: var(--space-md);
}
.wl-chip {
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.wl-chip:hover { border-color: var(--accent); }
.wl-chip-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Radio group */
.wl-radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-md);
}
.wl-radio-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
  font-size: 0.95rem;
}
.wl-radio-label:hover { border-color: var(--accent); }
.wl-radio-label input[type="radio"] { accent-color: var(--accent); width: 18px; height: 18px; }

/* Next / Submit buttons */
.btn-wl-next, .btn-wl-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fg);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-wl-next:hover, .btn-wl-submit:hover { background: #333; }
.btn-wl-next:disabled, .btn-wl-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.wl-spinner { font-size: 0.9rem; }

/* Error messages */
.wl-error {
  font-size: 0.85rem;
  color: #c0392b;
  margin-top: 8px;
}

/* Confirmation */
.wl-confirmation { text-align: center; padding: var(--space-xl) 0; }
.wl-confirm-icon { font-size: 3rem; margin-bottom: var(--space-md); }
.wl-confirm-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.wl-confirm-body {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 460px;
  margin: 0 auto var(--space-md);
  line-height: 1.7;
}
.btn-wl-demo {
  display: inline-block;
  margin-top: var(--space-md);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s;
}
.btn-wl-demo:hover { background: var(--accent-deep); }

/* Mobile */
@media (max-width: 600px) {
  .waitlist-section { padding-left: var(--space-md); padding-right: var(--space-md); }
  .wl-chips { gap: 8px; }
  .wl-chip { font-size: 0.85rem; padding: 7px 13px; }
}