/* ==========================================================================
   CAREPULSE OPD - Premium Medical Design System
   Domain: carepulseopd.com
   Designed for Doctors & Healthcare Practices
   Developed by DR. L. T. MAHAJAN
   ========================================================================== */

:root {
  /* Brand Medical Color Palette */
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --teal-950: #042f2e;

  /* Medical Accents */
  --blue-medical: #0284c7;
  --blue-medical-light: #e0f2fe;
  --emerald-accent: #059669;
  --emerald-light: #ecfdf5;
  --amber-warning: #d97706;
  --amber-light: #fef3c7;
  --rose-danger: #e11d48;
  --rose-light: #ffe4e6;

  /* Neutral Slate Foundation */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --slate-950: #020617;

  /* Semantic UI Tokens */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #0d9488;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 12px 24px -4px rgba(13, 148, 136, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1240px;
  --header-height: 74px;
}

/* Base Reset & Core Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

img, svg {
  display: block;
  max-width: 100%;
}

/* Container Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Top Banner Notification */
.top-notice-bar {
  background-color: var(--slate-900);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  text-align: center;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-notice-bar a {
  color: var(--teal-300);
  font-weight: 600;
  text-decoration: underline;
  margin-left: 0.4rem;
}

/* Sticky Header Navigation */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-fast);
  height: var(--header-height);
}

.header-nav.scrolled {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--teal-600) 0%, var(--teal-800) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.3);
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  line-height: 1.1;
}

.brand-title span.pulse-accent {
  color: var(--teal-600);
}

.brand-badge-opd {
  background-color: var(--teal-50);
  color: var(--teal-700);
  border: 1px solid var(--teal-200);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-tagline-sub {
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 500;
}

/* Nav Menu Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-600);
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal-700);
}

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

/* Nav Right CTA Cluster */
.nav-cta-cluster {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-nav-login {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-nav-login:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.btn-nav-trial {
  font-size: 0.88rem;
  font-weight: 700;
  background-color: var(--teal-600);
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--teal-700);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-nav-trial:hover {
  background-color: var(--teal-700);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  color: var(--slate-700);
  cursor: pointer;
}

/* Mobile Drawer Overlay & Panel */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-nav-drawer.open {
  display: block;
  opacity: 1;
}

.mobile-drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background: #ffffff;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.mobile-drawer-links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-700);
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
  background-color: var(--teal-50);
  color: var(--teal-700);
}

.mobile-drawer-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Button & UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
  border: 1px solid transparent;
  line-height: 1;
}

.btn-primary {
  background-color: var(--teal-600);
  color: #ffffff;
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background-color: var(--teal-700);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--slate-800);
  border: 1px solid var(--border-medium);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-secondary:hover {
  background-color: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-outline-teal {
  background-color: transparent;
  color: var(--teal-700);
  border: 1.5px solid var(--teal-600);
  padding: 0.75rem 1.4rem;
  font-size: 0.95rem;
}

.btn-outline-teal:hover {
  background-color: var(--teal-50);
  border-color: var(--teal-700);
}

.btn-lg {
  padding: 1rem 1.85rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
}

.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-doctor {
  background-color: var(--teal-50);
  color: var(--teal-800);
  border: 1px solid var(--teal-200);
}

.badge-doctor .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--teal-500);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.2);
}

.badge-popular {
  background-color: var(--teal-700);
  color: #ffffff;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
}

.badge-info {
  background-color: var(--blue-medical-light);
  color: var(--blue-medical);
}

.badge-success {
  background-color: var(--emerald-light);
  color: var(--emerald-accent);
}

/* Section Common Styling */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-light {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

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

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Hero Section */
.hero-section {
  padding: 3.5rem 0 4.5rem 0;
  background: radial-gradient(circle at 50% 0%, var(--teal-50) 0%, #ffffff 70%);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

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

.hero-headline {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-top: 1.25rem;
  margin-bottom: 1.35rem;
}

.hero-headline span.highlight-teal {
  color: var(--teal-600);
}

.hero-support-text {
  font-size: 1.22rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust-points {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--slate-500);
  font-weight: 500;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust-item svg {
  color: var(--teal-600);
  width: 17px;
  height: 17px;
}

/* Hero Dashboard Showcase Mockup */
.hero-visual-wrapper {
  margin-top: 1rem;
  position: relative;
}

.dashboard-window {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: transform var(--transition-normal);
}

.window-titlebar {
  background: var(--slate-900);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 0.45rem;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.window-dot.close { background-color: #ef4444; }
.window-dot.min { background-color: #f59e0b; }
.window-dot.max { background-color: #10b981; }

.window-title {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--slate-300);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.window-status-pill {
  background: rgba(13, 148, 136, 0.2);
  color: var(--teal-300);
  border: 1px solid rgba(20, 184, 166, 0.4);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Dashboard Mockup Inner Layout */
.dashboard-inner {
  background: var(--slate-50);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Dashboard Top KPI Bar */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--slate-500);
  letter-spacing: 0.04em;
}

.kpi-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1.1;
}

.kpi-subtext {
  font-size: 0.74rem;
  color: var(--slate-500);
}

.kpi-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

.kpi-badge.teal {
  background: var(--teal-50);
  color: var(--teal-700);
}

/* Consultation & Queue Split Screen */
.dashboard-work-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 1.25rem;
}

.queue-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.panel-header {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.panel-header h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.queue-current-card {
  background: var(--teal-50);
  border-bottom: 1px solid var(--teal-100);
  padding: 1rem;
}

.queue-current-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal-800);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.queue-current-token {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal-900);
  font-family: var(--font-mono);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.queue-patient-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 0.2rem;
}

.queue-patient-meta {
  font-size: 0.76rem;
  color: var(--slate-500);
}

.queue-list {
  list-style: none;
  overflow-y: auto;
  max-height: 280px;
}

.queue-item {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  transition: background var(--transition-fast);
}

.queue-item:hover {
  background-color: var(--slate-50);
}

.queue-item-token {
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--slate-700);
  background: var(--slate-100);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
}

.queue-item-info {
  flex: 1;
  margin-left: 0.75rem;
}

.queue-item-name {
  font-weight: 600;
  color: var(--slate-800);
}

.queue-item-status {
  font-size: 0.7rem;
  color: var(--slate-400);
}

/* Consultation Main Workspace */
.consultation-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.patient-info-strip {
  background: var(--slate-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.patient-id-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.patient-avatar-circle {
  width: 36px;
  height: 36px;
  background: var(--teal-100);
  color: var(--teal-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.patient-title-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
}

.patient-uhid-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate-500);
  background: #ffffff;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.vitals-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.vital-tag {
  font-size: 0.78rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 0.3rem;
}

.vital-tag strong {
  color: var(--slate-900);
}

/* Rx Table inside Mockup */
.rx-table-container {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rx-mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.rx-mock-table th {
  background: var(--slate-100);
  color: var(--slate-700);
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
}

.rx-mock-table td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--slate-800);
}

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

.drug-name-text {
  font-weight: 700;
  color: var(--slate-900);
}

.drug-generic {
  font-size: 0.7rem;
  color: var(--slate-500);
}

.rx-badge-route {
  font-size: 0.7rem;
  background: var(--slate-100);
  color: var(--slate-600);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.action-bar-mock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.action-buttons-group {
  display: flex;
  gap: 0.5rem;
}

/* 4 Core Pillars Cards */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.pillar-icon-box {
  width: 48px;
  height: 48px;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 1px solid var(--teal-100);
}

.pillar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Visual Horizontal Connected Workflow */
.workflow-section {
  background: #ffffff;
}

.workflow-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  padding: 1.5rem 0.5rem 2rem 0.5rem;
  scrollbar-width: thin;
  position: relative;
}

.workflow-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 105px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.workflow-node-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--teal-600);
  color: var(--teal-700);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.15);
  margin-bottom: 0.65rem;
  transition: all var(--transition-fast);
}

.workflow-step-node:hover .workflow-node-icon {
  background: var(--teal-600);
  color: #ffffff;
  transform: scale(1.08);
}

.workflow-node-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-800);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.workflow-connector-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--teal-200), var(--teal-500));
  margin: 0 0.25rem;
  margin-bottom: 1.7rem;
  min-width: 25px;
}

/* Feature Showcase Rows (Alternating Layout) */
.feature-showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.feature-showcase-row:last-child {
  margin-bottom: 0;
}

.feature-showcase-row.reversed {
  direction: rtl;
}

.feature-showcase-row.reversed > * {
  direction: ltr;
}

.feature-content-block {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--teal-700);
  background: var(--teal-50);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  width: fit-content;
}

.feature-heading {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.feature-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.feature-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--slate-700);
  font-weight: 500;
}

.feature-check-item svg {
  color: var(--teal-600);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

/* Mockup Frames & Cards */
.mockup-card-frame {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mockup-header-bar {
  background: var(--slate-100);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-600);
}

.mockup-body {
  padding: 1.25rem;
  background: #ffffff;
}

/* Registration Mockup Details */
.form-grid-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.form-field-preview {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-label-preview {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--slate-600);
}

.form-input-preview {
  background: var(--slate-50);
  border: 1px solid var(--border-light);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--slate-800);
}

/* Timeline Preview */
.patient-timeline-preview {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  padding-left: 1.5rem;
}

.patient-timeline-preview::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--slate-200);
}

.timeline-event-item {
  position: relative;
  background: var(--slate-50);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.timeline-event-item::before {
  content: '';
  position: absolute;
  left: -1.75rem;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-600);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--teal-600);
}

.timeline-event-date {
  font-size: 0.7rem;
  color: var(--slate-500);
  font-weight: 600;
}

.timeline-event-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--slate-900);
}

.timeline-event-details {
  font-size: 0.76rem;
  color: var(--slate-600);
}

/* Role Based Access Table */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.role-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.role-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.role-icon {
  width: 40px;
  height: 40px;
  background: var(--teal-50);
  color: var(--teal-700);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.role-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
}

.role-scope-badge {
  font-size: 0.72rem;
  color: var(--teal-800);
  background: var(--teal-50);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.role-permissions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--slate-600);
}

.role-permissions-list li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.role-permissions-list li svg {
  color: var(--emerald-accent);
  width: 16px;
  height: 16px;
}

/* Practices Grid (General Physician, Pediatrician, etc.) */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.practice-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all var(--transition-fast);
}

.practice-card:hover {
  border-color: var(--teal-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.practice-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem auto;
  background: var(--slate-50);
  color: var(--teal-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.practice-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.35rem;
}

.practice-desc {
  font-size: 0.8rem;
  color: var(--slate-500);
  line-height: 1.4;
}

/* Security Architecture Section */
.security-banner-card {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.security-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.security-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.security-item-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-300);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.security-item-desc {
  font-size: 0.82rem;
  color: var(--slate-300);
  line-height: 1.45;
}

/* Pricing Grid & Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

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

.pricing-card.featured {
  border: 2px solid var(--teal-600);
  box-shadow: 0 12px 28px -4px rgba(13, 148, 136, 0.22);
  transform: scale(1.02);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.pricing-plan-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  color: var(--slate-700);
  margin-bottom: 0.5rem;
}

.pricing-card.featured .pricing-plan-badge {
  background: var(--teal-50);
  color: var(--teal-700);
}

.pricing-plan-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--slate-900);
}

.pricing-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1;
}

.pricing-frequency {
  font-size: 0.88rem;
  color: var(--slate-500);
}

.pricing-original-strike {
  font-size: 0.9rem;
  color: var(--slate-400);
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.pricing-billing-note {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-top: 0.35rem;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-feature-row {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--slate-700);
  line-height: 1.4;
}

.pricing-feature-row svg {
  color: var(--teal-600);
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
}

/* 4-Step Onboarding Workflow */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--teal-200);
  line-height: 1;
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--teal-300);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
}

.faq-question-btn svg {
  color: var(--teal-600);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

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

.faq-answer {
  padding: 0 1.35rem 1.25rem 1.35rem;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: none;
}

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

/* Forms & Inputs */
.lead-form-card {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--slate-700);
}

.form-label span.req {
  color: var(--rose-danger);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--slate-900);
  background-color: #ffffff;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalFadeIn 0.2s ease-out;
}

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

.modal-header {
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

.modal-close-btn:hover {
  color: var(--slate-700);
  background: var(--slate-100);
}

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
}

/* Sticky Bottom Bar on Mobile */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 90;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
}

/* Footer */
.site-footer {
  background-color: var(--slate-950);
  color: var(--slate-300);
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid var(--slate-800);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--slate-400);
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--slate-400);
}

.footer-col ul a:hover {
  color: var(--teal-300);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--slate-400);
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  color: var(--teal-400);
  margin-top: 3px;
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

.footer-bottom-bar {
  border-top: 1px solid var(--slate-800);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: var(--slate-500);
}

.footer-dev-credit {
  color: var(--slate-300);
  font-weight: 600;
}

.footer-dev-credit strong {
  color: var(--teal-300);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .nav-links, .btn-nav-login {
    display: none;
  }

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

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

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

  .feature-showcase-row,
  .feature-showcase-row.reversed {
    grid-template-columns: 1fr;
    gap: 2rem;
    direction: ltr;
  }

  .dashboard-work-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.25rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .pillars-grid, .steps-grid {
    grid-template-columns: 1fr;
  }

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

  .form-group.full-width {
    grid-column: span 1;
  }

  .feature-checklist {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-cta {
    display: flex;
  }

  body {
    padding-bottom: 60px;
  }

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

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