/* AllMyVitals — Serene Coastal Clinical & Editorial Design System */

:root {
  --sky-header: #8ec5e2;
  --sky-soft: #9fd2eb;
  --sky-cerulean: #4c9ac4;
  --sky-deep: #2c749e;
  --cyan: #00a6e6;
  --cyan-hover: #008ec4;
  --cyan-tint: #f0faff;
  --ice-card: #e7f7ff;
  --cream: #f9f5f1;
  --canvas-vault: #f6f9fc;
  --white: #ffffff;

  --ink: #0b1f3a;
  --ink-body: #2c3a4b;
  --ink-muted: #5a6b7d;
  --line: rgba(11, 31, 58, 0.09);
  --line-sky: #9fd2eb;

  --ok-bg: #ecfdf5;
  --ok-text: #065f46;
  --ok-bar: #10b981;
  --warn-bg: #fffbeb;
  --warn-text: #92400e;
  --warn-bar: #f59e0b;
  --crit-bg: #fef2f2;
  --crit-text: #991b1b;
  --crit-bar: #ef4444;

  --shadow-soft: 0 12px 36px rgba(11, 31, 58, 0.06);
  --shadow-elevated: 0 2px 4px rgba(11, 31, 58, 0.05), 0 24px 60px rgba(11, 31, 58, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --base-size: 16.5px;
}

html.large-text {
  --base-size: 19px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: var(--base-size);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink-body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  margin: 0;
}

button, input, select, textarea {
  font-family: inherit;
}

[hidden] {
  display: none !important;
}

/* ---------------- SERENE SKY-BLUE STICKY HEADER ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: #8cc4e1;
  min-height: 76px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  background: rgba(140, 196, 225, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(11, 31, 58, 0.09);
}

.header-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-monogram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  user-select: none;
}

.monogram-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.55rem;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.monogram-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.monogram-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.78);
}

.monogram-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  line-height: 1.25;
  color: #ffffff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav-link {
  background: transparent;
  border: none;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  padding: 8px 4px;
  position: relative;
  transition: color 0.18s ease;
}

.site-nav-link:hover,
.site-nav-link.active {
  color: #ffffff;
}

.site-nav-link.active::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.a11y-pill {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease;
}

.a11y-pill:hover,
.a11y-pill.active {
  background: #0b1f3a;
  border-color: #0b1f3a;
}

.header-cta-pill {
  background: #ffffff;
  color: var(--ink);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.header-cta-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.18);
}

/* ---------------- HERO SECTION + GUIDED SURVEY CARD ---------------- */

.editorial-hero {
  position: relative;
  min-height: 670px;
  background-image:
    linear-gradient(96deg, rgba(11, 31, 58, 0.76) 0%, rgba(11, 31, 58, 0.52) 48%, rgba(11, 31, 58, 0.28) 100%),
    url('/images/hero-family.jpg');
  background-size: cover;
  background-position: center 24%;
  display: flex;
  align-items: center;
  padding: 68px 4% 76px;
}

.hero-grid {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #bae6fd;
  margin-bottom: 16px;
}

.hero-display {
  font-size: clamp(2.35rem, 4.3vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.22);
}

.hero-lead {
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 0 30px;
}

.hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-cyan-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cyan);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 166, 230, 0.32);
  transition: background 0.18s ease, transform 0.15s ease;
}

.btn-cyan-pill:hover {
  background: var(--cyan-hover);
  transform: translateY(-1px);
}

.btn-glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  padding: 14px 26px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease;
}

.btn-glass-pill:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* Interactive Guided Card (Modeled 1:1 on IVF Marketing Group's .msm-card) */
.ck-survey-card {
  background: #ffffff;
  border: 1px solid rgba(11, 31, 58, 0.1);
  border-radius: 22px;
  padding: 30px 32px 28px;
  box-shadow: var(--shadow-elevated);
  color: var(--ink);
}

.ck-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(11, 31, 58, 0.08);
  overflow: hidden;
  margin-bottom: 18px;
}

.ck-progress-fill {
  height: 100%;
  background: var(--cyan);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.ck-card-eyebrow {
  font-family: 'Manrope', sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.ck-card-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.48rem;
  font-weight: 800;
  line-height: 1.24;
  color: var(--ink);
  margin-bottom: 8px;
}

.ck-card-sub {
  font-size: 0.94rem;
  color: var(--ink-muted);
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ck-opt-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}

.ck-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  border: 1.5px solid rgba(11, 31, 58, 0.12);
  border-radius: 14px;
  padding: 15px 17px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.ck-opt:hover {
  border-color: #7fd3f2;
  background: var(--cyan-tint);
}

.ck-opt.selected {
  border-color: var(--cyan);
  background: var(--cyan-tint);
  box-shadow: 0 0 0 3px rgba(0, 166, 230, 0.14);
}

.ck-radio-dot {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c7d0dd;
  position: relative;
}

.ck-opt.selected .ck-radio-dot {
  border-color: var(--cyan);
}

.ck-opt.selected .ck-radio-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--cyan);
}

/* ---------------- EDITORIAL SECTIONS & HAIRLINE BANNERS ---------------- */

.editorial-band {
  padding: 84px 4%;
  background: #ffffff;
}

.editorial-band.band-cream {
  background: var(--cream);
}

.editorial-band.band-ice {
  background: #f4fafe;
}

.section-container {
  max-width: 1180px;
  margin: 0 auto;
}

.flanked-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 64px;
}

.flanked-line {
  flex: 1;
  max-width: 220px;
  height: 1px;
  background: var(--line-sky);
}

.flanked-heading {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(2rem, 3.4vw, 2.95rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--sky-cerulean);
  text-align: center;
}

/* Zig-Zag 50/50 Feature Rows */
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 92px;
}

.zigzag-row:last-child {
  margin-bottom: 0;
}

.zz-kicker {
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky-cerulean);
  margin-bottom: 8px;
}

.zz-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.85rem, 2.8vw, 2.55rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 10px;
}

.zz-subtitle {
  font-family: 'Manrope', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-cerulean);
  margin-bottom: 18px;
}

.zz-copy {
  font-size: 1.04rem;
  font-weight: 400;
  color: var(--ink-body);
  line-height: 1.72;
  margin: 0 0 24px;
}

/* Tilted Floating Product Mockups */
.mockup-stage {
  position: relative;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(145deg, #eef8fd 0%, #f9f5f1 100%);
  border: 1px solid rgba(159, 210, 235, 0.45);
}

.tilted-device-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 26px;
  border: 1px solid rgba(11, 31, 58, 0.08);
  box-shadow: 0 24px 54px rgba(11, 31, 58, 0.12);
  transform: rotate(-1.4deg);
  transition: transform 0.25s ease;
}

.tilted-device-card:hover {
  transform: rotate(0deg);
}

.editorial-photo-wrap {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(11, 31, 58, 0.13);
}

.editorial-photo-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-stat-pill {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(11, 31, 58, 0.16);
}

/* One-Stop Split Checklist Section */
.onestop-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 52px;
  align-items: center;
}

.checklist-panel {
  background: #f8fbfd;
  border: 1px solid rgba(159, 210, 235, 0.45);
  border-radius: 32px;
  padding: 44px 42px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--ink-body);
}

.check-row:last-child {
  margin-bottom: 0;
}

.sky-check-circle {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sky-soft);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.framed-quote-rule {
  margin-top: 26px;
  padding: 18px 0;
  border-top: 1px solid #8ea8b8;
  border-bottom: 1px solid #8ea8b8;
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4b6575;
}

/* Serene Sky-to-Slate Gradient Band */
.sky-gradient-band {
  background: linear-gradient(180deg, #9fd2eb 0%, #5b8fa8 100%);
  padding: 86px 4%;
  color: #ffffff;
}

.persona-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.persona-showcase-card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: 0 20px 48px rgba(11, 31, 58, 0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

/* ---------------- INTERACTIVE FAMILY VAULT CHROME & CARDS ---------------- */

.vault-chrome {
  background: #f0f8fc;
  border-bottom: 1px solid rgba(159, 210, 235, 0.55);
  padding: 14px 4% 0;
}

.vault-chrome-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.vault-members-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
}

.family-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.person-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1.5px solid rgba(11, 31, 58, 0.12);
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.16s ease;
}

.person-chip:hover {
  border-color: var(--cyan);
}

.person-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.16);
}

.person-chip.active .chip-role-sub {
  color: #bae6fd !important;
}

.person-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

.person-alert {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.vault-member-btns {
  display: flex;
  gap: 8px;
}

.vault-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.nav-pill {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 12px 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-muted);
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-pill:hover {
  color: var(--ink);
}

.nav-pill.active {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  display: inline-block;
}

.vault-canvas {
  background: var(--canvas-vault);
  min-height: 76vh;
  padding: 40px 4% 84px;
}

.vault-container {
  max-width: 1180px;
  margin: 0 auto;
}

/* Vault Typography & Surface Cards */
.hero-greeting {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-greeting h1 {
  font-size: clamp(1.85rem, 2.8vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-sub {
  margin-top: 6px;
  font-size: 0.98rem;
  color: var(--ink-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.allergy-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.quick-task-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.task-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  text-align: left;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: var(--sky-soft);
  box-shadow: 0 18px 40px rgba(11, 31, 58, 0.09);
}

.task-icon-circle {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--ice-card);
  color: var(--sky-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.task-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.task-sub {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.surface-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-soft);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.28rem;
  font-weight: 800;
}

.section-sub {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-top: 3px;
}

.two-col-balanced {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

/* Unified Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cyan);
  color: #ffffff;
  border: 1.5px solid var(--cyan);
  border-radius: 999px;
  padding: 11px 22px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn:hover {
  background: var(--cyan-hover);
  border-color: var(--cyan-hover);
}

.btn-soft {
  background: #ffffff;
  color: var(--ink);
  border-color: rgba(11, 31, 58, 0.16);
}

.btn-soft:hover {
  background: var(--cyan-tint);
  border-color: var(--cyan);
  color: var(--ink);
}

.btn-tint {
  background: var(--ice-card);
  color: var(--sky-deep);
  border-color: #bae6fd;
}

.btn-tint:hover {
  background: #d4f0ff;
  border-color: var(--sky-soft);
  color: var(--ink);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  border-color: rgba(11, 31, 58, 0.14);
}

.btn-danger-soft {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.btn-danger-soft:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.85rem;
}

/* Attention & Care Banners */
.attention-card {
  border-radius: 18px;
  padding: 18px 22px;
  margin-bottom: 12px;
  border: 1.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.attention-card:last-child { margin-bottom: 0; }
.attention-urgent { background: var(--crit-bg); border-color: #fecaca; }
.attention-attention { background: var(--warn-bg); border-color: #fde68a; }
.attention-positive { background: var(--ok-bg); border-color: #a7f3d0; }
.attention-info { background: var(--ice-card); border-color: #bae6fd; }

.attention-title {
  font-family: 'Manrope', sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ink);
}

.attention-desc {
  font-size: 0.93rem;
  color: var(--ink-body);
  margin-top: 3px;
}

/* Guava-Style Biomarker Range Rows */
.biomarker-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1.1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.biomarker-row:last-child { border-bottom: none; padding-bottom: 0; }

.bio-name {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.04rem;
  color: var(--ink);
}

.bio-meta {
  font-size: 0.87rem;
  color: var(--ink-muted);
}

.bio-val {
  font-family: 'Manrope', sans-serif;
  font-size: 1.42rem;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.bio-unit {
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.spectrum-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spectrum-label-row {
  font-size: 0.82rem;
  font-weight: 700;
}

.spectrum-track {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr;
  gap: 3px;
  height: 8px;
  border-radius: 999px;
  overflow: visible;
}

.spec-seg { height: 100%; border-radius: 999px; }
.spec-ok { background: #a7f3d0; }
.spec-warn { background: #fde68a; }
.spec-high { background: #fecaca; }

.spectrum-dot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Medications, Timeline & Devices */
.med-row-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  margin-bottom: 12px;
  background: #ffffff;
}
.med-row-card:last-child { margin-bottom: 0; }
.med-row-card.taken { background: #f8fafc; border-color: #cbd5e1; }

.med-name {
  font-family: 'Manrope', sans-serif;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
}

.med-detail {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: 3px;
}

.pill-gauge {
  height: 7px;
  background: #eef2f6;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
  max-width: 280px;
}
.pill-gauge-fill { height: 100%; border-radius: 999px; }

.badge-soft {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}
.badge-ok { background: var(--ok-bg); color: var(--ok-text); }
.badge-warn { background: var(--warn-bg); color: var(--warn-text); }
.badge-crit { background: var(--crit-bg); color: var(--crit-text); }
.badge-neutral { background: #f1f5f9; color: #334155; }

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.device-card {
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: #ffffff;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-item {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}

.tl-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Digital Member Wallet Cards */
.wallet-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.member-wallet-card {
  background: linear-gradient(135deg, #1b5c94 0%, #0f3a63 100%);
  color: #ffffff;
  border-radius: 22px;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 18px 40px rgba(15, 58, 99, 0.22);
}

.member-wallet-card.card-hsa {
  background: linear-gradient(135deg, #2b7a9b 0%, #164e63 100%);
}

.member-wallet-card.card-air {
  background: linear-gradient(135deg, #991b1b 0%, #7f1d1d 100%);
}

.member-wallet-card.card-implant {
  background: linear-gradient(135deg, #334155 0%, #0f172a 100%);
}

.card-chip-type {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-id-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* Paramedic & Clinician Heroes inside Vault */
.ems-responder-card {
  background: linear-gradient(135deg, #881337 0%, #4c0519 100%);
  border-radius: 26px;
  padding: 32px 36px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.doctor-qr-hero {
  background: linear-gradient(135deg, #2c749e 0%, #0b1f3a 100%);
  border-radius: 26px;
  padding: 32px 36px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* ---------------- TWO-TIER SERENE SKY FOOTER ---------------- */

.footer-upper {
  background: #b6d6e6;
  padding: 56px 4%;
  color: #2f4b59;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
}

.footer-upper-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 40px;
}

.footer-tagline {
  margin: 16px 0 0;
  max-width: 410px;
  font-size: 0.95rem;
  color: #355261;
  line-height: 1.65;
}

.footer-col-title {
  font-family: 'Manrope', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #1e3a4a;
  margin-bottom: 14px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.footer-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #2d4a59;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.footer-link-btn:hover {
  color: #0b1f3a;
  text-decoration: underline;
}

.footer-contact-item {
  font-size: 0.92rem;
  color: #355261;
}

.footer-lower {
  background: #9fbdcb;
  padding: 18px 4%;
  color: #ffffff;
  font-size: 0.88rem;
}

.footer-lower-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------- ACCESSIBLE MODALS & FORMS ---------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(11, 31, 58, 0.48);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 26px;
  padding: 30px 32px;
  box-shadow: var(--shadow-elevated);
}

.modal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 1.25rem;
  cursor: pointer;
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid rgba(11, 31, 58, 0.16);
  border-radius: 12px;
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 166, 230, 0.14);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bp-entry-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.huge-vital {
  font-size: 1.45rem !important;
  font-weight: 800;
  text-align: center;
}

.drop-box {
  border: 2px dashed var(--sky-soft);
  background: var(--cyan-tint);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 400;
  background: var(--ink);
  color: #ffffff;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  display: none;
  box-shadow: 0 14px 32px rgba(11, 31, 58, 0.25);
}

.mobile-bar {
  display: none;
}

/* ---------------- RESPONSIVE BREAKPOINTS ---------------- */

@media (max-width: 980px) {
  .site-nav { display: none; }
  .hero-grid,
  .zigzag-row,
  .onestop-grid,
  .two-col-balanced,
  .persona-cards-grid,
  .quick-task-row,
  .footer-upper-grid {
    grid-template-columns: 1fr;
  }
  .zigzag-row { gap: 36px; margin-bottom: 64px; }
  .biomarker-row { grid-template-columns: 1fr; gap: 8px; }
  .mobile-bar:not([hidden]) {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 150;
    background: #ffffff;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 4px;
  }
  .mob-tab {
    background: none;
    border: none;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink-muted);
    padding: 8px 2px;
  }
  .mob-tab.active { color: var(--cyan); }
}
