/* PatientMD 2026 — refreshed marketing site
   Design language matches patientmd-ui-next: medical teal, warm neutrals,
   generous whitespace, rounded cards, soft shadows. */

:root {
  --teal-50:  #ecfdfd;
  --teal-100: #d2faf8;
  --teal-200: #a8f1ee;
  --teal-300: #6ee3df;
  --teal-400: #34c8c4;
  --teal-500: #0fa8a6;
  --teal-600: #0d8a8b;
  --teal-700: #0e6f73;
  --teal-800: #115a5e;
  --teal-900: #11484c;
  --teal-950: #06292c;

  --slate-50:  #f7f9fb;
  --slate-100: #eef2f6;
  --slate-200: #dbe2ea;
  --slate-300: #b9c5d2;
  --slate-400: #8a9aab;
  --slate-500: #5f7184;
  --slate-600: #455467;
  --slate-700: #303d4d;
  --slate-800: #1f2937;
  --slate-900: #0f172a;

  --amber-500: #f59e0b;

  --bg: #fbfdfe;
  --surface: #ffffff;
  --ink: var(--slate-900);
  --ink-muted: var(--slate-500);
  --accent: var(--teal-600);
  --accent-hover: var(--teal-700);
  --accent-soft: var(--teal-50);
  --border: var(--slate-200);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(13, 138, 139, 0.18), 0 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 30px 60px -20px rgba(13, 138, 139, 0.25);
  --radius-sm: 0.5rem;
  --radius:    0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', 'SF Pro Text', -apple-system, system-ui, sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); }

h1,h2,h3,h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 2.8vw, 2.5rem); }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--slate-700); }
.lead { font-size: 1.15rem; color: var(--slate-600); line-height: 1.65; }

/* ── Layout primitives ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--teal-200);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); display: inline-block;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50%      { opacity: 1;    transform: scale(1.15); }
}

/* ── Header ── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 253, 254, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand img { height: 38px; width: auto; }
.brand-text { display: none; }
.nav-primary { display: none; gap: 1.6rem; align-items: center; }
.nav-primary > a {
  font-size: 0.94rem; font-weight: 500; color: var(--slate-700);
  cursor: pointer; transition: color 0.15s;
}
.nav-primary > a:hover { color: var(--accent); }
.navgroup { position: relative; }
.navgroup-trigger {
  background: transparent; border: 0; padding: 0; margin: 0;
  font: inherit; cursor: pointer;
  font-size: 0.94rem; font-weight: 500; color: var(--slate-700);
  display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.15s;
}
.navgroup-trigger i { font-size: 0.65em; opacity: 0.6; transition: transform 0.18s; }
.navgroup-trigger:hover { color: var(--accent); }
.navgroup.open .navgroup-trigger { color: var(--accent); }
.navgroup.open .navgroup-trigger i { transform: rotate(180deg); }

.navgroup-panel {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, -8px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 1.25rem; margin-top: 0.6rem;
  min-width: 460px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}
.navgroup-panel.navgroup-panel-wide {
  grid-template-columns: 1fr 1fr 1fr;
  min-width: 760px; max-width: 96vw;
  padding: 1.5rem;
}
.navgroup-panel.navgroup-panel-wide h6 a:hover { color: var(--accent); }

/* Section-card mega panel (Other Services) */
.navgroup-panel.navgroup-panel-sections {
  grid-template-columns: 1fr 1fr 1fr;
  min-width: 760px; max-width: 96vw;
  padding: 1rem;
  gap: 0.7rem;
}
.section-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink) !important;
  transition: all 0.18s;
  text-decoration: none !important;
}
.section-card:hover {
  background: var(--accent-soft);
  border-color: var(--teal-200);
  transform: translateY(-1px);
}
.section-card-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff;
  display: grid; place-items: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(13,138,139,0.25);
}
.section-card-title {
  font-weight: 600; font-size: 0.98rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.section-card-desc {
  font-size: 0.82rem; color: var(--slate-600);
  line-height: 1.45;
  margin-bottom: 0.55rem;
}
.section-card-meta {
  font-size: 0.78rem; font-weight: 600;
  color: var(--accent);
  display: flex; align-items: center; gap: 0.3rem;
}
.section-card-arrow { transition: transform 0.2s; }
.section-card:hover .section-card-arrow { transform: translateX(4px); }
.navgroup:hover .navgroup-panel,
.navgroup:focus-within .navgroup-panel,
.navgroup.open .navgroup-panel {
  opacity: 1; pointer-events: auto; transform: translate(-50%, 0);
}
.navgroup-col h6 {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--slate-500);
  margin: 0 0 0.6rem;
}
.navgroup-col a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.5rem 0.7rem;
  font-size: 0.9rem; color: var(--slate-700);
  border-radius: var(--radius-sm);
  transition: background 0.12s, color 0.12s;
}
.navgroup-col a i {
  width: 16px; color: var(--accent); opacity: 0.85; font-size: 0.95rem;
}
.navgroup-col a:hover { background: var(--accent-soft); color: var(--accent); }
.navgroup-cta {
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  border-radius: var(--radius); padding: 1rem;
}
.navgroup-overview {
  display: block !important; font-weight: 600 !important;
  color: var(--accent) !important;
  padding: 0.5rem 0.7rem !important; margin-bottom: 0.75rem;
}
.nav-login-row {
  display: flex; gap: 0.5rem; margin-top: 1rem;
}
.nav-login-row .btn { flex: 1; padding: 0.55rem 0.7rem; font-size: 0.85rem; }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
.desktop-only { display: none; }
@media (min-width: 760px) { .desktop-only { display: inline-flex; } }

/* ── Auth dropdown (Sign in / Get started in top-right) ── */
.auth-dropdown { position: relative; display: inline-flex; }
.auth-trigger { cursor: pointer; }
.auth-panel {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  min-width: 290px;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s, transform 0.18s;
  z-index: 60;
}
.auth-panel-right { left: auto; right: 0; }
.auth-dropdown:hover .auth-panel,
.auth-dropdown.open .auth-panel {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.auth-panel > a {
  display: flex; gap: 0.85rem; align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none;
  transition: background 0.12s;
}
.auth-panel > a:hover {
  background: var(--accent-soft);
}
.auth-icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff; display: grid; place-items: center; font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(13,138,139,0.25);
}
.auth-title { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.auth-sub   { font-size: 0.78rem; color: var(--slate-500); margin-top: 1px; }
.auth-dropdown.open .auth-trigger .fa-chevron-down { transform: rotate(180deg); }
.auth-trigger .fa-chevron-down { transition: transform 0.18s; }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem; font-weight: 600;
  cursor: pointer; border: 1px solid transparent;
  transition: all 0.18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--accent-hover); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 138, 139, 0.25);
}
.btn-ghost {
  background: transparent; color: var(--slate-700);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--teal-300); background: var(--accent-soft); }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; }

.menu-toggle {
  display: inline-flex; background: transparent; border: 1px solid var(--border);
  color: var(--slate-700); padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 1.1rem;
}

@media (min-width: 960px) {
  .nav-primary { display: flex; }
  .menu-toggle { display: none; }
}

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  padding: 5.5rem 0 4.5rem;
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px);
  z-index: 0;
}
.hero::before {
  top: -180px; right: -160px; width: 540px; height: 540px;
  background: radial-gradient(closest-side, rgba(15,168,166,0.28), transparent);
}
.hero::after {
  bottom: -180px; left: -120px; width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(168,241,238,0.55), transparent);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 2.75rem; max-width: 460px;
}
.hero-stats .num { font-size: 1.6rem; font-weight: 700; color: var(--ink); }
.hero-stats .lbl { font-size: 0.78rem; color: var(--slate-500); margin-top: 2px; }

.feature-mosaic {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-xl);
}
.feature-mosaic-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.fm-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem; display: flex; flex-direction: column; gap: 0.7rem;
  transition: all 0.2s;
}
.fm-tile:hover {
  border-color: var(--teal-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.fm-tile .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.2rem;
}
.fm-tile .label { font-weight: 600; font-size: 0.92rem; }
.fm-tile .desc { font-size: 0.8rem; color: var(--slate-500); line-height: 1.5; }

/* ── Sections / cards ── */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head .lead { font-size: 1.08rem; }

.three-col {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 760px) { .three-col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .three-col { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm); transition: all 0.2s;
}
.card:hover {
  border-color: var(--teal-300); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card .icon-block {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  font-size: 1.35rem; margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; color: var(--slate-600); margin: 0; }

/* Tri-pillar special grid */
.pillars {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 880px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2rem;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #fff 100%);
  border: 1px solid var(--teal-200);
}
.pillar .badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Mission list (checklist) */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.checklist li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  font-size: 1rem; color: var(--slate-700);
}
.checklist li::before {
  content: ''; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230d8a8b'><path d='M13.5 4.5L6 12L2.5 8.5l1-1L6 10l6.5-6.5 1 1z'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
  margin-top: 2px;
}

/* CTA strip */
.cta-strip {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color: #fff; border-radius: var(--radius-xl);
  padding: 3.5rem 2.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; inset: 0; opacity: 0.18;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.7) 0, transparent 40%),
                    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.5) 0, transparent 35%);
}
.cta-strip > * { position: relative; z-index: 1; }
.cta-strip h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-strip p { color: rgba(255,255,255,0.85); font-size: 1.08rem; max-width: 560px; margin: 0.5rem auto 1.75rem; }
.cta-strip .btn-primary {
  background: #fff; color: var(--teal-800);
}
.cta-strip .btn-primary:hover { background: var(--teal-50); color: var(--teal-900); }

/* Feature page hero (smaller) */
.page-hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 0.5rem; }
.page-hero .lead { max-width: 720px; margin: 0 auto; }

/* Long-form (privacy / terms) */
.long-form {
  max-width: 820px; margin: 0 auto;
}
.long-form h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.long-form h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.long-form p, .long-form li { font-size: 0.97rem; color: var(--slate-700); }

/* Body chunks rendered as paragraphs */
.prose p { font-size: 1.02rem; color: var(--slate-700); margin: 0 0 1.1em; }
.prose ul { padding-left: 1.3rem; }

/* ── Footer ── */
.footer {
  background: var(--slate-900); color: #c8d3df;
  padding: 4rem 0 2rem; margin-top: 5rem;
}
.footer a { color: #c8d3df; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1.5fr repeat(5, 1fr);
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h4 {
  color: #fff; font-size: 0.86rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.footer-col li { font-size: 0.92rem; }
.footer-brand p { color: #93a4b8; max-width: 320px; font-size: 0.92rem; }
.footer-brand img { filter: brightness(0) invert(1); height: 36px; }
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
.footer-social a {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18); color: #c8d3df;
}
.footer-social a:hover { border-color: var(--teal-400); color: var(--teal-300); background: rgba(15,168,166,0.08); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: 0.85rem; color: #93a4b8;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.4);
  z-index: 100; display: none; opacity: 0; transition: opacity 0.2s;
}
.mobile-menu.open { display: block; opacity: 1; }
.mobile-menu .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: var(--surface); padding: 1.5rem; overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.mobile-menu .panel a { display: block; padding: 0.55rem 0; color: var(--ink); font-weight: 500; }
.mobile-menu .panel a:hover { color: var(--accent); }
.mobile-menu .panel h5 {
  margin: 1.2rem 0 0.4rem; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--slate-500); font-weight: 600;
}
.mobile-menu .mob-link {
  font-weight: 600; padding: 0.7rem 0; border-bottom: 1px solid var(--border);
}
.mobile-menu .mob-accordion {
  border-bottom: 1px solid var(--border); padding: 0.4rem 0;
}
.mobile-menu .mob-accordion summary {
  cursor: pointer; list-style: none;
  padding: 0.7rem 0; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu .mob-accordion summary::-webkit-details-marker { display: none; }
.mobile-menu .mob-accordion summary::after {
  content: '\f078'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
  font-size: 0.7rem; color: var(--slate-500); transition: transform 0.18s;
}
.mobile-menu .mob-accordion[open] summary::after { transform: rotate(180deg); }
.mobile-menu .mob-accordion a {
  padding: 0.45rem 0 0.45rem 1rem; font-weight: 400; font-size: 0.95rem; color: var(--slate-700);
}
.mob-cta-row {
  display: flex; gap: 0.5rem; margin: 0.8rem 0 0.4rem;
  padding-left: 0;
}
.mob-cta-row .btn { flex: 1; }
.mobile-close {
  background: transparent; border: 0; color: var(--slate-500);
  font-size: 1.5rem; cursor: pointer; padding: 0.3rem; margin-bottom: 1rem;
}

/* Logo wordmark */
.brand-name {
  font-size: 1.15rem; font-weight: 700; color: var(--slate-900);
  letter-spacing: -0.02em;
}
.brand-name span { color: var(--accent); }

/* ── Imagery ── */
.photo-frame {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  position: relative;
  transform: translateZ(0);
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 4 / 3;
}
.photo-frame.photo-wide img {
  aspect-ratio: 21 / 9;
  max-height: 460px;
}
.photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

.split-grid {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .split-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.bg-illustration {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none; opacity: 0.6;
  z-index: 0;
}
.bg-illustration + .container { position: relative; z-index: 1; }

.page-hero-split {
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr;
  text-align: left;
}
@media (min-width: 980px) {
  .page-hero-split { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}
.page-hero-split .page-hero-illus img {
  width: 100%; height: auto; max-height: 360px;
  filter: drop-shadow(0 18px 32px rgba(13,138,139,0.12));
}
.page-hero-split .page-hero-text { text-align: left; }
/* Re-center page-hero when split — undo .text-align: center from page-hero */
.page-hero:has(.page-hero-split) { text-align: left; }
.page-hero:has(.page-hero-split) .eyebrow { margin-bottom: 1rem; }

/* ── Rich hero with photo ── */
.rich-hero {
  position: relative; overflow: hidden;
  padding: 4.5rem 0 4rem;
}
.rich-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 70%);
}
.rich-hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center;
}
@media (min-width: 980px) {
  .rich-hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}
.rich-hero figure {
  margin: 0; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--surface); border: 1px solid var(--border);
  position: relative;
}
.rich-hero figure img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 5/4; object-fit: cover;
}
.rich-hero figure::after {
  content: ''; position: absolute; inset: auto -40px -40px auto;
  width: 220px; height: 220px;
  background: radial-gradient(closest-side, rgba(15,168,166,0.4), transparent);
  filter: blur(40px); pointer-events: none;
}

/* Highlight strip (3-up bullets with icons) */
.highlight-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 760px) {
  .highlight-grid { grid-template-columns: repeat(3, 1fr); }
}
.highlight-item {
  display: flex; gap: 0.85rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.1rem;
}
.highlight-item .icon-tile {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.15rem;
}
.highlight-item .label { font-weight: 600; font-size: 0.95rem; }
.highlight-item .desc { font-size: 0.82rem; color: var(--slate-500); margin-top: 2px; line-height: 1.45; }

/* Two-column section with text + image */
.media-section {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center;
  padding: 4rem 0;
}
@media (min-width: 880px) {
  .media-section { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .media-section.reverse > :first-child { order: 2; }
}
.media-section figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  padding: 1.5rem;
  display: grid; place-items: center;
}
.media-section figure img {
  width: 100%; max-width: 360px; height: auto; display: block;
}
.media-section.photo figure {
  padding: 0;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.media-section.photo figure img {
  width: 100%; max-width: none;
  aspect-ratio: 4/3; object-fit: cover;
}
.media-section h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 0.8rem; }
.media-section .lead { font-size: 1.05rem; }

/* Tech icon grid (for "powered by" section) */
.tech-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
  max-width: 720px; margin: 0 auto;
}
@media (min-width: 720px) {
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
}
.tech-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem 1rem;
  text-align: center; transition: all 0.18s;
}
.tech-card:hover {
  border-color: var(--teal-300);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.tech-card img { width: 56px; height: 56px; margin: 0 auto 0.75rem; display: block; }
.tech-card .label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.tech-card .sub   { font-size: 0.78rem; color: var(--slate-500); margin-top: 4px; }

/* Hub-landing feature grid with images */
.hub-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 760px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hub-grid { grid-template-columns: repeat(3, 1fr); } }
.hub-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.2s; display: flex; flex-direction: column;
}
.hub-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-300);
}
.hub-card .thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--accent-soft), var(--teal-100));
  display: grid; place-items: center;
}
.hub-card .thumb img { max-width: 60%; height: auto; }
.hub-card .body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.4rem; }
.hub-card .body h3 { font-size: 1.15rem; margin: 0; }
.hub-card .body h3 a { color: inherit; }
.hub-card .body h3 a:hover { color: var(--accent); }
.hub-card .body p { font-size: 0.92rem; color: var(--slate-600); margin: 0.2rem 0 0; }
.hub-card .body .arrow {
  margin-top: auto; padding-top: 0.7rem;
  color: var(--accent); font-weight: 600; font-size: 0.88rem;
}

/* ── Flagship service hero (RPM / BHI / RCM) ── */
.flagship-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at top right, rgba(52,200,196,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(15,168,166,0.25) 0%, transparent 60%),
    linear-gradient(135deg, #0e6f73 0%, #115a5e 45%, #06292c 100%);
}
.flagship-hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.07;
  background-image:
    radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
  background-size: 24px 24px;
}
.flagship-hero > .container { position: relative; }
.flagship-hero .eyebrow {
  background: rgba(255,255,255,0.12); color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.flagship-hero .eyebrow::before { background: var(--teal-300); }
.flagship-hero h1 { color: #fff; }
.flagship-hero h1 .accent {
  background: linear-gradient(135deg, #d2faf8, #6ee3df);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.flagship-hero p.lead { color: rgba(255,255,255,0.85); }
.flagship-hero .btn-primary {
  background: #fff; color: var(--teal-800);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.flagship-hero .btn-primary:hover {
  background: var(--teal-50); color: var(--teal-900);
}
.flagship-hero .btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.flagship-hero .btn-ghost:hover {
  background: rgba(255,255,255,0.16);
  color: #fff; border-color: #fff;
}

/* Stat row — big numbers at top */
.stat-row {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 700px) {
  .stat-row { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}
.stat-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.stat-card .num {
  font-size: 2rem; font-weight: 700;
  background: linear-gradient(135deg, #fff, #d2faf8);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em; line-height: 1;
}
.stat-card .label { font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.4rem; }
.stat-card .desc  { font-size: 0.88rem; color: rgba(255,255,255,0.78); margin-top: 0.4rem; line-height: 1.5; }

/* Light variant when used outside dark hero */
.stat-card.light {
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stat-card.light .num { background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card.light .label { color: var(--slate-500); }
.stat-card.light .desc { color: var(--slate-600); }

/* Numbered process steps */
.steps {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  counter-reset: step;
}
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute; top: -16px; left: 16px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff; font-weight: 700; font-size: 0.95rem;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 6px 12px rgba(13,138,139,0.3);
}
.step h4 { margin: 0 0 0.4rem; font-size: 1rem; }
.step p  { font-size: 0.88rem; color: var(--slate-600); margin: 0; line-height: 1.55; }

/* CPT codes table — billing-focused */
.cpt-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.cpt-table th, .cpt-table td {
  text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.cpt-table tr:last-child td { border-bottom: 0; }
.cpt-table th {
  background: var(--accent-soft); color: var(--teal-800);
  font-weight: 600; font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.cpt-table td:first-child {
  font-family: 'SF Mono', Menlo, monospace; font-weight: 600;
  color: var(--accent);
}
.cpt-table td:last-child {
  font-weight: 600; color: var(--ink); text-align: right; white-space: nowrap;
}
.cpt-table tr:hover td { background: var(--slate-50); }

/* Device / chip grid */
.chip-grid {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.6rem 1rem; border-radius: 999px;
  font-size: 0.88rem; font-weight: 500; color: var(--ink);
}
.chip i { color: var(--accent); }
.chip:hover { background: var(--accent-soft); border-color: var(--teal-300); }

/* Flagship service card on home/services hub */
.flagship-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  transition: all 0.25s;
}
.flagship-card::after {
  content: ''; position: absolute; top: 0; right: 0; width: 180px; height: 180px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none; opacity: 0.8;
}
.flagship-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal-300);
}
.flagship-card > * { position: relative; z-index: 1; }
.flagship-card .badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-soft); color: var(--teal-700);
  padding: 0.3rem 0.7rem; border-radius: 999px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  width: fit-content;
}
.flagship-card .icon-big {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: #fff; display: grid; place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(13,138,139,0.3);
}
.flagship-card h3 { font-size: 1.35rem; margin: 0; }
.flagship-card .pitch { font-size: 0.98rem; color: var(--slate-700); margin: 0; line-height: 1.6; }
.flagship-card .stat {
  margin-top: auto;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 0.5rem;
}
.flagship-card .stat .big {
  font-size: 1.5rem; font-weight: 700; color: var(--accent);
}
.flagship-card .stat .lbl {
  font-size: 0.85rem; color: var(--slate-500);
}
.flagship-card .arrow {
  color: var(--accent); font-weight: 600; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.flagship-card .arrow i { transition: transform 0.2s; }
.flagship-card:hover .arrow i { transform: translateX(4px); }

/* Three-flagship grid */
.flagship-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 880px) {
  .flagship-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Big revenue strip — for ROI showcase */
.revenue-strip {
  background: linear-gradient(135deg, var(--accent-soft), #fff);
  border: 1px solid var(--teal-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  align-items: center;
}
@media (min-width: 880px) {
  .revenue-strip { grid-template-columns: 1.2fr 1fr; }
}
.revenue-strip h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.revenue-strip .calc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.revenue-strip .calc-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.revenue-strip .calc-row:last-child { border-bottom: 0; }
.revenue-strip .calc-row .label { color: var(--slate-600); }
.revenue-strip .calc-row .val   { font-weight: 600; color: var(--ink); }
.revenue-strip .calc-row.total .val {
  color: var(--accent); font-size: 1.6rem; font-weight: 700;
}

/* Misc */
hr { border: 0; border-top: 1px solid var(--border); margin: 3rem 0; }
.text-center { text-align: center; }
.muted { color: var(--slate-500); }
.small { font-size: 0.85rem; }

/* ─────────────── Signup / login 3-way chooser pages ─────────────── */
.chooser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  .chooser-grid { grid-template-columns: 1fr; }
}
.chooser-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.chooser-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 26px -16px rgba(14,165,233,0.4);
}
.chooser-card h3 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.chooser-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.chooser-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.chooser-card .btn {
  align-self: flex-start;
}
.chooser-alt {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-decoration: none;
}
.chooser-alt:hover { color: var(--accent); }
.chooser-foot {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--slate-500);
  font-size: 0.9rem;
}
.chooser-foot a {
  color: var(--accent);
  font-weight: 600;
}

/* ─────────────── Capability grid (home "complete platform" section) ─────────────── */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 1.5rem;
}
@media (max-width: 1024px) {
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .capability-grid { grid-template-columns: 1fr; }
}
.capability {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.capability:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -14px rgba(15,23,42,0.3);
}
.capability h4 {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.capability p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

/* ─────────────── Outcome cards + testimonial quote (home) ─────────────── */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (max-width: 900px) {
  .outcome-grid { grid-template-columns: 1fr; }
}
.outcome-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.outcome-big {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.05;
}
.outcome-lbl {
  font-weight: 600;
  color: var(--ink-1);
  font-size: 0.95rem;
}
.outcome-card p {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.55;
}
.quote-card {
  max-width: 760px;
  margin: 2rem auto 0;
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 3px rgba(15,23,42,0.05);
}
.quote-card p {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-1);
  font-style: italic;
}
.quote-attr {
  font-size: 0.85rem;
  color: var(--ink-2);
  text-align: right;
}

/* ===================================================================== */
/* Inner-page rich visuals — charts, comparison tables, illustrations    */
/* added 2026-06-09                                                       */
/* ===================================================================== */

/* Stats strip — 3 or 4 big-number cards in a row */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
}
.stat-strip .stat-card {
  background: linear-gradient(140deg, #f5f7ff 0%, #ffffff 70%);
  border: 1px solid rgba(26, 35, 126, 0.10);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: left;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.stat-strip .stat-card .stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent, #1a237e);
  line-height: 1.0;
  margin: 0 0 0.4rem;
}
.stat-strip .stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0;
}

/* Inline bar chart (pure SVG, no JS) */
.chart-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.chart-card .chart-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0 0 0.25rem;
}
.chart-card .chart-sub {
  font-size: 0.82rem;
  color: var(--ink-2);
  margin: 0 0 1rem;
}
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--ink-2);
  margin-top: 0.75rem;
}
.chart-legend .dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 6px;
}

/* Comparison table — Before / With PatientMD */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
}
.compare-table th, .compare-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(15,23,42,0.06);
  vertical-align: top;
}
.compare-table thead th {
  background: #f5f7ff;
  font-weight: 600;
  color: var(--accent, #1a237e);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .col-label {
  background: #fafbff;
  font-weight: 600;
  color: var(--ink-1);
  width: 32%;
}
.compare-table .col-before { color: var(--ink-2); }
.compare-table .col-after  { color: var(--ink-1); font-weight: 500; }
.compare-table .col-after::before {
  content: "✓ ";
  color: #2e7d32;
  font-weight: 700;
}

/* Two-column rich row — illustration on one side, content on the other */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2rem 0;
}
.split-row > .split-img {
  background: linear-gradient(140deg, #eef1ff 0%, #ffffff 70%);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(26, 35, 126, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.split-row > .split-img svg { max-width: 100%; height: auto; }
@media (max-width: 800px) {
  .split-row { grid-template-columns: 1fr; }
}

/* Pipeline / horizontal flow */
.flow-pipe {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1.5rem 0;
}
.flow-pipe .pipe-step {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 10px;
  padding: 1rem 0.75rem;
  text-align: center;
  position: relative;
}
.flow-pipe .pipe-step .pipe-num {
  display: inline-block;
  width: 28px; height: 28px;
  line-height: 28px;
  border-radius: 50%;
  background: var(--accent, #1a237e);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.flow-pipe .pipe-step .pipe-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0 0 0.25rem;
}
.flow-pipe .pipe-step .pipe-desc {
  font-size: 0.78rem;
  color: var(--ink-2);
  line-height: 1.4;
  margin: 0;
}
.flow-pipe .pipe-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -10px; top: 50%;
  transform: translateY(-50%);
  color: rgba(26,35,126,0.35);
  font-size: 1.2rem;
  z-index: 1;
}
@media (max-width: 800px) {
  .flow-pipe { grid-template-columns: 1fr; }
  .flow-pipe .pipe-step:not(:last-child)::after { display: none; }
}

/* Device cards */
.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.device-card {
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
.device-card svg {
  display: block;
  margin: 0 auto 0.75rem;
  color: var(--accent, #1a237e);
}
.device-card .device-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-1);
  margin: 0 0 0.25rem;
}
.device-card .device-vendor {
  font-size: 0.78rem;
  color: var(--ink-2);
  margin: 0;
}

/* Inline data table — payer / outcome / KPI tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.92rem;
}
.data-table th, .data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(15,23,42,0.05);
}
.data-table thead th {
  background: #f5f7ff;
  color: var(--accent, #1a237e);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table td.up   { color: #2e7d32; font-weight: 600; }
.data-table td.down { color: #c62828; font-weight: 600; }

/* ===================================================================== */
/* Sylvie chat widget (marketing) — 2026-06-09                          */
/* ===================================================================== */
.sylvie-bubble {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent, #1a237e); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(26, 35, 126, 0.35);
  z-index: 9999;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.sylvie-bubble:hover  { transform: translateY(-2px); }
.sylvie-bubble.hidden { opacity: 0; pointer-events: none; transform: scale(0.85); }

.sylvie-panel {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  width: 360px; max-width: calc(100vw - 2rem);
  height: 540px; max-height: calc(100vh - 2rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(26, 35, 126, 0.10);
  display: none; flex-direction: column;
  z-index: 10000;
  overflow: hidden;
}
.sylvie-panel.open { display: flex; }

.sylvie-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: #fff;
}
.sylvie-title { display: flex; align-items: center; gap: 0.6rem; }
.sylvie-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #43e97b;
  box-shadow: 0 0 0 3px rgba(67, 233, 123, 0.25);
}
.sylvie-name { font-weight: 600; font-size: 0.95rem; line-height: 1.1; }
.sylvie-sub  { font-size: 0.72rem; opacity: 0.8; }
.sylvie-close {
  background: none; border: none; color: #fff;
  font-size: 1.4rem; cursor: pointer; line-height: 1;
  padding: 0 0.25rem;
}

.sylvie-log {
  flex: 1; overflow-y: auto;
  padding: 0.85rem 1rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  background: #fafbff;
}
.sylvie-msg {
  max-width: 86%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.sylvie-msg-bot  { align-self: flex-start; background: #fff; border: 1px solid rgba(15, 23, 42, 0.07); color: #1f2937; }
.sylvie-msg-user { align-self: flex-end;   background: var(--accent, #1a237e); color: #fff; }

.sylvie-chips {
  padding: 0.5rem 0.75rem;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}
.sylvie-chip {
  background: #f5f7ff;
  border: 1px solid rgba(26, 35, 126, 0.15);
  color: var(--accent, #1a237e);
  padding: 0.35rem 0.7rem;
  border-radius: 16px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.sylvie-chip:hover { background: #e8eaf6; }

.sylvie-form {
  display: flex; gap: 0.4rem;
  padding: 0.7rem 0.85rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
}
.sylvie-input {
  flex: 1;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 18px;
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  outline: none;
}
.sylvie-input:focus { border-color: var(--accent, #1a237e); }
.sylvie-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent, #1a237e);
  color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ─────────────────────────── Scroll-reveal animation ───────────────────────────
   Applied to feature-page blocks. Element starts faded + slightly translated;
   IntersectionObserver in _base.html adds .reveal--visible to fade them in. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}
.reveal--visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Stat-strip numbers get a soft sweep + slight letter-fade for the "counted"
   feel without an actual counter library (which would block paint). */
.stat-strip .stat-card.reveal .stat-num {
  background-image: linear-gradient(120deg, var(--teal-600) 0%, var(--teal-400) 50%, var(--teal-600) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: stat-sweep 6s ease-in-out infinite;
}
@keyframes stat-sweep {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .stat-strip .stat-card.reveal .stat-num { animation: none; }
}

/* ─────────────────────────── FAQ accordion (per-page) ─────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(15,23,42,0.08));
  border-radius: var(--radius, 0.875rem);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.faq-item:hover { border-color: var(--teal-300); box-shadow: var(--shadow-md); }
.faq-item[open] { border-color: var(--teal-400); box-shadow: var(--shadow-md); }
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink, #0f172a);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+';
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--teal-600);
  transition: transform 0.18s ease;
  line-height: 1;
}
.faq-item[open] > summary::after { content: '−'; }
.faq-answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--slate-600);
  font-size: 0.96rem;
  line-height: 1.65;
  animation: faq-fade 0.28s ease-out;
}
.faq-answer p { margin: 0 0 0.7rem; color: inherit; }
.faq-answer p:last-child { margin-bottom: 0; }
@keyframes faq-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
