/* ==========================================================================
   INDIQUER RCM — OUTGROWTH & OUTROWD-INSPIRED DESIGN SYSTEM
   Theme: Refined Warm Off-White, Radiant Coral Accent, Elevated Floating Widgets
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-page: #F5F6F8;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F0F2F5;
  --bg-muted: #EAECEF;
  --bg-dark: #18181B;
  --bg-dark-card: #202024;
  --bg-dark-input: #2B2C30;

  /* Accent Colors */
  --coral-primary: #FA5D29;
  --coral-light: #FFEDE8;
  --coral-hover: #E44D1C;
  --amber-accent: #FBBF24;
  --amber-dark: #D97706;
  --green-accent: #10B981;
  --green-light: #ECFDF5;
  --blue-accent: #3B82F6;
  --blue-light: #EFF6FF;

  /* Neutral Text */
  --text-main: #14171A;
  --text-heading: #0F1115;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-inverse: #FFFFFF;

  /* Borders & Shadows */
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-hover: rgba(0, 0, 0, 0.12);
  --border-dark: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 30px -8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 45px -12px rgba(0, 0, 0, 0.09), 0 0 1px rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Radii */
  --radius-pill: 9999px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
}

/* Container constraints */
.content-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

p {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Signature Two-Tone Heading Accent from Outcrowd */
.hl {
  color: var(--coral-primary);
  display: inline;
}

/* Badges & Pills */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--coral-light);
  color: var(--coral-primary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral-primary);
  box-shadow: 0 0 0 3px rgba(250, 93, 41, 0.2);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.tag-number {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coral-light);
  font-size: 11px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
  outline: none;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
  box-shadow: 0 8px 20px rgba(24, 24, 27, 0.15);
}

.btn-dark:hover {
  background: #2a2a30;
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(24, 24, 27, 0.22);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-coral {
  background: var(--coral-primary);
  color: var(--text-inverse);
  box-shadow: 0 8px 22px rgba(250, 93, 41, 0.28);
}

.btn-coral:hover {
  background: var(--coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(250, 93, 41, 0.35);
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   SITE HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(245, 246, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: padding var(--transition-fast), background var(--transition-fast);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.site-logo-img {
  height: 38px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .site-logo-img {
  transform: scale(1.03);
}

.footer-logo-img {
  height: 48px;
  max-width: 190px;
}

.logo-rcm-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--coral-light);
  color: var(--coral-primary);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  align-self: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 18px);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px clamp(12px, 1.3vw, 20px);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.nav-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-heading);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--coral-primary);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  white-space: nowrap;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
}

.phone-link svg {
  flex-shrink: 0;
}

.phone-link:hover {
  color: var(--coral-primary);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   HERO SECTION & FLOATING WIDGETS
   ========================================================================== */

.hero-section {
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}

.hero-header {
  max-width: 880px;
  margin: 0 auto 50px;
}

.hero-title {
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  font-weight: 800;
}

.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero Widgets Outer Presentation Frame */
.hero-widgets-frame {
  margin-top: 40px;
  background: #E8EAEE;
  border-radius: 36px;
  padding: 24px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}

.hero-widgets-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  scroll-snap-type: x mandatory;
}

.hero-widgets-track::-webkit-scrollbar {
  height: 6px;
}

.hero-widgets-track::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

/* Individual Floating Widget Card (Outcrowd Signature Design) */
.widget-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 195px;
  flex: 1 0 205px;
  min-width: 205px;
  scroll-snap-align: start;
  text-align: left;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.widget-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card-caption {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.card-sub {
  display: block;
  font-size: 11px;
  color: var(--text-light);
}

.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.widget-action-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: grid;
  place-items: center;
  color: var(--text-muted);
}

.metric-hero-val {
  font-size: clamp(20px, 1.7vw, 24px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin: 10px 0 6px;
  white-space: nowrap;
}

.metric-hero-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
}

.sub-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.25;
}

.trend-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
}

.trend-badge.positive {
  background: var(--green-light);
  color: var(--green-accent);
}

/* Card 2: Conversion Rate with Rounded Vertical Amber Bars */
.bar-chart-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 100px;
  margin-top: 10px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  height: 100%;
  justify-content: flex-end;
}

.bar-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

.bar-fill {
  width: 100%;
  max-width: 20px;
  background: #FDE68A;
  border-radius: 8px;
  transition: height 0.6s ease;
}

.bar-col.active .bar-fill {
  background: #F59E0B;
}

.bar-col.highlight .bar-fill {
  background: var(--coral-primary);
}

.bar-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-light);
}

/* Card 3: Donut Chart */
.pie-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 10px auto;
}

.donut-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.donut-bg {
  fill: none;
  stroke: var(--bg-subtle);
  stroke-width: 4.5;
}

.donut-ring {
  fill: none;
  stroke: var(--blue-accent);
  stroke-width: 4.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s ease;
}

.pie-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.pie-tag {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-heading);
  background: #F1F5F9;
  padding: 4px 8px;
  border-radius: 8px;
}

.pie-metric {
  text-align: center;
}

.pie-metric .metric-num {
  font-size: 20px;
  font-weight: 800;
  display: block;
}

.pie-metric .metric-label {
  font-size: 11px;
  color: var(--text-light);
}

/* Card 4: Radial Progress */
.radial-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 6px auto;
}

.radial-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--bg-subtle);
  stroke-width: 6;
}

.ring-fg {
  fill: none;
  stroke: var(--coral-primary);
  stroke-width: 6;
  stroke-linecap: round;
}

.radial-center-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.arrow-up {
  color: var(--coral-primary);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.radial-pct {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-heading);
}

.widget-foot-caption {
  font-size: 11px;
  text-align: center;
  color: var(--text-light);
}

/* Card 5: Provider Cycle Card */
.status-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.provider-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E2E8F0;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.provider-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
}

.provider-meta {
  font-size: 11px;
  color: var(--text-light);
}

.contract-strip {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
}

.contract-amt {
  font-weight: 700;
  color: var(--text-heading);
}

.progress-capsule {
  height: 7px;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.capsule-fill {
  height: 100%;
  background: var(--green-accent);
  border-radius: var(--radius-pill);
}

/* Card 6: Segmented Tri-Color Bar Widget (Outcrowd Signature) */
.segmented-bar {
  display: flex;
  height: 9px;
  gap: 4px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--bg-subtle);
  margin: 14px 0 10px;
}

.segment {
  height: 100%;
  border-radius: var(--radius-pill);
}

.seg-orange {
  background: var(--coral-primary);
}

.seg-yellow {
  background: var(--amber-accent);
}

.seg-green {
  background: var(--green-accent);
}

.segmented-legend {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 4px;
}

.dot-orange { background: var(--coral-primary); }
.dot-yellow { background: var(--amber-accent); }
.dot-green { background: var(--green-accent); }

/* ==========================================================================
   SECTION 2: INTELLIGENT SEGMENTATION (Scene 2 from Outcrowd Video)
   ========================================================================== */

.section-segmentation {
  padding: 100px 0;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: center;
}

/* Left: Specialist Photo Card */
.specialist-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 16px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.specialist-img-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.specialist-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.specialist-card:hover .specialist-img {
  transform: scale(1.03);
}

.specialist-badge-floating {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.specialist-card-footer {
  padding: 20px 8px 8px;
  display: flex;
  justify-content: flex-start;
}

/* Right: Segmentation Content & Widgets */
.section-title {
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
}

.max-w-640 {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.segment-widgets-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.sub-widget-box {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sub-widget-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.sub-widget-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sub-widget-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

.sub-widget-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.single-progress-bar {
  height: 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 12px;
}

.single-progress-fill {
  height: 100%;
  background: var(--coral-primary);
  border-radius: var(--radius-pill);
}

.sub-widget-caption {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  display: block;
}

.criteria-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.criteria-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.criteria-pill:hover, .criteria-pill.active {
  background: var(--coral-light);
  color: var(--coral-primary);
  border-color: rgba(250, 93, 41, 0.25);
}

/* ==========================================================================
   SECTION 3: RCM ENGINE (Synchronized 7-Stage Pipeline & Solutions)
   ========================================================================== */

.section-engine {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header-centered {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

/* Interactive Pipeline Navigation Bar */
.pipeline-carousel {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  background: var(--bg-subtle);
  padding: 8px;
  border-radius: var(--radius-xl);
  margin-bottom: 30px;
}

.pipeline-tab {
  background: transparent;
  border: none;
  padding: 18px 12px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.pipeline-tab:hover {
  background: rgba(255, 255, 255, 0.6);
}

.pipeline-tab.active {
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.tab-index {
  font-size: 12px;
  font-weight: 700;
  color: var(--coral-primary);
  margin-bottom: 6px;
}

.tab-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
}

.tab-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Active Stage Detail Panel */
.engine-detail-panel {
  background: var(--bg-page);
  border-radius: var(--radius-xl);
  padding: 40px;
  border: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.engine-detail-left {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.detail-number-badge {
  font-size: 48px;
  font-weight: 800;
  color: var(--coral-primary);
  line-height: 1;
}

.detail-stage-title {
  font-size: 26px;
  margin-bottom: 12px;
}

.detail-stage-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.detail-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.bullet-item {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-heading);
  background: var(--bg-surface);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
}

.engine-detail-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.metric-highlight-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.metric-hl-val {
  display: block;
  font-size: 40px;
  font-weight: 800;
  color: var(--coral-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-hl-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Solutions 8-Card Grid */
.solutions-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.solution-card {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
}

.solution-card:hover {
  background: var(--bg-surface);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(250, 93, 41, 0.2);
}

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

.sol-idx {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-primary);
}

.sol-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.sol-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.sol-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sol-stat {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-primary);
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   SECTION 4: PERFORMANCE & BENCHMARKS
   ========================================================================== */

.section-metrics {
  padding: 100px 0;
}

.metrics-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metric-tile {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.metric-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.metric-tile-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.metric-tile-number {
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-badge-trend {
  font-size: 12px;
  font-weight: 700;
  color: var(--coral-primary);
  background: var(--coral-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.metric-tile-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.metric-tile-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ==========================================================================
   SECTION 5: TESTIMONIALS (Outcrowd Video Scene 5)
   ========================================================================== */

.section-testimonials {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.split-testimonials-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.testimonials-title {
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.testimonials-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
}

.testimonials-cards-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.review-card {
  background: var(--bg-page);
  border-radius: var(--radius-xl);
  padding: 34px;
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  background: #FFFFFF;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--coral-light);
  color: var(--coral-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}

.review-avatar.avatar-dark {
  background: var(--bg-dark);
  color: var(--text-inverse);
}

.author-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.author-role {
  font-size: 13px;
  color: var(--text-muted);
}

.quote-symbol {
  font-size: 38px;
  color: var(--coral-primary);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: -10px;
  font-family: serif;
}

.review-body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 20px;
}

.review-footer-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
}

/* ==========================================================================
   SECTION 6: FAQ ACCORDION (Outcrowd Video Scene 8)
   ========================================================================== */

.section-faq {
  padding: 100px 0;
}

.faq-accordion-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item.active {
  box-shadow: var(--shadow-sm);
  border-color: rgba(250, 93, 41, 0.25);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 26px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
}

.faq-toggle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-subtle);
  display: grid;
  place-items: center;
  color: var(--text-heading);
  flex-shrink: 0;
  transition: transform var(--transition-normal), background var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
  background: var(--coral-light);
  color: var(--coral-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
  max-height: 350px;
}

.faq-answer-inner {
  padding: 0 26px 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  border-top: 1px dashed rgba(0, 0, 0, 0.05);
  margin-top: 4px;
  padding-top: 16px;
}

/* ==========================================================================
   SECTION 7: DARK NEWSLETTER BANNER (Outcrowd Video Scene 10)
   ========================================================================== */

.section-newsletter {
  padding: 60px 0 100px;
}

.newsletter-dark-card {
  background: var(--bg-dark);
  color: var(--text-inverse);
  border-radius: var(--radius-xl);
  padding: 60px 64px;
  box-shadow: var(--shadow-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.newsletter-title {
  color: #FFFFFF;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.newsletter-sub {
  color: #A1A1AA;
  font-size: 15px;
  line-height: 1.65;
  max-width: 440px;
}

.newsletter-pill-form {
  display: flex;
  align-items: center;
  background: var(--bg-dark-input);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 20px;
  border: 1px solid var(--border-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pill-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-size: 14px;
}

.pill-input::placeholder {
  color: #71717A;
}

.form-feedback {
  font-size: 13px;
  margin-top: 10px;
  min-height: 20px;
}

.form-feedback.success {
  color: #34D399;
}

.form-feedback.error {
  color: #F87171;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 40px;
}

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

.footer-brand-col {
  padding-right: 30px;
}

.footer-tagline {
  margin: 18px 0 24px;
  font-size: 14px;
  line-height: 1.65;
  max-width: 320px;
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comp-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links, .footer-contact-info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-contact-info li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-contact-info strong {
  color: var(--text-heading);
  display: block;
  font-size: 12px;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13px;
  color: var(--text-light);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a:hover {
  color: var(--coral-primary);
}

/* ==========================================================================
   CONSULTATION MODAL DIALOG
   ========================================================================== */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  place-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.open {
  display: grid;
  opacity: 1;
}

.modal-dialog {
  background: var(--bg-surface);
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--bg-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  color: var(--text-heading);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background var(--transition-fast);
}

.modal-close:hover {
  background: var(--coral-light);
  color: var(--coral-primary);
}

.modal-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.modal-sub {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-heading);
}

.form-group input {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-page);
  font-size: 14px;
  color: var(--text-heading);
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus {
  border-color: var(--coral-primary);
  background: #FFFFFF;
}

.chip-select-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.chip-label {
  cursor: pointer;
}

.chip-label input {
  display: none;
}

.chip-label span {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.chip-label input:checked + span {
  background: var(--coral-light);
  color: var(--coral-primary);
  border-color: var(--coral-primary);
}

.modal-success-state {
  text-align: center;
  padding: 30px 10px;
}

.success-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--coral-light);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}

.modal-success-state h4 {
  font-size: 24px;
  margin-bottom: 10px;
}

.modal-success-state p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-widgets-track {
    gap: 14px;
  }

  .split-grid, .split-testimonials-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 1200px) {
  .phone-link {
    display: none;
  }
}

@media (max-width: 1040px) {
  .nav-links, .phone-link {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .metrics-bento-grid {
    grid-template-columns: 1fr;
  }

  .engine-detail-panel {
    grid-template-columns: 1fr;
  }

  .newsletter-dark-card {
    grid-template-columns: 1fr;
    padding: 40px 30px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .content-container {
    padding: 0 18px;
  }

  .hero-section {
    padding: 130px 0 50px;
  }

  .hero-widgets-frame {
    padding: 16px;
    border-radius: 24px;
  }

  .hero-widgets-track {
    gap: 12px;
  }

  .widget-card {
    flex: 0 0 220px;
    min-width: 220px;
  }

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

  .solutions-cards-grid {
    grid-template-columns: 1fr;
  }

  .segment-widgets-group {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .modal-dialog {
    padding: 26px 20px;
  }
}

/* ==========================================================================
   LEGAL, POLICY & TRUST PAGES DESIGN SYSTEM (AEO & GEO ENHANCED)
   ========================================================================== */

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.breadcrumb-separator {
  color: var(--text-light);
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--coral-primary);
  font-weight: 600;
}

/* Legal Header Banner */
.legal-hero {
  padding: 120px 0 45px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero-inner {
  max-width: 960px;
  margin: 0 auto;
}

.legal-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  align-items: center;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.legal-badge.verified {
  background: var(--green-light);
  color: #065F46;
  border-color: rgba(16, 185, 129, 0.25);
}

.legal-badge.jurisdiction {
  background: var(--blue-light);
  color: #1E40AF;
  border-color: rgba(59, 130, 246, 0.25);
}

.legal-title {
  font-size: clamp(32px, 4.5vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  color: var(--text-heading);
}

.legal-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 820px;
}

/* AEO & GEO Quick Answer Callout Box */
.aeo-quick-answer {
  margin: 30px 0 10px;
  background: var(--bg-surface);
  border: 1px solid rgba(250, 93, 41, 0.25);
  border-left: 4px solid var(--coral-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.aeo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.aeo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--coral-light);
  color: var(--coral-primary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.aeo-timestamp {
  font-size: 12px;
  color: var(--text-light);
}

.aeo-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.aeo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.aeo-item {
  font-size: 13px;
}

.aeo-label {
  display: block;
  font-weight: 700;
  color: var(--text-heading);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.aeo-val {
  color: var(--text-muted);
}

/* Legal Layout: Sidebar TOC + Main Content */
.legal-main-section {
  padding: 50px 0 90px;
}

.legal-layout-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

/* Sidebar TOC */
.legal-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-heading);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding-right: 4px;
}

.toc-list::-webkit-scrollbar {
  width: 4px;
}

.toc-list::-webkit-scrollbar-thumb {
  background: var(--bg-muted);
  border-radius: 4px;
}

.toc-link {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.toc-link:hover {
  background: var(--bg-subtle);
  color: var(--coral-primary);
}

.toc-link.active {
  background: var(--coral-light);
  color: var(--coral-primary);
  font-weight: 600;
}

.sidebar-action-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--text-heading);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.sidebar-btn:hover {
  background: var(--bg-surface);
  border-color: var(--coral-primary);
  color: var(--coral-primary);
}

/* Legal Content Body */
.legal-body {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
}

.legal-section {
  margin-bottom: 40px;
  scroll-margin-top: 100px;
}

.legal-section:last-child {
  margin-bottom: 0;
}

.section-anchor-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--coral-primary);
  font-family: 'Outfit', sans-serif;
}

.legal-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin: 24px 0 10px;
}

.legal-body ul, .legal-body ol {
  margin: 14px 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body li {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-body strong {
  color: var(--text-heading);
  font-weight: 600;
}

/* Callout Blocks */
.legal-callout {
  background: var(--bg-subtle);
  border-left: 3px solid var(--coral-primary);
  padding: 18px 22px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.65;
}

.legal-callout.info {
  border-left-color: var(--blue-accent);
  background: var(--blue-light);
}

.legal-callout.warning {
  border-left-color: var(--amber-dark);
  background: #FFFBEB;
}

.legal-callout.success {
  border-left-color: var(--green-accent);
  background: var(--green-light);
}

/* Structured Legal Tables */
.legal-table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.legal-table th {
  background: var(--bg-subtle);
  color: var(--text-heading);
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.legal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  vertical-align: top;
}

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

.legal-table tr:hover td {
  background: rgba(0, 0, 0, 0.015);
}

/* Interactive Cookie Preferences Switcher */
.cookie-card-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.cookie-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  background: var(--bg-surface);
  transition: border-color var(--transition-fast);
}

.cookie-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.cookie-badge.required {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.cookie-badge.optional {
  background: var(--green-light);
  color: #065F46;
}

/* Switch Toggle Component */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
  background-color: var(--coral-primary);
}

input:disabled + .toggle-slider {
  background-color: #94A3B8;
  cursor: not-allowed;
  opacity: 0.6;
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

/* Contact & Interactive Forms */
.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.contact-method-card:hover {
  border-color: var(--coral-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.contact-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--coral-light);
  color: var(--coral-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-content h4 {
  font-size: 15px;
  color: var(--text-heading);
  margin-bottom: 2px;
}

.contact-method-content p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-action-text {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--coral-primary);
}

.whatsapp-card {
  background: #F0FDF4;
  border-color: rgba(16, 185, 129, 0.3);
}

.whatsapp-card .contact-icon-wrap {
  background: #DCFCE7;
  color: #15803D;
}

.whatsapp-card .contact-action-text {
  color: #15803D;
}

/* Consent Checkbox */
.consent-group {
  margin: 20px 0 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--coral-primary);
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--coral-primary);
  text-decoration: underline;
}

/* Policy Directory Cards */
.policy-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.policy-hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-decoration: none;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.policy-hub-card:hover {
  border-color: var(--coral-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.policy-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--coral-light);
  color: var(--coral-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.policy-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.policy-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.policy-card-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--coral-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Responsive adjustments for Legal & Contact */
@media (max-width: 991px) {
  .legal-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .legal-sidebar {
    position: static;
    top: auto;
  }

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

  .legal-body {
    padding: 30px 24px;
  }
}

/* Accessibility Testing Helper Modes */
body.high-contrast-mode {
  background-color: #000000 !important;
  color: #FFFFFF !important;
}

body.high-contrast-mode .legal-body,
body.high-contrast-mode .form-card,
body.high-contrast-mode .legal-sidebar,
body.high-contrast-mode .aeo-quick-answer,
body.high-contrast-mode .policy-hub-card {
  background-color: #111111 !important;
  border-color: #FFFF00 !important;
  color: #FFFFFF !important;
}

body.high-contrast-mode h1, 
body.high-contrast-mode h2, 
body.high-contrast-mode h3, 
body.high-contrast-mode h4,
body.high-contrast-mode strong {
  color: #FFFF00 !important;
}

body.high-contrast-mode p,
body.high-contrast-mode li,
body.high-contrast-mode td {
  color: #FFFFFF !important;
}

body.large-text-mode {
  font-size: 18px !important;
}

body.large-text-mode .legal-body p,
body.large-text-mode .legal-body li {
  font-size: 17.5px !important;
}

/* ==========================================================================
   EHR & PRACTICE MANAGEMENT INTEGRATION SHOWCASE
   ========================================================================== */
.section-ehr-partners {
  padding: 85px 0 65px;
  background: linear-gradient(180deg, var(--bg-page) 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.ehr-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 50px;
}

.ehr-title {
  font-size: clamp(28px, 3.8vw, 42px);
  letter-spacing: -0.025em;
  margin: 14px 0 16px;
  color: var(--text-heading);
}

.ehr-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.ehr-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.ehr-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.ehr-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(250, 93, 41, 0.4);
}

.ehr-logo-box {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}

.ehr-logo-img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.ehr-card:hover .ehr-logo-img {
  transform: scale(1.05);
}

.ehr-card-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.ehr-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #065F46;
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.ehr-card-desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.ehr-badges-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  text-align: left;
}

.ehr-badge-item {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ehr-badge-item svg {
  color: var(--coral-primary);
  flex-shrink: 0;
}

@media (max-width: 1100px) {
  .ehr-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .ehr-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ==========================================================================
   CLINICAL SPECIALTIES & CORE RCM / CCM SERVICES
   ========================================================================== */
.section-specialties-services {
  padding: 90px 0 80px;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.specialties-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 55px;
}

.specialties-title {
  font-size: clamp(28px, 3.8vw, 44px);
  letter-spacing: -0.025em;
  margin: 14px 0 16px;
  color: var(--text-heading);
}

.specialties-subtitle {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.specialty-service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.specialty-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(250, 93, 41, 0.4);
}

.specialty-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.specialty-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--coral-light);
  color: var(--coral-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.specialty-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.specialty-tag.rcm-tag,
.specialty-tag.rpm-tag {
  background: #EFF6FF;
  color: #1D4ED8;
}

.specialty-tag.ccm-tag {
  background: #ECFDF5;
  color: #047857;
}

.specialty-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.specialty-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.specialty-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

.specialty-bullet-item {
  font-size: 13px;
  color: var(--text-heading);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}

.specialty-bullet-item svg {
  color: var(--green-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.specialty-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.specialty-action-btn {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: gap var(--transition-fast);
}

.specialty-action-btn:hover {
  gap: 10px;
  color: var(--coral-hover);
}

@media (max-width: 991px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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