:root {
  --bg: #FAF7F2;
  --fg: #1A1A18;
  --fg-muted: #6B6860;
  --accent: #2D4A3E;
  --accent-warm: #D4843E;
  --surface: #F2EDE4;
  --border: #E2DACE;
  --tag-med: #E8F0EC;
  --tag-med-txt: #2D4A3E;
  --tag-symptom: #FDF2E9;
  --tag-symptom-txt: #8B4A1E;
  --tag-gi: #EEF3FB;
  --tag-gi-txt: #1A3A6B;
  --tag-pulmo: #F3EDF8;
  --tag-pulmo-txt: #5A2D8A;
}

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

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

/* ── NAV ─────────────────────────────────────────── */
.site-nav {
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

/* ── HERO ─────────────────────────────────────────── */
.hero {
  padding: 80px 48px 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.6;
  max-width: 440px;
}

/* Record widget */
.record-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.record-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.record-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
.record-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}
.waveform span {
  display: block;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.3;
  animation: wave 1.2s ease-in-out infinite;
}
.waveform span:nth-child(1) { animation-delay: 0s; }
.waveform span:nth-child(2) { animation-delay: 0.1s; }
.waveform span:nth-child(3) { animation-delay: 0.2s; }
.waveform span:nth-child(4) { animation-delay: 0.3s; }
.waveform span:nth-child(5) { animation-delay: 0.4s; }
.waveform span:nth-child(6) { animation-delay: 0.5s; }
.waveform span:nth-child(7) { animation-delay: 0.6s; }
.waveform span:nth-child(8) { animation-delay: 0.7s; }
.waveform span:nth-child(9) { animation-delay: 0.8s; }
.waveform span:nth-child(10) { animation-delay: 0.9s; }
.waveform span:nth-child(11) { animation-delay: 1.0s; }
.waveform span:nth-child(12) { animation-delay: 1.1s; }
@keyframes wave {
  0%, 100% { height: 12px; }
  50% { height: 32px; }
}
.transcript-snippet {
  font-size: 13px;
  color: var(--fg-muted);
  font-style: italic;
  border-left: 3px solid var(--accent-warm);
  padding-left: 12px;
  line-height: 1.5;
}
.parsed-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--tag-med);
  color: var(--tag-med-txt);
  width: fit-content;
}
.parsed-chip:nth-child(5) { background: var(--tag-symptom); color: var(--tag-symptom-txt); }
.parsed-chip:nth-child(6) { background: var(--tag-gi); color: var(--tag-gi-txt); }

/* Hero proof */
.hero-proof {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.proof-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat {
  flex: 1;
  text-align: center;
}
.stat-num {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.4;
  max-width: 160px;
  margin: 0 auto;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── PROBLEM ─────────────────────────────────────── */
.problem {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 48px;
}
.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.problem-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.problem-headline {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
  max-width: 600px;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.problem-card h3 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  margin-top: 16px;
}
.problem-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.problem-callout {
  background: var(--accent);
  border-radius: 10px;
  padding: 20px 28px;
}
.problem-callout p {
  font-size: 15px;
  color: #fff;
  line-height: 1.6;
}

/* ── TIMELINE ────────────────────────────────────── */
.timeline-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.timeline-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.timeline-headline {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  max-width: 560px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.timeline-sub {
  font-size: 17px;
  color: var(--fg-muted);
  margin-bottom: 48px;
}
.timeline-demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
}
.timeline-month {
  padding: 0;
}
.month-header {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 14px 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.timeline-entries {
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.entry {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.entry:last-child { border-bottom: none; }
.entry-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  padding-top: 2px;
}
.entry-body p {
  font-size: 14px;
  color: var(--fg);
  line-height: 1.5;
  margin-top: 6px;
}
.entry-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tag--med { background: var(--tag-med); color: var(--tag-med-txt); }
.tag--symptom { background: var(--tag-symptom); color: var(--tag-symptom-txt); }
.tag--gi { background: var(--tag-gi); color: var(--tag-gi-txt); }
.tag--pulmo { background: var(--tag-pulmo); color: var(--tag-pulmo-txt); }

.categories {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.categories-label {
  font-size: 13px;
  color: var(--fg-muted);
}
.category-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--fg);
}

/* ── VOICE ─────────────────────────────────────────── */
.voice-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 48px;
}
.voice-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.voice-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.voice-text h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.voice-text > p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.voice-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.voice-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--fg);
}

/* Voice card graphic */
.voice-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.vc-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-warm);
}
.vc-time {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}
.vc-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 32px;
}
.vc-wave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: var(--accent-warm);
  opacity: 0.5;
}
.vc-raw {
  font-size: 12px;
  font-style: italic;
  color: var(--fg-muted);
  border-left: 3px solid var(--border);
  padding-left: 12px;
  line-height: 1.5;
}
.vc-arrow {
  display: flex;
  justify-content: center;
  color: var(--accent);
}
.vc-parsed {
  background: var(--surface);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.parsed-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.pr-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 72px;
}
.pr-val {
  font-size: 13px;
  color: var(--fg);
}

/* ── SEARCH ─────────────────────────────────────────── */
.search-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.search-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
}
.sc-query {
  font-size: 16px;
  font-style: italic;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
}
.sc-results {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sr-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.sr-item:last-child { border-bottom: none; }
.sr-item--alert { background: #FEF3E8; border-radius: 6px; padding: 12px; margin: -12px 0; }
.sr-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  padding-top: 1px;
}
.sr-text {
  font-size: 13px;
  color: var(--fg);
  line-height: 1.5;
}
.sc-pattern {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #fff;
  font-weight: 500;
}

.search-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-warm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.search-text h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.search-text > p {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.search-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.search-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--fg);
}

/* ── CLOSING ─────────────────────────────────────── */
.closing {
  background: var(--accent);
  padding: 100px 48px;
}
.closing-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
}
.closing-quote {
  max-width: 560px;
}
.closing-quote p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 24px;
  font-style: italic;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 16px;
}
.closing-attr {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.closing-statement h2 {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.closing-statement p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  line-height: 1.6;
}

/* ── FOOTER ─────────────────────────────────────── */
.site-footer {
  background: #1A1A18;
  padding: 40px 48px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-name {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.footer-motto {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}
.footer-note {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner,
  .voice-inner,
  .search-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-headline { font-size: 32px; }
  .timeline-headline { font-size: 28px; }
  .problem-grid { grid-template-columns: 1fr; }
  .proof-stats { flex-direction: column; gap: 24px; }
  .stat-divider { width: 48px; height: 1px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 600px) {
  .site-nav, .hero, .problem, .timeline-section,
  .voice-section, .search-section, .closing, .site-footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-headline { font-size: 26px; }
}