:root {
  --bg: #F8F5F0;
  --fg: #1A1A1A;
  --muted: #6B6359;
  --accent: #C4501A;
  --accent-warm: #E8875A;
  --card: #FFFFFF;
  --border: #E0D9D0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 64px;
  border-bottom: 1px solid var(--border);
}
.nav-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  padding: 100px 64px 80px;
}
.hero-inner {
  max-width: 800px;
}
.hero-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  font-weight: 500;
}
.hero-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 300;
  line-height: 1.7;
}
.hero-pulse {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.pulse-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  position: relative;
}
.pulse-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-anim 2s infinite;
}
@keyframes pulse-anim {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.5; transform: translate(-50%, -50%) scale(2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3); }
}

/* HOW IT WORKS */
.howitworks {
  padding: 80px 64px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.howitworks-inner { max-width: 1100px; }
.section-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 48px;
  font-weight: 500;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.step { position: relative; }
.step-number {
  font-family: 'Instrument Serif', serif;
  font-size: 48px;
  color: var(--border);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.step-line {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}
.step h3 {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}
.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* PROTOCOLS */
.protocols {
  padding: 100px 64px;
  border-top: 1px solid var(--border);
}
.protocols-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
}
.protocols-text h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  margin-top: 16px;
}
.protocols-text p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.protocol-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.protocol-card-header {
  background: var(--fg);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 12px 20px;
  font-weight: 500;
}
.compound-list { padding: 8px 0; }
.compound-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  padding: 12px 20px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.compound-row:last-child { border-bottom: none; }
.compound-row.active { border-left: 2px solid var(--accent); }
.compound-row.flagged { border-left: 2px solid #D4401A; }
.compound-name { font-weight: 500; }
.compound-dose { color: var(--muted); font-size: 12px; }
.compound-status { font-size: 12px; }
.compound-row.active .compound-status { color: var(--accent); }
.compound-row.flagged .compound-status { color: #D4401A; }
.protocol-card-footer {
  font-size: 11px;
  color: var(--muted);
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: #FAFAFA;
}

/* TRACKING */
.tracking {
  padding: 100px 64px;
  border-top: 1px solid var(--border);
  background: var(--card);
}
.tracking-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
}
.biomarker-chart {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.chart-header {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--fg);
  color: var(--bg);
  font-weight: 500;
}
.chart-axes {
  display: flex;
  gap: 12px;
  padding: 20px;
}
.y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  padding-top: 4px;
  width: 48px;
}
.chart-area {
  flex: 1;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 3px;
  margin-bottom: 8px;
}
.chart-line {
  height: 28px;
  border-radius: 2px;
  margin-bottom: 6px;
}
#line-vitd { background: linear-gradient(90deg, #E8875A 0%, #C4501A 60%, #8B2500 100%); width: 75%; }
#line-test { background: linear-gradient(90deg, #6B9E6B 0%, #4A7C4A 100%); width: 88%; }
#line-cortisol { background: linear-gradient(90deg, #C4A030 0%, #E8C030 100%); width: 62%; }
.chart-label { font-size: 10px; color: var(--muted); margin-bottom: 2px; }
.chart-value { font-size: 12px; font-weight: 500; }
.tracking-text h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  margin-top: 16px;
}
.tracking-text p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

/* CLOSING */
.closing {
  padding: 100px 64px;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 700px;
}
.closing h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  font-style: italic;
}
.closing p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
}

/* FOOTER */
.footer {
  padding: 64px;
  border-top: 1px solid var(--border);
}
.footer-inner { max-width: 700px; }
.footer-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 20px;
  margin-bottom: 16px;
}
.footer-copy {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.7;
}
.footer-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .hero { padding: 60px 24px 50px; }
  .howitworks, .protocols, .tracking, .closing, .footer { padding: 60px 24px; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .protocols-inner, .tracking-inner { grid-template-columns: 1fr; gap: 40px; }
  .compound-row { grid-template-columns: 1fr auto; gap: 8px; }
  .compound-status { display: none; }
}