﻿/* ============================================================
   UNITY POPULATION HEALTH — MAIN STYLESHEET
   Version: 1.0.0
   Site: unityhealth.ai

   WordPress Conversion Notes:
   - This file becomes style.css in the WP theme root
   - Add WP theme file headers at top in WP version
   - CSS Custom Properties → migrate to theme.json (WP 6.0+)
   - Section comments map to WP template parts

   Architecture:
   01. Custom Properties (Design Tokens)
   02. Reset & Base
   03. Typography
   04. Layout & Grid
   05. Navigation
   06. Buttons
   07. Badges & Tags
   08. Cards
   09. Forms
   10. Statistics & Metrics
   11. Hero Sections
   12. Section Patterns
   13. Trust & Social Proof
   14. Module Components
   15. Platform Mockup
   16. Comparison Tables
   17. CTA Sections
   18. Footer
   19. Page-Specific Styles
   20. Animations & Transitions
   21. Accessibility & Utilities
   22. Responsive Breakpoints
   ============================================================ */


/* ============================================================
   01. CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */

:root {

  /* Brand Palette – Navy */
  --navy-950: #020A18;
  --navy-900: #050E1E;
  --navy-800: #081627;
  --navy-700: #0C2040;
  --navy-600: #102858;
  --navy-500: #143070;

  /* Brand Palette – Teal (Primary Accent) */
  --teal-700: #0369A1;
  --teal-600: #0284A0;
  --teal-500: #06A3C4;
  --teal-400: #0BC5EB;
  --teal-300: #38D4F5;
  --teal-200: #7DE8FB;
  --teal-100: #C1F5FD;
  --teal-50:  #EFF9FF;

  /* Brand Palette – Indigo (Secondary Accent) */
  --indigo-700: #3730A3;
  --indigo-600: #4338CA;
  --indigo-500: #4F46E5;
  --indigo-400: #6366F1;
  --indigo-300: #818CF8;
  --indigo-200: #A5B4FC;

  /* Semantic – Success */
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10B981;
  --green-400: #34D399;
  --green-100: #D1FAE5;
  --green-50:  #ECFDF5;

  /* Semantic – Warning */
  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --amber-100: #FEF3C7;

  /* Semantic – Error */
  --red-600: #DC2626;
  --red-500: #EF4444;
  --red-100: #FEE2E2;

  /* Neutral Scale */
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1F2937;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --white:    #FFFFFF;

  /* Semantic Token Aliases */
  --color-primary:        var(--teal-500);
  --color-primary-hover:  var(--teal-400);
  --color-primary-dark:   var(--teal-600);
  --color-secondary:      var(--indigo-500);
  --color-brand-bg:       var(--navy-900);
  --color-brand-bg-dark:  var(--navy-950);

  --color-text-primary:   var(--gray-900);
  --color-text-secondary: var(--gray-600);
  --color-text-muted:     var(--gray-400);
  --color-text-inverse:   var(--white);

  --color-bg-body:        var(--white);
  --color-bg-alt:         var(--gray-50);
  --color-bg-dark:        var(--navy-900);

  --color-border:         var(--gray-200);
  --color-border-strong:  var(--gray-300);

  --color-success:        var(--green-500);
  --color-warning:        var(--amber-500);
  --color-error:          var(--red-500);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  --weight-light:     300;
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;
  --weight-black:     900;

  --leading-none:    1.0;
  --leading-tight:   1.15;
  --leading-snug:    1.3;
  --leading-normal:  1.5;
  --leading-relaxed: 1.7;
  --leading-loose:   2.0;

  --tracking-tight:  -0.03em;
  --tracking-snug:   -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.05em;
  --tracking-wider:  0.1em;

  /* Spacing (8px base) */
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-7:  1.75rem;   /* 28px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-14: 3.5rem;    /* 56px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */
  --space-28: 7rem;      /* 112px */
  --space-32: 8rem;      /* 128px */

  /* Border Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   0.75rem;
  --radius-xl:   1rem;
  --radius-2xl:  1.5rem;
  --radius-3xl:  2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:    0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow-sm:    0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1);
  --shadow-md:    0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:    0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl:    0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --shadow-2xl:   0 25px 50px -12px rgba(0,0,0,0.25);
  --shadow-brand: 0 0 0 3px rgba(6,163,196,0.3);
  --shadow-card:  0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.08);

  /* Transitions */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:      cubic-bezier(0.4, 0, 1, 1);
  --ease-out:     cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast:   150ms;
  --duration-base:   200ms;
  --duration-slow:   300ms;
  --duration-slower: 500ms;

  /* Z-index Scale */
  --z-base:       0;
  --z-raised:     10;
  --z-dropdown:   100;
  --z-sticky:     200;
  --z-overlay:    300;
  --z-modal:      400;
  --z-toast:      500;
  --z-tooltip:    600;

  /* Layout */
  --container-max:    1280px;
  --container-wide:   1440px;
  --container-narrow: 780px;
  --container-pad:    clamp(1.5rem, 5vw, 4rem);
  --nav-height:       76px;

  /* Module icon gradient colors */
  --module-quality:    linear-gradient(135deg, #0EA5E9, #06B6D4);
  --module-care:       linear-gradient(135deg, #EC4899, #F43F5E);
  --module-visit:      linear-gradient(135deg, #8B5CF6, #6366F1);
  --module-network:    linear-gradient(135deg, #F59E0B, #EF4444);
  --module-contract:   linear-gradient(135deg, #10B981, #059669);
  --module-risk:       linear-gradient(135deg, #F43F5E, #BE123C);
  --module-engagement: linear-gradient(135deg, #06B6D4, #0EA5E9);
  --module-monitoring: linear-gradient(135deg, #7C3AED, #4F46E5);
}


/* ============================================================
   02. RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas, audio, iframe, embed, object {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

ol, ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Remove animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================
   03. TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); font-weight: var(--weight-semibold); }
h4 { font-size: var(--text-xl);  font-weight: var(--weight-semibold); }
h5 { font-size: var(--text-lg);  font-weight: var(--weight-semibold); }
h6 { font-size: var(--text-base); font-weight: var(--weight-semibold); }

p {
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-text-secondary);
}

.text-muted { color: var(--color-text-muted); }
.text-primary-color { color: var(--color-primary); }
.text-white { color: var(--white); }
.text-inverse { color: var(--color-text-inverse); }
.text-success { color: var(--green-600); }
.text-warning { color: var(--amber-600); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Justify flowing body copy wherever possible */
p,
.lead {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* …but preserve intentionally centered/aligned text */
.text-center,
.text-center p,
.text-center .lead,
.section-header p,
.section-header .lead,
.section-subtitle,
.cta-section p,
.cta-section .lead,
.cta-banner__text,
.ecosystem-visual p,
.flow-diagram-wrap p,
.leader-card p {
  text-align: center;
}

.text-left,
.text-left p,
.section-header--left,
.section-header--left p,
.section-header--left .lead,
.module-card p,
.module-card__subtitle,
.module-card__text {
  text-align: left;
}

.text-right,
.text-right p {
  text-align: right;
}

strong { font-weight: var(--weight-semibold); }

/* Dark section type overrides */
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--white);
}

.section--dark p,
.section--dark .lead {
  color: rgba(255,255,255,0.72);
}

.section--dark strong {
  color: var(--white);
}


/* ============================================================
   04. LAYOUT & GRID
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--wide {
  max-width: var(--container-wide);
}

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

.section {
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.section--sm {
  padding-block: clamp(2.25rem, 5vw, 3.25rem);
}

.section--lg {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--white);
}

.section--darker {
  background-color: var(--navy-950);
  color: var(--white);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--teal-gradient {
  background: linear-gradient(135deg, var(--teal-700) 0%, var(--teal-600) 50%, var(--teal-500) 100%);
  color: var(--white);
}

/* Grid Utilities */
.grid {
  display: grid;
  gap: var(--space-8);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--auto-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--auto-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-12 { gap: var(--space-12); }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }


/* ============================================================
   05. NAVIGATION
   WP: Becomes header.php | functions.php enqueues styles
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out),
              border-bottom-color var(--duration-slow) var(--ease-out);
  background-color: transparent;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background-color: rgba(5, 14, 30, 0.97);
  border-bottom-color: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.3);
}

.site-header.header--light {
  background-color: var(--white);
  border-bottom-color: var(--color-border);
}

.site-header.header--light.is-scrolled {
  background-color: rgba(255,255,255,0.97);
  border-bottom-color: rgba(14,30,64,0.1);
  box-shadow: 0 1px 16px rgba(0,0,0,0.08);
}

/* Light nav — dropdown trigger */
.header--light .nav-dropdown-trigger {
  color: var(--gray-700);
}

.header--light .nav-dropdown-trigger:hover,
.header--light .nav-dropdown-trigger.is-active {
  color: var(--gray-900);
  background-color: var(--gray-100);
}

/* Light nav — ghost button becomes navy outline */
.header--light .btn--ghost {
  background-color: transparent;
  color: var(--navy-800);
  border-color: rgba(14,30,64,0.25);
}

.header--light .btn--ghost:hover {
  background-color: rgba(14,30,64,0.05);
  border-color: rgba(14,30,64,0.45);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo__img {
  height: 44px;
  width: auto;
  display: block;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255,255,255,0.8);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast), background-color var(--duration-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--white);
  background-color: rgba(255,255,255,0.08);
}

.header--light .nav-links a {
  color: var(--gray-700);
}

.header--light .nav-links a:hover,
.header--light .nav-links a.is-active {
  color: var(--gray-900);
  background-color: var(--gray-100);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  border-radius: var(--radius-md);
  transition: background-color var(--duration-fast);
  z-index: var(--z-modal);
  position: relative;
}

.nav-toggle:hover {
  background-color: rgba(255,255,255,0.1);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  border-radius: 1px;
  transition: transform var(--duration-slow) var(--ease-out),
              opacity var(--duration-fast);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Body offset for fixed header */
.page-content {
  padding-top: var(--nav-height);
}

/* ── MODULE BREADCRUMB ────────────────────────────── */
.module-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: var(--space-5);
}

.module-breadcrumb a {
  color: var(--teal-400);
  text-decoration: none;
  transition: color 0.15s;
}

.module-breadcrumb a:hover {
  color: var(--teal-300);
}

.module-breadcrumb__sep {
  opacity: 0.4;
}


/* ── NAV DROPDOWN ─────────────────────────────────── */
.nav-has-dropdown {
  position: relative;
}

.nav-has-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 14px; /* bridges the 8px gap so hover isn't lost when moving to dropdown */
}

.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: color var(--duration-fast), background-color var(--duration-fast);
  white-space: nowrap;
}

.nav-dropdown-trigger:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-dropdown-trigger .chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.nav-has-dropdown.is-open .nav-dropdown-trigger .chevron,
.nav-has-dropdown:hover .nav-dropdown-trigger .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid rgba(14, 30, 64, 0.1);
  border-radius: 12px;
  padding: var(--space-2) 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 200;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(14, 30, 64, 0.1);
}

.nav-dropdown::after {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--white);
}

.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li {
  list-style: none;
}

.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 0.45rem var(--space-5);
  color: var(--gray-600);
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  text-decoration: none;
  border-radius: 0;
}

.nav-dropdown li a:hover {
  color: var(--navy-900);
  background: var(--gray-50);
}

.nav-dropdown li a.is-current-module {
  color: var(--teal-600);
  font-weight: var(--weight-medium);
}

.nav-dropdown__num {
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  color: var(--teal-500);
  min-width: 18px;
  font-variant-numeric: tabular-nums;
}

.nav-dropdown__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: var(--space-2) 0;
}

.nav-dropdown__all {
  color: var(--teal-400) !important;
  font-weight: var(--weight-medium) !important;
  padding-left: var(--space-5) !important;
}

.nav-dropdown__all:hover {
  color: var(--teal-300) !important;
}


/* ============================================================
   06. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: background-color var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out),
              border-color var(--duration-fast) var(--ease-out),
              transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

/* Primary */
.btn--primary {
  background-color: var(--teal-500);
  color: var(--white);
  border-color: var(--teal-500);
}

.btn--primary:hover {
  background-color: var(--teal-400);
  border-color: var(--teal-400);
  box-shadow: 0 4px 14px rgba(6, 163, 196, 0.4);
  transform: translateY(-1px);
}

/* Secondary / Outline */
.btn--secondary {
  background-color: transparent;
  color: var(--teal-500);
  border-color: var(--teal-500);
}

.btn--secondary:hover {
  background-color: var(--teal-500);
  color: var(--white);
}

/* Ghost (for dark backgrounds) */
.btn--ghost {
  background-color: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.btn--ghost:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

/* Outline White (for dark backgrounds) */
.btn--outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn--outline-white:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* Outline Navy (for light backgrounds) */
.btn--outline-navy {
  background-color: transparent;
  color: var(--navy-800);
  border-color: rgba(14,30,64,0.3);
}

.btn--outline-navy:hover {
  background-color: rgba(14,30,64,0.05);
  border-color: var(--navy-800);
}

/* Dark */
.btn--dark {
  background-color: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.btn--dark:hover {
  background-color: var(--gray-100);
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* Sizes */
.btn--sm {
  font-size: var(--text-xs);
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: var(--text-base);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
}

.btn--xl {
  font-size: var(--text-lg);
  padding: 1.125rem 2.5rem;
  border-radius: var(--radius-lg);
}

.btn--full {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn--lg svg, .btn--xl svg {
  width: 20px;
  height: 20px;
}


/* ============================================================
   07. BADGES & TAGS
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  line-height: 1.5;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.badge--teal {
  background-color: rgba(6,163,196,0.12);
  color: var(--teal-400);
  border: 1px solid rgba(6,163,196,0.25);
}

.badge--indigo {
  background-color: rgba(79,70,229,0.12);
  color: var(--indigo-300);
  border: 1px solid rgba(79,70,229,0.25);
}

.badge--green {
  background-color: var(--green-50);
  color: var(--green-700);
  border: 1px solid var(--green-100);
}

.badge--amber {
  background-color: var(--amber-100);
  color: var(--amber-600);
  border: 1px solid rgba(245,158,11,0.3);
}

.badge--gray {
  background-color: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.badge--white {
  background-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--gray-600);
  background-color: var(--gray-100);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* Section eyebrow (small label above headline) */
.eyebrow {
  display: inline-block;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: var(--space-4);
}

.section--dark .eyebrow {
  color: var(--teal-300);
}


/* ============================================================
   08. CARDS
   ============================================================ */

/* Base Card */
.card {
  background-color: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: transform var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out),
              border-color var(--duration-slow) var(--ease-out);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal-200);
}

.card--flat {
  box-shadow: none;
}

.card--dark {
  background-color: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}

.card--dark:hover {
  background-color: rgba(255,255,255,0.07);
  border-color: rgba(6,163,196,0.4);
}

/* Feature Card */
.feature-card {
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-slow) var(--ease-out);
}

.feature-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--white);
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.feature-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* Module Card (used on home + modules page) */
.module-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-slow) var(--ease-out);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient, var(--module-quality));
  opacity: 0;
  transition: opacity var(--duration-slow);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}

.module-card:hover::before {
  opacity: 1;
}

.module-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  background: var(--gradient, var(--module-quality));
  flex-shrink: 0;
}

.module-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
  stroke-width: 1.75;
}

.module-card__number {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--gray-300);
  letter-spacing: var(--tracking-wide);
}

.module-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.module-card__subtitle {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  margin-bottom: var(--space-3);
}

.module-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.module-card__stats {
  display: flex;
  gap: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.module-card__stat-value {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--gray-900);
  line-height: 1;
}

.module-card__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.module-card__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--teal-600);
  margin-top: var(--space-5);
  transition: gap var(--duration-fast), color var(--duration-fast);
}

.module-card__link:hover {
  color: var(--teal-500);
  gap: var(--space-3);
}

.module-card__link svg {
  width: 16px;
  height: 16px;
}


/* ============================================================
   09. FORMS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--gray-700);
}

.form-label--required::after {
  content: ' *';
  color: var(--red-500);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: var(--text-sm);
  color: var(--gray-900);
  background-color: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--gray-400);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: var(--shadow-brand);
}

.form-input:hover:not(:focus),
.form-select:hover:not(:focus),
.form-textarea:hover:not(:focus) {
  border-color: var(--gray-300);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25em;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: var(--text-xs);
  color: var(--red-600);
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--red-500);
}

.form-group.has-error .form-error {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}


/* ============================================================
   10. STATISTICS & METRICS
   ============================================================ */

.stats-grid {
  display: grid;
  gap: var(--space-2);
}

.stats-grid--4 { grid-template-columns: repeat(4, 1fr); }
.stats-grid--5 { grid-template-columns: repeat(5, 1fr); }

.stat-item {
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.stat-item__value {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-2);
  /* Equal-width digits so count-up animations grow smoothly
     instead of jittering left/right (proportional figures shake) */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Any animated counter: lock digit widths to prevent shake on load */
[data-counter] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.stat-item__value span {
  color: var(--teal-400);
}

.stat-item__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

/* Inline stats (on light bg) */
.stat-item--light .stat-item__value {
  color: var(--gray-900);
}

.stat-item--light .stat-item__label {
  color: var(--gray-500);
}

/* Impact metric card */
.impact-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
}

.impact-card__icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-3);
}

.impact-card__value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.impact-card__label {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-snug);
}

/* Before/After comparison */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.comparison-table th {
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  text-align: left;
}

.comparison-table th:first-child {
  background: var(--gray-800);
  color: var(--white);
}

.comparison-table th:nth-child(2) {
  background: var(--gray-700);
  color: rgba(255,255,255,0.7);
}

.comparison-table th:nth-child(3) {
  background: var(--teal-600);
  color: var(--white);
}

.comparison-table td {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--gray-100);
}

.comparison-table td:first-child {
  font-weight: var(--weight-medium);
  color: var(--gray-800);
}

.comparison-table td:nth-child(2) {
  color: var(--gray-500);
}

.comparison-table td:nth-child(3) {
  font-weight: var(--weight-semibold);
  color: var(--teal-700);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .improvement {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--green-600);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}


/* ============================================================
   11. HERO SECTIONS
   ============================================================ */

.page-hero {
  position: relative;
  background-color: var(--white);
  color: var(--navy-900);
  overflow: hidden;
  padding-top: var(--space-32);
  padding-bottom: var(--space-24);
}

/* Subtle tonal gradient wash */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 75% 5%, rgba(6,163,196,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(79,70,229,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* Dot grid overlay */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14,30,64,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Animated flowing wave blobs */
.hero-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  will-change: transform, border-radius;
}

/* Wave 1 — large teal wash, top-right */
.hero-blob--1 {
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at 40% 40%,
    rgba(6, 163, 196, 0.38) 0%,
    rgba(6, 195, 180, 0.14) 45%,
    transparent 68%);
  top: -120px;
  right: -180px;
  filter: blur(60px);
  border-radius: 62% 38% 56% 44% / 54% 46% 58% 42%;
  animation: wave-morph-1 24s ease-in-out infinite;
}

/* Wave 2 — soft indigo wash, left side */
.hero-blob--2 {
  width: 700px;
  height: 620px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(99, 102, 241, 0.22) 0%,
    rgba(79, 70, 229, 0.07) 50%,
    transparent 70%);
  top: 0px;
  left: -100px;
  filter: blur(70px);
  border-radius: 44% 56% 38% 62% / 62% 38% 58% 42%;
  animation: wave-morph-2 30s ease-in-out infinite;
}

/* Wave 3 — teal-green wash, bottom-center */
.hero-blob--3 {
  width: 720px;
  height: 560px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(16, 185, 129, 0.26) 0%,
    rgba(6, 163, 196, 0.08) 50%,
    transparent 70%);
  bottom: -60px;
  left: 22%;
  filter: blur(55px);
  border-radius: 54% 46% 62% 38% / 44% 62% 38% 56%;
  animation: wave-morph-3 26s ease-in-out infinite;
}

/* Wave 4 — sky-blue accent, mid-right */
.hero-blob--4 {
  width: 500px;
  height: 460px;
  background: radial-gradient(ellipse at 50% 50%,
    rgba(56, 189, 248, 0.24) 0%,
    transparent 66%);
  top: 15%;
  right: 5%;
  filter: blur(55px);
  border-radius: 48% 52% 44% 56% / 56% 44% 60% 40%;
  animation: wave-morph-4 20s ease-in-out infinite;
}

/* Slow organic morphing — shape AND position shift together */
@keyframes wave-morph-1 {
  0%, 100% {
    border-radius: 62% 38% 56% 44% / 54% 46% 58% 42%;
    transform: translate(0px, 0px);
  }
  25% {
    border-radius: 42% 58% 44% 56% / 62% 38% 48% 52%;
    transform: translate(-35px, 45px);
  }
  50% {
    border-radius: 56% 44% 66% 34% / 44% 56% 38% 62%;
    transform: translate(30px, 70px);
  }
  75% {
    border-radius: 38% 62% 50% 50% / 58% 42% 62% 38%;
    transform: translate(50px, -25px);
  }
}

@keyframes wave-morph-2 {
  0%, 100% {
    border-radius: 44% 56% 38% 62% / 62% 38% 58% 42%;
    transform: translate(0px, 0px);
  }
  33% {
    border-radius: 62% 38% 56% 44% / 44% 56% 42% 58%;
    transform: translate(55px, -50px);
  }
  66% {
    border-radius: 34% 66% 48% 52% / 52% 48% 64% 36%;
    transform: translate(-35px, 55px);
  }
}

@keyframes wave-morph-3 {
  0%, 100% {
    border-radius: 54% 46% 62% 38% / 44% 62% 38% 56%;
    transform: translate(0px, 0px);
  }
  30% {
    border-radius: 38% 62% 44% 56% / 58% 42% 52% 48%;
    transform: translate(-55px, -45px);
  }
  65% {
    border-radius: 66% 34% 52% 48% / 38% 62% 56% 44%;
    transform: translate(45px, 30px);
  }
}

@keyframes wave-morph-4 {
  0%, 100% {
    border-radius: 48% 52% 44% 56% / 56% 44% 60% 40%;
    transform: translate(0px, 0px);
  }
  40% {
    border-radius: 60% 40% 56% 44% / 42% 58% 44% 56%;
    transform: translate(-40px, 50px);
  }
  70% {
    border-radius: 36% 64% 48% 52% / 60% 40% 52% 48%;
    transform: translate(30px, -60px);
  }
}


.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: var(--space-5);
  padding: 0.35rem 0.85rem;
  background: rgba(6,163,196,0.12);
  border: 1px solid rgba(6,163,196,0.25);
  border-radius: var(--radius-full);
}

.hero__eyebrow span {
  width: 5px;
  height: 5px;
  background: var(--teal-400);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero__headline {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-7xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--navy-900);
  max-width: 16ch;
  margin-bottom: var(--space-6);
}

.hero__headline em {
  font-style: normal;
  color: var(--teal-400);
}

.hero__subheadline {
  font-size: var(--text-xl);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  max-width: 56ch;
  margin-bottom: var(--space-10);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-16);
}

.hero__cta-note {
  font-size: var(--text-xs);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Hero stats strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(14,30,64,0.1);
  padding-top: var(--space-10);
  gap: var(--space-4);
}

.hero-stat {
  text-align: center;
}

.hero-stat__value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.hero-stat__value span {
  color: var(--teal-500);
}

.hero-stat__label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

/* Hero two-column split */
.hero__split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-12);
}

.hero__content {
  min-width: 0;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__circuit-bg {
  position: absolute;
  width: 520px;
  max-width: unset;
  height: 600px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
}

.hero__robot-img {
  width: 170px;
  max-width: 100%;
  animation: hero-float 4s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(6,163,196,0.18));
  position: relative;
  z-index: 1;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-18px); }
}

/* Ecosystem tree visual in solution section */
.ecosystem-visual {
  margin-top: var(--space-16);
  text-align: center;
}

.ecosystem-tree {
  max-width: 420px;
  width: 100%;
  opacity: 0.92;
}

/* Platform flow diagram */
.flow-diagram-wrap {
  margin-top: var(--space-16);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
}

.flow-diagram__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--teal-400);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.flow-diagram-img {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
}

/* Hero divider between hero and content */
.hero-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6,163,196,0.4), transparent);
  margin-bottom: var(--space-24);
}

/* Inner page hero (smaller) — keeps dark theme */
.page-hero--inner {
  background-color: var(--navy-950);
  color: var(--white);
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-16);
}

.page-hero--inner::before {
  background:
    radial-gradient(ellipse 80% 70% at 15% 45%, rgba(6,163,196,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(79,70,229,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 55% 85%, rgba(16,185,129,0.06) 0%, transparent 60%);
}

.page-hero--inner::after {
  background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
}

.page-hero--inner .hero__headline {
  color: var(--white);
}

.page-hero--inner .hero__subheadline {
  color: rgba(255,255,255,0.68);
}

.page-hero--inner .hero__cta-note {
  color: rgba(255,255,255,0.4);
}

.page-hero--inner .module-breadcrumb a {
  color: var(--teal-400);
}

.page-hero--inner .module-breadcrumb {
  color: rgba(255,255,255,0.45);
}

.page-hero--inner .hero__headline {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
}


/* ============================================================
   12. SECTION PATTERNS
   ============================================================ */

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section-header--left {
  text-align: left;
  margin-left: 0;
}

.section-title {
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  color: var(--gray-900);
  margin-bottom: var(--space-5);
}

.section--dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: var(--text-xl);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

.section--dark .section-subtitle {
  color: rgba(255,255,255,0.6);
}

/* Two-column layout (text + visual) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split-section--reverse {
  direction: rtl;
}

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

.split-section__content {
  max-width: 520px;
}

.split-section__content h2 {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-4xl));
  margin-bottom: var(--space-5);
}

.split-section__content p {
  margin-bottom: var(--space-6);
}

/* Step / process list */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.process-step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.process-step__number {
  width: 36px;
  height: 36px;
  background: var(--teal-500);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.process-step__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.process-step__text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

/* Checklist */
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-list li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: var(--leading-relaxed);
}

.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%2306A3C4' fill-rule='evenodd' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5l-4-4 1.41-1.41L10 13.67l6.59-6.59L18 8.5l-8 8z'/%3E%3C/svg%3E");
  background-size: 18px;
  background-repeat: no-repeat;
}

.section--dark .check-list li {
  color: rgba(255,255,255,0.75);
}

.section--dark .check-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3E%3Cpath fill='%2338D4F5' fill-rule='evenodd' d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 14.5l-4-4 1.41-1.41L10 13.67l6.59-6.59L18 8.5l-8 8z'/%3E%3C/svg%3E");
}


/* ============================================================
   13. TRUST & SOCIAL PROOF
   ============================================================ */

/* Trust bar */
.trust-bar {
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-6) 0;
}

.trust-bar__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: rgba(255,255,255,0.35);
  white-space: nowrap;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.trust-bar__logos {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-logo {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.01em;
  transition: color var(--duration-fast);
}

.trust-logo:hover {
  color: rgba(255,255,255,0.8);
}

/* Compliance badges */
.compliance-badges {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.compliance-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.75rem;
  background: rgba(6,163,196,0.08);
  border: 1px solid rgba(6,163,196,0.2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--teal-300);
}

.compliance-badge svg {
  width: 14px;
  height: 14px;
}

/* EMR integration logos */
.emr-logos {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.emr-logo {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--gray-400);
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
}

.emr-logo:hover {
  color: var(--gray-700);
  border-color: var(--gray-400);
}

.section--dark .emr-logo {
  color: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.1);
}

.section--dark .emr-logo:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.3);
}

/* Testimonial */
.testimonial-card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--space-6);
  left: var(--space-8);
  font-size: 5rem;
  line-height: 1;
  color: var(--teal-600);
  font-family: Georgia, serif;
  opacity: 0.6;
}

.testimonial-card__quote {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  line-height: var(--leading-relaxed);
  font-style: italic;
  margin-bottom: var(--space-6);
  padding-top: var(--space-6);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-400));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--white);
}

.testimonial-card__name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--white);
}

.testimonial-card__title {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}


/* ============================================================
   14. MODULE COMPONENTS (used on modules detail page)
   ============================================================ */

/* Module navigation tabs */
.module-nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  background: var(--gray-100);
  padding: var(--space-2);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-12);
}

.module-nav__tab {
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--gray-600);
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.module-nav__tab:hover {
  color: var(--gray-900);
  background: var(--white);
}

.module-nav__tab.is-active {
  background: var(--white);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
  font-weight: var(--weight-semibold);
}

.module-nav__tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Module panel */
.module-panel {
  display: none;
}

.module-panel.is-active {
  display: block;
  animation: fade-in 0.25s var(--ease-out);
}

/* Module detail header */
.module-detail-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  align-items: start;
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
}

.module-detail-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.module-detail-header__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}

.module-detail-header__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-500);
  max-width: 520px;
  line-height: var(--leading-relaxed);
}

/* Module impact stats */
.module-impact-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-12);
}

.module-impact-stat {
  background: var(--white);
  padding: var(--space-6);
  text-align: center;
}

.module-impact-stat__value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--teal-700);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.module-impact-stat__label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: var(--leading-snug);
}

/* Capability list */
.capability-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.capability-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.capability-item__number {
  width: 28px;
  height: 28px;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  margin-top: 1px;
}

.capability-item__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-1);
}

.capability-item__text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

/* ROI table */
.roi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.roi-table thead th {
  padding: var(--space-4) var(--space-5);
  font-weight: var(--weight-semibold);
  text-align: left;
}

.roi-table thead th:first-child {
  background: var(--gray-800);
  color: var(--gray-300);
}

.roi-table thead th:nth-child(2) {
  background: var(--gray-700);
  color: var(--gray-400);
}

.roi-table thead th:last-child {
  background: var(--teal-700);
  color: var(--white);
}

.roi-table tbody td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.roi-table tbody td:nth-child(3) {
  font-weight: var(--weight-semibold);
  color: var(--teal-700);
}

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


/* ============================================================
   15. PLATFORM MOCKUP (CSS-only dashboard visual)
   ============================================================ */

.platform-mockup {
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(6,163,196,0.1);
}

.mockup__topbar {
  background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.mockup__dot--red    { background: #FF5F56; }
.mockup__dot--yellow { background: #FFBD2E; }
.mockup__dot--green  { background: #27C93F; }

.mockup__title-bar {
  flex: 1;
  background: rgba(255,255,255,0.05);
  height: 22px;
  border-radius: var(--radius-sm);
  margin-left: var(--space-3);
}

.mockup__body {
  display: grid;
  grid-template-columns: 60px 1fr;
}

.mockup__sidebar {
  background: rgba(0,0,0,0.2);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-4) var(--space-2);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

.mockup__sidebar-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast);
}

.mockup__sidebar-icon.is-active {
  background: rgba(6,163,196,0.2);
}

.mockup__sidebar-icon svg {
  width: 16px;
  height: 16px;
  color: rgba(255,255,255,0.3);
}

.mockup__sidebar-icon.is-active svg {
  color: var(--teal-400);
}

.mockup__content {
  padding: var(--space-5);
}

.mockup__header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.mockup__page-title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--white);
}

.mockup__live-badge {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  color: var(--green-400);
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mockup__live-dot {
  width: 5px;
  height: 5px;
  background: var(--green-400);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.mockup__metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.mockup__metric {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
}

.mockup__metric-value {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: 1;
  margin-bottom: 3px;
}

.mockup__metric-value.--teal   { color: var(--teal-400); }
.mockup__metric-value.--green  { color: var(--green-400); }
.mockup__metric-value.--amber  { color: var(--amber-400); }

.mockup__metric-label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--weight-semibold);
}

.mockup__chart {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.mockup__bar {
  flex: 1;
  background: rgba(6,163,196,0.3);
  border-radius: 3px 3px 0 0;
  transition: background var(--duration-fast);
  min-height: 8px;
}

.mockup__bar:hover {
  background: rgba(6,163,196,0.6);
}

.mockup__bar.--tall    { height: 100%; }
.mockup__bar.--high    { height: 80%; }
.mockup__bar.--medium  { height: 65%; }
.mockup__bar.--mid-low { height: 50%; }
.mockup__bar.--low     { height: 35%; }

.mockup__bar.--teal    { background: rgba(6,163,196,0.5); }
.mockup__bar.--green   { background: rgba(16,185,129,0.4); }
.mockup__bar.--indigo  { background: rgba(99,102,241,0.4); }
.mockup__bar.--active  { background: rgba(6,163,196,0.85); }

.mockup__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.mockup__list-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
}

.mockup__list-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.mockup__list-dot.--teal   { background: var(--teal-400); }
.mockup__list-dot.--green  { background: var(--green-400); }
.mockup__list-dot.--amber  { background: var(--amber-400); }
.mockup__list-dot.--red    { background: var(--red-500); }

.mockup__list-text {
  color: rgba(255,255,255,0.55);
  flex: 1;
}

.mockup__list-value {
  color: rgba(255,255,255,0.7);
  font-weight: var(--weight-semibold);
}


/* ============================================================
   16. CTA SECTIONS
   ============================================================ */

.cta-section {
  padding: var(--space-24) 0;
  background: var(--navy-950);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 100% at 50% 0%, rgba(6,163,196,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 100%, rgba(79,70,229,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--teal-400);
  margin-bottom: var(--space-5);
}

.cta-section__title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  color: var(--white);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  margin-bottom: var(--space-5);
}

.cta-section__title em {
  font-style: normal;
  color: var(--teal-400);
}

.cta-section__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.6);
  max-width: 500px;
  margin: 0 auto var(--space-10);
  line-height: var(--leading-relaxed);
}

.cta-section__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.cta-section__footnote {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

/* Inline CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
  border: 1px solid rgba(6,163,196,0.2);
  border-radius: var(--radius-2xl);
  padding: var(--space-10) var(--space-12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.cta-banner__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--white);
  margin-bottom: var(--space-2);
}

.cta-banner__text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.6);
}

.cta-banner__buttons {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}


/* ============================================================
   17. FOOTER
   WP: Becomes footer.php | separate template part
   ============================================================ */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-8);
}

.footer__brand-logo {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--gray-900);
  letter-spacing: var(--tracking-tight);
  margin-bottom: var(--space-3);
}

.footer__brand-logo-img {
  height: 56px;
  width: auto;
  margin-bottom: var(--space-3);
}

.footer__brand-tagline {
  font-size: var(--text-sm);
  color: var(--teal-600);
  margin-bottom: var(--space-5);
  font-weight: var(--weight-medium);
}

.footer__brand-description {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

.footer__compliance {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.footer__compliance-badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--gray-600);
  background: var(--gray-100);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--gray-900);
  margin-bottom: var(--space-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--gray-600);
  transition: color var(--duration-fast);
}

.footer__links a:hover {
  color: var(--teal-600);
}

.footer__contact-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  margin-bottom: var(--space-4);
}

.footer__contact-icon {
  width: 18px;
  height: 18px;
  color: var(--teal-500);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-text {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

.footer__contact-text a {
  color: var(--gray-700);
  transition: color var(--duration-fast);
}

.footer__contact-text a:hover {
  color: var(--teal-600);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--gray-500);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-6);
}

.footer__legal-links a {
  font-size: var(--text-xs);
  color: var(--gray-500);
  transition: color var(--duration-fast);
}

.footer__legal-links a:hover {
  color: var(--teal-600);
}


/* ============================================================
   18. PAGE-SPECIFIC STYLES
   ============================================================ */

/* ─ Home: Problem Grid ─ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.problem-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.problem-card__icon {
  width: 44px;
  height: 44px;
  background: rgba(239,68,68,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.problem-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--red-500);
}

.problem-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--white);
  margin-bottom: var(--space-3);
}

.problem-card__text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: var(--leading-relaxed);
}

/* ─ Home: AI Flow Steps ─ */
.ai-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
}

.ai-flow__step {
  padding: var(--space-8) var(--space-6);
  border-right: 1px solid var(--color-border);
  position: relative;
}

.ai-flow__step:last-child {
  border-right: none;
}

.ai-flow__step-number {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--space-3);
}

.ai-flow__step-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--teal-500);
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-snug);
}

.ai-flow__step-text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

.ai-flow__step-icon {
  position: absolute;
  bottom: var(--space-5);
  right: var(--space-5);
  width: 32px;
  height: 32px;
  color: var(--gray-200);
}

/* ─ Home: Why Unity grid ─ */
.why-unity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.why-card {
  display: flex;
  gap: var(--space-5);
  padding: var(--space-7);
  background: var(--gray-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  align-items: flex-start;
  transition: all var(--duration-slow);
}

.why-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-200);
}

.why-card__icon {
  width: 44px;
  height: 44px;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--teal-600);
  stroke-width: 1.75;
}

.why-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.why-card__text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

/* ─ VBC: Revenue breakdown ─ */
.revenue-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.revenue-card {
  text-align: center;
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-2xl);
  background: var(--white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.revenue-card__value {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--teal-700);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.revenue-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.revenue-card__text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

/* ─ Contact page layout ─ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
}

.contact-info-card {
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

.contact-info-card .section-title {
  color: var(--white);
}

.demo-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--space-6);
}

.demo-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.demo-step__number {
  width: 32px;
  height: 32px;
  background: rgba(6,163,196,0.15);
  border: 1px solid rgba(6,163,196,0.3);
  color: var(--teal-400);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

.demo-step__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--white);
  margin-bottom: var(--space-1);
}

.demo-step__text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  line-height: var(--leading-relaxed);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--gray-900);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
  transition: background var(--duration-fast);
}

.faq-trigger:hover {
  background: var(--gray-50);
}

.faq-trigger.is-open {
  background: var(--teal-50);
  color: var(--teal-800);
}

.faq-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform var(--duration-slow);
}

.faq-trigger.is-open svg {
  transform: rotate(180deg);
  color: var(--teal-600);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  background: var(--white);
}

.faq-trigger.is-open + .faq-answer {
  display: block;
}

/* Platform page: How it works flow */
.platform-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--white);
}

.platform-flow__step {
  padding: var(--space-8) var(--space-7);
  border-right: 1px solid var(--gray-100);
  position: relative;
}

.platform-flow__step:last-child {
  border-right: none;
}

.platform-flow__step::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal-400);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  z-index: 1;
}

.platform-flow__step:last-child::after {
  display: none;
}

.platform-flow__step-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--space-3);
}

.platform-flow__step-number {
  font-size: var(--text-6xl);
  font-weight: var(--weight-extrabold);
  color: var(--teal-500);
  line-height: 1;
  margin-bottom: var(--space-3);
}

.platform-flow__step-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--teal-500);
  margin-bottom: var(--space-3);
}

.platform-flow__step-text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

/* About: Role-specific cards */
.role-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.role-card {
  background: var(--gray-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  transition: all var(--duration-slow);
}

.role-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.role-card__role {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: var(--space-2);
}

.role-card__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.role-card__text {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}


/* ============================================================
   19. SKIP NAV & ACCESSIBILITY
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-toast);
  background: var(--teal-500);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: var(--space-4);
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal-500);
  outline-offset: 3px;
}

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


/* ============================================================
   20. ANIMATIONS & TRANSITIONS
   ============================================================ */

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-right {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(6,163,196,0); }
  50%       { box-shadow: 0 0 20px 4px rgba(6,163,196,0.2); }
}

/* Scroll-triggered animations */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate="slide-right"] {
  transform: translateX(-20px);
}

[data-animate="scale-in"] {
  transform: scale(0.97);
}

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
[data-animate-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
}

[data-animate-stagger].is-visible > *:nth-child(1) { opacity:1; transform:none; transition-delay: 0ms; }
[data-animate-stagger].is-visible > *:nth-child(2) { opacity:1; transform:none; transition-delay: 80ms; }
[data-animate-stagger].is-visible > *:nth-child(3) { opacity:1; transform:none; transition-delay: 160ms; }
[data-animate-stagger].is-visible > *:nth-child(4) { opacity:1; transform:none; transition-delay: 240ms; }
[data-animate-stagger].is-visible > *:nth-child(5) { opacity:1; transform:none; transition-delay: 320ms; }
[data-animate-stagger].is-visible > *:nth-child(6) { opacity:1; transform:none; transition-delay: 400ms; }
[data-animate-stagger].is-visible > *:nth-child(7) { opacity:1; transform:none; transition-delay: 480ms; }
[data-animate-stagger].is-visible > *:nth-child(8) { opacity:1; transform:none; transition-delay: 560ms; }

/* Hero entrance animations */
.hero-animate-1 { animation: fade-up 0.7s var(--ease-out) 0.1s both; }
.hero-animate-2 { animation: fade-up 0.7s var(--ease-out) 0.2s both; }
.hero-animate-3 { animation: fade-up 0.7s var(--ease-out) 0.35s both; }
.hero-animate-4 { animation: fade-up 0.7s var(--ease-out) 0.5s both; }
.hero-animate-5 { animation: fade-up 0.7s var(--ease-out) 0.65s both; }


/* ============================================================
   21. UTILITY CLASSES
   ============================================================ */

.hidden   { display: none; }
.block    { display: block; }
.inline   { display: inline; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

.w-full   { width: 100%; }
.max-w-prose { max-width: 65ch; }

.font-medium   { font-weight: var(--weight-medium); }
.font-semibold { font-weight: var(--weight-semibold); }
.font-bold     { font-weight: var(--weight-bold); }
.font-extrabold { font-weight: var(--weight-extrabold); }

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-8) 0;
}

.divider--dark {
  background: rgba(255,255,255,0.07);
}

.highlight {
  background: linear-gradient(120deg, rgba(6,163,196,0.15), rgba(6,163,196,0.05));
  border-radius: var(--radius-sm);
  padding: 0 4px;
  color: var(--teal-700);
}

.icon-inline {
  display: inline-flex;
  vertical-align: middle;
  width: 1em;
  height: 1em;
}

/* ============================================================
   Connected Domains — "Elevated Gradient Donut"
   Clinical · Operational · Financial as one closed loop
   (replaces the old .domain-wheel / .domain-example rules)
   ============================================================ */
.loop-figure{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:400px;
  margin-inline:auto;
  aspect-ratio:1 / 1;
}

/* soft brand glow behind the donut (echoes the hero blobs) */
.loop-figure::before{
  content:"";
  position:absolute;
  inset:8%;
  border-radius:var(--radius-full);
  background:
    radial-gradient(closest-side, rgba(11,197,235,.22), rgba(11,197,235,0) 70%),
    radial-gradient(closest-side at 70% 75%, rgba(79,70,229,.16), rgba(79,70,229,0) 70%);
  filter:blur(6px);
  z-index:0;
}

.loop-figure__svg{
  position:relative;
  z-index:1;
  width:100%;
  height:auto;
  overflow:visible;
}

/* clockwise flow ring (self-driving, no JS) */
.loop-flow{
  transform-box:fill-box;
  transform-origin:center;
  animation:loop-spin 14s linear infinite;
}
@keyframes loop-spin{ to{ transform:rotate(360deg); } }

/* gentle breathing on the soft glow once revealed */
@keyframes loop-breathe{
  0%,100%{ opacity:.85; transform:scale(1); }
  50%{ opacity:1; transform:scale(1.03); }
}
.loop-figure[data-animate].is-visible::before{
  animation:loop-breathe 6s var(--ease-out) infinite;
}

/* segments draw on once the figure is revealed */
.loop-seg{
  stroke-dasharray:256.389 560.425; /* one third of a r=130 ring, minus a 7° gap */
  stroke-dashoffset:256.389;
  transition:stroke-dashoffset 1100ms var(--ease-out);
}
.loop-figure.is-visible .loop-seg{ stroke-dashoffset:0; }
.loop-figure.is-visible .loop-seg--2{ transition-delay:140ms; }
.loop-figure.is-visible .loop-seg--3{ transition-delay:280ms; }

/* center medallion text */
.loop-center-eyebrow{
  font-family:var(--font-sans);
  font-size:11px;
  font-weight:var(--weight-bold);
  letter-spacing:.14em;
  fill:var(--teal-600);
}
.loop-center-title{
  font-family:var(--font-sans);
  font-size:19px;
  font-weight:var(--weight-extrabold);
  letter-spacing:-.015em;
  fill:var(--gray-900);
}
.loop-center-sub{
  font-family:var(--font-sans);
  font-size:12px;
  font-weight:var(--weight-medium);
  fill:var(--gray-500);
}

/* frosted glass label pills positioned around the donut */
.loop-pill{
  position:absolute;
  z-index:2;
  display:flex;
  align-items:center;
  gap:.65rem;
  padding:.6rem 1rem;
  background:rgba(255,255,255,.95);
  border:1px solid var(--color-border);
  border-radius:var(--radius-full);
  box-shadow:var(--shadow-md);
  white-space:nowrap;
  opacity:0;
  transform:translateY(6px) scale(.96);
  transition:opacity 500ms var(--ease-out), transform 500ms var(--ease-spring);
}
.loop-figure.is-visible .loop-pill{ opacity:1; transform:none; }
.loop-figure.is-visible .loop-pill--clinical{ transition-delay:520ms; }
.loop-figure.is-visible .loop-pill--operational{ transition-delay:640ms; }
.loop-figure.is-visible .loop-pill--financial{ transition-delay:760ms; }

.loop-pill__dot{
  width:13px; height:13px;
  border-radius:var(--radius-full);
  flex-shrink:0;
  box-shadow:0 0 0 3px rgba(255,255,255,.7);
}
.loop-pill--clinical .loop-pill__dot{ background:var(--teal-400); }
.loop-pill--operational .loop-pill__dot{ background:var(--indigo-500); }
.loop-pill--financial .loop-pill__dot{ background:var(--green-500); }

.loop-pill__text{ display:flex; flex-direction:column; line-height:1.15; text-align:left; }
.loop-pill__name{ font-size:var(--text-base); font-weight:var(--weight-extrabold); color:var(--gray-900); letter-spacing:.01em; }
.loop-pill__metric{ font-size:var(--text-xs); font-weight:var(--weight-medium); color:var(--gray-600); }

/* placement (percentages relative to the square figure) —
   each pill is centered on the midpoint of its own colored segment:
   Clinical ≈ 2 o'clock, Operational = 6 o'clock, Financial ≈ 10 o'clock */
.loop-pill--clinical{
  top:31%; left:82%;
  transform:translate(-50%,-50%) translateY(6px) scale(.96);
}
.loop-figure.is-visible .loop-pill--clinical{ transform:translate(-50%,-50%); }
.loop-pill--financial{
  top:31%; left:18%;
  transform:translate(-50%,-50%) translateY(6px) scale(.96);
}
.loop-figure.is-visible .loop-pill--financial{ transform:translate(-50%,-50%); }
.loop-pill--operational{
  bottom:1%; left:50%;
  transform:translateX(-50%) translateY(6px) scale(.96);
}
.loop-figure.is-visible .loop-pill--operational{ transform:translateX(-50%); }

/* worked-example "in practice" card */
.loop-proof{
  margin-top:var(--space-6);
  padding:var(--space-5) var(--space-6);
  background:linear-gradient(180deg, var(--white), var(--teal-50));
  border:1px solid var(--color-border);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-sm);
  position:relative;
  overflow:hidden;
}
.loop-proof::before{
  content:"";
  position:absolute; left:0; top:0; bottom:0; width:4px;
  background:linear-gradient(180deg, var(--teal-400), var(--indigo-400) 55%, var(--green-400));
}
.loop-proof__label{
  display:inline-flex; align-items:center; gap:.4rem;
  font-size:var(--text-xs); font-weight:var(--weight-bold);
  text-transform:uppercase; letter-spacing:var(--tracking-wider);
  color:var(--teal-700); margin-bottom:var(--space-3);
}
.loop-proof__label::before{
  content:""; width:7px; height:7px; border-radius:var(--radius-full);
  background:var(--teal-500);
  box-shadow:0 0 0 3px rgba(6,163,196,.18);
}
.loop-proof__chain{
  display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .55rem;
  margin:0; font-size:var(--text-sm);
}
.loop-tag{
  display:inline-flex; align-items:baseline; gap:.4rem;
  padding:.28rem .6rem; border-radius:var(--radius-full);
  font-weight:var(--weight-semibold); font-size:var(--text-sm);
  border:1px solid transparent;
}
.loop-tag small{
  font-size:.7rem; font-weight:var(--weight-bold);
  text-transform:uppercase; letter-spacing:.04em; opacity:.75;
}
.loop-tag--op{ background:rgba(79,70,229,.08); color:var(--indigo-600); border-color:rgba(79,70,229,.18); }
.loop-tag--clin{ background:rgba(11,197,235,.10); color:var(--teal-700); border-color:rgba(6,163,196,.22); }
.loop-tag--fin{ background:rgba(16,185,129,.10); color:var(--green-600); border-color:rgba(16,185,129,.22); }
.loop-arrow{ color:var(--gray-400); font-weight:var(--weight-bold); flex-shrink:0; }
.loop-proof__note{
  margin:var(--space-3) 0 0;
  font-size:var(--text-sm); font-weight:var(--weight-semibold);
  color:var(--gray-700);
}
.loop-proof__note strong{ color:var(--teal-700); }

/* ── dark-section variant (matches the site's navy sections) ── */
.section--dark .highlight{
  color:var(--teal-300);
  background:linear-gradient(120deg, rgba(11,197,235,.22), rgba(11,197,235,.06));
}
.section--dark .loop-proof{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.12);
  box-shadow:none;
}
.section--dark .loop-proof__label{ color:var(--teal-300); }
.section--dark .loop-proof__note{ color:rgba(255,255,255,.78); }
.section--dark .loop-proof__note strong{ color:var(--teal-300); }
.section--dark .loop-tag--op{ background:rgba(99,102,241,.18); color:var(--indigo-200); border-color:rgba(99,102,241,.38); }
.section--dark .loop-tag--clin{ background:rgba(11,197,235,.16); color:var(--teal-200); border-color:rgba(11,197,235,.38); }
.section--dark .loop-tag--fin{ background:rgba(16,185,129,.18); color:var(--green-400); border-color:rgba(16,185,129,.38); }
.section--dark .loop-arrow{ color:rgba(255,255,255,.45); }

/* ── stack to one column (matches site’s 1024 collapse + safety at 900) ── */
@media (max-width:900px){
  .split-section{ grid-template-columns:1fr; gap:var(--space-10); }
  .loop-figure{ max-width:360px; }
}

/* ── small screens: pills reflow into a clean centered legend below the donut ── */
@media (max-width:560px){
  .loop-figure{
    max-width:340px;
    aspect-ratio:auto;
    flex-direction:column;
  }
  .loop-figure__svg{ max-width:300px; }
  .loop-pill{
    position:static;
    transform:none !important;
    opacity:1 !important;
    background:var(--white);
    box-shadow:var(--shadow-sm);
    transition:none;
    margin-top:var(--space-3);
  }
  .loop-pill--operational{ left:auto; }
}

/* respect reduced-motion */
@media (prefers-reduced-motion:reduce){
  .loop-flow{ animation:none; }
  .loop-figure[data-animate].is-visible::before{ animation:none; }
  .loop-seg{ transition:none; stroke-dashoffset:0; }
  .loop-pill{ transition:none; }
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-indigo {
  background: linear-gradient(135deg, var(--indigo-300), var(--teal-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============================================================
   22. RESPONSIVE BREAKPOINTS
   Mobile-first: base styles = smallest, @media = larger
   WP: Breakpoints align with WordPress block editor widths
   ============================================================ */

/* ── Tablet & below (≤1024px) ── */
@media (max-width: 1024px) {

  :root {
    --container-pad: clamp(1.75rem, 4vw, 2.5rem);
  }

  .hero__subheadline { font-size: var(--text-lg); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero__split { grid-template-columns: 1fr; }
  .hero__visual { display: none; }

  .stats-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid--5 { grid-template-columns: repeat(3, 1fr); }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .ai-flow,
  .platform-flow { grid-template-columns: repeat(2, 1fr); }

  .ai-flow__step,
  .platform-flow__step { border-right: none; border-bottom: 1px solid var(--gray-100); }

  .platform-flow__step::after { display: none; }

  .split-section {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .split-section--reverse {
    direction: ltr;
  }

  .contact-layout { grid-template-columns: 1fr; }

  .module-impact-stats { grid-template-columns: repeat(3, 1fr); }

  .module-detail-header { grid-template-columns: 1fr; }

  .platform-mockup .mockup__metric-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner__buttons {
    justify-content: center;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  :root {
    --nav-height: 68px;
    --container-pad: 1.25rem;
  }

  /* Navigation */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    background: var(--navy-950);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    transform: translateX(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    z-index: var(--z-overlay);
  }

  .nav-menu.is-open {
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }

  .nav-links a {
    font-size: var(--text-xl);
    padding: var(--space-3) var(--space-6);
  }

  /* Mobile dropdown */
  .nav-has-dropdown {
    width: 100%;
    text-align: center;
  }

  .nav-dropdown-trigger {
    font-size: var(--text-xl);
    padding: var(--space-3) var(--space-6);
    width: 100%;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
  }

  .nav-dropdown {
    position: static;
    transform: none !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.04);
    margin-top: var(--space-1);
    width: 100%;
    min-width: unset;
  }

  .nav-dropdown::before,
  .nav-dropdown::after {
    display: none;
  }

  .nav-has-dropdown.is-open .nav-dropdown {
    max-height: 500px;
  }

  .nav-dropdown li a {
    font-size: var(--text-base);
    justify-content: center;
    padding: 0.5rem var(--space-4);
  }

  .nav-cta {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
    width: 100%;
    padding: 0 var(--space-8);
  }

  .nav-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Hero */
  .page-hero {
    padding-top: calc(var(--nav-height) + var(--space-12));
    padding-bottom: var(--space-16);
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
    padding-top: var(--space-8);
  }

  .hero__ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__ctas .btn {
    width: 100%;
    justify-content: center;
  }

  /* Grids */
  .grid--2,
  .grid--3,
  .grid--4      { grid-template-columns: 1fr; }
  .grid--auto-3,
  .grid--auto-4 { grid-template-columns: 1fr; }

  .why-unity-grid  { grid-template-columns: 1fr; }
  .revenue-cards   { grid-template-columns: 1fr; }
  .problem-grid    { grid-template-columns: 1fr; }
  .role-cards      { grid-template-columns: 1fr; }

  .ai-flow,
  .platform-flow   { grid-template-columns: 1fr; }

  /* Stats */
  .stats-grid--4,
  .stats-grid--5   { grid-template-columns: repeat(2, 1fr); }

  .module-impact-stats { grid-template-columns: repeat(2, 1fr); }

  /* Form */
  .form-grid       { grid-template-columns: 1fr; }

  /* Module nav tabs */
  .module-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-1);
  }

  .module-nav__tab {
    flex: 0 0 auto;
    min-width: auto;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }

  /* Platform mockup */
  .platform-mockup .mockup__body {
    grid-template-columns: 1fr;
  }

  .platform-mockup .mockup__sidebar {
    display: none;
  }

  .platform-mockup .mockup__metric-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* CTA section */
  .cta-section__buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Typography */
  .section-title {
    font-size: var(--text-2xl);
  }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero__cta-note {
    display: none;
  }
}


/* ============================================================
   23. SUPPLEMENTAL COMPONENTS
   (Added for modules, value-based-care, about, contact pages)
   ============================================================ */

/* ── Section header BEM aliases ──────────────────────────── */
.section-header__eyebrow {
  display: inline-block;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: var(--space-4);
}

.section-header__title {
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-snug);
  color: var(--gray-900);
  margin-bottom: var(--space-5);
}

.section-header__subtitle {
  font-size: var(--text-xl);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

/* Allow section-header to have dark text on navy sections */
.section--dark .section-header__title   { color: var(--white); }
.section--dark .section-header__subtitle { color: rgba(255,255,255,0.6); }
.section--dark .section-header__eyebrow  { color: var(--teal-300); }

/* Hero CTA row (singular, for inner pages) */
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

/* ── Problem card (light-bg variant) ─────────────────────── */
/* Override dark styles when used on light sections */
.section .problem-card {
  background: var(--white);
  border-color: var(--color-border);
  box-shadow: var(--shadow-card);
}

.section .problem-card__title {
  color: var(--gray-900);
}

.section .problem-card__text {
  color: var(--gray-500);
}

/* ── VBC Pillars ─────────────────────────────────────────── */
.vbc-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.vbc-pillar {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--space-8);
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  align-items: start;
  transition: all var(--duration-slow);
}

.vbc-pillar:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}

.vbc-pillar__number {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--gray-100);
  line-height: 1;
  text-align: center;
}

.vbc-pillar__content {
  display: flex;
  gap: var(--space-5);
  align-items: start;
}

.vbc-pillar__icon {
  width: 44px;
  height: 44px;
  background: var(--teal-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal-600);
}

.vbc-pillar__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.vbc-pillar__text {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.vbc-pillar__impact {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.85rem;
  background: var(--teal-50);
  border: 1px solid rgba(6,163,196,0.2);
  border-radius: var(--radius-full);
}

.vbc-pillar__impact-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--gray-600);
}

.vbc-pillar__impact-value {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--teal-700);
}

/* ── ROI Cards (VBC page) ────────────────────────────────── */
.roi-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.roi-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-slow);
}

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

.roi-card--quality { border-top: 3px solid var(--teal-500); }
.roi-card--risk    { border-top: 3px solid var(--indigo-500); }
.roi-card--savings { border-top: 3px solid var(--green-500); }

.roi-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.roi-card--quality .roi-card__icon { background: var(--teal-50);   color: var(--teal-600); }
.roi-card--risk    .roi-card__icon { background: rgba(79,70,229,0.08); color: var(--indigo-600); }
.roi-card--savings .roi-card__icon { background: var(--green-50);  color: var(--green-700); }

.roi-card__category {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--gray-500);
  margin-bottom: var(--space-2);
}

.roi-card__amount {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: var(--tracking-tight);
}

.roi-card--quality .roi-card__amount { color: var(--teal-700); }
.roi-card--risk    .roi-card__amount { color: var(--indigo-700); }
.roi-card--savings .roi-card__amount { color: var(--green-700); }

.roi-card__description {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}

.roi-card__drivers {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.roi-card__drivers li::before {
  content: '✓  ';
  color: var(--teal-500);
  font-weight: var(--weight-bold);
}

/* ── ROI Total Banner ────────────────────────────────────── */
.roi-total-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-10);
  background: var(--navy-950);
  border: 1px solid rgba(6,163,196,0.2);
  border-radius: var(--radius-2xl);
}

.roi-total-banner__label {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--white);
  margin-bottom: var(--space-1);
}

.roi-total-banner__sublabel {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

.roi-total-banner__amount {
  text-align: right;
}

.roi-total-banner__amount [data-counter],
.roi-total-banner__amount span:first-child {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--teal-400);
  line-height: 1;
  display: block;
}

.roi-total-banner__note {
  font-size: var(--text-sm);
  color: var(--gray-400);
  display: block;
  margin-top: var(--space-1);
}

/* ── Efficiency Metrics ──────────────────────────────────── */
.efficiency-metric {
  padding: var(--space-6);
  background: var(--gray-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.efficiency-metric__value {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--teal-700);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.efficiency-metric__label {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--gray-800);
  margin-bottom: var(--space-3);
}

.efficiency-metric__description {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

/* ── Comparison table column classes ─────────────────────── */
.comparison-table .col-before {
  background: var(--gray-50);
  color: var(--gray-500);
}

.comparison-table .col-after {
  background: rgba(6,163,196,0.04);
  color: var(--teal-700);
  font-weight: var(--weight-semibold);
}

.comparison-table .col-before,
.comparison-table .col-after {
  text-align: center;
}

.comparison-table th.col-before {
  background: var(--gray-600);
  color: rgba(255,255,255,0.8);
  text-align: center;
}

.comparison-table th.col-after {
  background: var(--teal-600);
  color: var(--white);
  text-align: center;
}

.change-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: var(--weight-bold);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: var(--space-1);
  vertical-align: middle;
}

.change-badge--up {
  background: var(--green-50);
  color: var(--green-700);
}

.change-badge--down {
  background: rgba(99,102,241,0.1);
  color: var(--indigo-600);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* ── Stats grid 2×2 variant ──────────────────────────────── */
.stats-grid--2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.stats-grid__item {
  padding: var(--space-6);
  background: var(--navy-900);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  text-align: center;
}

.stats-grid__value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--teal-400);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stats-grid__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: var(--leading-snug);
}

/* Testimonial card aliases for value-based-care page */
.testimonial-card__attribution {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-card__org {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}

/* ── Leadership Cards (About page) ──────────────────────── */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.leader-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}

.leader-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

.leader-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--gray-100);
  display: block;
  margin: 0 auto var(--space-2);
}

.leader-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.leader-card__avatar--indigo {
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-700));
}

.leader-card__avatar--green {
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
}

.leader-card__avatar span {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--white);
  letter-spacing: 0.05em;
}

.leader-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.leader-card__name {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  margin: 0;
  text-align: center;
}

.leader-card__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--teal-600);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  text-align: center;
}

.leader-card__bio {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  margin: var(--space-2) 0 0;
  flex: 1;
}

.leader-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--teal-600);
  text-decoration: none;
  margin-top: var(--space-3);
  transition: color 0.15s;
}

.leader-card__linkedin:hover {
  color: var(--teal-700);
}

@media (max-width: 768px) {
  .leadership-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Serve Cards (About page) ────────────────────────────── */
.serve-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-8);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  transition: all var(--duration-slow);
}

.serve-card:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
}

.serve-card__icon {
  width: 52px;
  height: 52px;
  background: var(--teal-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal-600);
}

.serve-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.serve-card__text {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
}

/* ── Integration Grid (About page) ──────────────────────── */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.integration-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--duration-slow);
}

.integration-tile:hover {
  border-color: var(--teal-200);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.integration-tile__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  color: var(--white);
  letter-spacing: -0.02em;
}

.integration-tile__name {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--gray-700);
  line-height: var(--leading-snug);
}

.integration-tile__status {
  font-size: 0.6rem;
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-600);
}

/* ── Feature card highlight variant ─────────────────────── */
.feature-card--highlight {
  border-color: rgba(6,163,196,0.15);
  background: rgba(6,163,196,0.02);
}

.feature-card--highlight:hover {
  border-color: var(--teal-300);
  background: var(--white);
}

/* ── Contact page ────────────────────────────────────────── */
.contact-section {
  padding-block: var(--space-16);
}

.contact-form-col {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
}

.contact-form-col__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-2);
}

.contact-form-col__subtitle {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: sticky;
  top: calc(var(--nav-height) + var(--space-6));
}

/* ── Sidebar Cards ───────────────────────────────────────── */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
}

.sidebar-card--dark {
  background: var(--navy-900);
  border-color: rgba(255,255,255,0.08);
}

.sidebar-card__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.sidebar-card--dark .sidebar-card__title {
  border-bottom-color: rgba(255,255,255,0.08);
}

.sidebar-card__title--light {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.08);
}

.sidebar-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.sidebar-step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.sidebar-step__number {
  width: 28px;
  height: 28px;
  background: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid rgba(6,163,196,0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  margin-top: 2px;
}

.sidebar-step__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--gray-800);
  margin-bottom: var(--space-1);
}

.sidebar-step__text {
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: var(--leading-relaxed);
}

/* ── Form additions ──────────────────────────────────────── */
.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-required {
  color: var(--red-500);
  font-weight: var(--weight-semibold);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--gray-400);
  font-weight: var(--weight-normal);
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-3);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  cursor: pointer;
}

.form-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal-500);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.form-submit-note {
  font-size: var(--text-xs);
  color: var(--gray-400);
  text-align: center;
  margin-top: var(--space-3);
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* ── CTA section compact variant ─────────────────────────── */
.cta-section--compact {
  padding: var(--space-16) 0;
}

/* ── Partner cards (partners.html) ───────────────────────── */
.partner-card {
  display: flex;
  gap: var(--space-8);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  margin-bottom: var(--space-8);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.partner-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.partner-card--alt {
  background: var(--gray-50);
}
.partner-card__logo-wrap {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.partner-card__logo-wrap--img {
  width: 320px;
  height: 210px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  flex-shrink: 0;
}
.partner-card__logo-wrap--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.partner-card__body {
  flex: 1;
  min-width: 0;
}
.partner-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}
.partner-card__name {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--gray-900);
  margin: 0 0 var(--space-2);
}
.partner-card__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50);
  border: 1px solid rgba(6,163,196,0.2);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.75rem;
}
.partner-card__badge--blue {
  color: #0078d4;
  background: #eff6ff;
  border-color: rgba(0,120,212,0.2);
}
.partner-card__desc {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}
.partner-card__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.partner-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--gray-700);
  line-height: var(--leading-snug);
}
.partner-feature svg {
  color: var(--teal-500);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .partner-card { flex-direction: column; gap: var(--space-5); padding: var(--space-6); }
  .partner-card__header { flex-direction: column; }
  .partner-card__features { grid-template-columns: 1fr; }
}

/* ── Responsive for supplemental components ──────────────── */
@media (max-width: 1024px) {
  .integration-grid { grid-template-columns: repeat(3, 1fr); }
  .roi-cards        { grid-template-columns: 1fr; }
  .vbc-pillar       { grid-template-columns: 1fr; }
  .vbc-pillar__number { display: none; }
  .roi-total-banner { flex-direction: column; text-align: center; }
  .roi-total-banner__amount { text-align: center; }
  .contact-sidebar  { position: static; }
}

@media (max-width: 768px) {
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid--2x2  { grid-template-columns: 1fr 1fr; }
  .form-row--2      { grid-template-columns: 1fr; }
  .serve-card       { flex-direction: column; }
  .vbc-pillar__content { flex-direction: column; }
  .contact-form-col { padding: var(--space-6); }
  .roi-total-banner__amount [data-counter],
  .roi-total-banner__amount span:first-child { font-size: var(--text-4xl); }
}

@media (max-width: 480px) {
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .module-impact-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Legal / policy pages (privacy, terms, HIPAA, accessibility)
   ============================================================ */
.legal{ max-width:780px; margin-inline:auto; }
.legal > h2:first-of-type{ margin-top:0; }
.legal h2{ font-size:var(--text-2xl); font-weight:var(--weight-bold); color:var(--gray-900); margin:var(--space-10) 0 var(--space-4); letter-spacing:var(--tracking-snug); }
.legal h3{ font-size:var(--text-lg); font-weight:var(--weight-semibold); color:var(--gray-900); margin:var(--space-6) 0 var(--space-2); }
.legal p, .legal li{ color:var(--color-text-secondary); line-height:var(--leading-relaxed); }
.legal p{ margin-bottom:var(--space-4); }
.legal ul{ padding-left:var(--space-6); margin:0 0 var(--space-4); }
.legal li{ margin-bottom:var(--space-2); }
.legal a{ color:var(--teal-600); }
.legal a:hover{ color:var(--teal-500); }
.legal strong{ color:var(--gray-900); }
.legal__updated{ display:block; color:rgba(255,255,255,0.55); font-size:var(--text-sm); margin-top:var(--space-3); }
