/* ═══════════════════════════════════════════════════
   Caregiver page — site/new/caregiver/caregiver.css
   Depends on: ../../assets/css/main.css (tokens/reset)
   ═══════════════════════════════════════════════════ */

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 26px;
  width: auto;
  filter: invert(45%) sepia(60%) saturate(500%) hue-rotate(145deg)
    brightness(90%);
}

.nav-logo-text {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav-logo-text span {
  color: var(--teal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nav-tab {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 14px;
  position: relative;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-tab + .nav-tab::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 12px;
  width: 1px;
  background: var(--border);
}

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

.nav-tab.active {
  color: var(--ink);
  font-weight: 600;
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--teal);
  border-radius: 1px;
}

.nav-cta {
  margin-left: auto;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

/* ── SHARED SECTION WRAPPERS ── */
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: pretty;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
  max-width: 580px;
}

/* ── SUBNAV ── */
.subnav {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  box-shadow: 0 2px 8px oklch(0% 0 0 / 0.07);
}

.subnav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 2px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav-inner::-webkit-scrollbar {
  display: none;
}

.subnav-link {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: oklch(40% 0.02 240);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  border-radius: 4px 4px 0 0;
  transition:
    color 0.15s,
    border-color 0.15s,
    background-color 0.15s;
  margin-bottom: -2px;
}

.subnav-link:hover {
  color: var(--ink);
  background-color: oklch(92% 0.05 192 / 0.5);
}

.subnav-link.active {
  color: var(--teal-dark);
  font-weight: 700;
  border-bottom-color: var(--teal);
  background-color: oklch(92% 0.05 192 / 0.4);
}

/* ── HERO ── */
.hero {
  padding-top: 64px;
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% -10%,
      oklch(94% 0.06 192 / 0.5) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 50% 40% at 100% 80%,
      oklch(90% 0.04 192 / 0.3) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 70% at 60% 40%,
    black 30%,
    transparent 80%
  );
  opacity: 0.5;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 32px 72px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── EHR MOCKUP ── */
.hero-visual {
  position: relative;
}

.ehr-mockup {
  background: var(--white);
  border-radius: 12px;
  box-shadow:
    0 4px 6px oklch(0% 0 0 / 0.04),
    0 24px 64px oklch(0% 0 0 / 0.13),
    0 0 0 1px oklch(0% 0 0 / 0.06);
  overflow: hidden;
  font-size: 11px;
  font-family: var(--ff-body);
}

/* Browser chrome */
.ehr-chrome {
  background: oklch(96% 0.005 240);
  border-bottom: 1px solid var(--border);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ehr-chrome-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.ehr-chrome-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.ehr-chrome-dots span:nth-child(1) {
  background: #fc6058;
}
.ehr-chrome-dots span:nth-child(2) {
  background: #fda428;
}
.ehr-chrome-dots span:nth-child(3) {
  background: #28c940;
}

.ehr-chrome-bar {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ehr-chrome-bar svg {
  flex-shrink: 0;
  color: var(--muted);
}

/* EHR patient context bar */
.ehr-patient-bar {
  background: oklch(98% 0.005 240);
  border-bottom: 1px solid var(--border);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ehr-patient-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ehr-hospital-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-light);
  padding: 2px 7px;
  border-radius: 4px;
}

.ehr-patient-name {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
}

.ehr-patient-meta {
  font-size: 9.5px;
  color: var(--muted);
}

.ehr-patient-bar-dept {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
}

/* EHR tab row */
.ehr-tabs {
  background: oklch(96.5% 0.005 240);
  border-bottom: 1px solid var(--border);
  padding: 0 14px;
  display: flex;
  gap: 0;
}

.ehr-tab {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 11px;
  cursor: default;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.ehr-tab-active {
  color: var(--teal-dark);
  font-weight: 600;
  border-bottom-color: var(--teal);
}

/* TMP top bar (dark, matches real app) */
.tmp-topbar {
  background: oklch(14% 0.01 240);
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 40px;
  gap: 16px;
}

.tmp-topbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.tmp-logo-mark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
}

.tmp-logo-mark span {
  width: 3px;
  background: white;
  border-radius: 1px;
  opacity: 0.9;
}

.tmp-logo-mark span:nth-child(1) {
  height: 10px;
}
.tmp-logo-mark span:nth-child(2) {
  height: 16px;
}
.tmp-logo-mark span:nth-child(3) {
  height: 12px;
}
.tmp-logo-mark span:nth-child(4) {
  height: 18px;
}
.tmp-logo-mark span:nth-child(5) {
  height: 8px;
}

.tmp-topbar-title {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.tmp-topbar-sub {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: oklch(70% 0 0);
}

.tmp-topbar-name {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: white;
}

.tmp-topbar-patient {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  flex: 1;
}

.tmp-topbar-label {
  font-size: 9.5px;
  color: oklch(55% 0 0);
}

.tmp-topbar-pname {
  font-size: 10.5px;
  font-weight: 600;
  color: white;
}

.tmp-topbar-patient svg {
  color: oklch(55% 0 0);
}

.tmp-topbar-provider {
  font-size: 10px;
  font-weight: 600;
  color: oklch(65% 0 0);
  margin-left: auto;
  flex-shrink: 0;
}

/* TMP body */
.tmp-body {
  padding: 0;
  background: white;
  overflow: hidden;
}

/* Service table */
.tmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10.5px;
}

.tmp-table thead tr {
  border-bottom: 1.5px solid var(--border);
}

.tmp-table th {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
  text-align: left;
  padding: 8px 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tmp-table tbody tr {
  border-bottom: 1px solid var(--border);
}

.tmp-table tbody tr:last-child {
  border-bottom: none;
}

.tmp-table td {
  padding: 9px 12px;
  color: var(--ink);
  vertical-align: middle;
  font-size: 10.5px;
  white-space: nowrap;
}

.tmp-desc {
  color: var(--muted) !important;
  font-size: 9.5px !important;
  white-space: normal !important;
  max-width: 180px;
  line-height: 1.4;
}

.tmp-request-btn {
  background: oklch(14% 0.01 240);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 9.5px;
  font-weight: 700;
  font-family: var(--ff-body);
  letter-spacing: 0.05em;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.tmp-request-btn span {
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
}

/* Previous sessions */
.tmp-sessions {
  border-top: 2px solid var(--border);
  padding: 10px 0 0;
  margin: 0 12px;
}

.tmp-sessions-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 0 8px 0;
}

.tmp-table-sessions th,
.tmp-table-sessions td {
  padding: 6px 8px;
}

.tmp-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.tmp-status.completed {
  background: oklch(93% 0.07 145);
  color: oklch(38% 0.14 145);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
  text-wrap: pretty;
}

.hero-title em {
  font-style: italic;
  color: var(--teal-dark);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 480px;
}

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

/* ── WORKFLOW CARD ── */
.workflow-card {
  background: var(--navy);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.workflow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 40% at 50% 0%,
    oklch(42% 0.11 192 / 0.22),
    transparent 70%
  );
  pointer-events: none;
}

.workflow-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-mid);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.workflow-steps {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.workflow-step {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.workflow-step-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: oklch(32% 0.04 240);
  border: 1px solid oklch(38% 0.05 240);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.workflow-step-icon.highlight {
  background: oklch(42% 0.11 192 / 0.35);
  border-color: oklch(56% 0.13 192 / 0.7);
}

.workflow-step-line {
  width: 1.5px;
  background: oklch(32% 0.04 240);
  margin: 4px 0 4px 16px;
  flex-shrink: 0;
  align-self: stretch;
  min-height: 16px;
}

.workflow-step-content {
  padding: 4px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.workflow-step-content.highlight strong {
  color: oklch(82% 0.1 192);
}

.workflow-step.last .workflow-step-content {
  padding-bottom: 4px;
}

.workflow-step-content strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
}

.workflow-step-content span {
  font-size: 12px;
  color: oklch(65% 0.02 240);
  line-height: 1.55;
}

/* ─── STATS STRIP ──────────────────────────────────────── */
.stats-strip {
  background: var(--teal-light);
  border-top: 1px solid oklch(88% 0.05 192);
  border-bottom: 1px solid oklch(88% 0.05 192);
  padding: 48px 32px;
}

.stats-strip-heading {
  max-width: var(--max);
  margin: 0 auto 24px;
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--teal-dark);
  text-align: center;
}

.stats-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: oklch(88% 0.05 192);
  border: 1px solid oklch(88% 0.05 192);
  border-radius: 12px;
  overflow: hidden;
}

.stat-card {
  background: var(--teal-light);
  padding: 40px 36px;
  text-align: left;
}

.stat-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.stat-num {
  font-family: var(--ff-display);
  font-size: 52px;
  color: var(--teal-dark);
  line-height: 1;
}

.stat-desc {
  font-size: 15px;
  color: var(--teal-dark);
  opacity: 0.7;
  font-weight: 400;
}

/* ── BENEFITS SECTION ── */
.benefits {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.benefit-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.benefit-headline {
  font-family: var(--ff-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: pretty;
}

.benefit-subtext {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  font-weight: 300;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-light);
  border: 1.5px solid oklch(82% 0.07 192);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check svg {
  width: 11px;
  height: 11px;
  stroke: var(--teal-dark);
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.4;
}

.feature-item-content span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.benefit-callout {
  background: var(--teal-light);
  border: 1px solid oklch(82% 0.07 192);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.benefit-callout-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

.benefit-callout p {
  font-size: 14px;
  color: var(--teal-dark);
  line-height: 1.6;
  font-weight: 500;
}

.benefit-callout p strong {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}

.benefit-ehr-tags {
  margin-top: 20px;
}

.benefit-ehr-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

/* ── USE CASE SPOTLIGHT ── */
.usecase-spotlight {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.usecase-spotlight-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.usecase-spotlight-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.usecase-spotlight-header .section-title {
  margin: 0;
}

.usecase-spotlight-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 4px;
}

.usecase-spotlight-all:hover {
  text-decoration: underline;
}

.usecase-spotlight-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.usecase-spotlight-card:hover {
  border-color: var(--teal-mid);
  box-shadow: 0 4px 12px oklch(56% 0.13 192 / 0.1);
}

.usecase-spotlight-card-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.usecase-spotlight-card-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.usecase-spotlight-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.usecase-spotlight-card-tag {
  display: inline-block;
  padding: 4px 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.usecase-spotlight-card-title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

.usecase-spotlight-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
}

.usecase-spotlight-card-footer {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  padding-top: 6px;
}

@media (max-width: 980px) {
  .usecase-spotlight-card {
    grid-template-columns: 1fr;
  }

  .usecase-spotlight-card-image {
    height: 280px;
    min-height: unset;
  }
}

@media (max-width: 640px) {
  .usecase-spotlight {
    padding: 48px 0;
  }

  .usecase-spotlight-card-body {
    padding: 22px;
  }
}

/* ── TRUSTED BY CAROUSEL ── */
.trusted {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}

.trusted-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
}

.carousel-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.carousel-viewport {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.28s ease;
}

.carousel-card {
  flex: 0 0 calc((100% - 3 * 20px) / 4);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 110px;
}

.carousel-card img {
  max-width: 120px;
  max-height: 44px;
  width: 100%;
  object-fit: contain;
}

.carousel-card-name {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-align: center;
}

.carousel-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s,
    box-shadow 0.15s;
}

.carousel-btn:hover {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal-dark);
  box-shadow: 0 2px 10px oklch(56% 0.13 192 / 0.15);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.2s,
    width 0.2s,
    border-radius 0.2s;
}

.carousel-dot.active {
  background: var(--teal);
  width: 20px;
  border-radius: 3px;
}

/* ── CTA SECTION ── */
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes drawLine {
  0% {
    stroke-dashoffset: 400;
  }
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.cta-section {
  background: var(--teal-dark);
  padding: 80px 32px;
}

.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.cta-diagram {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diagram-panel {
  background: var(--navy);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.diagram-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    oklch(42% 0.11 192 / 0.25),
    transparent 70%
  );
}

.diagram-toggle {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.diagram-autoplay-note {
  font-size: 11px;
  color: oklch(74% 0.02 240);
  letter-spacing: 0.03em;
  margin-top: -6px;
  position: relative;
  z-index: 1;
}

.diagram-tab {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
  font-family: var(--ff-body);
  transition:
    background 0.2s,
    color 0.2s;
}

.diagram-tab.chaos {
  background: oklch(38% 0.06 15 / 0.3);
  color: oklch(75% 0.08 15);
}

.diagram-tab.chaos.active {
  background: oklch(50% 0.12 15);
  color: white;
}

.diagram-tab.tmp {
  background: oklch(36% 0.06 192 / 0.3);
  color: var(--teal-mid);
}

.diagram-tab.tmp.active {
  background: var(--teal);
  color: white;
}

.diagram-canvas {
  flex: 1;
  position: relative;
  z-index: 1;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-canvas > div {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diagram-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
}

.cta-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: oklch(75% 0.08 192);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--white);
  margin-bottom: 16px;
  text-wrap: pretty;
}

.cta-sub {
  font-size: 17px;
  color: oklch(85% 0.04 192);
  margin-bottom: 40px;
  font-weight: 300;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--teal-dark);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.18s,
    transform 0.12s;
}

.cta-btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.cta-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: oklch(90% 0.04 192);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid oklch(60% 0.06 192);
  transition:
    background 0.18s,
    border-color 0.18s;
}

.cta-btn-outline:hover {
  background: oklch(100% 0 0 / 0.08);
  border-color: oklch(75% 0.08 192);
}

.cta-ehr-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(65% 0.06 192);
  margin-bottom: 12px;
}

.cta-ehr-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.ehr-tag {
  background: oklch(100% 0 0 / 0.08);
  border: 1px solid oklch(100% 0 0 / 0.15);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: oklch(85% 0.03 192);
}

/* ── PARTNERS SECTION ── */
.partners {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}

.partners-header {
  margin-bottom: 48px;
}

.partner-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.partner-group-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.partner-tag {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.partner-tag:hover {
  border-color: var(--teal-mid);
  box-shadow: 0 2px 8px oklch(56% 0.13 192 / 0.15);
}

.partner-tag.connected {
  border-color: var(--teal-mid);
  background: var(--teal-light);
  color: var(--teal-dark);
}

.partner-tag.connected::before {
  content: '● ';
  font-size: 8px;
  vertical-align: middle;
  color: var(--teal);
}

.partner-tag.inprogress {
  border-color: var(--teal-mid);
  background: var(--teal-light);
  color: var(--teal-dark);
}

.partner-tag.inprogress::before {
  content: '● ';
  font-size: 8px;
  vertical-align: middle;
  color: var(--orange);
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  color: oklch(65% 0.02 240);
  padding: 24px 32px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: oklch(65% 0.02 240);
  text-decoration: none;
  transition: color 0.15s;
}

.footer a:hover {
  color: var(--teal-mid);
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: oklch(65% 0.02 240);
  text-decoration: none;
  border: 1px solid oklch(35% 0.02 240);
  border-radius: 6px;
  padding: 6px 12px;
  transition:
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}

.footer-linkedin:hover {
  color: #0a66c2;
  border-color: #0a66c2;
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    display: none;
  }
}
@media (max-width: 900px) {
  .benefit-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-inner {
    flex-wrap: wrap;
  }

  .stat {
    flex: 1 1 40%;
  }

  .stat-divider {
    display: none;
  }

  .carousel-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .nav-tabs {
    display: none;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .carousel-card {
    flex: 0 0 100%;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }

  .stats-strip {
    padding: 24px 16px;
  }

  .stats-strip-heading {
    margin-bottom: 16px;
    font-size: 18px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 18px 16px;
  }

  .stat-card-top {
    gap: 10px;
    margin-bottom: 6px;
  }

  .stat-icon {
    width: 28px;
    height: 28px;
  }

  .stat-num {
    font-size: 34px;
  }

  .stat-desc {
    font-size: 13px;
    line-height: 1.4;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-btn-primary,
  .cta-btn-outline {
    justify-content: center;
  }

  .nav-hamburger {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .nav-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition:
      transform 0.25s ease,
      opacity 0.2s ease;
    display: block;
    position: absolute;
    transform-origin: center;
  }

  .nav-hamburger span:nth-child(1) {
    transform: translateY(-6px);
  }

  .nav-hamburger span:nth-child(2) {
    transform: translateY(0);
  }

  .nav-hamburger span:nth-child(3) {
    transform: translateY(6px);
  }

  .nav-hamburger[aria-expanded='true'] span:nth-child(1) {
    transform: rotate(45deg);
  }

  .nav-hamburger[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger[aria-expanded='true'] span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .nav-cta {
    display: none;
  }

  .nav-tabs {
    display: none;
  }

  .subnav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 85;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .subnav.nav-menu-open {
    max-height: 500px;
  }

  .subnav-inner {
    padding: 12px 16px;
    gap: 0;
    overflow-x: visible;
    flex-direction: column;
    max-width: none;
    display: flex;
  }

  .subnav-link {
    padding: 10px 0;
    font-size: 14px;
    border-bottom: none;
    color: var(--ink);
    font-weight: 500;
  }

  .subnav-link.active {
    border-bottom: none;
    color: var(--teal-dark);
    font-weight: 600;
  }

  .subnav-link:hover {
    color: var(--teal);
  }
}
