/* ARES-MED v7.0 — VitalsZero White, Black & Aerospace Blue Platform */

:root {
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-alt: #f1f5f9;
  --bg-blue-tint: #eff6ff;
  --border-subtle: #e2e8f0;
  --border-blue: #93c5fd;
  --text-main: #0f172a;
  --text-body: #1e293b;
  --text-muted: #475569;
  --blue-navy: #0c2340;
  --blue-primary: #0369a1;
  --blue-bright: #0284c7;
  --blue-sky: #0ea5e9;
  --accent-green: #059669;
  --accent-amber: #d97706;
  --accent-red: #dc2626;
  --accent-purple: #6d28d9;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
}

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

body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 2-TONE STICKY HEADER: LIGHT-BLUE 1-ROW TELEMETRY + SOFTER BLUE NAV BAR BELOW */
.sticky-site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 3px 14px rgba(2, 132, 199, 0.12);
}

.mission-header {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: #bae6fd;
  color: #0c2340;
  border-bottom: 1px solid #7dd3fc;
}

.header-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 1; }

.hamburger-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #7dd3fc;
  color: #0c2340;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hamburger-btn:hover { background: #e0f2fe; }

.brand-block { display: flex; align-items: center; gap: 10px; cursor: pointer; min-width: 0; }

.brand-logo-img {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0284c7;
  background: #ffffff;
}

.brand-title h1 {
  font-size: 16px; font-weight: 800; color: #0c2340;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
}

.badge-team {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: #ffffff; color: #0369a1; border: 1px solid #7dd3fc;
}

.brand-subtitle { font-size: 11px; color: #1e3a5f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 340px; }

.header-controls-right { display: flex; flex-wrap: nowrap; gap: 8px; align-items: center; flex-shrink: 0; }

.lang-switch {
  display: flex;
  background: #ffffff;
  border: 1px solid #7dd3fc;
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  border: none; background: transparent; padding: 5px 9px;
  font-size: 11.5px; font-weight: 700; color: #334155; cursor: pointer;
}
.lang-btn.active { background: #0284c7; color: #ffffff; }

.telemetry-pill {
  background: #ffffff; border: 1px solid #7dd3fc;
  border-radius: 9px; padding: 4px 10px; display: flex; flex-direction: column;
}
.telemetry-pill .label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.6px;
  color: #0369a1; font-family: var(--font-mono); white-space: nowrap;
}
.telemetry-pill .value {
  font-size: 11.5px; font-weight: 700; font-family: var(--font-mono);
  color: #0c2340; display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.env-preset-select {
  background: transparent; color: #0c2340; border: none;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; cursor: pointer; outline: none;
  max-width: 195px;
}
.env-preset-select option { background: #ffffff; color: #0c2340; }

/* SECOND ROW: ONE SHADE LIGHTER SKY-BLUE HORIZONTAL NAV BAR (CENTERED) */
.sub-nav-bar {
  background: #e0f2fe;
  padding: 6px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid #bae6fd;
}
.top-nav-btn {
  background: transparent;
  color: #0c2340;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.top-nav-btn:hover { background: #ffffff; color: #0284c7; border-color: #bae6fd; }
.top-nav-btn.active {
  background: #0284c7;
  color: #ffffff;
  font-weight: 800;
}
@media (max-width: 1120px) {
  .brand-subtitle, .badge-team { display: none; }
}
@media (max-width: 820px) {
  .mission-header { flex-wrap: wrap; }
  .header-controls-right { flex-wrap: wrap; }
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-green); display: inline-block; }

/* LEFT SLIDE-OVER DRAWER WITH EXPANDABLE INTERACTIVE SUBMENU */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px); z-index: 900; opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.side-drawer {
  position: fixed; top: 0; left: -330px; width: 310px; height: 100vh;
  background: #ffffff; border-right: 1px solid var(--border-subtle);
  z-index: 1000; padding: 20px 16px; display: flex; flex-direction: column; justify-content: space-between;
  transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1); box-shadow: 8px 0 30px rgba(15, 23, 42, 0.14);
  overflow-y: auto;
}
.side-drawer.open { left: 0; }

.drawer-top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); margin-bottom: 14px;
}
.drawer-brand { font-weight: 800; font-size: 16px; color: var(--blue-navy); display: flex; align-items: center; gap: 8px; }
.drawer-close-btn {
  background: var(--bg-card-alt); border: 1px solid var(--border-subtle);
  color: var(--text-main); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px;
}

.drawer-nav { display: flex; flex-direction: column; gap: 6px; }

.drawer-nav-btn {
  width: 100%; text-align: left; padding: 11px 13px; border-radius: 10px;
  background: transparent; border: 1px solid transparent; color: var(--text-body);
  cursor: pointer; transition: all 0.16s ease; display: flex; flex-direction: column; gap: 2px;
}
.drawer-nav-btn strong { font-size: 14px; color: var(--text-main); }
.drawer-nav-btn span { font-size: 11.5px; color: var(--text-muted); }
.drawer-nav-btn:hover { background: var(--bg-blue-tint); border-color: var(--border-blue); }
.drawer-nav-btn.active { background: var(--blue-navy); border-color: var(--blue-navy); }
.drawer-nav-btn.active strong { color: #ffffff; }
.drawer-nav-btn.active span { color: #cbd5e1; }

.drawer-subnav {
  display: flex; flex-direction: column; gap: 4px; padding-left: 16px; margin-top: 2px;
  border-left: 2px solid var(--border-blue); margin-left: 12px;
}
.drawer-sub-btn {
  text-align: left; background: var(--bg-card-alt); border: 1px solid var(--border-subtle);
  border-radius: 8px; padding: 8px 10px; font-size: 12.5px; font-weight: 600;
  color: var(--blue-navy); cursor: pointer;
}
.drawer-sub-btn:hover, .drawer-sub-btn.active {
  background: var(--bg-blue-tint); border-color: var(--blue-bright); color: var(--blue-primary);
}

.drawer-footer { border-top: 1px solid var(--border-subtle); padding-top: 14px; font-size: 12.5px; color: var(--text-muted); }
.drawer-footer a { color: var(--blue-primary); text-decoration: none; font-weight: 600; }

/* PAGE CONTAINER */
.main-container { max-width: 1280px; margin: 0 auto; padding: 26px 24px 72px; }
.page-section { display: none; animation: fadeSlideIn 0.22s ease; }
.page-section.active { display: block; }
@keyframes fadeSlideIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* CARDS & BUTTONS */
.card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: 14px; padding: 22px; box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
.card-header {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--border-subtle);
}
.card-title { font-size: 16.5px; font-weight: 700; color: var(--blue-navy); }
.card-badge {
  font-family: var(--font-mono); font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: var(--bg-blue-tint); color: var(--blue-primary); border: 1px solid var(--border-blue); white-space: nowrap;
}

.btn-primary {
  background: var(--blue-navy); color: #ffffff; border: none;
  padding: 10px 20px; border-radius: 9px; font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.btn-primary:hover { background: var(--blue-primary); }
.btn-secondary {
  background: #ffffff; color: var(--blue-navy); border: 1px solid var(--border-blue);
  padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: 13px; cursor: pointer;
}
.btn-secondary:hover { background: var(--bg-blue-tint); }

/* HOME HERO & 3 VISUAL CARDS */
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center;
  background: #ffffff; border: 1px solid var(--border-subtle); border-radius: 18px;
  padding: 32px; margin-bottom: 26px; box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.hero-eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--blue-primary); background: var(--bg-blue-tint); border: 1px solid var(--border-blue);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.hero-title { font-size: 36px; font-weight: 800; line-height: 1.15; color: var(--blue-navy); margin-bottom: 14px; }
.hero-title span { color: var(--blue-bright); }
.hero-lead { font-size: 15.5px; color: var(--text-body); margin-bottom: 22px; }
.hero-media-card { background: var(--blue-navy); border-radius: 14px; overflow: hidden; border: 1px solid var(--border-subtle); }
.hero-media-card img { width: 100%; height: 270px; object-fit: cover; display: block; }
.hero-media-caption { padding: 10px 14px; font-size: 12px; color: #e2e8f0; background: var(--blue-navy); }

.three-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.feature-nav-card {
  background: #ffffff; border: 1px solid var(--border-subtle); border-radius: 14px;
  overflow: hidden; cursor: pointer; transition: all 0.18s ease; display: flex; flex-direction: column;
}
.feature-nav-card:hover { border-color: var(--blue-bright); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(3, 105, 161, 0.12); }
.feature-card-visual {
  height: 130px; background: linear-gradient(135deg, #0c2340, #0284c7);
  position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 12px 16px;
}
.feature-card-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.feature-card-visual span {
  position: relative; z-index: 2; font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: #ffffff; background: rgba(12, 35, 64, 0.85); padding: 3px 9px; border-radius: 6px;
}
.feature-card-body { padding: 18px; display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 10px; }
.feature-card-body h3 { font-size: 17px; color: var(--blue-navy); }
.feature-card-body p { font-size: 13.5px; color: var(--text-muted); }
.feature-link { font-size: 13px; font-weight: 700; color: var(--blue-bright); }

/* ABOUT US: BACKDROP + 2-COLUMN SPLIT + 2x2 SWOT SQUARE */
.about-hero-backdrop {
  position: relative; border-radius: 18px; overflow: hidden; background: var(--blue-navy);
  color: #ffffff; padding: 44px; margin-bottom: 24px; box-shadow: 0 12px 30px rgba(12, 35, 64, 0.18);
}
.about-hero-backdrop img.backdrop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.about-hero-overlay { position: relative; z-index: 2; max-width: 900px; }
.about-hero-overlay h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; color: #ffffff; }
.about-hero-overlay p { font-size: 15px; line-height: 1.72; color: #f1f5f9; margin-bottom: 12px; }

.about-split-panel {
  background: #ffffff; border: 1px solid var(--border-subtle); border-radius: 16px;
  display: grid; grid-template-columns: 0.78fr 1.22fr; margin-bottom: 26px; overflow: hidden;
}
.about-split-col { padding: 30px 32px; }
.about-split-col:first-child { border-right: 1px solid var(--border-subtle); }
.about-split-col h3 { font-size: 20px; color: var(--blue-navy); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--blue-bright); }
.about-split-col p { font-size: 14.5px; color: var(--text-body); margin-bottom: 12px; line-height: 1.68; }
.about-split-col ul { padding-left: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--text-body); font-size: 14px; }

/* 2x2 SWOT SQUARE (CLEAN BLUE/WHITE/SOFT TINT) */
.swot-wrapper {
  background: #ffffff; border: 1px solid var(--border-subtle); border-radius: 18px;
  padding: 28px; margin-bottom: 24px;
}
.swot-square-grid {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  max-width: 920px; margin: 18px auto 0;
}
.swot-quad {
  border-radius: 14px; padding: 22px 24px; border: 1px solid var(--border-subtle);
}
.swot-s { background: #e0f2fe; border-color: #7dd3fc; }
.swot-w { background: #fef3c7; border-color: #fcd34d; }
.swot-o { background: #dcfce7; border-color: #86efac; }
.swot-t { background: #fee2e2; border-color: #fca5a5; }
.swot-quad h4 { font-size: 16px; font-weight: 800; color: var(--blue-navy); margin-bottom: 8px; }
.swot-quad ul { padding-left: 18px; font-size: 13.5px; color: var(--text-body); display: flex; flex-direction: column; gap: 6px; }

/* GRIDS & FAQ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--bg-card-alt); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 14px 16px; }
.faq-item summary { font-weight: 700; color: var(--blue-navy); cursor: pointer; font-size: 14px; }
.faq-item p { margin-top: 8px; font-size: 13.5px; color: var(--text-body); }

/* MISSION & CREW ROSTER */
.mission-banner {
  background: linear-gradient(120deg, #eff6ff, #e0f2fe); border: 1px solid var(--border-blue);
  border-radius: 14px; padding: 22px 24px; margin-bottom: 22px;
}
.mission-banner h2 { color: var(--blue-navy); }
.mission-banner p { color: var(--text-body); }

.crew-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.crew-card {
  background: #ffffff; border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 15px; cursor: pointer; transition: all 0.16s ease;
}
.crew-card:hover { border-color: var(--blue-bright); }
.crew-card.selected { background: var(--bg-blue-tint); border-color: var(--blue-bright); box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2); }
.crew-avatar-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-family: var(--font-mono);
  padding: 3px 8px; border-radius: 6px; background: var(--bg-card-alt); color: var(--blue-navy); border: 1px solid var(--border-subtle);
}
.crew-story { font-size: 12.8px; color: var(--text-muted); line-height: 1.48; }
.crew-score-pill { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.status-nominal { background: #d1fae5; color: #065f46; }
.status-caution { background: #fef3c7; color: #92400e; }
.status-critical { background: #fee2e2; color: #991b1b; }

/* SCENARIO SWITCHER */
.scenario-cards-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.btn-scenario {
  background: var(--bg-card-alt); border: 1px solid var(--border-subtle); border-radius: 10px;
  padding: 12px; text-align: left; color: var(--text-main); cursor: pointer; transition: all 0.16s ease;
}
.btn-scenario:hover { border-color: var(--blue-bright); }
.btn-scenario.active { background: var(--blue-navy); color: #ffffff; border-color: var(--blue-navy); }
.scen-card-top { font-family: var(--font-mono); font-size: 10px; color: var(--blue-primary); display: flex; justify-content: space-between; margin-bottom: 4px; }
.btn-scenario.active .scen-card-top { color: #93c5fd; }
.scen-card-name { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.scen-card-meta { font-size: 11px; color: var(--text-muted); }
.btn-scenario.active .scen-card-meta { color: #cbd5e1; }

/* WIDE SPACIOUS ANATOMICAL BODY WITH LATERAL CALLOUTS */
.body-callout-stage {
  display: grid; grid-template-columns: 1fr 380px 1fr; gap: 22px; align-items: center; margin-top: 14px;
}
.callout-column { display: flex; flex-direction: column; gap: 28px; }
.callout-box {
  background: #ffffff; border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 16px 18px; box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}
.callout-box.status-nominal { border-left: 4px solid var(--accent-green); background: #ffffff; }
.callout-box.status-caution { border-left: 4px solid var(--accent-amber); background: #fffbeb; }
.callout-box.status-critical { border-left: 4px solid var(--accent-red); background: #fef2f2; }
.callout-box-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.callout-box-head strong { font-size: 14.5px; color: var(--blue-navy); }
.callout-risk-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.callout-box p { font-size: 13.2px; color: var(--text-body); line-height: 1.5; }

.hologram-center-box { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gender-toggle-btns { display: flex; gap: 8px; }
.gender-btn {
  background: var(--bg-card-alt); border: 1px solid var(--border-subtle); color: var(--text-main);
  padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.gender-btn.active { background: var(--blue-navy); border-color: var(--blue-navy); color: #ffffff; }

.hologram-stage {
  position: relative; width: 370px; height: 470px;
  background: #ffffff; border: 1.5px solid var(--border-blue); border-radius: 16px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(12, 35, 64, 0.08);
}
.hologram-img { max-height: 445px; width: auto; object-fit: contain; transition: transform 0.25s ease; }
.hologram-img.female-morph { transform: scaleX(0.94); }
.hologram-overlay-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.organ-hotspot { cursor: pointer; }

/* VITALS & ACTION PLAN */
.vitals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vital-box { background: var(--bg-card-alt); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 12px; }
.vital-box.alert-amber { border-color: var(--accent-amber); background: #fffbeb; }
.vital-box.alert-red { border-color: var(--accent-red); background: #fef2f2; }
.vital-name { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
.vital-reading { font-size: 22px; font-weight: 800; font-family: var(--font-mono); color: var(--blue-navy); margin: 2px 0; }
.vital-unit { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.vital-baseline { font-size: 11px; color: var(--text-muted); }

.escalation-ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.esc-step { background: var(--bg-card-alt); border: 1px solid var(--border-subtle); border-radius: 10px; padding: 10px 12px; font-size: 12px; opacity: 0.65; }
.esc-step.active-level-1 { opacity: 1; border-color: var(--accent-green); background: #ecfdf5; }
.esc-step.active-level-2 { opacity: 1; border-color: var(--accent-amber); background: #fffbeb; }
.esc-step.active-level-3 { opacity: 1; border-color: var(--accent-red); background: #fef2f2; }

.triage-alert-banner { background: #ecfdf5; border-left: 4px solid var(--accent-green); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.triage-alert-banner.caution { background: #fffbeb; border-left-color: var(--accent-amber); }
.triage-alert-banner.critical { background: #fef2f2; border-left-color: var(--accent-red); }
.triage-headline { font-weight: 700; font-size: 14px; color: var(--text-main); margin-bottom: 4px; }
.triage-rationale { font-size: 13px; color: var(--text-body); }

.protocol-list { display: flex; flex-direction: column; gap: 8px; }
.protocol-item { display: flex; gap: 10px; align-items: flex-start; background: var(--bg-card-alt); border: 1px solid var(--border-subtle); border-radius: 9px; padding: 10px 12px; }
.protocol-text h4 { font-size: 13.5px; color: var(--blue-navy); margin-bottom: 2px; }
.protocol-text p { font-size: 12.5px; color: var(--text-muted); }

/* INTERACTIVE LAB: 3-MODE SELECTOR & SUBPANELS */
.interactive-hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.inter-mode-card {
  background: #ffffff; border: 1.5px solid var(--border-subtle); border-radius: 14px;
  padding: 18px; cursor: pointer; transition: all 0.16s ease; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
}
.inter-mode-card:hover { border-color: var(--blue-bright); transform: translateY(-2px); }
.inter-mode-card.active { background: var(--blue-navy); border-color: var(--blue-navy); color: #ffffff; }
.inter-mode-card h3 { font-size: 15.5px; margin: 8px 0 6px; color: inherit; }
.inter-mode-card p { font-size: 12.8px; color: var(--text-muted); }
.inter-mode-card.active p { color: #cbd5e1; }

.inter-summary-strip {
  background: var(--bg-blue-tint);
  border: 1px solid var(--border-blue);
  border-left: 4px solid var(--blue-navy);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13.5px;
  color: var(--text-main);
}

.inter-subpanel { display: none; }
.inter-subpanel.active { display: block; animation: fadeSlideIn 0.2s ease; }

.webcam-preview-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; }
.video-frame {
  width: 200px; height: 150px; background: var(--blue-navy); border: 1px solid var(--border-blue);
  border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

.pvt-target {
  background: var(--bg-blue-tint); border: 2px dashed var(--blue-bright); color: var(--blue-navy);
  border-radius: 12px; padding: 34px 18px; text-align: center; font-weight: 700; cursor: pointer; user-select: none;
}
.pvt-target.waiting { border-color: var(--accent-amber); background: #fffbeb; color: #92400e; }
.pvt-target.ready { background: #d1fae5; border-color: var(--accent-green); color: #065f46; }

/* SEQUENTIAL 30-DAY QUIZ */
.quiz-question-card {
  background: var(--bg-blue-tint); border: 1px solid var(--border-blue);
  border-radius: 12px; padding: 20px; margin-bottom: 14px;
}
.quiz-options-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.quiz-opt-btn {
  text-align: left; background: #ffffff; border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600;
  color: var(--blue-navy); cursor: pointer; transition: all 0.15s ease;
}
.quiz-opt-btn:hover { border-color: var(--blue-bright); background: #f0f9ff; }

.symptom-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.symptom-chip {
  background: var(--bg-card-alt); border: 1px solid var(--border-subtle); color: var(--text-main);
  padding: 6px 11px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
}
.symptom-chip.active { background: var(--blue-navy); border-color: var(--blue-navy); color: #ffffff; }
.symptom-chip.red-flag { border-color: #fca5a5; color: #991b1b; background: #fef2f2; }
.symptom-chip.red-flag.active { background: var(--accent-red); border-color: var(--accent-red); color: #ffffff; }

.differential-output {
  background: var(--bg-card-alt); border: 1px solid var(--border-subtle);
  border-radius: 10px; padding: 14px; font-size: 13.5px; color: var(--text-main);
}
.diff-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 12.5px; color: var(--text-main); }
.diff-table th, .diff-table td { border-bottom: 1px solid var(--border-subtle); padding: 8px; text-align: left; }
.conf-badge { padding: 2px 7px; border-radius: 4px; font-weight: 700; font-size: 10.5px; }
.conf-likely { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.conf-moderate { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.conf-possible { background: #e0f2fe; color: #075985; border: 1px solid #7dd3fc; }

.fhir-box {
  background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 12px;
  font-family: var(--font-mono); font-size: 11.5px; color: #e2e8f0;
  height: 165px; max-height: 165px; overflow: auto; word-break: break-word; white-space: pre-wrap;
}

/* AI ASSISTANT FLOATING WIDGET */
.ai-fab {
  position: fixed; bottom: 22px; right: 24px; z-index: 800;
  background: var(--blue-navy); color: #ffffff; border: 2px solid #ffffff;
  border-radius: 999px; padding: 6px 18px 6px 8px; font-weight: 700; font-size: 13.5px;
  cursor: pointer; box-shadow: 0 8px 24px rgba(12, 35, 64, 0.28);
  display: inline-flex; align-items: center; gap: 10px;
}
.ai-fab-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: #ffffff; border: 2px solid #38bdf8; flex-shrink: 0;
}
.ai-fab:hover { background: var(--blue-primary); }

.ai-panel {
  position: fixed; bottom: 78px; right: 24px; width: 360px; max-width: calc(100vw - 32px);
  background: #ffffff; border: 1px solid var(--border-blue); border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22); z-index: 850;
  display: none; flex-direction: column; overflow: hidden;
}
.ai-panel.open { display: flex; }
.ai-panel-head {
  background: var(--blue-navy); color: #ffffff; padding: 12px 16px;
  display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px;
}
.ai-messages {
  padding: 14px; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px;
  background: var(--bg-page); font-size: 13px;
}
.ai-msg { padding: 10px 12px; border-radius: 10px; max-width: 90%; line-height: 1.48; }
.ai-msg.bot { background: #ffffff; border: 1px solid var(--border-subtle); color: var(--text-main); align-self: flex-start; }
.ai-msg.user { background: var(--blue-navy); color: #ffffff; align-self: flex-end; }
.ai-quick-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px; background: #ffffff; border-top: 1px solid var(--border-subtle); }
.ai-chip {
  font-size: 11px; background: var(--bg-blue-tint); color: var(--blue-primary);
  border: 1px solid var(--border-blue); border-radius: 999px; padding: 4px 9px; cursor: pointer;
}
.ai-input-row { display: flex; border-top: 1px solid var(--border-subtle); background: #ffffff; padding: 8px; gap: 6px; }
.ai-input-row input { flex: 1; padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: 8px; font-size: 13px; outline: none; }

.site-footer {
  background: #ffffff; border-top: 1px solid var(--border-subtle); margin-top: 36px;
  padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 12px; font-size: 13px; color: var(--text-muted);
}

/* ============================================================
   v8.0 REDESIGN: HERO BACKDROP, STEP WIZARDS, AVATARS, PRINT
   ============================================================ */
.home-space-hero {
  position: relative; border-radius: 18px; overflow: hidden;
  min-height: 360px; display: flex; align-items: center;
  padding: 44px 40px; margin-bottom: 22px; color: #ffffff;
  background-size: cover; background-position: center;
  box-shadow: 0 14px 36px rgba(12, 35, 64, 0.22);
}
.home-space-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(10, 25, 47, 0.88) 0%, rgba(12, 35, 64, 0.72) 55%, rgba(15, 23, 42, 0.45) 100%);
}
.home-space-hero-inner { position: relative; z-index: 2; max-width: 760px; }
.did-you-know-pill {
  display: inline-block; background: rgba(56, 189, 248, 0.22); border: 1px solid rgba(125, 211, 252, 0.55);
  color: #e0f2fe; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.home-space-hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin-bottom: 14px; color: #ffffff; }
.home-space-hero h1 span { color: #7dd3fc; }
.home-space-hero p { font-size: 16px; line-height: 1.6; color: #e2e8f0; margin-bottom: 22px; }

.problem-solution-grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; margin-bottom: 24px;
}
.ps-card {
  background: #ffffff; border: 1px solid var(--border-subtle); border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.ps-card.solution {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%); border-color: var(--border-blue);
}
.ps-tag {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--blue-primary); margin-bottom: 8px; display: block;
}
.ps-card h3 { font-size: 18px; color: var(--blue-navy); margin-bottom: 8px; }
.ps-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ABOUT US CIRCULAR LOGO & ANIMATED GUIDE PLAYER */
.about-logo-badge {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  border: 3px solid #ffffff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  margin-bottom: 14px; background: #ffffff;
}
.walkthrough-box {
  margin-top: 16px; border: 1px solid var(--border-blue); border-radius: 14px;
  background: #0f172a; color: #f8fafc; overflow: hidden;
}
.walkthrough-stage {
  position: relative; padding: 16px; min-height: 210px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(circle at top right, #1e3a5f, #0b132b);
}
.walkthrough-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; background: #1e293b; border-top: 1px solid #334155; flex-wrap: wrap;
}
.wt-btn {
  background: var(--blue-primary); color: #ffffff; border: none; border-radius: 8px;
  padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.wt-btn.secondary { background: #334155; }
.wt-dots { display: flex; gap: 6px; }
.wt-dot { width: 8px; height: 8px; border-radius: 50%; background: #475569; cursor: pointer; }
.wt-dot.active { background: #38bdf8; transform: scale(1.25); }

/* STEP-BY-STEP WIZARDS (SCENARIOS & DIAGNOSIS) */
.wizard-progress {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap;
}
.wiz-pill {
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: #f1f5f9; color: #64748b; border: 1px solid var(--border-subtle);
}
.wiz-pill.active { background: var(--blue-navy); color: #ffffff; border-color: var(--blue-navy); }
.wiz-pill.done { background: #dcfce7; color: #166534; border-color: #86efac; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeStep 0.22s ease; }
@keyframes fadeStep { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* 4 ASTRONAUT AVATAR CARDS (PICTURE TOP + EXPLANATION BOTTOM) */
.crew-avatar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.crew-avatar-card {
  background: #ffffff; border: 2px solid var(--border-subtle); border-radius: 16px;
  overflow: hidden; text-align: left; cursor: pointer; transition: all 0.18s ease;
  display: flex; flex-direction: column;
}
.crew-avatar-card:hover { border-color: var(--blue-bright); transform: translateY(-3px); box-shadow: 0 12px 24px rgba(3, 105, 161, 0.14); }
.crew-avatar-card.active { border-color: var(--blue-navy); background: #f0f9ff; }
.crew-photo-top {
  width: 100%; height: 210px; object-fit: cover; object-position: center top;
  display: block; border-bottom: 2px solid var(--border-subtle); background: #0c2340;
}
.crew-card-body {
  padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1;
}

/* 5 VERTICAL SCENARIO COLUMNS WITH SPACE GRAPHICS (LONGER & DETAILED) */
.scenario-columns-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px;
}
.scen-col-card {
  background: #ffffff; border: 2px solid var(--border-subtle); border-radius: 16px;
  overflow: hidden; cursor: pointer; transition: all 0.18s ease;
  display: flex; flex-direction: column; text-align: left; min-height: 375px;
}
.scen-col-card:hover { border-color: var(--blue-bright); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(12, 35, 64, 0.12); }
.scen-col-card.active { border-color: var(--blue-navy); background: #f0f9ff; }
.scen-col-visual { height: 132px; width: 100%; display: block; flex-shrink: 0; }
.scen-col-body { padding: 14px 13px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.scen-col-body h4 { font-size: 14.5px; color: var(--blue-navy); margin: 0; font-weight: 800; }
.scen-col-body p { font-size: 12.2px; color: var(--text-body); line-height: 1.5; margin: 0; }
.scen-col-detail {
  margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--border-subtle);
  font-size: 11.2px; color: var(--blue-primary); font-weight: 600; line-height: 1.4;
}

/* INTERACTIVE 3-CARD HUB -> LEFT/RIGHT SPLIT WHEN ACTIVE */
.interactive-workspace { display: block; }
.interactive-workspace.split-active {
  display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start;
}
.interactive-3-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px;
}
.interactive-workspace.split-active .interactive-3-grid {
  grid-template-columns: 1fr; gap: 12px; margin-bottom: 0; position: sticky; top: 84px;
}
.interactive-workspace.split-active .inter-visual-footer { height: 68px !important; margin-top: 8px; }
.interactive-workspace.split-active .inter-mode-card { padding: 14px; }
.interactive-workspace.split-active .inter-mode-card h3 { font-size: 15px; margin: 4px 0; }
.interactive-workspace.split-active .inter-mode-card p { font-size: 12px; margin: 0; }
.inter-panels-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inter-space-filler {
  display: none;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  min-height: 210px;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 2000px rgba(7, 19, 38, 0.62);
  padding: 22px 24px;
  color: #ffffff;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.interactive-workspace.split-active .inter-space-filler { display: flex; flex-wrap: wrap; }
.inter-back-bar { display: none; margin-bottom: 4px; }
.interactive-workspace.split-active .inter-back-bar { display: flex; justify-content: space-between; align-items: center; }

.inter-visual-footer {
  margin-top: 10px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-subtle);
  height: 110px; width: 100%; background: #0f172a;
}

/* HOME HERO SPLIT & HEADER DAY SLIDER */
.home-hero-split {
  display: grid; grid-template-columns: 1.45fr 0.72fr; gap: 24px; align-items: center;
}
.home-hero-combined-box { display: flex; flex-direction: column; gap: 10px; }
.home-hero-subblock {
  background: rgba(15, 41, 74, 0.56); border-left: 3px solid #38bdf8;
  border-radius: 10px; padding: 10px 14px; font-size: 13.5px; color: #e0f2fe; line-height: 1.5;
}
.home-hero-subblock strong { color: #7dd3fc; display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.home-hero-cta-stack {
  display: flex; flex-direction: column; gap: 10px;
}
.home-hero-cta-stack .btn-primary { width: 100%; text-align: left; padding: 12px 16px; }
.header-day-slider {
  width: 110px; accent-color: #0284c7; cursor: pointer; height: 4px; margin-top: 3px;
}
@media (max-width: 960px) {
  .home-hero-split, .interactive-workspace.split-active { grid-template-columns: 1fr; }
  .interactive-workspace.split-active .interactive-3-grid { position: static; }
}

/* SPACE-FRAMED CENTERED WHITE BOX (QUIZ & SELF-DIAGNOSIS) */
.space-stage-bg {
  position: relative; border-radius: 18px; padding: 34px 24px;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 2000px rgba(10, 25, 47, 0.62);
}
.white-stage-card {
  max-width: 820px; margin: 0 auto; background: #ffffff; border-radius: 16px;
  padding: 28px 30px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35); color: var(--text-main);
}

/* PRESCRIPTION & TIME PLAN */
.rx-box {
  background: #f8fafc; border: 2px solid var(--blue-navy); border-radius: 14px; padding: 20px; margin-top: 14px;
}
.rx-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  border-bottom: 1px solid var(--border-subtle); padding-bottom: 10px; margin-bottom: 14px;
}
.time-plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px;
}
.tp-card {
  background: #ffffff; border: 1px solid var(--border-blue); border-radius: 10px; padding: 12px;
}
.tp-card strong { display: block; color: var(--blue-primary); font-size: 12px; text-transform: uppercase; margin-bottom: 4px; }
.tp-card p { font-size: 12.5px; color: var(--text-main); line-height: 1.45; margin: 0; }

/* PRINT ONLY PRESCRIPTION / TREATMENT PLAN */
.lineage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.lineage-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.lineage-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
.lineage-table th {
  background: #eff6ff;
  color: var(--blue-navy);
  font-weight: 800;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.lineage-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-body);
  vertical-align: top;
  line-height: 1.5;
}
.lineage-table tr:last-child td { border-bottom: none; }
.lineage-table tr:hover td { background: #f8fafc; }
.lineage-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}
.wt-voice-select {
  background: #1e293b;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11.5px;
  font-weight: 600;
  max-width: 175px;
  cursor: pointer;
}

@media print {
  body * { visibility: hidden !important; }
  #prescriptionPrintArea, #prescriptionPrintArea * { visibility: visible !important; }
  #prescriptionPrintArea {
    position: absolute !important; left: 0 !important; top: 0 !important; width: 100% !important;
    background: #ffffff !important; color: #000000 !important; box-shadow: none !important;
  }
  .no-print { display: none !important; }
}

@media (max-width: 1024px) {
  .hero-grid, .grid-2, .three-feature-grid, .body-callout-stage, .about-split-panel, .interactive-hub-grid, .swot-square-grid,
  .problem-solution-grid, .crew-avatar-grid, .scenario-columns-grid, .interactive-3-grid, .time-plan-grid {
    grid-template-columns: 1fr;
  }
  .about-split-col:first-child { border-right: none; border-bottom: 1px solid var(--border-subtle); }
  .crew-grid-4, .scenario-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .crew-grid-4, .scenario-cards-grid, .vitals-grid, .escalation-ladder, .webcam-preview-row { grid-template-columns: 1fr; }
}
