/* =========================================================
   PV CareChain — Demo Site Styles
   Brand: Navy #0F2B3C · Teal #01696F · Dark Teal #0C4E54
          Light #F7F6F2 · White cards
   Fonts: Inter (body) · DM Sans (headings)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --navy: #0F2B3C;
  --navy-2: #123346;
  --navy-3: #1b4057;
  --teal: #01696F;
  --teal-dark: #0C4E54;
  --teal-light: #2a8d93;
  --teal-tint: rgba(1, 105, 111, 0.08);
  --cream: #F7F6F2;
  --cream-2: #EFEDE5;
  --white: #ffffff;
  --ink: #0E1B25;
  --ink-2: #2B3A45;
  --muted: #5B6B77;
  --muted-2: #8A98A3;
  --line: #E4E2DA;
  --line-2: #D5D3CA;

  --red: #C4384C;
  --red-soft: #fce7ea;
  --amber: #B8750A;
  --amber-soft: #FCEED0;
  --green: #1F7A4D;
  --green-soft: #DCEFE3;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 43, 60, 0.06);
  --shadow: 0 4px 20px -6px rgba(15, 43, 60, 0.12);
  --shadow-lg: 0 20px 50px -20px rgba(15, 43, 60, 0.25);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 68px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }

h1, h2, h3, h4, h5 {
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
  line-height: 1.15;
}

p { margin: 0; }

.mono { font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.9em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 8px 20px -10px rgba(1, 105, 111, 0.55);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(1, 105, 111, 0.6);
}
.btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.22);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}
.btn-ghost-light {
  color: var(--ink);
  border-color: var(--line-2);
  background: var(--white);
}
.btn-ghost-light:hover { background: var(--cream); border-color: var(--muted-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 43, 60, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.site-header.scrolled {
  background: rgba(15, 43, 60, 0.96);
  box-shadow: 0 6px 20px -10px rgba(0,0,0,0.5);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.logo-mark { width: 28px; height: 28px; flex: 0 0 28px; }
.logo-text { color: #fff; }

.nav-desktop { display: flex; gap: 28px; margin-left: auto; }
.nav-desktop a {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.18s;
}
.nav-desktop a:hover { color: #fff; }

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  position: relative;
}
.hamburger span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}
.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 24px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 8px 20px 20px;
  background: rgba(15, 43, 60, 0.98);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: rgba(255,255,255,0.82);
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 15px;
  font-weight: 500;
}
.nav-mobile a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 120px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
}
.hero-glow-1 {
  background: radial-gradient(circle, rgba(1, 105, 111, 0.55), transparent 60%);
  top: -200px; right: -150px;
}
.hero-glow-2 {
  background: radial-gradient(circle, rgba(42, 141, 147, 0.35), transparent 60%);
  bottom: -250px; left: -200px;
}
.hero-grid {
  display: none;
}
.hero-inner { position: relative; text-align: left; max-width: 1100px; }

/* Hero two-column layout */
.hero-content-row {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text-col {
  flex: 1;
  min-width: 0;
}
.hero-image-col {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  display: block;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: -0.005em;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3ecbcf;
  box-shadow: 0 0 0 4px rgba(62, 203, 207, 0.18);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(62, 203, 207, 0.18); }
  50% { box-shadow: 0 0 0 7px rgba(62, 203, 207, 0.05); }
}

.hero-title {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: #fff;
}
.accent-text {
  background: linear-gradient(135deg, #3ecbcf, #01696F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin-bottom: 36px;
  line-height: 1.5;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}
.stat-card { text-align: left; }
.stat-num {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ---------- Sections ---------- */
.section {
  padding: 120px 0;
  position: relative;
}
.section.light { background: var(--cream); }
.section.light.alt { background: var(--cream-2); }
.section.dark { background: var(--navy); color: #fff; }

.section-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.section-eyebrow.light { color: #3ecbcf; }
.section-title {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.section-title.light { color: #fff; }
.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}
.section-lead.light { color: rgba(255,255,255,0.75); }

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Problem Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card, .hipaa-card {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.problem-card:hover, .hipaa-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.problem-card h3, .hipaa-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--ink);
}
.problem-card p, .hipaa-card p {
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.6;
}

.icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-tint);
  color: var(--teal);
  margin-bottom: 20px;
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box.teal { background: var(--teal-tint); color: var(--teal); }

/* ---------- Module Shell ---------- */
.module-shell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.module-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfbf7, var(--white));
  scrollbar-width: thin;
}
.module-tabs::-webkit-scrollbar { height: 6px; }
.module-tabs::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.module-tab {
  flex: 1;
  min-width: 140px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  text-align: left;
  border-right: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
  position: relative;
  color: var(--muted);
}
.module-tab:last-child { border-right: 0; }
.module-tab:hover { background: var(--cream); color: var(--ink-2); }
.module-tab.active {
  background: var(--white);
  color: var(--ink);
}
.module-tab.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--teal);
}
.tab-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}
.module-tab.active .tab-num { color: var(--teal); }
.tab-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.module-panels {
  position: relative;
}
.module-panel {
  display: none;
  padding: 36px;
  animation: panelIn 0.45s var(--ease);
}
.module-panel.active { display: block; }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.panel-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--teal);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.panel-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.panel-desc {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 540px;
}
.panel-pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.panel-pulse .pulse-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulseDot 1.4s infinite;
}
.panel-pulse-alert {
  background: var(--red-soft);
  color: var(--red);
}
.panel-pulse-alert .pulse-dot { background: var(--red); }
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* ---------- UI Card (generic) ---------- */
.ui-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ui-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  gap: 12px;
  flex-wrap: wrap;
}
.ui-tabs { display: flex; gap: 4px; }
.ui-tab {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
}
.ui-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.ui-search {
  font-size: 13px;
  color: var(--muted-2);
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  min-width: 200px;
}

.ui-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.ui-card-head h4 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.ui-table {
  width: 100%;
  font-size: 14px;
}
.ui-table thead th {
  text-align: left;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.ui-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: middle;
}
.ui-table tbody tr:last-child td { border-bottom: 0; }
.ui-table tbody tr:hover { background: var(--cream); }
.ui-table tbody tr.row-alert {
  background: rgba(184, 117, 10, 0.05);
}
.ui-table tbody tr.row-alert:hover { background: rgba(184, 117, 10, 0.1); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-teal { background: var(--teal-tint); color: var(--teal); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.status-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-active { background: rgba(1, 105, 111, 0.08); color: var(--teal); }
.status-progress { background: rgba(31, 122, 77, 0.1); color: var(--green); }
.status-queued { background: rgba(91, 107, 119, 0.12); color: var(--muted); }
.status-overdue { background: var(--amber-soft); color: var(--amber); }
.status-complete { background: var(--green-soft); color: var(--green); }
.status-stable { background: var(--green-soft); color: var(--green); }
.status-critical { background: var(--red-soft); color: var(--red); }
.status-watch { background: var(--amber-soft); color: var(--amber); }

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
}
.live-tag .pulse-dot {
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulseDot 1.3s infinite;
}

/* ---------- EMS ---------- */
.ems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.patient-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding: 20px;
}
.patient-meta .meta-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  margin-bottom: 4px;
  font-weight: 600;
}
.patient-meta .meta-val {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.timeline {
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 4px;
}
.tl-step {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}
.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--line-2);
  flex: 0 0 12px;
  position: relative;
}
.tl-step.done .tl-dot { background: var(--teal); }
.tl-step.active .tl-dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(1, 105, 111, 0.2);
  animation: pulse 2s infinite;
}
.tl-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.tl-time { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
}
.vital {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.v-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.v-num {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.v-unit {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 3px;
}

.alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 20px 20px;
  padding: 12px 16px;
  background: rgba(1, 105, 111, 0.07);
  border: 1px solid rgba(1, 105, 111, 0.18);
  border-radius: var(--radius);
  color: var(--teal-dark);
  font-size: 13px;
}
.alert-banner svg { width: 20px; height: 20px; flex: 0 0 20px; }

/* ---------- Hospital ---------- */
.hosp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hosp-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: all 0.2s;
}
.hosp-card.alert {
  border-color: rgba(196, 56, 76, 0.35);
  box-shadow: 0 0 0 3px rgba(196, 56, 76, 0.08);
}
.hosp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 10px;
}
.hosp-name {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 2px;
}
.hosp-unit {
  font-size: 12px;
  color: var(--muted);
}
.mini-vitals {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.mini-vitals em {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}
.mini-vitals .v-warn { color: var(--red); }
.inline-alert {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
}
.inline-alert svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* ---------- Discharge ---------- */
.discharge-card { padding: 28px; }
.dc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.dc-name { font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.dc-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }

.dc-section { margin-bottom: 22px; }
.dc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  font-weight: 700;
  margin-bottom: 10px;
}
.dc-val { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

.med-list, .fu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.med-list li, .fu-list li {
  padding: 10px 14px;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-2);
  border-left: 3px solid var(--teal);
}
.fu-list li { border-left-color: var(--teal-light); }

.dc-actions {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

/* ---------- TeleHealth ---------- */
.tele-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}
.video-stage {
  background: #0a1a24;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 360px;
}
.video-main {
  flex: 1;
  position: relative;
  background: radial-gradient(ellipse at center, #163042, #0a1a24 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.4);
}
.video-placeholder svg { width: 56px; height: 56px; }
.video-label {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.7);
}
.video-self {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, #1f4256, #0a1a24);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: flex-end;
  padding: 6px 8px;
}
.self-label {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.video-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.vc-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.vc-btn svg { width: 18px; height: 18px; }
.vc-btn:hover { background: rgba(255,255,255,0.16); }
.vc-btn.vc-end { background: var(--red); color: #fff; }
.vc-btn.vc-end:hover { background: #a92d3f; }

.chart-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.chart-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.chart-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }

.soap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.soap-row {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  background: var(--cream);
  border-radius: var(--radius);
  font-size: 13px;
}
.soap-k {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--teal);
  flex: 0 0 20px;
  font-size: 14px;
}
.soap-v { color: var(--ink-2); line-height: 1.5; }

.tele-feature-list {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  line-height: 2;
}
.tele-feature-list strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 700;
}
.tele-feature-list span {
  display: inline-block;
  padding: 3px 9px;
  background: var(--teal-tint);
  color: var(--teal);
  border-radius: 6px;
  margin: 2px 4px 2px 0;
  font-size: 12px;
  font-weight: 500;
}

/* ---------- Diagnostic Engine ---------- */
.dx-shell {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(10px);
}
.dx-patient {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 22px;
}
.dx-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #01696F, #3ecbcf);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex: 0 0 56px;
}
.dx-meta { flex: 1; }
.dx-name { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 2px; }
.dx-demo { font-size: 13px; color: rgba(255,255,255,0.6); }
.dx-vitals {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}
.dx-vitals em {
  font-style: normal;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  margin-right: 4px;
}
.dx-vitals .v-warn { color: #ff8088; }

.dx-complaint {
  padding: 16px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.dx-complaint .dx-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3ecbcf;
  font-weight: 600;
  margin-bottom: 6px;
}
.dx-complaint-text {
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.dx-run-btn {
  margin-bottom: 24px;
}
.dx-run-btn.ran {
  opacity: 0.5;
  pointer-events: none;
}

.dx-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dx-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  color: rgba(255,255,255,0.92);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.dx-card.show {
  opacity: 1;
  transform: translateY(0);
}
.dx-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.dx-step {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dx-card h4 {
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.dx-card p {
  color: rgba(255,255,255,0.8);
  font-size: 14.5px;
  line-height: 1.6;
}
.dx-card p strong { color: #fff; }
.dx-red { border-color: rgba(196, 56, 76, 0.45); background: rgba(196, 56, 76, 0.08); }
.dx-red .dx-step { background: var(--red); }
.dx-amber { border-color: rgba(245, 180, 40, 0.45); background: rgba(245, 180, 40, 0.06); }
.dx-amber .dx-step { background: #d89012; }

.dx-ddx { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ddx-row { display: flex; justify-content: space-between; font-size: 14px; color: #fff; margin-bottom: 6px; }
.ddx-name { font-weight: 500; }
.ddx-conf {
  font-family: 'JetBrains Mono', monospace;
  color: #3ecbcf;
  font-weight: 600;
}
.ddx-bar {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.ddx-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #01696F, #3ecbcf);
  border-radius: 3px;
  transition: width 1s var(--ease);
}

/* ---------- Competitive Table ---------- */
.compare-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.compare-table {
  width: 100%;
  min-width: 860px;
  font-size: 14px;
}
.compare-table th, .compare-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.compare-table thead th {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  background: var(--cream);
  letter-spacing: -0.005em;
  border-bottom: 2px solid var(--line);
}
.compare-table th.capability, .compare-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding-left: 22px;
  min-width: 200px;
}
.compare-table thead th.us {
  background: var(--navy);
  color: #fff;
  position: relative;
}
.compare-table thead th.us::after {
  content: 'Only unified platform';
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #3ecbcf;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}
.compare-table td.us {
  background: rgba(1, 105, 111, 0.05);
  font-weight: 600;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.cmp-yes {
  display: inline-flex;
  width: 26px; height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
}
.cmp-no {
  display: inline-flex;
  width: 26px; height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red-soft);
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Market ---------- */
.market-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  max-width: 1040px;
  margin: 0 auto 40px;
}
.market-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease);
}
.market-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.market-card.highlight {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  border-color: var(--teal-dark);
}
.market-card.highlight .market-label { color: rgba(255,255,255,0.7); }
.market-card.highlight .market-num { color: #fff; }
.market-card.highlight .market-note { color: rgba(255,255,255,0.65); }
.market-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.market-num {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.market-num span { font-size: 0.55em; margin-left: 4px; }
.market-note { font-size: 13px; color: var(--muted); }
.market-arrow {
  align-self: center;
  font-size: 28px;
  color: var(--teal);
  font-weight: 300;
}
.market-lead {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

/* ---------- Stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stack-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.2s;
}
.stack-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.stack-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.stack-desc {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-left .section-title { text-align: left; margin-bottom: 18px; }
.contact-left .section-lead { margin-bottom: 28px; }
.contact-left .section-head { margin: 0; }
.contact-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.patent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  color: #3ecbcf;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.patent-badge svg { width: 14px; height: 14px; }

.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(10px);
}
.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3ecbcf;
  font-weight: 600;
  margin-bottom: 8px;
}
.contact-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.contact-co {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
}
.contact-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 22px 0;
}
.contact-line {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 10px 0;
  font-size: 14px;
  align-items: start;
}
.contact-line > span:first-child {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  padding-top: 3px;
}
.contact-line > span:last-child {
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
}
.contact-line a { color: #3ecbcf; }
.contact-line a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer {
  background: #0a1e2c;
  color: rgba(255,255,255,0.55);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
}
.footer-brand .logo-mark { width: 24px; height: 24px; }
.footer-tags { display: flex; gap: 10px; align-items: center; }
.footer-tags .sep { opacity: 0.35; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .hosp-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ems-grid, .tele-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .market-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .market-arrow { transform: rotate(90deg); text-align: center; padding: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .nav-desktop, .nav-cta { display: none; }
  .hamburger { display: block; }
  .section { padding: 80px 0; }
  .hero { padding: 80px 0 70px; }
  .section-head { margin-bottom: 44px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hosp-grid { grid-template-columns: 1fr; }
  .stack-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 18px; padding: 20px; }
  .vitals-grid { grid-template-columns: repeat(3, 1fr); }
  .patient-meta { grid-template-columns: 1fr; }
  .module-panel { padding: 24px 18px; }
  .panel-head { flex-direction: column; gap: 12px; }
  .module-tab { min-width: 120px; padding: 16px 14px; }
  .tab-name { font-size: 14px; }
  .discharge-card { padding: 20px; }
  .dx-shell { padding: 24px 18px; }
  .dx-patient { flex-wrap: wrap; }
  .dx-vitals { flex-basis: 100%; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.08); }
  .contact-card { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-content-row { flex-direction: column; gap: 32px; }
  .hero-image-col { flex: 0 0 auto; }
  .hero-photo { max-width: 240px; }
  .container { padding: 0 20px; }
  .header-inner { padding: 0 20px; }
}

@media (max-width: 420px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
  .vitals-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 2.2rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-content-row { flex-direction: column; gap: 32px; }
  .hero-image-col { flex: 0 0 auto; }
  .hero-photo { max-width: 220px; }
}

/* ---------- Solution hero image ---------- */
.solution-hero-img {
  margin-bottom: 40px;
  border-radius: 16px;
  text-align: center;
}
.solution-banner-img {
  width: 100%;
  max-width: 800px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  display: block;
  margin: 0 auto;
}

/* ---------- Team banner ---------- */
.team-banner {
  margin-bottom: 48px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.team-banner-img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

/* ---------- Contact team photos ---------- */
.contact-team-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-team-photo {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  display: block;
}

/* ---------- Motion prefs ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .dx-card { opacity: 1; transform: none; }
}
