/* ── RESET & TOKENS ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #00685f;
  --primary-container: #008378;
  --on-primary: #ffffff;
  --primary-fixed: #89f5e7;
  --primary-fixed-dim: #6bd8cb;
  --secondary: #006591;
  --secondary-container: #39b8fd;
  --tertiary: #006b2d;
  --surface: #f7f9fb;
  --surface-container-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-container-high: #e6e8ea;
  --on-surface: #191c1e;
  --on-surface-variant: #3d4947;
  --outline: #6d7a77;
  --outline-variant: #bcc9c6;
  --background: #f7f9fb;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--background);
  color: var(--on-surface);
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 251, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline-variant);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  text-decoration: none;
}

.nav-logo img,
.nav-logo svg { height: 44px; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

/* ── HAMBURGER & MOBILE MENU ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: all 0.25s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(247, 249, 251, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--outline-variant);
  padding: 16px 24px 24px;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.nav-mobile-menu ul li a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--on-surface-variant);
  text-decoration: none;
  border-bottom: 1px solid var(--outline-variant);
  transition: color 0.2s;
}

.nav-mobile-menu ul li:last-child a { border-bottom: none; }
.nav-mobile-menu ul li a:hover { color: var(--primary); }
.nav-mobile-menu .btn { width: 100%; justify-content: center; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 9999px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 2px 8px rgba(0, 104, 95, 0.25);
}

.btn-primary:hover {
  background: var(--primary-container);
  box-shadow: 0 4px 16px rgba(0, 104, 95, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-secondary:hover { background: rgba(0, 104, 95, 0.06); }

.btn-lg { padding: 14px 32px; font-size: 16px; }

/* ── HERO ── */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(160deg, #edfaf8 0%, var(--background) 60%);
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 131, 120, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--primary); }

.hero p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--on-surface-variant);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-trust {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.trust-badge svg { color: var(--primary); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* ── PHONE MOCKUP ── */
.phone-mockup {
  width: 280px;
  background: #fff;
  border-radius: 40px;
  box-shadow: 0 32px 80px rgba(25, 28, 30, 0.12), 0 8px 24px rgba(0, 104, 95, 0.1);
  overflow: hidden;
  border: 8px solid #fff;
  outline: 1px solid var(--outline-variant);
  position: relative;
  z-index: 2;
}

.phone-screen {
  background: var(--surface);
  min-height: 520px;
  padding: 20px 16px;
}

.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.phone-logo { font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; color: var(--primary); }
.phone-logo-img { height: 20px; width: auto; }
.phone-avatar { width: 28px; height: 28px; border-radius: 9999px; background: var(--primary-fixed); }

.phone-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--outline-variant);
}

.phone-card-label { font-size: 10px; color: var(--outline); margin-bottom: 4px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.phone-card-title { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; color: var(--on-surface); margin-bottom: 6px; }

.phone-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-weight: 500;
}

.tag-green { background: rgba(0, 107, 45, 0.1); color: var(--tertiary); }
.tag-blue { background: rgba(0, 101, 145, 0.1); color: var(--secondary); }
.tag-teal { background: rgba(0, 104, 95, 0.1); color: var(--primary); }

.phone-metric-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.phone-metric {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid var(--outline-variant);
  text-align: center;
}

.metric-val { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 700; color: var(--primary); }
.metric-lbl { font-size: 9px; color: var(--outline); text-transform: uppercase; letter-spacing: 0.04em; }

/* ── FLOATING CARDS ── */
.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border: 1px solid var(--outline-variant);
}

.float-right { right: -20px; top: 80px; z-index: 3; }
.float-left  { left: -24px; bottom: 120px; z-index: 3; }

.float-label { font-size: 11px; color: var(--outline); margin-bottom: 2px; }
.float-value { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; color: var(--on-surface); }
.float-sub   { font-size: 11px; color: var(--primary); }

/* ── SECTION BASE ── */
section { padding: 96px 0; }

.section-eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--on-surface);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--on-surface-variant);
  line-height: 1.7;
  max-width: 600px;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-header .section-sub { margin: 0 auto; }

/* ── FEATURES GRID ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--outline-variant);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Brand utility icons */
.icon-teal  { background: rgba(0, 104, 95, 0.1);  color: var(--primary); }
.icon-blue  { background: rgba(0, 101, 145, 0.1); color: var(--secondary); }
.icon-green { background: rgba(0, 107, 45, 0.1);  color: var(--tertiary); }

/* Medical-specific metric colors — mirrors mobile dashboardMapper & RecordCard */
.icon-red    { background: #ffebee; color: #c62828; }
.icon-indigo { background: #e8eaf6; color: #3f51b5; }
.icon-purple { background: #f3e5f5; color: #8e24aa; }
.icon-green-m{ background: #e8f5e9; color: #2e7d32; }
.icon-amber  { background: #fff3e0; color: #e65100; }
.icon-blue-m { background: #e3f2fd; color: #1565c0; }
.icon-pink   { background: #fce7f3; color: #be185d; }

/* Record-type tags */
.tag-lab  { background: #e8eaf6; color: #3f51b5; }
.tag-rx   { background: #f3e5f5; color: #8e24aa; }
.tag-visit{ background: #f0fdfa; color: #00685f; }
.tag-other{ background: #eceff1; color: #546e7a; }

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--on-surface);
}

.feature-card p { font-size: 15px; color: var(--on-surface-variant); line-height: 1.65; }

/* ── OVERVIEW SPLIT ── */
.overview-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.overview-split.reverse { direction: rtl; }
.overview-split.reverse > * { direction: ltr; }

.overview-visual {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #edfaf8 0%, #e0f7f5 100%);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 8px 40px rgba(0, 104, 95, 0.1);
}

.overview-content h2 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.overview-content p {
  font-size: 16px;
  color: var(--on-surface-variant);
  line-height: 1.7;
  margin-bottom: 28px;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--on-surface-variant);
}

.check-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }

/* ── DASHBOARD PREVIEW ── */
.dashboard-preview {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--outline-variant);
  width: 100%;
  max-width: 460px;
}

.db-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.db-title  { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; }
.db-badge  { font-size: 11px; background: rgba(0,104,95,0.1); color: var(--primary); padding: 3px 10px; border-radius: 9999px; font-weight: 500; }

.db-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface-container);
}

.db-row:last-child { border-bottom: none; }

.db-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-info { flex: 1; }
.db-name  { font-size: 13px; font-weight: 500; color: var(--on-surface); }
.db-meta  { font-size: 11px; color: var(--outline); }
.db-stat  { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; color: var(--primary); }

/* ── RECORDS VISUAL ── */
.records-visual { padding: 28px; width: 100%; max-width: 460px; }

.rec-item {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border: 1px solid var(--outline-variant);
}

.rec-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rec-title { font-size: 13px; font-weight: 600; color: var(--on-surface); }
.rec-sub   { font-size: 11px; color: var(--outline); }
.rec-ocr   { margin-left: auto; font-size: 10px; padding: 3px 8px; border-radius: 9999px; font-weight: 500; white-space: nowrap; }

/* ── ANALYTICS CARD ── */
.analytics-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--outline-variant);
  width: 100%;
  max-width: 460px;
}

.chart-area { height: 140px; position: relative; margin: 16px 0; }
.chart-area svg { width: 100%; height: 100%; }

.chart-legend { display: flex; gap: 20px; margin-top: 8px; }
.legend-dot   { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.legend-item  { font-size: 12px; color: var(--outline); display: flex; align-items: center; }

/* ── STEPS ── */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--primary-fixed-dim);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}

.step-num {
  width: 52px; height: 52px;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 16px rgba(0, 104, 95, 0.3);
}

.step h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--on-surface); }
.step p  { font-size: 13px; color: var(--on-surface-variant); line-height: 1.6; }

/* ── SECURITY ── */
.security-section { background: var(--on-surface); color: #fff; padding: 96px 0; }
.security-section .section-title { color: #fff; }
.security-section .section-sub { color: rgba(255,255,255,0.7); }

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.security-item { text-align: center; padding: 24px 16px; }

.security-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary-fixed-dim);
}

.security-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.security-item p  { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
  border-radius: 32px;
  padding: 72px 64px;
  text-align: center;
  margin: 0 24px;
  box-shadow: 0 16px 64px rgba(0, 104, 95, 0.3);
}

.cta-banner h2 { font-size: 40px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: -0.01em; }
.cta-banner p  { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 36px; }

.cta-banner .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.cta-banner .btn-primary:hover { background: #f0fffe; }

/* ── FOOTER ── */
footer { background: var(--on-surface); color: rgba(255,255,255,0.6); padding: 64px 0 32px; }

.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo-img { height: 36px; width: auto; margin-bottom: 12px; display: block; }
.footer-desc { font-size: 14px; line-height: 1.7; }

.footer-col h5 { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 16px; letter-spacing: 0.05em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a  { font-size: 14px; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary-fixed-dim); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* ── TAGLINE BAR ── */
.tagline-bar {
  padding: 48px 0;
  background: #fff;
  text-align: center;
  border-top: 1px solid var(--outline-variant);
}

.tagline-bar p {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--on-surface);
}

/* ── METRIC SUMMARY STRIP ── */
.metric-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  text-align: center;
}

.metric-strip-val { font-family: 'Manrope', sans-serif; font-size: 20px; font-weight: 700; }
.metric-strip-lbl { font-size: 11px; color: var(--outline); }

/* ── STEP COMING SOON CHIP ── */
.step-soon {
  display: inline-block;
  background: rgba(0, 104, 95, 0.1);
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  vertical-align: middle;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ── HEALTH CARDS SECTION ── */
.hc-mockup {
  background: #f5f7fa;
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(0, 104, 95, 0.14);
  border: 1px solid var(--outline-variant);
  overflow: hidden;
  width: 100%;
  max-width: 360px;
}

/* Home screen pill strip */
.hc-home-strip {
  padding: 13px 14px 12px;
  background: #fff;
  border-bottom: 1px solid #eceef0;
}

.hc-home-strip-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 9px;
  letter-spacing: 0.01em;
}

.hc-pills-row {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.hc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1.5px solid var(--outline-variant);
  border-radius: 9999px;
  padding: 4px 10px 4px 4px;
  flex-shrink: 0;
}

.hc-pill-active {
  border-color: var(--primary);
  background: rgba(0, 104, 95, 0.06);
}

.hc-pill-av {
  width: 22px;
  height: 22px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.hc-pill span {
  font-size: 11px;
  font-weight: 600;
  color: var(--on-surface);
}

/* Screen title bar */
.hc-screen-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #eceef0;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface);
}

/* Scrollable sections container */
.hc-sections {
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 390px;
  overflow-y: auto;
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Individual section card */
.hc-sec-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eceef0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.hc-sec-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #f5f7fa;
}

.hc-sec-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hc-sec-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-surface);
}

.hc-sec-body { padding: 10px 12px; }

/* Medication rows */
.hc-med-row {
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid #f5f7fa;
}

.hc-med-last { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.hc-med-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 2px;
}

.hc-med-sub { font-size: 11px; color: var(--outline); }

/* Emergency contacts */
.hc-contact-tags {
  display: flex;
  gap: 5px;
  align-items: center;
  margin-bottom: 5px;
}

.hc-tag-primary {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #546e7a;
  background: #eceff1;
  padding: 2px 6px;
  border-radius: 4px;
}

.hc-rel-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
}

.hc-rel-spouse   { background: #fce4ec; color: #c62828; }
.hc-rel-daughter { background: #f3e5f5; color: #8e24aa; }
.hc-rel-son      { background: #e3f2fd; color: #1565c0; }

.hc-contact-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 4px;
}

.hc-contact-phone {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: var(--on-surface-variant);
}

/* Family member rows */
.hc-member-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f5f7fa;
}

.hc-member-last { border-bottom: none; padding-bottom: 0; }

.hc-member-av {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.hc-member-info { flex: 1; min-width: 0; }

.hc-member-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 3px;
}

.hc-member-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hc-member-detail { font-size: 11px; color: var(--outline); }

.hc-blood-dot {
  font-size: 11px;
  font-weight: 600;
  color: var(--outline);
}

.hc-use-case {
  margin-top: -8px !important;
  font-size: 14px !important;
  font-style: italic;
  color: var(--outline) !important;
  border-left: 3px solid var(--primary-fixed-dim);
  padding-left: 12px !important;
}

/* ── STORE BADGES ── */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #111;
  color: #fff;
  border-radius: 14px;
  padding: 11px 20px;
  text-decoration: none;
  position: relative;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  min-width: 180px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  user-select: none;
}

a.store-badge:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.22);
}

.store-badge-soon-wrap {
  opacity: 0.52;
  cursor: default;
  filter: saturate(0.35);
}

a.store-badge-soon-wrap:hover {
  transform: none;
  box-shadow: none;
}

.store-badge-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.store-badge-sub {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 1;
}

.store-badge-main {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
}

.soon-chip {
  position: absolute;
  top: -9px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.soon-chip-light {
  background: #fff;
  color: var(--primary);
}

/* Variant for use on the green CTA banner */
.store-badge-on-green {
  background: rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
}

a.store-badge-on-green:hover {
  background: rgba(0, 0, 0, 0.55);
}

.cta-store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero h1 { font-size: 40px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps-row::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: flex; justify-content: center; }
  .floating-card { display: none; }
  .phone-mockup { width: 240px; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 36px; }
  .overview-split { grid-template-columns: 1fr; gap: 40px; }
  .overview-split.reverse { direction: ltr; }
  .features-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 32px; border-radius: 24px; margin: 0 16px; }
  .cta-banner h2 { font-size: 28px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
