/* ClinicHub Static Marketing Pages - Fortune-500 Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

/* ==================================================
   1. COLOR SYSTEM (ACCESSIBLE, MEDICAL-GRADE)
   ================================================== */
:root {
  /* Brand - matches logo icon blue */
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #2563eb;

  /* Secondary accent - WCAG AA compliant */
  --color-accent: #0D7D6C;
  --color-accent-light: #10A08A;
  --color-accent-dark: #096355;

  /* Supportive neutrals - WCAG AA compliant */
  --color-neutral-100: #FFFFFF;
  --color-neutral-200: #F8F9FA;
  --color-neutral-300: #E9ECEF;
  --color-neutral-400: #CED4DA;
  --color-neutral-500: #6C757D;
  --color-neutral-600: #495057;
  --color-neutral-700: #343A40;
  --color-neutral-800: #212529;
  --color-neutral-900: #121416;

  /* Semantic colors */
  --color-success: #0E8F6A;
  --color-warning: #D69500;
  --color-error: #B52424;

  /* Backgrounds */
  --bg-page: var(--color-neutral-200);
  --bg-section: var(--color-neutral-100);
  --bg-muted: var(--color-neutral-300);

  /* Borders */
  --border-light: var(--color-neutral-300);
  --border-medium: var(--color-neutral-400);
  --border-dark: var(--color-neutral-500);

  /* Legacy compatibility */
  --background: var(--color-neutral-100);
  --foreground: var(--color-neutral-800);
  --muted: var(--color-neutral-200);
  --muted-foreground: var(--color-neutral-600);
  --border: var(--border-light);
  --card: var(--color-neutral-100);
  --primary: var(--color-primary);
  --primary-foreground: var(--color-neutral-100);

  /* ==================================================
     2. TYPOGRAPHY SYSTEM
     ================================================== */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Font sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;

  /* Line height */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ==================================================
     3. SPACING SYSTEM
     ================================================== */
  --space-0: 0px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* ==================================================
     4. ELEVATION & SHADOWS
     ================================================== */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 20px rgba(0,0,0,0.12);

  /* ==================================================
     5. BORDER RADIUS SYSTEM
     ================================================== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius: var(--radius-md);
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-neutral-100: #121416;
    --color-neutral-200: #1F2326;
    --color-neutral-300: #2A2F33;
    --color-neutral-400: #3D4347;
    --color-neutral-500: #6B7278;
    --color-neutral-600: #9BA1A6;
    --color-neutral-700: #D6DADD;
    --color-neutral-800: #EDF0F2;
    --color-neutral-900: #F7F9FA;

    --bg-page: var(--color-neutral-200);
    --bg-section: var(--color-neutral-100);
    --bg-muted: var(--color-neutral-300);

    --border-light: var(--color-neutral-300);
    --border-medium: var(--color-neutral-400);
    --border-dark: var(--color-neutral-500);

    --background: var(--color-neutral-100);
    --foreground: var(--color-neutral-800);
    --muted: var(--color-neutral-200);
    --muted-foreground: var(--color-neutral-600);
    --border: var(--border-light);
    --card: var(--color-neutral-200);

    --color-primary: #60a5fa;
    --color-primary-light: #93c5fd;
    --color-primary-dark: #3b82f6;
    --primary: var(--color-primary);

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.4);
  }
}

/* ==================================================
   BASE STYLES
   ================================================== */
html {
  scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  line-height: var(--leading-tight);
  color: var(--foreground);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
}

h3 {
  font-size: var(--text-2xl);
  font-weight: var(--weight-semibold);
}

h4 {
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
}

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

/* ==================================================
   6. GRID / LAYOUT SYSTEM
   ================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container { padding: 0 var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding: 0 var(--space-8); }
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

@media (max-width: 1023px) {
  .grid-12 { grid-template-columns: repeat(8, 1fr); }
}

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

/* ==================================================
   7. COMPONENTS
   ================================================== */

/* 7.1 Navigation Bar */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  gap: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--foreground);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);
}

.logo svg {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

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

.nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

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

/* Mobile Navigation */
.nav-mobile { display: none; }
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
  color: var(--foreground);
}

.nav-mobile-toggle svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-actions .btn-outline { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-section);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
  }
  .nav-mobile.open { display: block; }
  .nav-mobile a {
    display: block;
    padding: var(--space-3) 0;
    color: var(--foreground);
    text-decoration: none;
    font-weight: var(--weight-medium);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-mobile a:last-child { border-bottom: none; }
  .nav-mobile a:hover { color: var(--color-primary); }
}

/* 7.2 Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

/* Primary Button */
.btn-primary {
  background: var(--color-primary);
  color: var(--color-neutral-100);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

/* Secondary Button (Outlined) */
.btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border-medium);
}

.btn-outline:hover {
  background: var(--bg-muted);
  border-color: var(--border-dark);
}

/* Tertiary Button (Text) */
.btn-text {
  background: transparent;
  color: var(--color-primary);
  border-color: transparent;
  padding: var(--space-2) var(--space-3);
}

.btn-text:hover {
  background: rgba(59, 130, 246, 0.08);
}

/* Accent Button */
.btn-accent {
  background: var(--color-accent);
  color: var(--color-neutral-100);
  border-color: var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
}

/* Button Sizes */
.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* 7.3 Hero Section */
.hero {
  padding: var(--space-20) 0;
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-page) 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  color: var(--foreground);
}

@media (min-width: 640px) {
  .hero h1 { font-size: var(--text-5xl); }
}

.hero .highlight {
  color: var(--color-primary);
}

.hero .subheadline {
  font-size: var(--text-lg);
  color: var(--muted-foreground);
  line-height: var(--leading-relaxed);
  max-width: 600px;
  margin: 0 auto var(--space-10);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* Hero with side illustration */
.hero-split {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-split { grid-template-columns: 1fr 1fr; }
  .hero-split .hero-content { text-align: left; }
  .hero-split .hero-content { max-width: none; }
  .hero-split .subheadline { margin-left: 0; margin-right: 0; }
  .hero-split .hero-buttons { justify-content: flex-start; }
}

.hero-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration-box {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(43, 180, 160, 0.1) 100%);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration-box svg {
  width: 60%;
  height: 60%;
  color: var(--color-primary);
  opacity: 0.6;
}

/* 7.3.1 Structured Hero (dental page) */
.hero-structured {
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-light);
}

.hero-structured-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .hero-structured-container {
    padding: 7rem 2rem;
  }
}

.hero-structured-title {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--foreground);
}

@media (min-width: 768px) {
  .hero-structured-title {
    font-size: 3.75rem;
  }
}

.hero-structured-title .highlight {
  color: var(--color-primary);
}

.hero-structured-subcopy {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
  color: var(--color-neutral-600);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero-structured-subcopy {
    font-size: 1.125rem;
  }
}

.hero-structured-bullets {
  width: 100%;
  max-width: 36rem;
}

.hero-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.hero-bullet-icon {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.hero-bullet-list li span {
  color: var(--color-neutral-700);
  line-height: 1.4;
}

.hero-structured-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  max-width: 28rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-structured-cta {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }
}

.hero-structured-cta .btn {
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-structured-microcopy {
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-neutral-500);
  margin: 0;
}

/* 7.4 Section Layout */
.section {
  padding: var(--space-16) 0;
}

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

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

.section-primary {
  background: var(--color-primary);
  color: var(--color-neutral-100);
}

.section-primary .muted-foreground {
  color: rgba(255, 255, 255, 0.8);
}

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

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--muted-foreground);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-4);
  text-align: center;
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--muted-foreground);
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-4);
  line-height: var(--leading-relaxed);
}

.section-subtitle-small {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: var(--leading-relaxed);
}

.section-header-left {
  text-align: left;
  max-width: none;
}

/* 7.4.1 Clinic Type Tabs */
.section-tabs {
  padding: var(--space-8) 0;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border-light);
}

.tabs-label {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.clinic-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  max-width: 28rem;
  margin: 0 auto;
  padding: 0.25rem;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.clinic-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.clinic-tab:hover {
  color: var(--foreground);
  background: var(--bg-muted);
}

.clinic-tab.active {
  color: var(--foreground);
  background: var(--color-primary);
  color: var(--color-neutral-100);
}

.tab-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.tab-text-full {
  display: none;
}

.tab-text-short {
  display: inline;
}

@media (min-width: 640px) {
  .tab-text-full {
    display: inline;
  }
  .tab-text-short {
    display: none;
  }
}

/* 7.4.2 Flow Grid (for process steps) */
.flow-grid {
  display: grid;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

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

@media (min-width: 640px) {
  .flow-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .flow-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.flow-icon-wrapper {
  position: relative;
  margin-bottom: var(--space-3);
}

.flow-step-number {
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-neutral-100);
  font-size: var(--text-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.flow-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: var(--color-primary);
}

.flow-step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.flow-step p {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

/* 7.4.3 Section CTA */
.section-cta {
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.1));
  padding: var(--space-16) 0;
}

/* 7.4.4 Badge in section header */
.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: var(--space-4);
}

.section-header .badge-icon {
  width: 1rem;
  height: 1rem;
}

/* 7.5 Card Component */
.card {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.card h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-3);
}

.card-tagline {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.card-horizontal {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-align: left;
}

.card-horizontal .card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.card-horizontal h3 {
  margin-bottom: var(--space-2);
}

.card p {
  color: var(--muted-foreground);
  font-size: var(--text-base);
}

/* Card Variants */
.card-success {
  border-color: rgba(14, 143, 106, 0.3);
}

.card-success h3 {
  color: var(--color-success);
}

.card-danger {
  border-color: rgba(181, 36, 36, 0.3);
}

.card-danger h3 {
  color: var(--color-error);
}

/* Don't List (for "What we don't do" sections) */
.dont-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.dont-item strong {
  display: block;
  font-size: var(--text-sm);
  color: var(--foreground);
  margin-bottom: var(--space-1);
}

.dont-item p {
  font-size: var(--text-sm);
  margin: 0;
}

/* Link Card - Clickable card variant */
a.link-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

a.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

a.link-card h3 {
  color: var(--color-primary);
}

a.link-card:hover h3 {
  text-decoration: underline;
}

/* Card Grid */
.card-grid {
  display: grid;
  gap: var(--space-6);
}

.card-grid-2 { grid-template-columns: 1fr; }
.card-grid-3 { grid-template-columns: 1fr; }
.card-grid-4 { grid-template-columns: 1fr; }
.card-grid-5 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid-5 { grid-template-columns: repeat(5, 1fr); }
}

/* Card spanning full grid */
.card-wide {
  grid-column: 1 / -1;
}

/* Card note text */
.card-note {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  font-style: italic;
  margin-top: var(--space-3);
}

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: var(--space-8) 0;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
  background: var(--bg-section);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  min-width: 600px;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-5) var(--space-6);
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.comparison-table thead {
  background: var(--bg-muted);
}

.comparison-table thead th {
  font-weight: var(--weight-semibold);
  color: var(--foreground);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.comparison-table thead th.highlight {
  background: rgba(59, 130, 246, 0.08);
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.comparison-table tbody tr:nth-child(odd) {
  background: var(--bg-section);
}

.comparison-table tbody tr:nth-child(even) {
  background: var(--bg-page);
}

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

.comparison-table tbody td:first-child {
  font-weight: var(--weight-semibold);
  color: var(--foreground);
  width: 30%;
}

.comparison-table tbody td:nth-child(2) {
  color: var(--foreground);
  font-weight: var(--weight-medium);
}

.comparison-table tbody td:nth-child(3) {
  color: var(--muted-foreground);
}

/* Mobile: stacked card layout */
@media (max-width: 640px) {
  .comparison-table-wrapper {
    overflow: visible;
  }
  
  .comparison-table {
    min-width: 0;
    border: none;
    background: transparent;
    box-shadow: none;
  }
  
  .comparison-table thead {
    display: none;
  }
  
  .comparison-table tbody {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .comparison-table tbody tr {
    display: flex;
    flex-direction: column;
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4);
  }
  
  .comparison-table tbody tr:nth-child(even) {
    background: var(--bg-section);
  }
  
  .comparison-table tbody td {
    display: block;
    padding: var(--space-2) 0;
    border-bottom: none;
    width: 100%;
  }
  
  .comparison-table tbody td:first-child {
    font-size: var(--text-base);
    color: var(--foreground);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-2);
  }
  
  .comparison-table tbody td:nth-child(2)::before {
    content: 'ClinicHub: ';
    font-weight: var(--weight-semibold);
    color: var(--color-primary);
  }
  
  .comparison-table tbody td:nth-child(3)::before {
    content: 'Traditional: ';
    font-weight: var(--weight-medium);
    color: var(--muted-foreground);
  }
}

/* Checklist */
.checklist {
  list-style: none;
  margin: var(--space-4) 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-2);
  line-height: var(--leading-normal);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.checklist-success li::before {
  background: var(--color-success);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.checklist-danger li::before {
  background: var(--color-error);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 18L18 6M6 6l12 12'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Steps List (vertical steps) */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

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

.step-item .step-number {
  width: 36px;
  height: 36px;
  font-size: var(--text-base);
  flex-shrink: 0;
}

.step-item .step-content {
  flex: 1;
}

.step-item .step-content h3 {
  margin-bottom: var(--space-1);
  font-size: var(--text-base);
}

.step-item .step-content p {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

/* Demo CTA */
.demo-cta {
  text-align: center;
  padding: var(--space-8) 0;
}

/* Bottom Line Card */
.bottom-line-card {
  background: var(--bg-section);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.bottom-line-text {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-4);
}

.bottom-line-summary {
  font-size: var(--text-base);
  color: var(--muted-foreground);
  max-width: 550px;
  margin: 0 auto;
}

/* Highlight Card Improvements */
.highlight-card .highlight-cta {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
}

/* Trust Guarantee Box - Standout redundancy/failover messaging */
.trust-guarantee-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 2px solid #22c55e;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin: var(--space-8) auto;
  max-width: 800px;
  position: relative;
  overflow: hidden;
}

.trust-guarantee-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #16a34a, #22c55e, #4ade80);
}

.trust-guarantee-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.trust-guarantee-icon {
  width: 48px;
  height: 48px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-guarantee-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.trust-guarantee-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: #166534;
  margin: 0;
}

.trust-guarantee-content {
  color: #166534;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}

.trust-guarantee-content p {
  margin-bottom: var(--space-3);
}

.trust-guarantee-content p:last-child {
  margin-bottom: 0;
}

.trust-guarantee-content strong {
  color: #14532d;
}

.trust-guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1px solid #22c55e;
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #166534;
  margin-top: var(--space-4);
}

/* Time Saved Section */
.time-saved-layout {
  display: grid;
  gap: var(--space-8);
  align-items: start;
}

@media (min-width: 768px) {
  .time-saved-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
  
  .time-saved-text {
    order: 1;
  }
  
  .time-saved-card {
    order: 2;
  }
}

@media (max-width: 767px) {
  .time-saved-card {
    order: -1;
  }
}

.stat-card {
  background: var(--bg-section);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-main {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: 1.1;
}

.stat-label {
  color: var(--muted-foreground);
  margin-bottom: var(--space-6);
}

.stat-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.stat-badge {
  display: inline-block;
  background: var(--bg-muted);
  color: var(--foreground);
  padding: var(--space-1) var(--space-3);
  border-radius: 9999px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}

.payoff-strip {
  margin-top: var(--space-8);
  padding: var(--space-4);
  background: var(--bg-muted);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.payoff-strip p {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  margin: 0;
}

.max-w-5xl {
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
}

/* Pricing Card */
.pricing-card-container {
  display: flex;
  justify-content: center;
}

.pricing-card-container .pricing-card {
  max-width: 400px;
  width: 100%;
}

.pricing-card {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  text-align: center;
}

.pricing-card.featured {
  border: 2px solid var(--color-primary);
  position: relative;
}

/* Featured badge now handled via HTML badge element */

.pricing-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-1);
}

.pricing-amount .price {
  font-size: var(--text-4xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
}

.pricing-amount .period {
  font-size: var(--text-base);
  color: var(--muted-foreground);
}

.pricing-card .btn {
  width: 100%;
  margin-bottom: var(--space-6);
}

.pricing-features {
  list-style: none;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

/* 7.6 Steps Component */
.steps {
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
}

.step:last-child { margin-bottom: 0; }

.step::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 56px;
  bottom: -32px;
  width: 2px;
  background: var(--border-light);
}

.step:last-child::before { display: none; }

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-content {
  flex: 1;
  padding-top: var(--space-2);
}

.step-content h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

.step-content p {
  color: var(--muted-foreground);
}

.step-content h4 {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
}

/* 7.6.1 Dual Column Layout (How It Works) */
.dual-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .dual-column-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.perspective-column {
  background: var(--bg-muted);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.perspective-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-6);
  color: var(--color-primary);
  text-align: center;
}

.perspective-column .steps {
  max-width: 100%;
}

.perspective-column .step {
  margin-bottom: var(--space-6);
}

.perspective-column .step-number {
  width: 36px;
  height: 36px;
  font-size: var(--text-base);
}

.perspective-column .step::before {
  left: 17px;
  top: 44px;
  bottom: -24px;
}

/* 7.6.2 Shared Outcome Section */
.shared-outcome {
  display: flex;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

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

.outcome-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.outcome-item p {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--foreground);
}

@media (max-width: 600px) {
  .shared-outcome {
    flex-direction: column;
    gap: var(--space-6);
    align-items: center;
  }
  
  .outcome-item {
    flex-direction: column;
    text-align: center;
  }
}

/* 7.7 FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--foreground);
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

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

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--muted-foreground);
}

.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding-bottom: var(--space-5);
  color: var(--muted-foreground);
  line-height: var(--leading-relaxed);
}

.faq-item.open .faq-answer {
  display: block;
}

/* 7.8 Feature List */
.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  color: var(--muted-foreground);
}

.feature-list li:last-child { margin-bottom: 0; }

.feature-list svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* 7.8.1 Features Grid (Dental) */
.features-grid {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

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

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

@media (min-width: 640px) {
  .features-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary-light, rgba(59, 130, 246, 0.1));
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.feature-card h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--foreground);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* 7.9 Footer */
.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-light);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

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

.footer-brand {
  max-width: 280px;
}

.footer-brand .logo {
  margin-bottom: var(--space-4);
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  line-height: var(--leading-relaxed);
}

.footer h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--foreground);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links a {
  display: block;
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
  transition: color 0.2s ease;
}

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

.footer-tagline {
  text-align: center;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-light);
  margin-top: var(--space-8);
}

.footer-tagline p {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--foreground);
  opacity: 0.8;
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.footer-disclaimer {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  opacity: 0.6;
}

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

.footer-bottom-links a {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* 7.10 Contact Form */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--foreground);
  margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: var(--bg-section);
  color: var(--foreground);
  font-family: var(--font-family);
  font-size: var(--text-base);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-hint {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-top: var(--space-1);
}

.form-message {
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-align: center;
}

.form-message-success {
  background: rgba(14, 143, 106, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(14, 143, 106, 0.2);
}

.form-message-error {
  background: rgba(181, 36, 36, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(181, 36, 36, 0.2);
}

/* ==================================================
   UTILITY CLASSES
   ================================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.text-muted { color: var(--muted-foreground); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }

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

.mt-2 { margin-top: var(--space-2); }
.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); }

.mb-2 { margin-bottom: var(--space-2); }
.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); }

.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-12 { padding-top: var(--space-12); padding-bottom: var(--space-12); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }

.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.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-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.max-w-sm { max-width: 384px; margin-left: auto; margin-right: auto; }
.max-w-md { max-width: 448px; margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: 512px; margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 576px; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 672px; margin-left: auto; margin-right: auto; }
.max-w-3xl { max-width: 768px; margin-left: auto; margin-right: auto; }
.max-w-4xl { max-width: 896px; margin-left: auto; margin-right: auto; }

.w-full { width: 100%; }

.hidden { display: none; }
.block { display: block; }

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
  .lg\:flex { display: flex; }
}

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

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* Internal links (CTA sections) */
.internal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.internal-links a {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.internal-links a:hover { color: var(--foreground); }

.internal-links .sep { color: var(--border-medium); }

/* Icon circles */
.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  margin-bottom: var(--space-4);
}

.icon-circle svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
}

.icon-circle-lg {
  width: 160px;
  height: 160px;
  margin: 0 auto;
}

.icon-circle-lg svg {
  width: 80px;
  height: 80px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-xl);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
}

.badge-accent {
  background: rgba(43, 180, 160, 0.1);
  color: var(--color-accent-dark);
}

.badge-success {
  background: rgba(14, 143, 106, 0.1);
  color: var(--color-success);
}

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

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

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

.stat-value {
  font-size: var(--text-3xl);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-8) 0;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: var(--color-neutral-100);
  padding: var(--space-2) var(--space-4);
  z-index: 9999;
  text-decoration: none;
  font-weight: var(--weight-medium);
}

.skip-link:focus {
  top: 0;
}

/* ==================================================
   VOICE AI DEMO
   ================================================== */
.voice-demo {
  margin: 0 auto;
}

.voice-demo-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .voice-demo-grid {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.voice-demo-controls {
  display: flex;
  flex-direction: column;
}

.voice-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.voice-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  background: var(--color-neutral-100);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.voice-btn:hover {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.05);
}

.voice-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.voice-btn.active .voice-desc {
  color: rgba(255, 255, 255, 0.8);
}

.voice-name {
  font-weight: var(--weight-medium);
  font-size: var(--text-sm);
}

.voice-desc {
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin-top: 2px;
}

/* Language selector buttons */
.language-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.lang-btn {
  padding: var(--space-2) var(--space-3);
  background: var(--color-neutral-100);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.05);
}

.lang-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.voice-demo-preview {
  display: flex;
  flex-direction: column;
}

.call-card {
  background: var(--color-neutral-100);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.call-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: rgba(59, 130, 246, 0.05);
  border-bottom: 1px solid var(--border-light);
}

.call-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
}

.call-card-body {
  padding: var(--space-6);
}

.call-status {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-medium);
}

.status-dot.playing {
  background: var(--color-success);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.demo-script {
  min-height: 100px;
  line-height: var(--leading-relaxed);
}

#play-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

#play-demo-btn svg {
  flex-shrink: 0;
}

/* ==================================================
   VISION ROADMAP / FLOWCHART SECTION
   ================================================== */
.vision-roadmap {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) 0;
}

.roadmap-item {
  position: relative;
  display: flex;
  gap: var(--space-6);
  padding-bottom: var(--space-10);
}

.roadmap-item:last-child {
  padding-bottom: 0;
}

/* Timeline line */
.roadmap-item::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 56px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.roadmap-item:last-child::before {
  display: none;
}

/* Arrow connector */
.roadmap-item::after {
  content: '';
  position: absolute;
  left: 22px;
  bottom: 16px;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
}

.roadmap-item:last-child::after {
  display: none;
}

.roadmap-node {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  position: relative;
  z-index: 2;
}

.roadmap-node svg {
  width: 24px;
  height: 24px;
  color: white;
  stroke: white;
}

.roadmap-node.future {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
  box-shadow: 0 4px 14px rgba(13, 125, 108, 0.3);
}

.roadmap-node.vision {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.roadmap-content {
  flex: 1;
  background: var(--color-neutral-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roadmap-content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.roadmap-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  margin-bottom: var(--space-3);
}

.roadmap-label.current {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary-dark);
}

.roadmap-label.building {
  background: rgba(13, 125, 108, 0.1);
  color: var(--color-accent-dark);
}

.roadmap-label.vision {
  background: rgba(139, 92, 246, 0.1);
  color: #6D28D9;
}

.roadmap-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-800);
  margin-bottom: var(--space-2);
  line-height: var(--leading-tight);
}

.roadmap-description {
  font-size: var(--text-base);
  color: var(--color-neutral-600);
  line-height: var(--leading-relaxed);
}

/* Mobile adjustments */
@media (max-width: 640px) {
  .roadmap-item {
    gap: var(--space-4);
  }
  
  .roadmap-node {
    width: 48px;
    height: 48px;
  }
  
  .roadmap-node svg {
    width: 20px;
    height: 20px;
  }
  
  .roadmap-item::before {
    left: 23px;
    top: 48px;
  }
  
  .roadmap-item::after {
    left: 18px;
  }
  
  .roadmap-content {
    padding: var(--space-4);
  }
  
  .roadmap-title {
    font-size: var(--text-base);
  }
  
  .roadmap-description {
    font-size: var(--text-sm);
  }
}

/* ==================================================
   SCREENSHOT SHOWCASE STYLES
   ================================================== */
.screenshot-showcase {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.screenshot-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
}

.screenshot-caption {
  margin-top: var(--spacing-4);
  color: var(--color-neutral-600);
  font-size: var(--text-sm);
  font-style: italic;
}

@media (prefers-color-scheme: dark) {
  .screenshot-img {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
    border-color: var(--color-neutral-600);
  }
}

/* ==================================================
   FLOW DIAGRAM STYLES
   ================================================== */
.flow-diagram-container {
  max-width: 940px;
  margin: 0 auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: var(--spacing-8);
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.08),
    0 12px 24px -8px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  overflow-x: auto;
  position: relative;
}

.flow-diagram-premium {
  background: 
    radial-gradient(ellipse at top right, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(16, 185, 129, 0.03) 0%, transparent 50%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.flow-diagram-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #10b981 50%, #3b82f6 100%);
  border-radius: 20px 20px 0 0;
  opacity: 0.8;
}

.flow-diagram {
  width: 100%;
  height: auto;
  min-height: 500px;
  font-family: var(--font-family);
}

.flow-diagram text {
  font-family: var(--font-family);
}

.flow-node {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.flow-node:hover {
  transform: translateY(-2px);
}

.flow-node rect,
.flow-node polygon {
  transition: filter 0.3s ease;
}

.flow-node:hover rect,
.flow-node:hover polygon {
  filter: brightness(1.03);
}

@media (max-width: 768px) {
  .flow-diagram-container {
    padding: var(--spacing-6) var(--spacing-4);
    margin-left: calc(-1 * var(--spacing-4));
    margin-right: calc(-1 * var(--spacing-4));
    border-radius: 0;
  }
  
  .flow-diagram-premium::before {
    border-radius: 0;
  }
  
  .flow-diagram {
    min-width: 750px;
  }
}

/* ==================================================
   SIMPLE LINEAR FLOW STEPS
   ================================================== */
.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-6);
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  min-width: 180px;
  max-width: 200px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.flow-step-number {
  position: absolute;
  top: -14px;
  right: -10px;
  left: auto;
  transform: none;
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flow-step-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-3);
  color: var(--color-primary);
}

.flow-step-icon svg {
  width: 32px;
  height: 32px;
}

.flow-step-icon-success {
  color: var(--color-success);
}

.flow-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-neutral-900);
  margin-bottom: var(--spacing-2);
  line-height: 1.3;
}

.flow-step-text {
  font-size: 0.875rem;
  color: var(--color-neutral-600);
  line-height: 1.5;
  margin: 0;
}

.flow-step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--spacing-2);
  color: var(--color-neutral-300);
  flex-shrink: 0;
}

.flow-step-arrow svg {
  width: 24px;
  height: 24px;
}

/* Responsive: Stack vertically on smaller screens */
@media (max-width: 1024px) {
  .flow-steps {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-4);
  }
  
  .flow-step {
    max-width: 320px;
    width: 100%;
  }
  
  .flow-step-arrow {
    transform: rotate(90deg);
    padding: var(--spacing-1) 0;
  }
}

@media (max-width: 480px) {
  .flow-step {
    padding: var(--spacing-5);
  }
}

/* Coming Soon Step Variant */
.flow-step-coming-soon {
  border: 2px dashed rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
  position: relative;
  padding-top: 2rem;
}

.flow-step-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.flow-step-icon-coming-soon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
  color: var(--color-primary);
}

.flow-step-arrow-dashed {
  opacity: 0.6;
}

.flow-step-arrow-dashed svg {
  stroke-dasharray: 4 3;
}

.flow-step-price {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

/* ==================================================
   COORDINATION LAYER DRAWER
   ================================================== */

/* Floating Side Tab Trigger */
.coordination-trigger {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: -2px 2px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.coordination-trigger:hover {
  transform: translateY(-50%) translateX(-4px);
  box-shadow: -4px 4px 20px rgba(0, 0, 0, 0.2);
}

.coordination-trigger:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

.coordination-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coordination-trigger-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.coordination-trigger-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: inherit;
  text-decoration: none;
}

.coordination-trigger-subtitle {
  display: none;
}

/* Mobile: Bottom floating button instead of side tab */
@media (max-width: 768px) {
  .coordination-trigger {
    right: 1rem;
    bottom: 1rem;
    top: auto;
    transform: none;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    border-radius: 8px;
    padding: 0.75rem 1rem;
  }
  
  .coordination-trigger:hover {
    transform: translateY(-2px);
  }
}

.coordination-trigger-footer {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.coordination-trigger-footer:hover {
  color: var(--color-primary);
}

/* Drawer Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Drawer Container */
.coordination-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  visibility: hidden;
}

.coordination-drawer.open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
}

/* Drawer Header */
.drawer-header {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  padding: var(--space-6);
  border-bottom: 1px solid #EAECEF;
  border-left: 4px solid var(--color-primary);
  z-index: 1;
}

.drawer-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  color: var(--color-neutral-500);
  transition: background 0.2s ease, color 0.2s ease;
}

.drawer-close:hover {
  background: var(--color-neutral-200);
  color: var(--color-neutral-700);
}

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

.drawer-close svg {
  width: 20px;
  height: 20px;
}

.drawer-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-neutral-800);
  margin: 0 0 var(--space-2) 0;
  padding-right: var(--space-10);
  line-height: var(--leading-tight);
}

.drawer-subtitle {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin: 0;
  line-height: var(--leading-normal);
}

/* Drawer Content */
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-6);
  -webkit-overflow-scrolling: touch;
}

.drawer-section {
  margin-bottom: var(--space-8);
}

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

.drawer-section-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-neutral-800);
  margin: 0 0 var(--space-3) 0;
  line-height: var(--leading-tight);
}

.drawer-section-body {
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.drawer-section-body ul {
  margin: var(--space-3) 0 0 0;
  padding-left: var(--space-5);
}

.drawer-section-body li {
  margin-bottom: var(--space-2);
}

.drawer-section-body li:last-child {
  margin-bottom: 0;
}

/* Callout */
.drawer-callout {
  padding: var(--space-4);
  background: var(--color-neutral-200);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-neutral-600);
  font-style: italic;
  margin-top: var(--space-4);
}

/* Benefits Grid */
.drawer-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.drawer-benefit-column h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  margin: 0 0 var(--space-2) 0;
}

.drawer-benefit-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-benefit-column li {
  font-size: var(--text-xs);
  color: var(--color-neutral-600);
  margin-bottom: var(--space-2);
  padding-left: var(--space-4);
  position: relative;
}

.drawer-benefit-column li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0.5;
}

/* Pills/Labels */
.drawer-pill {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--color-neutral-200);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-neutral-600);
  margin-right: var(--space-2);
}

.drawer-pill-primary {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
}

/* Divider */
.drawer-divider {
  height: 1px;
  background: #EAECEF;
  margin: var(--space-6) 0;
}

/* Footer Note */
.drawer-footer-note {
  padding-top: var(--space-6);
  border-top: 1px solid #EAECEF;
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  line-height: var(--leading-relaxed);
}

/* Mobile: Bottom Sheet Style */
@media (max-width: 640px) {
  .coordination-drawer {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(100%);
  }
  
  .coordination-drawer.open {
    transform: translateY(0);
  }
  
  .drawer-header {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  
  .drawer-header::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: var(--color-neutral-400);
    border-radius: 2px;
    margin: 0 auto var(--space-4);
  }
  
  .drawer-benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

@media (min-width: 641px) and (max-width: 768px) {
  .coordination-drawer {
    max-width: 420px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .coordination-drawer {
    max-width: 460px;
  }
}

@media (min-width: 1025px) {
  .coordination-drawer {
    max-width: 520px;
  }
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* ==================================================
   CHATBOT WIDGET
   ================================================== */

/* Floating Chat Button */
.chatbot-trigger {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chatbot-trigger:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.chatbot-trigger:focus {
  outline: 3px solid rgba(59, 130, 246, 0.5);
  outline-offset: 2px;
}

.chatbot-trigger svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* Chat Window */
.chatbot-window {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  z-index: 1001;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 480px;
  max-height: calc(100vh - 8rem);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0.2s;
}

.chatbot-window.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s 0s;
}

.chatbot-header {
  padding: 1rem 1.25rem;
  background: var(--color-primary);
  color: white;
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chatbot-header-title {
  font-weight: 600;
  font-size: 1rem;
}

.chatbot-close {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chatbot-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chatbot-message.assistant {
  align-self: flex-start;
  background: var(--color-neutral-100);
  color: var(--foreground);
}

.chatbot-message.user {
  align-self: flex-end;
  background: var(--color-primary);
  color: white;
}

.chatbot-typing {
  align-self: flex-start;
  padding: 0.75rem 1rem;
  background: var(--color-neutral-100);
  border-radius: 12px;
  display: flex;
  gap: 4px;
}

.chatbot-typing-dot {
  width: 8px;
  height: 8px;
  background: var(--color-neutral-400);
  border-radius: 50%;
  animation: chatbot-typing 1.2s ease-in-out infinite;
}

.chatbot-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatbot-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chatbot-input-container {
  padding: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.chatbot-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.chatbot-input:focus {
  border-color: var(--color-primary);
}

.chatbot-send {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.chatbot-send:hover {
  background: var(--color-primary-dark);
}

.chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-send svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .chatbot-window {
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  
  .chatbot-header {
    border-radius: 0;
  }
  
  .chatbot-trigger {
    bottom: 1rem;
    right: 1rem;
  }
}

/* Ensure chatbot trigger doesn't overlap coordination drawer trigger */
@media (min-width: 769px) {
  .chatbot-trigger {
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

/* ==================================================
   PILLAR PAGE STYLES
   ================================================== */

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--color-primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span[aria-hidden] {
  color: var(--text-muted);
}

/* Pillar Content */
.pillar-content {
  margin-top: 2rem;
}

.pillar-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-default);
}

.pillar-content h2:first-child {
  margin-top: 0;
}

.pillar-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* Pillar CTA Section */
.pillar-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-muted);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.pillar-cta h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-default);
}

.pillar-cta p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.pillar-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Pillar Related Links */
.pillar-related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.pillar-related h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-default);
}

.pillar-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pillar-related li {
  margin-bottom: 0.75rem;
}

.pillar-related a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.pillar-related a:hover {
  text-decoration: underline;
}

/* Article Header & Meta */
.article-header {
  margin-bottom: 2rem;
}

.article-header h1 {
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.article-divider {
  color: var(--border-medium);
}

.article-author {
  font-weight: 500;
}

.article-reading-time {
  font-style: italic;
}

/* FAQ Section */
.faq-section {
  margin-top: 1.5rem;
}

.faq-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-default);
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* External Resources */
.pillar-external-resources {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.pillar-external-resources h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-default);
}

.pillar-external-resources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pillar-external-resources li {
  margin-bottom: 0.75rem;
}

.pillar-external-resources a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.pillar-external-resources a:hover {
  text-decoration: underline;
}

/* ============================================
   COLLAPSIBLE DEMO SIMULATOR
   ============================================ */

.demo-collapsible {
  max-width: 48rem;
  margin: 0 auto;
}

.demo-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.demo-toggle-btn:hover {
  background: var(--color-primary-hover);
}

.demo-toggle-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.demo-chevron {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.demo-toggle-btn.expanded .demo-chevron {
  transform: rotate(180deg);
}

.demo-panel {
  margin-top: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  overflow: hidden;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-0.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-content {
  padding: 1.5rem;
  background: var(--bg-card);
}

.demo-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 0.5rem;
}

.demo-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.demo-controls-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .demo-controls-row {
    grid-template-columns: 1fr 1fr;
  }
}

.demo-control-group {
  text-align: center;
  margin-bottom: 1.5rem;
}

.demo-control-group:last-child {
  margin-bottom: 0;
}

.demo-control-label {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--foreground);
}

.demo-control-hint {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
  line-height: 1.5;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.demo-control-sublabel {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.demo-control-note {
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.demo-status-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.demo-status-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 200px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-status-btn:hover {
  background: var(--bg-muted);
}

.demo-status-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.status-green { background: #22c55e; }
.status-amber { background: #f59e0b; }
.status-red { background: #ef4444; }
.status-blue { background: #3b82f6; }
.status-gray { background: #9ca3af; }

/* Language button styles */
.demo-language-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.demo-lang-btn {
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-lang-btn:hover {
  background: var(--bg-muted);
}

.demo-lang-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Caller type buttons - horizontal layout */
.demo-caller-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.demo-caller-buttons .demo-status-btn {
  max-width: none;
  width: auto;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
}

/* Badge colors */
.badge-blue {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.badge-gray {
  background: rgba(107, 114, 128, 0.1);
  color: #6b7280;
}

.demo-play-section {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.demo-play-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
}

.demo-transcript-section {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.demo-call-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.demo-call-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-primary);
}

.demo-clinic-name {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
}

.demo-status-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.demo-status-badge {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  color: white;
}

.badge-green { background: #22c55e; }
.badge-amber { background: #f59e0b; }
.badge-red { background: #ef4444; }

.demo-transcript {
  background: var(--bg-muted);
  border-radius: 0.5rem;
  padding: 1rem;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
}

.demo-transcript-placeholder {
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.875rem;
  margin: 0;
}

.demo-transcript-text {
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: pre-line;
  margin: 0;
  color: var(--foreground);
}

/* Demo Card (non-collapsible version for dental) */
.demo-card {
  max-width: 56rem;
  margin: 0 auto;
  border: 2px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}

.demo-card .demo-content {
  padding: 2rem;
}

@media (max-width: 640px) {
  .demo-card .demo-content {
    padding: 1.25rem;
  }
}

/* Voice Selection Buttons */
.demo-voice-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.demo-voice-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-muted);
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 7rem;
}

.demo-voice-btn:hover {
  border-color: var(--color-primary);
  background: rgba(59, 130, 246, 0.05);
}

.demo-voice-btn.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--color-primary);
}

.voice-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
}

.voice-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Toggle Row for Waitlist */
.demo-toggle-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.demo-toggle-btn-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--bg-muted);
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.demo-toggle-btn-option:hover {
  border-color: var(--color-primary);
}

.demo-toggle-btn-option.active {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--color-primary);
  color: var(--foreground);
}

.badge-blue { background: #3b82f6; }
.badge-gray { background: #6b7280; }
