/* ═══════════════════════════════════════════════════════════════
   SCORE BACH & SAMPOL v3 — ULTRA-MODERN DESIGN SYSTEM
   Question-by-question flow, no emojis, sharp typography
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-alt: #f5f5f5;
  --border: #e8e8e8;
  --border-light: #f0f0f0;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #999999;
  --text-faint: #bbbbbb;
  --accent: #1a1a2e;
  --accent-blue: #2563eb;
  --accent-green: #16a34a;
  --accent-amber: #d97706;
  --accent-red: #dc2626;
  --accent-purple: #7c3aed;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
  --transition: .35s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow-x: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ═══ TOP BAR ═══ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 20px;
}
.topbar-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.topbar-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
.topbar-sub {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-toggle {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 14px;
  cursor: pointer;
  letter-spacing: .06em;
  transition: all .2s;
}
.lang-toggle:hover { color: var(--text-primary); border-color: var(--text-muted); }

/* ═══ PROGRESS ═══ */
.progress-track {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--transition);
  flex-shrink: 0;
}
.progress-dot.active { background: var(--accent); transform: scale(1.3); }
.progress-dot.done { background: var(--accent-green); }
.progress-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  transition: background var(--transition);
}
.progress-line.done { background: var(--accent-green); }
.progress-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  display: none;
}
.progress-label.active { color: var(--text-primary); display: block; }

/* ═══ QUESTION COUNTER ═══ */
.q-counter {
  max-width: 560px;
  margin: 20px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.q-counter-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.q-counter-bar {
  flex: 1;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.q-counter-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  transition: width .5s cubic-bezier(.4,0,.2,1);
}

/* ═══ QUESTION VIEWPORT ═══ */
.q-viewport {
  flex: 1;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 24px;
}

/* ═══ QUESTION CARD ═══ */
.q-card {
  animation: slideUp .4s cubic-bezier(.22,.61,.36,1) forwards;
  opacity: 0;
}
@keyframes slideUp {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}

.q-section-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.q-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.q-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 28px;
}
.q-required {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-red);
  background: rgba(220,38,38,.06);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ═══ OPTION BUTTONS (single select) ═══ */
.opts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.opt-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .2s;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}
.opt-item:hover { border-color: #ccc; background: var(--surface-alt); }
.opt-item.selected {
  border-color: var(--accent);
  background: rgba(26,26,46,.03);
}
.opt-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all .2s;
  position: relative;
}
.opt-item.selected .opt-radio {
  border-color: var(--accent);
}
.opt-item.selected .opt-radio::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* ═══ TOGGLE PILLS ═══ */
.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .2s;
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.4;
}
.toggle-item:hover { border-color: #ccc; }
.toggle-item.active {
  border-color: var(--accent-blue);
  background: rgba(37,99,235,.03);
}
.toggle-switch {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--border);
  position: relative;
  flex-shrink: 0;
  transition: background .25s;
}
.toggle-item.active .toggle-switch { background: var(--accent-blue); }
.toggle-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: left .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.toggle-item.active .toggle-knob { left: 19px; }

/* ═══ TWO CHOICE ═══ */
.choice-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice-btn {
  padding: 16px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.choice-btn:hover { border-color: #ccc; }
.choice-btn.selected {
  border-color: var(--accent);
  background: rgba(26,26,46,.03);
  color: var(--accent);
}

/* ═══ INPUT FIELDS ═══ */
.field-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.field-input {
  font-family: var(--font);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 120px;
  outline: none;
  transition: border-color .2s;
  -moz-appearance: textfield;
}
.field-input::-webkit-inner-spin-button,
.field-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.field-input:focus { border-color: var(--accent); }
.field-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  align-self: flex-end;
  padding-bottom: 14px;
}
.date-field {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  width: 100%;
  max-width: 240px;
  outline: none;
  transition: border-color .2s;
}
.date-field:focus { border-color: var(--accent); }
textarea.field-textarea {
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  min-height: 70px;
  resize: vertical;
  outline: none;
  transition: border-color .2s;
}
textarea.field-textarea:focus { border-color: var(--accent); }

/* ═══ INLINE RESULT CHIPS ═══ */
.result-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 14px;
}
.result-value {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
}
.result-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.result-label {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* ═══ BMI STRIP ═══ */
.bmi-strip {
  margin-top: 16px;
  padding: 16px 0;
}
.bmi-gradient {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #22c55e 25%, #eab308 50%, #f97316 75%, #ef4444 100%);
  position: relative;
  margin-top: 10px;
}
.bmi-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid white;
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  box-shadow: var(--shadow-sm);
  transition: left .4s cubic-bezier(.4,0,.2,1);
}

/* ═══ FREQ SELECTOR (stress questions) ═══ */
.freq-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.freq-btn {
  padding: 8px 4px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.freq-btn:hover { border-color: #ccc; }
.freq-btn.selected {
  color: white;
  border-color: transparent;
}

/* ═══ PREDIMED ═══ */
.pred-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.pred-row:last-child { border-bottom: none; }
.pred-q {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}
.pred-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.pred-btn {
  width: 44px;
  height: 32px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
}
.pred-btn.yes { border-color: var(--accent-green); color: var(--accent-green); background: rgba(22,163,74,.04); }
.pred-btn.no-sel { border-color: var(--text-muted); color: var(--text-secondary); background: var(--surface-alt); }

/* ═══ DEDUCTION BAR ═══ */
.deduction-bar {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.deduction-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.deduction-item {
  font-size: 12.5px;
  color: var(--text-secondary);
  padding: 2px 0;
}

/* ═══ STATUS PILL ═══ */
.status-pill {
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid;
}

/* ═══ NAV FOOTER ═══ */
.nav-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  padding: 14px 20px;
}
.nav-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}
.nav-btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: -.01em;
}
.nav-btn:disabled, .nav-btn[disabled] { opacity: .35; cursor: default; pointer-events: none !important; }
.nav-btn.secondary {
  background: var(--surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  flex: 0;
}
.nav-btn.secondary:hover:not(:disabled) { background: var(--border); }
.nav-btn.primary {
  background: var(--accent);
  color: white;
  flex: 1;
}
.nav-btn.primary:hover:not(:disabled) { background: #2a2a4e; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav-btn.compute {
  background: var(--accent-blue);
  color: white;
  flex: 1;
}
.nav-btn.compute:hover:not(:disabled) { background: #1d4ed8; }
.nav-btn.danger {
  background: var(--surface-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  flex: 1;
}

/* ═══ SCORE HERO ═══ */
.score-hero {
  text-align: center;
  padding: 40px 24px 32px;
  animation: slideUp .5s cubic-bezier(.22,.61,.36,1) forwards;
  opacity: 0;
}
.score-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.score-number {
  font-size: 72px;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
}
.score-max {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}
.score-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: white;
}

/* ═══ GAUGE BAR ═══ */
.gauge {
  margin-bottom: 14px;
}
.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.gauge-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}
.gauge-score {
  font-size: 14px;
  font-weight: 800;
}
.gauge-of {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.gauge-track {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.gauge-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

/* ═══ RESULT SECTION ═══ */
.result-section {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 24px 100px;
  animation: slideUp .4s cubic-bezier(.22,.61,.36,1) forwards;
  animation-delay: .1s;
  opacity: 0;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}
.result-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ═══ SYNERGY ═══ */
.synergy-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
}
.synergy-label { color: var(--text-secondary); }
.synergy-value { font-weight: 700; }
.synergy-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

/* ═══ PRESCRIPTION PANEL ═══ */
.presc-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}
.presc-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.presc-list {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══ GUARDRAIL ═══ */
.gf-panel {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  margin-top: 12px;
}
.gf-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-purple);
  margin-bottom: 10px;
}
.gf-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 3px 0;
}

/* ═══ BIO INPUT ═══ */
.bio-section { margin-bottom: 20px; }
.bio-cat-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: 12px 0 8px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 8px;
}
.bio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.bio-row:last-child { border-bottom: none; }
.bio-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}
.bio-input {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  width: 90px;
  text-align: right;
  outline: none;
  -moz-appearance: textfield;
}
.bio-input::-webkit-inner-spin-button,
.bio-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.bio-input:focus { border-color: var(--accent); }
.bio-unit {
  font-size: 11px;
  color: var(--text-muted);
  width: 55px;
}

/* ═══ AI INSIGHT (inline) ═══ */
.ai-insight-bar {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-blue);
  background: rgba(37,99,235,.03);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.ai-insight-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.ai-insight-bar.warning { border-left-color: var(--accent-amber); background: rgba(217,119,6,.03); }
.ai-insight-bar.warning .ai-insight-tag { color: var(--accent-amber); }
.ai-insight-bar.positive { border-left-color: var(--accent-green); background: rgba(22,163,74,.03); }
.ai-insight-bar.positive .ai-insight-tag { color: var(--accent-green); }

/* ═══ REPORT ═══ */
.report-section {
  margin-top: 16px;
}
.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 10px;
}
.report-card-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.report-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.report-card-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.report-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.report-finding {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
}
.report-finding-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.report-finding-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.report-sub-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 12px 0 6px;
}
.reco-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.reco-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.reco-cat {
  font-size: 13px;
  font-weight: 700;
}
.reco-prio {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .04em;
}
.reco-action {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.reco-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.biomarker-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.biomarker-row:last-child { border-bottom: none; }
.biomarker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.biomarker-info { flex: 1; }
.biomarker-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.biomarker-expl {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: 2px;
}

/* ═══ GENERATE REPORT BTN ═══ */
.gen-report-btn {
  width: 100%;
  padding: 18px;
  border-radius: var(--radius);
  border: none;
  background: var(--accent);
  color: white;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
}
.gen-report-btn:hover { background: #2a2a4e; transform: translateY(-1px); box-shadow: var(--shadow-lg); }

/* ═══ LOADING ═══ */
.ai-loader {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  justify-content: center;
}
.ai-loader-dots { display: flex; gap: 5px; }
.ai-loader-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: dotPulse 1.2s infinite;
}
.ai-loader-dot:nth-child(2) { animation-delay: .2s; }
.ai-loader-dot:nth-child(3) { animation-delay: .4s; }
@keyframes dotPulse { 0%,80%,100%{opacity:.3;transform:scale(.8)} 40%{opacity:1;transform:scale(1.1)} }
.ai-loader-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ═══ AI CHAT PANEL ═══ */
.chat-fab {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  transition: all .2s;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-panel {
  position: fixed;
  bottom: 0; right: 0;
  width: 380px;
  max-width: 100vw;
  height: 500px;
  max-height: 70vh;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.chat-panel.open { transform: translateY(0); }
.chat-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}
.chat-hdr-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.chat-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
}
.chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg.assistant .chat-msg-bubble {
  background: var(--surface-alt);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-msg-bubble {
  background: var(--accent);
  color: white;
  border-bottom-right-radius: 4px;
}
.chat-input-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-light);
}
.chat-input {
  flex: 1;
  font-family: var(--font);
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface-alt);
  outline: none;
  color: var(--text-primary);
}
.chat-input:focus { border-color: var(--accent); }
.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.chat-send:hover { background: #2a2a4e; }
.chat-send:disabled { opacity: .4; }

/* ═══ FORMULA ═══ */
.formula-bar {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  font-size: 12.5px;
  padding: 14px 16px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}
.formula-bar strong {
  color: var(--text-primary);
  font-weight: 800;
}

/* ═══ NOTE ═══ */
.disclaimer {
  font-size: 11px;
  color: var(--text-faint);
  text-align: center;
  font-style: italic;
  padding: 16px 24px;
  line-height: 1.5;
}

/* ═══ MOTIVATION CARD ═══ */
.motivation-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.motivation-text {
  font-size: 15px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══ KEYBOARD NAV HINT ═══ */
.kb-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 12px;
}
.kb-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 10px;
  font-weight: 600;
  margin: 0 2px;
  vertical-align: middle;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 600px) {
  .q-title { font-size: 20px; }
  .score-number { font-size: 56px; }
  .chat-panel { width: 100%; border-radius: var(--radius) var(--radius) 0 0; }
  .freq-row { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ GEO COMPONENTS ═══ */
.geo-detect-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1.5px dashed var(--accent-blue);
  background: rgba(37,99,235,.03);
  color: var(--accent-blue);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.geo-detect-btn:hover { background: rgba(37,99,235,.08); border-style: solid; }
.geo-detect-btn i { font-size: 16px; }

.geo-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-faint);
  font-size: 12px;
  font-weight: 500;
}
.geo-divider::before, .geo-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.geo-search-wrap {
  position: relative;
}
.geo-search-input {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  padding: 14px 14px 14px 40px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s;
}
.geo-search-input:focus { border-color: var(--accent); }

.geo-results {
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  max-height: 200px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
}
.geo-result-item {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid var(--border-light);
  line-height: 1.4;
}
.geo-result-item:last-child { border-bottom: none; }
.geo-result-item:hover { background: var(--surface-alt); }

.geo-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(22,163,74,.04);
  border: 1px solid rgba(22,163,74,.15);
}
.geo-selected-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}
.geo-selected-coords {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}
.geo-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  font-size: 14px;
  flex-shrink: 0;
}
.geo-clear:hover { color: var(--accent-red); }

/* ═══ ENV CARDS ═══ */
.env-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}
.env-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.env-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.env-card-info { flex: 1; }
.env-card-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
}
.env-card-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-top: 2px;
}
.env-card-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
}
.env-loading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  justify-content: center;
  margin-top: 16px;
}

/* ═══ ENV SUMMARY (for noise question) ═══ */
.env-summary {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}
.env-summary-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.env-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
}
.env-summary-label {
  flex: 1;
  font-size: 13px;
  color: var(--text-secondary);
}
.env-summary-value {
  font-size: 13px;
  font-weight: 700;
}

/* ═══ LIFE EXPECTANCY MODULE ═══ */
.le-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
  overflow: hidden;
}
.le-section-title {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-purple);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.le-section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--accent-purple);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Hero: Lost vs Recoverable */
.le-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.le-hero-block {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  border-radius: var(--radius-sm);
}
.le-hero-block.le-lost {
  background: rgba(220,38,38,.05);
  border: 1px solid rgba(220,38,38,.12);
}
.le-hero-block.le-gain {
  background: rgba(22,163,74,.05);
  border: 1px solid rgba(22,163,74,.12);
}
.le-hero-number {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1;
}
.le-lost .le-hero-number { color: var(--accent-red); }
.le-gain .le-hero-number { color: var(--accent-green); }
.le-hero-unit {
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}
.le-lost .le-hero-unit { color: var(--accent-red); }
.le-gain .le-hero-unit { color: var(--accent-green); }
.le-hero-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.le-hero-arrow {
  color: var(--text-faint);
  font-size: 18px;
  flex-shrink: 0;
}

/* Visual Bar */
.le-bar-wrap {
  margin-bottom: 18px;
}
.le-bar-track {
  height: 8px;
  border-radius: 4px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.le-bar-lost {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), #f97316);
  border-radius: 4px;
  opacity: .25;
}
.le-bar-gain {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), #22d3ee);
  border-radius: 4px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
}
.le-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}

/* Measures Title */
.le-measures-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

/* Measure Card */
.le-measure-card {
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-blue);
  transition: all .2s;
}
.le-measure-card:hover {
  box-shadow: var(--shadow-sm);
}
.le-measure-hdr {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}
.le-measure-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.le-measure-info {
  flex: 1;
  min-width: 0;
}
.le-measure-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.le-measure-cat {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}
.le-measure-prio {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.le-measure-years {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.le-years-lost {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-red);
}
.le-years-arrow {
  color: var(--text-faint);
  font-size: 10px;
}
.le-years-gain {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
}
.le-measure-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}
.le-measure-detail {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 6px 0 0;
  padding-top: 6px;
  border-top: 1px dashed var(--border-light);
  font-style: italic;
}
.le-disclaimer {
  font-size: 10px;
  color: var(--text-faint);
  line-height: 1.5;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  text-align: center;
  font-style: italic;
}

/* ═══ TREATMENT-AWARE CATEGORIES (v3.5) ═══ */
.le-saved-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(22,163,74,.04);
  border: 1px solid rgba(22,163,74,.15);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.le-category-block {
  margin-top: 16px;
  padding: 0;
}
.le-cat-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}
.le-cat-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.le-cat-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.3;
}
.le-cat-subtitle {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.3;
}
.le-card-managed {
  background: rgba(22,163,74,.02);
  border-color: rgba(22,163,74,.12);
}
.le-card-partial {
  background: rgba(217,119,6,.02);
}
.le-managed-note {
  display: flex;
  align-items: flex-start;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 8px 10px;
  background: rgba(22,163,74,.04);
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid rgba(22,163,74,.1);
}
.le-action-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.le-summary-card.le-summary-saved {
  background: rgba(37,99,235,.04);
  border: 1px solid rgba(37,99,235,.12);
}

@media (max-width: 600px) {
  .le-hero { gap: 8px; }
  .le-hero-number { font-size: 26px; }
  .le-hero-block { padding: 12px 8px; }
  .le-measure-hdr { gap: 8px; }
  .le-measure-title-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .le-age-hero { grid-template-columns: 1fr 1fr; gap: 6px; }
  .le-age-number { font-size: 22px; }
  .le-age-col { padding: 10px 6px; }
}

/* ═══ SELECT FIELD ═══ */
.field-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.field-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,26,46,.08);
}

/* ═══ LIFE EXPECTANCY AGE HERO (v3.3) ═══ */
.le-age-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.le-age-col {
  text-align: center;
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border-light);
}
.le-age-current { background: rgba(107,114,128,.04); }
.le-age-base { background: rgba(37,99,235,.04); border-color: rgba(37,99,235,.12); }
.le-age-adjusted { background: rgba(220,38,38,.04); }
.le-age-measures { background: rgba(22,163,74,.04); }
.le-age-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.3;
}
.le-age-number {
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
}
.le-age-unit {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}
.le-age-delta {
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
}

/* ═══ LIFE EXPECTANCY TIMELINE (v3.3) ═══ */
.le-timeline-wrap {
  margin: 12px 0 16px;
  padding: 0 4px;
}
.le-timeline-track {
  position: relative;
  height: 16px;
  border-radius: 8px;
  background: var(--border-light);
  overflow: visible;
}
.le-tl-zone {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 8px;
}
.le-tl-lost {
  background: linear-gradient(90deg, rgba(37,99,235,.15), rgba(220,38,38,.25));
  left: 0;
}
.le-tl-gain {
  background: linear-gradient(90deg, rgba(220,38,38,.15), rgba(22,163,74,.35));
}
.le-tl-marker {
  position: absolute;
  top: -4px;
  width: 3px;
  height: 24px;
  border-radius: 2px;
  transform: translateX(-50%);
}
.le-tl-baseline {
  background: #2563eb;
}
.le-tl-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  padding: 0 2px;
}

/* ═══ LIFE EXPECTANCY SUMMARY ROW (v3.3) ═══ */
.le-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}
.le-summary-card {
  text-align: center;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid;
}
.le-summary-lost {
  background: rgba(220,38,38,.04);
  border-color: rgba(220,38,38,.15);
}
.le-summary-gain {
  background: rgba(22,163,74,.04);
  border-color: rgba(22,163,74,.15);
}
.le-summary-num {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}
.le-summary-lost .le-summary-num { color: #dc2626; }
.le-summary-gain .le-summary-num { color: #16a34a; }
.le-summary-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: .04em;
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE — SCORE BACH & SAMPOL
   Professional medical presentation
   ═══════════════════════════════════════════════════════════════ */

.landing-page {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Language Toggle ── */
.landing-lang {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(255,255,255,.95);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.landing-lang:hover {
  background: #1a1a2e;
  color: #fff;
  border-color: #1a1a2e;
}

/* ── Hero Section ── */
.landing-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1a1a2e 100%);
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}
.landing-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.12) 0%, transparent 70%);
  border-radius: 50%;
}
.landing-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(220,38,38,.08) 0%, transparent 70%);
  border-radius: 50%;
}
.landing-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,.15);
  border: 1px solid rgba(37,99,235,.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.landing-badge i {
  font-size: 12px;
  color: #60a5fa;
}
.landing-title {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}
.landing-subtitle {
  font-size: clamp(14px, 2.5vw, 17px);
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 640px;
}
.landing-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.landing-stat {
  text-align: center;
  padding: 16px 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
}
.landing-stat-n {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.landing-stat-l {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.3;
}

/* ── Sections ── */
.landing-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
}
.landing-section-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #2563eb;
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.landing-h2 {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  color: #111827;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -.015em;
}
.landing-text {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.7;
  margin: 0 0 20px;
}

/* ── Urgence Section ── */
.landing-urgence {
  border-bottom: 1px solid #f3f4f6;
}

/* ── Metric Cards (3-grid) ── */
.landing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.landing-metric-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.landing-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.landing-metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-size: 18px;
}
.landing-metric-val {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.landing-metric-label {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
  margin: 0;
}

/* ── Ethnic block ── */
.landing-eth-block {
  margin: 20px 0;
  background: #fafafa;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 20px;
}
.landing-eth-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 8px;
}
.landing-eth-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin: 10px 0;
}
.landing-eth-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f3f4f6;
}
.landing-eth-row:last-child { border-bottom: none; }
.landing-eth-hdr {
  background: #f9fafb;
  font-weight: 700;
  color: #374151;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.landing-ref {
  font-size: 10px;
  color: #9ca3af;
  font-style: italic;
  margin: 8px 0 0;
}

/* ── Limit Cards (2-grid) ── */
.landing-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.landing-limit-card {
  background: #fff;
  border: 1px solid #fee2e2;
  border-radius: 10px;
  padding: 16px;
}
.landing-limit-name {
  font-size: 14px;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 6px;
}
.landing-limit-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* ── Gap Box ── */
.landing-gap-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  font-size: 13px;
  font-weight: 600;
  color: #1e40af;
  line-height: 1.5;
}

/* ── Pillars ── */
.landing-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.landing-pillar-card {
  display: flex;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  transition: transform .2s, box-shadow .2s;
}
.landing-pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.landing-pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.landing-pillar-body {
  flex: 1;
  min-width: 0;
}
.landing-pillar-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.landing-pillar-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.landing-pillar-sub {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}
.landing-pillar-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* ── Formula ── */
.landing-formula {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.6;
  margin: 16px 0;
  text-align: center;
}
.landing-formula strong { color: #93c5fd; }
.landing-formula em { color: #a5b4fc; }

/* ── Treatment Section ── */
.landing-treat {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.landing-status-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-top: 3px solid;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
}
.landing-status-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  margin-bottom: 8px;
}
.landing-status-desc {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* ── Study List ── */
.landing-study-list {
  margin: 20px 0;
}
.landing-study-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  align-items: flex-start;
}
.landing-study-row:last-child { border-bottom: none; }
.landing-study-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.landing-study-body {
  flex: 1;
  min-width: 0;
}
.landing-study-hdr {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.landing-study-name {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}
.landing-study-journal {
  font-size: 11px;
  color: #2563eb;
  font-weight: 600;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 4px;
}
.landing-study-n {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 600;
}
.landing-study-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* ── Exposome block ── */
.landing-expo-block {
  margin: 24px 0 0;
  background: #fafafa;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 20px;
}
.landing-expo-list {
  margin: 8px 0 12px;
  padding-left: 18px;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.8;
}
.landing-expo-list li {
  margin-bottom: 2px;
}

/* ── EV Section ── */
.landing-ev {
  background: #fafbff;
  border-top: 1px solid #eff6ff;
  border-bottom: 1px solid #eff6ff;
}
.landing-ev-example {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

/* ── Predictive Medicine Section ── */
.landing-predictive {
  background: linear-gradient(135deg, #fefce8 0%, #fff7ed 100%);
  border-top: 1px solid #fde68a;
  border-bottom: 1px solid #fde68a;
}
.landing-predictive-highlight {
  background: #fff;
  border: 1px solid #fbbf24;
  border-left: 4px solid #f59e0b;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #92400e;
}
.landing-predictive-highlight strong { color: #78350f; }

/* ── Timeline ── */
.landing-timeline {
  margin: 20px 0;
  padding-left: 20px;
  border-left: 2px solid #2563eb;
}
.landing-timeline-item {
  position: relative;
  padding: 0 0 20px 16px;
}
.landing-timeline-item:last-child { padding-bottom: 0; }
.landing-timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #fff;
}
.landing-timeline-step {
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.landing-timeline-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}
.landing-timeline-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.5;
}

/* ── Impact grid ── */
.landing-impact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
.landing-impact-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.landing-impact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.landing-impact-num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}
.landing-impact-label {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
}

/* ── Quote box ── */
.landing-quote {
  background: #f0f9ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 16px 0;
  font-size: 14px;
  font-style: italic;
  color: #1e40af;
  line-height: 1.6;
}
.landing-quote-author {
  font-size: 11px;
  color: #6b7280;
  font-style: normal;
  font-weight: 600;
  margin-top: 6px;
}

/* ── CTA Section ── */
.landing-cta {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #1a1a2e 100%);
  padding: 48px 24px;
}
.landing-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.landing-cta-title {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.2;
}
.landing-cta-text {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 24px;
}
.landing-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 36px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 4px 20px rgba(37,99,235,.3);
}
.landing-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37,99,235,.4);
}
.landing-cta-note {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #64748b;
  margin-top: 16px;
}

/* ── Footer ── */
.landing-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: 11px;
  color: #9ca3af;
  background: #0f172a;
}

/* ── Mauritius crisis banner ── */
.landing-crisis-banner {
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
  text-align: center;
}
.landing-crisis-val {
  font-size: 42px;
  font-weight: 900;
  color: #dc2626;
  line-height: 1;
}
.landing-crisis-label {
  font-size: 13px;
  color: #991b1b;
  font-weight: 600;
  margin-top: 6px;
}
.landing-crisis-sub {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

/* ── Comparison table ── */
.landing-compare-table {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin: 16px 0;
  font-size: 12px;
}
.landing-compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}
.landing-compare-row:last-child { border-bottom: none; }
.landing-compare-hdr {
  background: #f9fafb;
  font-weight: 700;
  color: #374151;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.landing-compare-check {
  text-align: center;
  font-size: 14px;
}

/* ── Key facts pills ── */
.landing-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.landing-fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
}
.landing-fact-pill i {
  font-size: 12px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .landing-hero { padding: 60px 16px 40px; }
  .landing-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .landing-stat-n { font-size: 22px; }
  .landing-section { padding: 32px 16px; }
  .landing-grid-3 { grid-template-columns: 1fr; }
  .landing-grid-2 { grid-template-columns: 1fr; }
  .landing-pillars { grid-template-columns: 1fr; }
  .landing-impact-grid { grid-template-columns: 1fr; }
  .landing-compare-row { grid-template-columns: 1.5fr 1fr 1fr; font-size: 11px; }
  .landing-eth-row { font-size: 11px; padding: 8px 10px; }
  .landing-metric-val { font-size: 26px; }
  .landing-cta { padding: 32px 16px; }
}
