/* MoniNurse landing — tokens aligned to deck violet (MONINURSE_IMAGES.pdf sampling) */
:root {
  --color-ink: #14101c;
  --color-ink-soft: #3d3550;
  --color-muted: #5c5469;
  --color-muted-light: #8a8299;
  --color-surface: #ffffff;
  --color-bg: #f6f2fc;
  --color-bg-warm: #efe8ff;
  --color-bg-section: #faf8ff;
  --color-line: rgba(92, 52, 191, 0.12);
  --color-primary: #6e48d8;
  --color-primary-hover: #4f2fa8;
  --color-primary-soft: #e4dcfb;
  --color-lilac: #b9a3f0;
  --color-deep: #1e0f42;
  --color-header: #231047;
  --color-header-border: rgba(255, 255, 255, 0.12);
  --shadow-sm: 0 2px 8px rgba(26, 20, 38, 0.06);
  --shadow-md: 0 14px 44px rgba(42, 20, 88, 0.12);
  --shadow-lg: 0 24px 64px rgba(30, 15, 66, 0.18);
  --shadow-card-hover: 0 20px 50px rgba(42, 20, 88, 0.14);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --space-unit: 8px;
  --container: min(1180px, calc(100% - 2 * var(--space-unit) * 3));
  --narrow: min(760px, calc(100% - 2 * var(--space-unit) * 3));
  --header-h: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-unit);
  z-index: 1000;
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 2);
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  left: var(--space-unit);
  outline: none;
}

.layout-container {
  width: var(--container);
  margin-inline: auto;
}

.layout-container.narrow {
  width: var(--narrow);
}

/* Header — premium SaaS / healthtech */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(35, 16, 71, 0.98) 0%, rgba(30, 15, 66, 0.98) 100%);
  border-bottom: 1px solid var(--color-header-border);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.site-header--scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  width: var(--container);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--space-unit) * 2.5);
  padding-block: calc(var(--space-unit) * 1.75);
  padding-inline: 0;
}

.site-header__logo {
  padding: calc(var(--space-unit) * 0.5) 0;
}

.site-header__logo img {
  width: 200px;
  height: auto;
  display: block;
}

@media (max-width: 400px) {
  .site-header__logo img {
    width: 198px;
  }
}

.site-header__menu-btn {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-header-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.site-header__menu-btn-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header__menu-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: #f4f0ff;
  border-radius: 1px;
  box-shadow: 0 -6px 0 #f4f0ff, 0 6px 0 #f4f0ff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: calc(var(--space-unit) * 3);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: calc(var(--space-unit) * 2.5);
}

.site-nav__list a {
  color: rgba(244, 240, 255, 0.88);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-nav__list a:hover {
  color: #fff;
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: calc(var(--space-unit) * 2);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.lang-toggle__btn {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.85rem;
  border: none;
  background: transparent;
  color: rgba(244, 240, 255, 0.55);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-toggle__btn:hover {
  color: #fff;
}

.lang-toggle__btn--active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    transform 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(135deg, #7b55ec 0%, #5c34bf 100%);
  color: #fff;
  box-shadow: 0 4px 18px rgba(92, 52, 191, 0.38);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #8860f5 0%, #4c2ca3 100%);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f4f0ff;
}

.site-header .btn--primary {
  box-shadow: 0 6px 22px rgba(92, 52, 191, 0.45);
  padding-inline: 1.25rem;
}

.site-header .btn--primary:hover {
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--color-surface);
  border-color: var(--color-line);
  color: var(--color-primary-hover);
}

.btn--secondary:hover {
  border-color: var(--color-lilac);
  background: var(--color-bg-warm);
  color: var(--color-primary-hover);
}

.section .btn--ghost {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  color: var(--color-primary-hover);
}

.section .btn--ghost:hover {
  border-color: var(--color-lilac);
  background: var(--color-bg-warm);
}

/* Hero — full-bleed bedside photo + copy (classic layout) */
.hero--photo {
  position: relative;
  min-height: min(88vh, 820px);
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to left,
      rgba(14, 8, 32, 0.94) 0%,
      rgba(14, 8, 32, 0.82) 28%,
      rgba(14, 8, 32, 0.5) 52%,
      rgba(14, 8, 32, 0.22) 72%,
      rgba(14, 8, 32, 0.08) 100%
    ),
    linear-gradient(180deg, rgba(42, 20, 88, 0.18) 0%, rgba(14, 8, 32, 0.42) 100%);
  pointer-events: none;
}

.hero__shell {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: calc(var(--space-unit) * 7) 0 calc(var(--space-unit) * 9);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero__copy {
  max-width: 40rem;
  width: 100%;
}

.hero__brand {
  margin: 0 0 calc(var(--space-unit) * 1.5);
}

.hero__logo {
  display: block;
  width: clamp(14rem, 36vw, 24rem);
  height: auto;
  max-width: 100%;
}

.hero__title {
  margin: 0 0 calc(var(--space-unit) * 2);
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  line-height: 1.08;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.hero__sub {
  margin: 0 0 calc(var(--space-unit) * 3);
  color: rgba(244, 240, 255, 0.9);
  font-size: clamp(1.0625rem, 1.9vw, 1.3rem);
  line-height: 1.55;
  max-width: 38rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 1.5);
}

.hero .btn--primary {
  color: #fff;
}

.hero .btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

@media (max-width: 768px) {
  .hero__shell {
    justify-content: center;
  }

  .hero__copy {
    max-width: 36rem;
    text-align: center;
  }

  .hero__logo {
    margin-inline: auto;
  }

  .hero__ctas {
    justify-content: center;
  }

  .hero__scrim {
    background: linear-gradient(
        180deg,
        rgba(14, 8, 32, 0.55) 0%,
        rgba(14, 8, 32, 0.78) 45%,
        rgba(14, 8, 32, 0.88) 100%
      ),
      linear-gradient(90deg, rgba(14, 8, 32, 0.35) 0%, transparent 55%);
  }
}

@media (max-width: 640px) {
  .hero__photo {
    object-position: 55% center;
  }

  .hero--photo {
    min-height: min(100vh, 720px);
  }
}

/* Solution — silent autoplay videos */
.solution-videos {
  margin-bottom: calc(var(--space-unit) * 3);
  max-width: min(1078px, 100%);
  margin-inline: auto;
}

.solution-videos__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space-unit) * 2.5);
  align-items: start;
}

.solution-videos__fig {
  margin: 0;
}

.solution-videos__frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
  aspect-ratio: 16 / 9;
}

/* Scale past encoded pillarboxing (black bars) inside Clipchamp exports */
.solution-videos__video {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%) scale(1.22);
  transform-origin: center center;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 800px) {
  .solution-videos__grid {
    grid-template-columns: 1fr;
    max-width: min(572px, 100%);
    margin-inline: auto;
  }

  .solution-videos__video {
    transform: translate(-50%, -50%) scale(1.18);
  }
}

/* Sections */
.section {
  padding: calc(var(--space-unit) * 7) 0;
}

.section__title {
  margin: 0 0 calc(var(--space-unit) * 2);
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
}

.section__title--center {
  text-align: center;
  margin-inline: auto;
  max-width: 32rem;
}

.section__lead {
  margin: 0;
  color: var(--color-muted);
  font-size: 1.125rem;
  max-width: 40rem;
}

.section__lead--tight {
  max-width: 48rem;
}

.section__header {
  margin-bottom: calc(var(--space-unit) * 3);
  max-width: 44rem;
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
  max-width: 46rem;
}

.section__eyebrow {
  margin: 0 0 calc(var(--space-unit) * 1.5);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-hover);
}

.section__eyebrow--center {
  text-align: center;
}

.section__lead--center {
  margin-inline: auto;
  text-align: center;
}

.section__lead--narrow {
  max-width: 38rem;
  margin-inline: auto;
}

.section--problem {
  background: linear-gradient(180deg, var(--color-bg-section) 0%, var(--color-surface) 100%);
  border-block: 1px solid var(--color-line);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--space-unit) * 2.5);
  margin-top: calc(var(--space-unit) * 4);
}

@media (max-width: 900px) {
  .pain-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }
}

.pain-card {
  padding: calc(var(--space-unit) * 3);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.pain-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}

.pain-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: calc(var(--space-unit) * 1.5);
  background: linear-gradient(145deg, var(--color-primary-soft) 0%, #f0eaff 100%);
  border: 1px solid rgba(110, 72, 216, 0.15);
}

.pain-card--safety .pain-card__icon {
  background: linear-gradient(145deg, #ffe8f0 0%, #fff5f8 100%);
  border-color: rgba(200, 80, 120, 0.2);
}

.pain-card--admin .pain-card__icon {
  background: linear-gradient(145deg, #e8f0ff 0%, #f5f8ff 100%);
  border-color: rgba(80, 120, 200, 0.2);
}

.pain-card--finance .pain-card__icon {
  background: linear-gradient(145deg, #e8fff4 0%, #f2fff8 100%);
  border-color: rgba(60, 160, 120, 0.2);
}

.pain-card__title {
  margin: 0 0 calc(var(--space-unit) * 1.25);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.pain-card__body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.section--solution {
  background: linear-gradient(180deg, #f3edff 0%, var(--color-bg) 45%, var(--color-surface) 100%);
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 1.25);
  justify-content: center;
  margin-top: calc(var(--space-unit) * 3);
}

.chip-tile {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary-hover);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.chip-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(110, 72, 216, 0.35);
}

.ai-strip {
  margin-top: calc(var(--space-unit) * 4);
  padding: calc(var(--space-unit) * 3);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(30, 15, 66, 0.04) 0%, rgba(110, 72, 216, 0.08) 100%);
  border: 1px solid rgba(110, 72, 216, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.ai-strip__head {
  text-align: center;
  margin-bottom: calc(var(--space-unit) * 2);
}

.ai-strip__title {
  margin: 0;
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-deep);
}

.ai-strip__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ai-chip {
  display: inline-flex;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-hover);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(110, 72, 216, 0.22);
  box-shadow: var(--shadow-sm);
}

/* Product split */
.section--product {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg-section) 100%);
}

.product-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--space-unit) * 5);
  align-items: center;
}

.product-split--v2 {
  align-items: start;
}

@media (max-width: 880px) {
  .product-split {
    grid-template-columns: 1fr;
  }
}

.product-split__bullets {
  margin: calc(var(--space-unit) * 2) 0;
  padding-left: 1.2rem;
  color: var(--color-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.product-split__bullets li {
  margin-bottom: 0.6rem;
}

.product-split__note {
  margin: calc(var(--space-unit) * 2) 0 0;
  padding: calc(var(--space-unit) * 2);
  border-left: 3px solid var(--color-primary);
  background: var(--color-bg-warm);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.product-split__visual {
  text-align: center;
}

.carri-gallery {
  margin-bottom: calc(var(--space-unit) * 1.5);
}

.carri-gallery__strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(var(--space-unit) * 1.5);
  align-items: end;
}

@media (max-width: 900px) {
  .carri-gallery__strip {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }
}

.carri-gallery__fig {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-md);
  background: var(--color-bg);
}

.carri-gallery__fig img {
  width: 100%;
  height: auto;
  display: block;
}

/* Workflow — hero-scale type + sequential pipeline */
.section--workflow {
  background: var(--color-bg);
}

.section--workflow .section__header {
  margin-bottom: calc(var(--space-unit) * 3);
}

.section--workflow .section__title {
  font-size: clamp(2.35rem, 4.8vw, 3.35rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  margin-bottom: calc(var(--space-unit) * 2);
}

.section--workflow .section__lead {
  font-size: clamp(1.125rem, 2.1vw, 1.3125rem);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 48rem;
}

.workflow__steps {
  list-style: none;
  margin: 0;
  padding: calc(var(--space-unit) * 2) 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  position: relative;
  overflow-x: visible;
  overflow-y: visible;
}

/* Subtle track line (desktop) */
.workflow__steps::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-primary-soft) 8%,
    var(--color-lilac) 50%,
    var(--color-primary-soft) 92%,
    transparent 100%
  );
  opacity: 0.55;
  border-radius: 2px;
  pointer-events: none;
  z-index: 0;
}

.workflow__step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Last step has no trailing chevron — reserve same width so cards match */
.workflow__step:last-child::after {
  content: "";
  flex: 0 0 clamp(10px, 1.8vw, 22px);
  align-self: center;
}

.workflow__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  gap: calc(var(--space-unit) * 1.25);
  padding: calc(var(--space-unit) * 1.75) calc(var(--space-unit) * 1);
  min-width: 0;
  width: auto;
  max-width: none;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.workflow__connector {
  flex: 0 0 auto;
  width: clamp(10px, 1.8vw, 22px);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.workflow__connector::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
  transform: rotate(-45deg);
  margin-left: -4px;
  opacity: 0.9;
}

.workflow__step-tag {
  width: clamp(32px, 5vw, 40px);
  height: clamp(32px, 5vw, 40px);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #fff;
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(92, 52, 191, 0.35);
}

.workflow__step-text {
  font-size: clamp(0.6875rem, 1.15vw, 0.9375rem);
  font-weight: 600;
  color: var(--color-ink-soft);
  line-height: 1.3;
  word-break: break-word;
  hyphens: auto;
}

.workflow__step-card--ai {
  border-color: rgba(110, 72, 216, 0.3);
  background: linear-gradient(180deg, #ffffff 0%, #f8f5ff 100%);
}

.workflow__ai-badge {
  font-size: clamp(0.55rem, 1vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-hover);
  background: linear-gradient(180deg, var(--color-primary-soft) 0%, #e8dfff 100%);
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  margin-top: 0.2rem;
  line-height: 1.25;
  max-width: 100%;
  border: 1px solid rgba(110, 72, 216, 0.15);
}

@media (max-width: 1100px) {
  .workflow__step-card {
    padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 0.75);
  }
}

@media (max-width: 900px) {
  .workflow__steps {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-x: visible;
    padding-top: calc(var(--space-unit) * 1);
  }

  .workflow__steps::before {
    display: none;
  }

  .workflow__step:last-child::after {
    display: none;
  }

  .workflow__step {
    flex: 0 0 auto;
    flex-direction: column;
    width: 100%;
    max-width: 28rem;
    margin-inline: auto;
  }

  .workflow__step-card {
    max-width: none;
    width: 100%;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: calc(var(--space-unit) * 1.25);
    padding: calc(var(--space-unit) * 2.5) calc(var(--space-unit) * 2.5);
  }

  .workflow__step-text {
    width: 100%;
  }

  .workflow__ai-badge {
    align-self: stretch;
    text-align: center;
  }

  .workflow__connector {
    width: 100%;
    height: 28px;
    margin: 4px 0;
  }

  .workflow__connector::after {
    transform: rotate(45deg);
    margin-left: 0;
    margin-top: -6px;
  }
}

/* Clinical intelligence / AI capabilities section */
.section--ai-first {
  background: linear-gradient(180deg, var(--color-deep) 0%, #2d1860 50%, #3d2280 100%);
  color: #f4f0ff;
  position: relative;
  overflow: hidden;
}

.section--ai-first::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 80% 20%, rgba(185, 163, 240, 0.12) 0%, transparent 55%);
  pointer-events: none;
}

.section--ai-first .section__title {
  color: #fff;
}

.section--ai-first .section__lead {
  color: rgba(244, 240, 255, 0.82);
}

.ai-first-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space-unit) * 2.5);
  margin-top: calc(var(--space-unit) * 4);
}

@media (max-width: 800px) {
  .ai-first-grid {
    grid-template-columns: 1fr;
  }
}

.ai-first-card {
  padding: calc(var(--space-unit) * 3);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.ai-first-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.22);
}

.ai-first-card h3 {
  margin: 0 0 calc(var(--space-unit) * 1.5);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.ai-first-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(244, 240, 255, 0.78);
}

/* Benefits */
.section--benefits {
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg-section) 100%);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--space-unit) * 2.5);
  margin-top: calc(var(--space-unit) * 4);
}

@media (max-width: 880px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }
}

.benefit-card {
  padding: calc(var(--space-unit) * 3.5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.benefit-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  margin-bottom: calc(var(--space-unit) * 2);
  background: linear-gradient(145deg, var(--color-primary-soft), #f5f0ff);
  border: 1px solid rgba(110, 72, 216, 0.15);
}

.benefit-card--providers .benefit-card__icon {
  background: linear-gradient(145deg, #e8f4ff, #f5faff);
}

.benefit-card--patients .benefit-card__icon {
  background: linear-gradient(145deg, #e8fff5, #f5fffa);
}

.benefit-card__heading {
  margin: 0 0 calc(var(--space-unit) * 2);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.benefit-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.benefit-card li {
  margin-bottom: 0.55rem;
}

/* Why — dual column */
.section--why {
  background: var(--color-surface);
  border-block: 1px solid var(--color-line);
}

.why-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(var(--space-unit) * 3);
  margin-top: calc(var(--space-unit) * 4);
  max-width: 920px;
  margin-inline: auto;
}

@media (max-width: 800px) {
  .why-dual {
    grid-template-columns: 1fr;
  }
}

.why-panel {
  padding: calc(var(--space-unit) * 3.5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
}

.why-panel--not {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f7 100%);
}

.why-panel--is {
  background: linear-gradient(145deg, #f3edff 0%, #ebe3ff 100%);
  border-color: rgba(110, 72, 216, 0.2);
  box-shadow: var(--shadow-sm);
}

.why-panel__title {
  margin: 0 0 calc(var(--space-unit) * 2);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.why-panel__list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-ink-soft);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 500;
}

.why-panel__list li {
  margin-bottom: 0.65rem;
}

/* Credibility */
.section--credibility {
  background: var(--color-bg);
}

.cred-panels {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-unit) * 3);
  margin-top: calc(var(--space-unit) * 3);
}

.cred-panel--partners {
  max-width: min(820px, 100%);
  margin-inline: auto;
  width: 100%;
}

.cred-panel--leadership {
  width: 100%;
}

.cred-panel {
  padding: calc(var(--space-unit) * 3);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.cred-panel__label {
  margin: 0 0 calc(var(--space-unit) * 2);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.partner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(var(--space-unit) * 1.75);
  width: 100%;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 1.75);
  min-height: clamp(72px, 14vw, 96px);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}

.partner-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 360px);
  max-height: clamp(50px, 9vw, 100px);
  object-fit: contain;
  object-position: center;
  filter: saturate(0.85) contrast(1.02);
  opacity: 0.94;
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.partner-logo:hover img {
  opacity: 1;
  filter: none;
}

/* Tall / stacked marks (e.g. clinic + hospital emblem) */
.partner-logo--portrait img {
  max-height: clamp(70px, 11vw, 130px);
}

/* White mark on black — use only when asset requires it */
.partner-logo--dark {
  background: #101010;
  border-color: rgba(255, 255, 255, 0.12);
}

.partner-logo--dark img {
  max-height: clamp(48px, 8vw, 90px);
}

.team-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: calc(var(--space-unit) * 2);
}

@media (min-width: 1100px) {
  .team-list {
    flex-wrap: nowrap;
  }
}

.team-card {
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  font-size: 0.9rem;
  color: var(--color-ink-soft);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: max-content;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card__photo {
  width: 15rem;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  margin: calc(var(--space-unit) * 1.5) auto 0;
}

.team-card__body {
  padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 1.25);
  text-align: center;
  width: max-content;
  max-width: 100%;
  box-sizing: border-box;
}

.team-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-ink);
}

.team-card__role {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* Final CTA */
.section--final-cta {
  padding: calc(var(--space-unit) * 8) 0;
  background: linear-gradient(135deg, #1f0d42 0%, #3d2280 42%, #5c34bf 100%);
  color: #f4f0ff;
}

.final-cta {
  text-align: center;
}

.final-cta__title {
  margin: 0 0 calc(var(--space-unit) * 3);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--space-unit) * 1.5);
  justify-content: center;
}

.final-cta .btn--primary {
  background: #fff;
  color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.final-cta .btn--primary:hover {
  background: var(--color-bg-warm);
  color: var(--color-primary-hover);
}

/* Footer */
.site-footer {
  background: #1a1426;
  color: rgba(244, 240, 255, 0.75);
  padding: calc(var(--space-unit) * 5) 0 calc(var(--space-unit) * 4);
}

.site-footer a {
  color: #e8e0ff;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: calc(var(--space-unit) * 3);
  align-items: start;
}

@media (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

.site-footer__logo img {
  width: 200px;
  height: auto;
  margin-bottom: calc(var(--space-unit) * 1.5);
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.9375rem;
  color: rgba(244, 240, 255, 0.65);
}

.site-footer__contact p {
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.site-footer__copy {
  grid-column: 1 / -1;
  margin: calc(var(--space-unit) * 2) 0 0;
  padding-top: calc(var(--space-unit) * 2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8125rem;
  color: rgba(244, 240, 255, 0.5);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal--visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Mobile nav */
@media (max-width: 960px) {
  .site-header__menu-btn {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(26, 20, 38, 0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    padding: calc(var(--space-unit) * 3);
    gap: calc(var(--space-unit) * 3);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    overflow-y: auto;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--space-unit) * 2);
  }

  .site-nav__list a {
    font-size: 1.125rem;
  }

  .site-nav__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav__actions .btn {
    justify-content: center;
  }

  :root {
    --header-h: 64px;
  }
}
