/* ============================================================
   Practice 121 - Apple-Inspired Design System (Pure White Edition)
   Apple Pure White (#FFFFFF) & Signature Off-White (#F5F5F7)
   True 3D Interactive Cards with Specular Highlights & Elevations
   Responsive Frosted Glass Navigation, Scroll-Spy, and Accessible Routing
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ---- Design Tokens ---- */
:root {
  /* Apple Signature Color Palette */
  --apple-black:         #1D1D1F;
  --apple-dark:          #111827;
  --apple-gray-dark:     #3A3A3C;
  --apple-gray:          #6E6E73;
  --apple-gray-light:    #86868B;
  --apple-border:        rgba(0, 0, 0, 0.08);
  --apple-border-hover:  rgba(16, 185, 129, 0.4);
  --apple-bg:            #FFFFFF;
  --apple-bg-alt:        #F5F5F7;
  --apple-bg-card:       #FFFFFF;

  /* Healthcare Emerald Accents (Subtle, High-Tech) */
  --emerald-900:         #064E3B;
  --emerald-800:         #065F46;
  --emerald-700:         #047857;
  --emerald-600:         #059669;
  --emerald-500:         #10B981;
  --emerald-400:         #34D399;
  --emerald-200:         #A7F3D0;
  --emerald-100:         #D1FAE5;
  --emerald-50:          #ECFDF5;

  /* 3D Shadows & Specular Elevations */
  --shadow-3d-base:      0 2px 4px rgba(0, 0, 0, 0.02), 0 6px 20px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-3d-hover:     0 20px 48px -10px rgba(0, 0, 0, 0.12), 0 10px 24px -5px rgba(16, 185, 129, 0.14), inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-float:        0 24px 64px -14px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);

  /* Radii */
  --radius-xs:           6px;
  --radius-sm:           10px;
  --radius-md:           16px;
  --radius-lg:           22px;
  --radius-xl:           26px;
  --radius-2xl:          32px;
  --radius-pill:         980px;

  /* Layout & Animation */
  --header-h:            54px;
  --max-w:               1200px;
  --max-w-narrow:        960px;
  --ease-apple:          cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast:     all 0.22s var(--ease-apple);
  --transition-3d:       transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple), border-color 0.35s var(--ease-apple);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Outfit", "Inter", sans-serif;
  background: var(--apple-bg);
  color: var(--apple-black);
  line-height: 1.5;
  overflow-x: hidden;
  font-size: 16px;
}

/* Ensure all scroll anchor targets clear the fixed header smoothly */
section[id], .apple-section, .hero-apple {
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
}

/* ---- Utilities ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--apple-black);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

a {
  color: var(--emerald-700);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--emerald-600);
}

/* Section Header Typography */
.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--apple-gray-light);
  margin-bottom: 0.65rem;
}

.section-eyebrow.accent {
  color: var(--emerald-700);
}

.section-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--apple-black);
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  color: var(--apple-gray);
  line-height: 1.5;
  font-weight: 400;
  max-width: 680px;
  margin: 0 auto;
}

/* ============================================================
   Buttons (Apple-Style Precision Pill Buttons)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.btn-sm {
  padding: 0.38rem 1.1rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.02rem;
}

/* Apple Black Pill */
.btn-dark {
  background: var(--apple-black);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.btn-dark:hover {
  background: #000000;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.btn-dark:active {
  transform: translateY(0);
}

/* Apple Outline Pill */
.btn-outline {
  background: transparent;
  color: var(--apple-black);
  border-color: rgba(0, 0, 0, 0.16);
}

.btn-outline:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--apple-black);
  border-color: rgba(0, 0, 0, 0.32);
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Apple Frosted Pill */
.btn-frosted {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--apple-black);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-frosted:hover {
  background: #FFFFFF;
  color: var(--apple-black);
  border-color: rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Apple Link with Chevron */
.apple-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--emerald-700);
  transition: var(--transition-fast);
}

.apple-link svg {
  transition: transform 0.2s ease;
}

.apple-link:hover {
  color: var(--emerald-600);
}

.apple-link:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   Header & Navigation (Apple Frosted Glass + Scrollspy)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--apple-border);
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--apple-black);
}

.logo a span {
  color: var(--emerald-600);
  margin-left: 1px;
}

/* Nav Links */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--apple-black);
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
  letter-spacing: -0.01em;
  padding: 0.25rem 0.4rem;
  position: relative;
}

.nav-link:hover {
  opacity: 1;
  color: var(--apple-black);
}

.nav-link.active {
  opacity: 1;
  font-weight: 600;
  color: var(--emerald-700);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0.4rem;
  right: 0.4rem;
  height: 2px;
  background: var(--emerald-600);
  border-radius: var(--radius-pill);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

#header-login-btn {
  padding: 0.35rem 0.95rem;
  font-size: 0.82rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.04);
  color: var(--apple-black);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

#header-login-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
}

#header-signup-btn {
  padding: 0.35rem 0.95rem;
  font-size: 0.82rem;
  border-radius: var(--radius-pill);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  z-index: 1100;
}

.mobile-nav-toggle .bar {
  width: 20px;
  height: 1.5px;
  background: var(--apple-black);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-nav-toggle.open .bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.nav-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   HERO SECTION - Pure Apple White (#FFFFFF)
   ============================================================ */
.hero-apple {
  position: relative;
  background: #FFFFFF;
  padding: 4.5rem 0 4.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
}

/* Hero Eyebrow Pill (Apple Minimalist Style) */
.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 1rem;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--apple-black);
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.hero-kicker-pill:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

.hero-kicker-pill svg {
  color: var(--emerald-600);
}

/* Hero Headlines */
.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.05;
  color: var(--apple-black);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 600;
  color: var(--apple-gray-dark);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 1.1rem;
}

.hero-description {
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--apple-gray);
  max-width: 740px;
  margin: 0 auto 2rem;
  line-height: 1.55;
}

/* Hero Action CTAs */
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.hero-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--apple-gray);
  margin-bottom: 3.5rem;
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-trust-row svg {
  color: var(--emerald-600);
}

/* ============================================================
   HERO 3D SHOWCASE CARD (Apple Keynote Depth)
   ============================================================ */
.hero-showcase {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  perspective: 1200px;
}

.hero-card-glass {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFC 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-float);
  border-radius: var(--radius-2xl);
  padding: 2.25rem;
  text-align: left;
  transition: var(--transition-3d);
  position: relative;
  overflow: hidden;
}

.hero-card-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 1), transparent);
  pointer-events: none;
}

.hero-card-glass:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.12), 0 10px 26px rgba(0, 0, 0, 0.04);
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.showcase-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--apple-black);
}

.live-pulse-dot {
  width: 10px;
  height: 10px;
  background: var(--emerald-500);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.showcase-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-50);
  color: var(--emerald-800);
  border: 1px solid var(--emerald-200);
}

.badge-tag.tag-blue {
  background: #EFF6FF;
  color: #1E40AF;
  border-color: #BFDBFE;
}

/* Audio Snippet Box */
.audio-transcript-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.audio-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--apple-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.waveform-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.waveform-bar span {
  display: inline-block;
  width: 3px;
  background: var(--emerald-500);
  border-radius: 2px;
  animation: wave-bar 1.2s infinite ease-in-out alternate;
}

.waveform-bar span:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.waveform-bar span:nth-child(2) { height: 12px; animation-delay: 0.3s; }
.waveform-bar span:nth-child(3) { height: 16px; animation-delay: 0.2s; }
.waveform-bar span:nth-child(4) { height: 8px; animation-delay: 0.4s; }
.waveform-bar span:nth-child(5) { height: 14px; animation-delay: 0.15s; }

@keyframes wave-bar {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1); }
}

.transcript-quote {
  font-size: 0.95rem;
  color: #1E293B;
  font-style: italic;
  line-height: 1.45;
}

/* SOAP Note Output */
.soap-box {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.soap-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.soap-title-row h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--apple-black);
}

.speed-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--emerald-700);
  background: var(--emerald-50);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
}

.soap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  font-size: 0.86rem;
}

.soap-item {
  background: #F8FAFC;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--apple-gray-dark);
}

.soap-item strong {
  display: block;
  font-size: 0.76rem;
  color: var(--apple-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

/* Rx Snippet */
.rx-banner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  color: var(--emerald-900);
  flex-wrap: wrap;
  gap: 0.75rem;
}

.rx-meta-pill {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--emerald-700);
}

/* ============================================================
   SECTIONS: APPLE WHITE & SIGNATURE OFF-WHITE (#F5F5F7)
   ============================================================ */
.apple-section {
  padding: 4.5rem 0;
  position: relative;
}

.apple-section.white-bg {
  background: var(--apple-bg);
}

.apple-section.gray-bg {
  background: var(--apple-bg-alt);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* ============================================================
   TRUE 3D INTERACTIVE CARDS SYSTEM
   ============================================================ */
/* Perspective wrapper for 3D parents */
.management-grid,
.clinician-grid,
.device-cards-grid,
.patient-experience-grid,
.pricing-cards-grid {
  perspective: 1200px;
}

/* Base 3D Card Architecture */
.apple-3d-card,
.apple-bento-card,
.feature-pillar-card,
.device-card-item,
.branding-quote-card,
.doctor-profile-card,
.patient-card,
.price-card {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFC 100%);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3d-base);
  transition: var(--transition-3d);
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
}

/* Top specular highlight on cards */
.apple-bento-card::before,
.feature-pillar-card::before,
.device-card-item::before,
.patient-card::before,
.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

/* Prominent, Tactile 3D Hover State */
.apple-bento-card:hover,
.feature-pillar-card:hover,
.device-card-item:hover,
.patient-card:hover,
.price-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--apple-border-hover);
  z-index: 10;
}

/* Icon Elevation on Card Hover */
.apple-bento-card:hover .bento-icon-wrap,
.feature-pillar-card:hover .bento-icon-wrap,
.device-card-item:hover .device-icon,
.patient-card:hover .patient-card-icon {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--emerald-600);
}

/* ============================================================
   SECTION 1: COMPLETE PRACTICE MANAGEMENT
   ============================================================ */
.management-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.apple-bento-card {
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  margin-bottom: 1.35rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.apple-bento-card h3 {
  font-size: 1.55rem;
  letter-spacing: -0.025em;
  margin-bottom: 0.65rem;
  color: var(--apple-black);
}

.apple-bento-card p {
  color: var(--apple-gray);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.bento-mockup {
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.88rem;
}

.schedule-row:last-child {
  border-bottom: none;
}

.schedule-time {
  font-weight: 600;
  color: var(--apple-black);
}

.schedule-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-50);
  color: var(--emerald-700);
}

.revenue-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.kpi-box {
  background: #F8FAFC;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

.kpi-val {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--emerald-800);
}

.kpi-label {
  font-size: 0.74rem;
  color: var(--apple-gray-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-cta-wrap {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================================
   SECTION 2: CLINICIAN-CENTRIC FEATURES
   ============================================================ */
.clinician-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.feature-pillar-card {
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
}

.feature-pillar-card h3 {
  font-size: 1.3rem;
  margin: 1.1rem 0 0.55rem;
  color: var(--apple-black);
}

.feature-pillar-card p {
  font-size: 0.94rem;
  color: var(--apple-gray);
  line-height: 1.5;
  margin-bottom: 1.35rem;
}

.pillar-preview {
  margin-top: auto;
  background: var(--apple-bg-alt);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  font-size: 0.84rem;
}

.med-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.med-pill {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--apple-black);
}

/* ============================================================
   SECTION 3: DEVICE FLEXIBILITY
   ============================================================ */
.devices-showcase-wrap {
  margin-top: 2.5rem;
  text-align: center;
}

.device-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.device-card-item {
  padding: 2.5rem 1.75rem;
  text-align: center;
}

.device-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.device-card-item h3 {
  font-size: 1.22rem;
  margin-bottom: 0.5rem;
}

.device-card-item p {
  font-size: 0.92rem;
  color: var(--apple-gray);
  line-height: 1.5;
}

.device-spec-strip {
  display: inline-flex;
  align-items: center;
  gap: 1.75rem;
  padding: 0.75rem 1.75rem;
  background: var(--apple-bg-alt);
  border-radius: var(--radius-pill);
  border: 1px solid var(--apple-border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--apple-gray-dark);
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   SECTION 4: PRACTICE GROWTH & BRANDING
   ============================================================ */
.branding-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}

.branding-quote-card {
  padding: 2.75rem 2.25rem;
}

.branding-quote-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3d-hover);
}

.apple-big-quote {
  font-size: clamp(1.35rem, 2.1vw, 1.8rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--apple-black);
  letter-spacing: -0.025em;
  margin-bottom: 1.35rem;
}

.doctor-profile-card {
  padding: 2rem;
}

.doctor-profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3d-hover);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.35rem;
}

.profile-avatar-ph {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald-100) 0%, var(--emerald-500) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.35rem;
}

.profile-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--apple-black);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.profile-spec {
  font-size: 0.85rem;
  color: var(--apple-gray);
  margin-top: 2px;
}

.profile-url-badge {
  display: inline-block;
  font-family: monospace;
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  background: var(--apple-bg-alt);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-pill);
  color: var(--emerald-800);
  margin-bottom: 1rem;
}

/* ============================================================
   SECTION 5: PATIENT EXPERIENCE
   ============================================================ */
.patient-experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.patient-card {
  padding: 2.1rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.patient-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-700);
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: var(--transition-fast);
}

.patient-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--apple-black);
}

.patient-card p {
  font-size: 0.92rem;
  color: var(--apple-gray);
  line-height: 1.5;
}

/* ============================================================
   SECTION 6: EHR & SECURITY
   ============================================================ */
.security-apple-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFC 100%);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-2xl);
  padding: 3rem 2.75rem;
  box-shadow: var(--shadow-3d-base);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  transition: var(--transition-3d);
}

.security-apple-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3d-hover);
}

.sec-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 1.75rem;
}

.sec-feature-item {
  display: flex;
  gap: 1rem;
}

.sec-check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  color: var(--emerald-700);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.82rem;
  font-weight: 700;
}

.sec-feature-item h4 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.sec-feature-item p {
  font-size: 0.9rem;
  color: var(--apple-gray);
  line-height: 1.45;
}

.security-badge-box {
  background: var(--apple-bg-alt);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  text-align: center;
}

.security-seal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.15rem;
  color: var(--emerald-700);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   SECTION 7: TRANSPARENT PRICING & MATRIX
   ============================================================ */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.toggle-switch-container {
  display: inline-flex;
  background: var(--apple-bg-alt);
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-pill);
  padding: 4px;
}

.toggle-btn {
  padding: 0.5rem 1.35rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--apple-gray);
  cursor: pointer;
  transition: var(--transition-fast);
}

.toggle-btn.active {
  background: #FFFFFF;
  color: var(--apple-black);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.save-pill-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--emerald-100);
  color: var(--emerald-800);
  border: 1px solid var(--emerald-200);
}

/* 4-Tier Pricing Grid */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem;
  margin-bottom: 3.5rem;
  align-items: stretch;
}

.price-card {
  padding: 2.25rem 1.65rem;
  display: flex;
  flex-direction: column;
}

.price-card.featured-card {
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 32px rgba(16, 185, 129, 0.12), var(--shadow-3d-base);
}

.featured-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald-700);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-tier-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--apple-black);
}

.price-tier-desc {
  font-size: 0.82rem;
  color: var(--apple-gray);
  min-height: 2.4rem;
  margin-bottom: 1.15rem;
}

.price-box {
  margin-bottom: 1.25rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.price-amount {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--apple-black);
}

.price-period {
  font-size: 0.82rem;
  color: var(--apple-gray-light);
  font-weight: 500;
}

.price-billing-sub {
  font-size: 0.76rem;
  color: var(--emerald-700);
  font-weight: 600;
  margin-top: 3px;
}

.price-trial-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: var(--apple-bg-alt);
  border-radius: var(--radius-pill);
  color: var(--apple-gray-dark);
  margin-bottom: 1.15rem;
}

.price-features-preview {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.84rem;
  color: var(--apple-gray-dark);
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.price-features-preview li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price-features-preview svg {
  color: var(--emerald-600);
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
}

/* Comparison Matrix Table */
.comparison-matrix-wrap {
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-3d-base);
  margin-top: 2rem;
}

.matrix-header-box {
  padding: 1.5rem 1.85rem;
  background: var(--apple-bg-alt);
  border-bottom: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.matrix-header-box h3 {
  font-size: 1.2rem;
  color: var(--apple-black);
}

.matrix-table-scroll {
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.matrix-table th, .matrix-table td {
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.matrix-table th {
  background: #FAFAFA;
  font-weight: 600;
  color: var(--apple-black);
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table tr:hover td {
  background: #F8F9FA;
}

.matrix-feature-name {
  font-weight: 600;
  color: var(--apple-black);
  width: 28%;
}

.matrix-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-50);
  color: var(--emerald-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.matrix-dash {
  color: #D1D5DB;
  font-weight: 600;
}

.matrix-badge-text {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: #F3F4F6;
  color: var(--apple-gray-dark);
}

.matrix-badge-text.badge-custom {
  background: #EFF6FF;
  color: #1D4ED8;
}

/* ============================================================
   SECTION 8: FAQ
   ============================================================ */
.faq-apple-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-apple-item {
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: var(--transition-fast);
}

.faq-apple-item[open] {
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.faq-apple-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.6rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--apple-black);
  cursor: pointer;
  list-style: none;
}

.faq-apple-question::-webkit-details-marker {
  display: none;
}

.faq-icon-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--apple-gray);
}

.faq-apple-item[open] .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--emerald-700);
}

.faq-apple-answer {
  padding: 0 1.6rem 1.35rem;
  font-size: 0.94rem;
  color: var(--apple-gray);
  line-height: 1.6;
}

/* ============================================================
   CALL TO ACTION BANNER & CONTACT
   ============================================================ */
.cta-apple-banner {
  background: var(--apple-black);
  border-radius: var(--radius-2xl);
  padding: 4rem 2.5rem;
  text-align: center;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.cta-apple-banner h2 {
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  color: #FFFFFF;
  margin-bottom: 0.85rem;
}

.cta-apple-banner p {
  color: #A1A1A6;
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2.25rem;
  line-height: 1.5;
}

.contact-wrap {
  max-width: 820px;
  margin: 3rem auto 0;
  background: #FFFFFF;
  border: 1px solid var(--apple-border);
  border-radius: var(--radius-2xl);
  padding: 2.75rem 2.25rem;
  box-shadow: var(--shadow-3d-base);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
  margin-top: 1.75rem;
}

.contact-form-grid .full-span {
  grid-column: 1 / -1;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--apple-border);
  background: #FAFAFC;
  font-family: inherit;
  font-size: 0.94rem;
  color: var(--apple-black);
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--emerald-600);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

textarea.form-control {
  min-height: 105px;
  resize: vertical;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--apple-bg-alt);
  border-top: 1px solid var(--apple-border);
  padding: 4rem 0 2.5rem;
  font-size: 0.84rem;
  color: var(--apple-gray);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--apple-gray);
  line-height: 1.5;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--apple-black);
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}

.footer-col nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-col nav a {
  color: var(--apple-gray);
  transition: color 0.2s ease;
}

.footer-col nav a:hover {
  color: var(--apple-black);
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--apple-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--apple-gray-light);
}

/* ============================================================
   LEGAL / POLICY PAGES (Preserved)
   ============================================================ */
.page-header {
  padding: calc(var(--header-h) + 3rem) 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid var(--apple-border);
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-header .updated {
  color: var(--emerald-800);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4.5rem;
}

.page-content h2 {
  font-size: 1.4rem;
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1.5px solid var(--apple-border);
  color: var(--emerald-800);
}

.page-content p {
  color: var(--apple-gray-dark);
  margin-bottom: 1.1rem;
  font-size: 0.96rem;
  line-height: 1.6;
}

.page-content ul, .page-content ol {
  color: var(--apple-gray-dark);
  margin: 0 0 1.2rem 1.5rem;
  font-size: 0.96rem;
}

.page-content li {
  margin-bottom: 0.35rem;
}

.page-content strong {
  color: var(--apple-black);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1100px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clinician-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .mobile-nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--header-h) + 2rem) 2rem 2rem;
    gap: 1.2rem;
    transition: right 0.3s var(--ease-apple);
    border-left: 1px solid var(--apple-border);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav .nav-link {
    font-size: 1.05rem;
    width: 100%;
    padding: 0.4rem 0;
  }

  .management-grid,
  .branding-grid,
  .security-apple-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .device-cards-grid,
  .patient-experience-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-apple {
    padding: 3rem 0 3.5rem;
  }

  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }

  .clinician-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
  }

  .soap-grid {
    grid-template-columns: 1fr;
  }

  .device-spec-strip {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-apple-banner {
    padding: 3rem 1.5rem;
  }
}
