/* ============================================
   JotOT — AI Documentation for Occupational Therapists
   Complete Stylesheet
   ============================================ */

:root {
  --teal: #0d9488;
  --teal-light: #99f6e4;
  --teal-dark: #0f766e;
  --teal-bg: #f0fdfa;
  --purple: #7c3aed;
  --purple-light: #ddd6fe;
  --purple-dark: #6d28d9;
  --green: #059669;
  --green-light: #d1fae5;
  --orange: #d97706;
  --orange-light: #fef3c7;
  --blue: #2563eb;
  --blue-light: #dbeafe;
  --yellow: #ca8a04;
  --yellow-light: #fef9c3;
  --red: #ef4444;
  --red-light: #fee2e2;

  --dark: #0f172a;
  --dark-2: #1e293b;
  --dark-3: #334155;
  --mid: #64748b;
  --light: #94a3b8;
  --lighter: #cbd5e1;
  --lightest: #f1f5f9;
  --white: #ffffff;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --transition: 0.2s ease;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select, textarea { font-family: var(--font); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  transition: all var(--transition);
  border: 2px solid var(--teal);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(13,148,136,0.3); }

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-xl { padding: 18px 40px; font-size: 17px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--dark);
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid var(--lighter);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-outline:hover { border-color: var(--dark); background: var(--lightest); }
.btn-outline.btn-lg { padding: 16px 32px; }
.btn-outline.btn-xl { padding: 18px 40px; font-size: 17px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--mid);
  padding: 12px 20px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 15px;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-ghost:hover { color: var(--dark); background: var(--lightest); }
.btn-ghost.btn-xl { padding: 18px 32px; font-size: 17px; color: var(--dark); }

.btn-generate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  color: var(--white);
  padding: 18px 40px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 700;
  width: 100%;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
  margin-top: 24px;
}
.btn-generate:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-generate:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-bg);
  color: var(--teal-dark);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--teal-light);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-sm:hover { background: var(--teal-light); }
.btn-sm.btn-sign { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-sm.btn-sign:hover { background: var(--teal-dark); }
.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--lightest);
  color: var(--mid);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--lighter);
  transition: all var(--transition);
  cursor: pointer;
}
.btn-ghost-sm:hover { background: var(--lighter); }

/* ============================================
   SECTION HELPERS
   ============================================ */
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  background: var(--teal-bg);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid var(--teal-light);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--teal); font-family: var(--font-serif); font-weight: 600; }
.section-subtitle { font-size: 18px; color: var(--mid); max-width: 600px; margin-bottom: 60px; line-height: 1.6; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--lightest);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  font-size: 22px;
  font-weight: 900;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo-dot {
  width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
}
.logo-accent { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--dark); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--dark);
  font-size: 18px;
  background: var(--lightest);
  cursor: pointer;
  border: none;
  margin-left: auto;
}

@media (max-width: 900px) {
  .nav-links { 
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: white;
    flex-direction: column;
    padding: 20px 24px;
    border-bottom: 1px solid var(--lightest);
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--lightest); width: 100%; }
  .nav-cta .btn-ghost { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, #f0fdfa 0%, #ffffff 60%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 20%, rgba(13,148,136,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--lighter);
  color: var(--mid);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
}
.hero-badge i { color: var(--teal); }

.hero-title {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--dark);
  letter-spacing: -2px;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title em {
  font-style: italic;
  color: var(--teal);
  font-family: var(--font-serif);
  font-weight: 600;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--mid);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.hero-note {
  color: var(--light);
  font-size: 13px;
  margin-bottom: 60px;
}

/* Preview Window */
.hero-preview {
  max-width: 860px;
  margin: 0 auto;
}
.preview-window {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 80px rgba(0,0,0,0.12), 0 0 0 1px var(--lighter);
  overflow: hidden;
  text-align: left;
}
.preview-toolbar {
  background: var(--dark-2);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.preview-dots span:first-child { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #22c55e; }
.preview-title { color: rgba(255,255,255,0.6); font-size: 13px; flex: 1; text-align: center; }
.preview-record {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 600;
}
.record-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse-dot 1.5s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400px;
}
@media (max-width: 680px) { .preview-body { grid-template-columns: 1fr; } }

.preview-chat {
  padding: 24px;
  border-right: 1px solid var(--lightest);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chat-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-bubble.therapist {
  background: var(--teal-bg);
  border: 1px solid var(--teal-light);
  color: var(--dark-3);
}
.chat-bubble.client {
  background: var(--lightest);
  border: 1px solid var(--lighter);
  color: var(--dark-3);
  margin-left: 20px;
}
.chat-bubble strong { color: var(--dark); }

.preview-generating { padding: 24px; }
.generating-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 16px;
}
.generating-bar {
  flex: 1;
  height: 4px;
  background: var(--teal-light);
  border-radius: 4px;
  overflow: hidden;
}
.generating-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 4px;
  width: 80%;
  animation: fill-bar 2s ease-in-out infinite alternate;
}
@keyframes fill-bar {
  0% { width: 30%; }
  100% { width: 95%; }
}

.generated-note { display: flex; flex-direction: column; gap: 12px; }
.note-section {
  display: flex;
  gap: 12px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--dark-3);
}
.note-label {
  width: 22px; height: 22px;
  background: var(--teal);
  color: white;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.note-codes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.code-badge {
  background: var(--purple-light);
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--purple-light);
}

/* ============================================
   PROOF BAR
   ============================================ */
.proof-bar {
  background: var(--dark);
  padding: 32px 24px;
}
.proof-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.proof-stat strong {
  font-size: 28px;
  font-weight: 900;
  color: var(--teal-light);
  letter-spacing: -1px;
}
.proof-stat span { font-size: 13px; color: rgba(255,255,255,0.6); }
.proof-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.1); }
@media (max-width: 680px) { .proof-divider { display: none; } .proof-inner { gap: 24px; } }

/* ============================================
   FEATURES
   ============================================ */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card--large { grid-column: span 2; }
.feature-card {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); border-color: var(--teal-light); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--teal-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 20px;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--mid); line-height: 1.6; }
.feature-highlight {
  margin-top: 16px;
  font-size: 13px;
  color: var(--teal-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--large { grid-column: span 2; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { padding: 100px 0; background: var(--lightest); }
.steps { display: flex; flex-direction: column; gap: 80px; margin-top: 60px; }

.step {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.step--reverse { direction: rtl; }
.step--reverse > * { direction: ltr; }

.step-number {
  font-size: 72px;
  font-weight: 900;
  color: var(--lighter);
  line-height: 1;
  letter-spacing: -3px;
  font-family: var(--font-serif);
}
.step-content h3 { font-size: 26px; font-weight: 700; margin-bottom: 12px; }
.step-content p { font-size: 16px; color: var(--mid); line-height: 1.6; }

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--lighter);
}
.step-icon-wrap {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
}
.step-icon-wrap.teal { background: var(--teal-bg); color: var(--teal); }
.waveform { display: flex; align-items: center; gap: 3px; height: 50px; }
.wave-bar { background: var(--teal); border-radius: 2px; width: 4px; opacity: 0.7; animation: wave-anim 1.4s ease-in-out infinite alternate; }
.wave-bar:nth-child(even) { animation-delay: 0.3s; opacity: 0.4; }
@keyframes wave-anim {
  from { transform: scaleY(0.5); }
  to { transform: scaleY(1.2); }
}
.step-card-label { font-size: 13px; color: var(--mid); margin-top: 8px; }

.template-list { display: flex; flex-direction: column; gap: 8px; }
.template-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mid);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.template-item.active {
  background: var(--teal-bg);
  border-color: var(--teal-light);
  color: var(--teal-dark);
}
.template-item i:first-child { color: var(--teal); }
.template-item i:last-child { margin-left: auto; color: var(--teal); }

.completed-note { display: flex; flex-direction: column; gap: 12px; }
.completed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}
.completed-codes { display: flex; flex-direction: column; gap: 6px; }
.completed-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px 12px;
  background: var(--lightest);
  border-radius: 8px;
}
.completed-code.icd { background: var(--purple-light); }
.code-label {
  font-size: 10px;
  font-weight: 800;
  background: var(--teal);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.icd-label { background: var(--purple); }
.code-amount { margin-left: auto; font-weight: 700; color: var(--green); }
.completed-total { text-align: right; font-size: 14px; color: var(--mid); }
.completed-total strong { color: var(--dark); }

@media (max-width: 900px) {
  .step { grid-template-columns: 60px 1fr; }
  .step-visual { display: none; }
}

/* ============================================
   SPECIALTIES
   ============================================ */
.specialties { padding: 100px 0; }
.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.specialty-card {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  position: relative;
}
.specialty-card:hover { box-shadow: var(--shadow); border-color: var(--teal-light); transform: translateY(-2px); }
.specialty-card--featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.specialty-badge {
  position: absolute;
  top: -12px; left: 24px;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
}
.specialty-icon {
  width: 52px; height: 52px;
  background: var(--teal-bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 22px;
  margin-bottom: 16px;
}
.specialty-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.specialty-card p { font-size: 14px; color: var(--mid); line-height: 1.6; margin-bottom: 16px; }
.specialty-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.specialty-tags span {
  background: var(--lightest);
  color: var(--mid);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid var(--lighter);
}
@media (max-width: 900px) { .specialties-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .specialties-grid { grid-template-columns: 1fr; } }

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials { padding: 100px 0; background: var(--dark); overflow: hidden; }
.testimonials .section-tag { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); color: var(--teal-light); }
.testimonials .section-title { color: var(--white); }
.testimonials .section-title em { color: var(--teal-light); }

.testimonials-track-wrap { overflow: hidden; margin: 0 -24px; }
.testimonials-track {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  animation: slide-track 40s linear infinite;
  width: max-content;
}
.testimonials-track:hover { animation-play-state: paused; }
@keyframes slide-track {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 28px;
  width: 320px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.testimonial-card:hover { background: rgba(255,255,255,0.1); }
.testimonial-stars { color: #fbbf24; font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-quote { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--white); }
.testimonial-role { font-size: 12px; color: rgba(255,255,255,0.5); }
.testimonial-setting { font-size: 12px; color: var(--teal-light); font-weight: 500; }

/* ============================================
   SECURITY
   ============================================ */
.security { padding: 100px 0; background: var(--lightest); }
.security-content { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 400px; gap: 80px; align-items: center; }
.security-content p { font-size: 16px; color: var(--mid); margin-bottom: 40px; line-height: 1.6; }
.security-steps { display: flex; flex-direction: column; gap: 24px; }
.security-step { display: flex; gap: 16px; align-items: flex-start; }
.security-num {
  width: 36px; height: 36px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.security-step strong { display: block; font-size: 15px; margin-bottom: 2px; }
.security-step p { font-size: 13px; color: var(--mid); margin: 0; }

.security-visual { display: flex; align-items: center; justify-content: center; }
.security-shield {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.shield-outer {
  width: 180px; height: 200px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.shield-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.shield-inner i { font-size: 36px; color: white; }
.shield-inner span { font-size: 13px; font-weight: 700; color: white; letter-spacing: 1px; text-transform: uppercase; }
.security-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sec-badge {
  background: var(--white);
  border: 1px solid var(--lighter);
  color: var(--dark-3);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sec-badge i { color: var(--teal); }

@media (max-width: 900px) {
  .security-content { grid-template-columns: 1fr; }
  .security-visual { display: none; }
}

/* ============================================
   PRICING
   ============================================ */
.pricing { padding: 100px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all var(--transition);
  position: relative;
}
.pricing-card:hover { box-shadow: var(--shadow); }
.pricing-card--featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}
.pricing-card--enterprise {
  background: var(--dark-2);
  border-color: var(--dark-3);
}
.pricing-card--enterprise .pricing-name { color: white; }
.pricing-card--enterprise .pricing-desc { color: rgba(255,255,255,0.5); }
.pricing-card--enterprise .pricing-features li { color: rgba(255,255,255,0.8); }
.pricing-card--enterprise .pricing-features i { color: var(--teal-light); }

.pricing-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-name { font-size: 20px; font-weight: 700; }
.pricing-desc { font-size: 13px; color: var(--mid); margin-top: -12px; }
.pricing-price { display: flex; align-items: flex-end; gap: 2px; line-height: 1; }
.price-dollar { font-size: 24px; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.price-num { font-size: 52px; font-weight: 900; color: var(--dark); letter-spacing: -2px; }
.price-per { font-size: 14px; color: var(--mid); margin-bottom: 8px; }
.pricing-price-custom { font-size: 36px; font-weight: 900; color: var(--white); }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dark-3);
}
.pricing-features li i.fa-check { color: var(--teal); }
.pricing-features li i.fa-times { color: var(--lighter); }
.pricing-features li.disabled { color: var(--lighter); }

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

/* ============================================
   FAQ
   ============================================ */
.faq { padding: 100px 0; background: var(--lightest); }
.faq-inner { display: grid; grid-template-columns: 340px 1fr; gap: 80px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.faq-inner a { color: var(--teal); font-weight: 600; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--lighter); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-q i { transition: transform var(--transition); flex-shrink: 0; color: var(--mid); }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  display: none;
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--mid);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }
@media (max-width: 900px) { .faq-inner { grid-template-columns: 1fr; } }

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  padding: 120px 24px;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #0d9488 100%);
}
.cta-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -2px;
  margin-bottom: 20px;
  line-height: 1.1;
}
.cta-title em { font-style: italic; font-family: var(--font-serif); font-weight: 600; color: var(--teal-light); }
.cta-subtitle { font-size: 18px; color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 40px; line-height: 1.6; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.cta-badges {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.cta-badges span { display: flex; align-items: center; gap: 6px; }
.cta-badges i { color: var(--teal-light); }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--dark); padding: 80px 0 0; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
}
.footer-logo { color: white !important; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 12px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--teal); color: white; }

.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1000px) { .footer-inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 680px) { .footer-links { grid-template-columns: repeat(2, 1fr); } }

/* ============================================
   APP SHELL
   ============================================ */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: var(--lightest);
}

.sidebar {
  background: var(--white);
  border-right: 1px solid var(--lighter);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: 240px;
  z-index: 50;
  overflow-y: auto;
}
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--lightest);
}
.sidebar-logo { font-size: 20px; }
.sidebar-nav {
  flex: 1;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--mid);
  transition: all var(--transition);
  cursor: pointer;
}
.sidebar-item:hover { background: var(--lightest); color: var(--dark); }
.sidebar-item.active { background: var(--teal-bg); color: var(--teal-dark); font-weight: 600; }
.sidebar-item i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-badge {
  margin-left: auto;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
}
.sidebar-divider { height: 1px; background: var(--lightest); margin: 8px 0; }
.sidebar-user {
  padding: 16px 16px;
  border-top: 1px solid var(--lightest);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.user-role { font-size: 11px; color: var(--mid); }

.app-main {
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--lighter);
  height: 60px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 40;
}
.sidebar-toggle {
  display: none;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--lightest);
  color: var(--dark);
  font-size: 16px;
  cursor: pointer;
  border: none;
}
.topbar-title { font-size: 18px; font-weight: 700; flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.topbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}
.topbar-btn:hover { background: var(--teal-dark); }
.topbar-notify {
  position: relative;
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 16px;
  cursor: pointer;
}
.notify-dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid white;
}

.view { display: none; padding: 28px; }
.view.active { display: block; }
.view-header { margin-bottom: 28px; }
.view-header h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 6px; }
.view-header p { font-size: 15px; color: var(--mid); }

/* Dashboard */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.stat-icon.teal { background: var(--teal-bg); color: var(--teal); }
.stat-icon.purple { background: var(--purple-light); color: var(--purple); }
.stat-icon.green { background: var(--green-light); color: var(--green); }
.stat-icon.orange { background: var(--orange-light); color: var(--orange); }
.stat-icon.blue { background: var(--blue-light); color: var(--blue); }
.stat-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.stat-num { font-size: 26px; font-weight: 800; letter-spacing: -1px; color: var(--dark); }
.stat-label { font-size: 12px; color: var(--mid); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.panel-wide { grid-column: span 2; }
.dashboard-panel {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 20px;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.panel-header h3 { font-size: 16px; font-weight: 700; }
.panel-tag { font-size: 12px; font-weight: 600; color: var(--teal); background: var(--teal-bg); padding: 3px 10px; border-radius: 100px; }
.panel-link { font-size: 13px; color: var(--teal); font-weight: 600; }

.schedule-list { display: flex; flex-direction: column; gap: 2px; }
.schedule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background var(--transition);
  cursor: pointer;
}
.schedule-item:hover { background: var(--lightest); }
.schedule-item.current { background: var(--teal-bg); }
.schedule-time { font-size: 12px; color: var(--mid); width: 62px; flex-shrink: 0; }
.schedule-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.schedule-info { flex: 1; }
.schedule-client { font-size: 13px; font-weight: 600; }
.schedule-type { font-size: 12px; color: var(--mid); }
.schedule-status { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.schedule-status.completed { color: var(--green); }
.schedule-status.current { color: var(--teal); }
.schedule-status.upcoming { color: var(--mid); }

.notes-list { display: flex; flex-direction: column; gap: 2px; }
.note-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
}
.note-item:hover { background: var(--lightest); }
.note-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple) 0%, var(--teal) 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.note-info { flex: 1; }
.note-client { font-size: 13px; font-weight: 600; }
.note-type { font-size: 12px; color: var(--mid); }
.note-meta { text-align: right; }
.note-time { font-size: 11px; color: var(--light); }
.note-status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 2px;
  display: inline-block;
}
.note-status.signed { background: var(--green-light); color: var(--green); }
.note-status.draft { background: var(--orange-light); color: var(--orange); }

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--lightest);
  border: 1px solid var(--lighter);
  transition: all var(--transition);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.quick-action:hover { background: var(--white); box-shadow: var(--shadow-card); border-color: var(--teal-light); }
.qa-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.qa-icon.teal { background: var(--teal-bg); color: var(--teal); }
.qa-icon.purple { background: var(--purple-light); color: var(--purple); }
.qa-icon.green { background: var(--green-light); color: var(--green); }
.qa-icon.orange { background: var(--orange-light); color: var(--orange); }

/* Note Creator */
.note-creator { max-width: 800px; }
.note-setup {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.setup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.setup-field { display: flex; flex-direction: column; gap: 6px; }
.setup-field label { font-size: 13px; font-weight: 600; color: var(--dark-3); }
.setup-field select, .setup-field input {
  padding: 10px 14px;
  border: 1px solid var(--lighter);
  border-radius: 8px;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.setup-field select:focus, .setup-field input:focus { border-color: var(--teal); }

.recorder-section {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 28px;
}
.recorder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
}
.recorder-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(13,148,136,0.3);
}
.recorder-icon:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(13,148,136,0.4); }
.recorder-status { font-size: 15px; color: var(--mid); font-weight: 500; }
.recorder-timer { font-size: 28px; font-weight: 700; color: var(--dark); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.recorder-wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.rwave-bar { width: 3px; background: var(--teal-light); border-radius: 2px; height: 10px; transition: height 0.1s ease; }
.rwave-bar.active { animation: rwave 0.6s ease infinite alternate; }
.rwave-bar:nth-child(odd).active { animation-delay: 0.1s; }
.rwave-bar:nth-child(3n).active { animation-delay: 0.2s; }
@keyframes rwave {
  from { height: 8px; }
  to { height: 36px; }
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--light);
  font-size: 13px;
  margin: 20px 0;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--lighter);
}

.text-input-section { display: flex; flex-direction: column; gap: 8px; }
.text-input-section label { font-size: 13px; font-weight: 600; color: var(--dark-3); }
.text-input-section textarea {
  padding: 14px;
  border: 1px solid var(--lighter);
  border-radius: 10px;
  font-size: 14px;
  color: var(--dark);
  resize: vertical;
  outline: none;
  line-height: 1.6;
}
.text-input-section textarea:focus { border-color: var(--teal); }
.text-input-section textarea::placeholder { color: var(--light); }

.generated-output {
  margin-top: 24px;
  background: var(--white);
  border: 2px solid var(--teal-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--teal-bg);
  border-bottom: 1px solid var(--teal-light);
}
.output-title { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-dark); }
.output-title i { color: var(--teal); }
.output-actions { display: flex; gap: 8px; }
.output-body { padding: 20px; }
.note-text { white-space: pre-wrap; font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.7; color: var(--dark-3); }
.output-codes { padding: 16px 20px; background: var(--lightest); border-top: 1px solid var(--lighter); }
.codes-header { font-size: 13px; font-weight: 700; color: var(--dark); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.codes-list { display: flex; flex-wrap: wrap; gap: 8px; }
.code-pill {
  background: var(--white);
  border: 1px solid var(--lighter);
  color: var(--dark-3);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
}
.code-pill.icd { background: var(--purple-light); border-color: var(--purple-light); color: var(--purple-dark); }

/* Notes Table */
.notes-toolbar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-input {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid var(--lighter);
  border-radius: 8px;
  font-size: 14px;
  background: var(--white);
  outline: none;
}
.search-input:focus { border-color: var(--teal); }
.filter-select {
  padding: 10px 14px;
  border: 1px solid var(--lighter);
  border-radius: 8px;
  font-size: 13px;
  background: var(--white);
  color: var(--dark);
  outline: none;
  cursor: pointer;
}

.notes-table { background: var(--white); border: 1px solid var(--lighter); border-radius: var(--radius); overflow: hidden; }
.table-header {
  display: grid;
  grid-template-columns: 160px 200px 130px 150px 90px 100px;
  padding: 12px 20px;
  background: var(--lightest);
  border-bottom: 1px solid var(--lighter);
  font-size: 12px;
  font-weight: 700;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.table-row {
  display: grid;
  grid-template-columns: 160px 200px 130px 150px 90px 100px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--lightest);
  align-items: center;
  font-size: 13px;
  transition: background var(--transition);
  cursor: pointer;
}
.table-row:hover { background: var(--lightest); }
.table-row:last-child { border-bottom: none; }
.row-client { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.mini-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.row-type { color: var(--dark-3); }
.row-date { color: var(--mid); }
.row-codes { color: var(--teal-dark); font-size: 12px; font-weight: 600; }
.row-status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 100px; text-align: center; }
.row-status.signed { background: var(--green-light); color: var(--green); }
.row-status.draft { background: var(--orange-light); color: var(--orange); }
.row-actions { display: flex; gap: 4px; }
.icon-btn {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mid);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  background: none;
}
.icon-btn:hover { background: var(--lightest); color: var(--dark); }

/* Clients */
.clients-toolbar { display: flex; gap: 12px; margin-bottom: 20px; }
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.client-card {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}
.client-card:hover { box-shadow: var(--shadow-card); border-color: var(--teal-light); }
.client-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.client-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.client-name { font-size: 15px; font-weight: 700; }
.client-dob { font-size: 12px; color: var(--mid); }
.client-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--lightest);
  color: var(--mid);
}
.client-status.active { background: var(--green-light); color: var(--green); }
.client-dx { font-size: 13px; color: var(--dark-3); font-weight: 600; margin-bottom: 4px; }
.client-setting { font-size: 12px; color: var(--teal); font-weight: 600; margin-bottom: 12px; }
.client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.client-meta span { font-size: 12px; color: var(--mid); display: flex; align-items: center; gap: 4px; }
.client-meta i { color: var(--teal); }
.client-actions { display: flex; gap: 8px; }

/* Templates */
.templates-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-chip {
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--lighter);
  color: var(--mid);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active { background: var(--teal); color: white; border-color: var(--teal); }

.templates-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.template-card {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all var(--transition);
  position: relative;
}
.template-card:hover { box-shadow: var(--shadow-card); border-color: var(--teal-light); }
.template-popular {
  position: absolute;
  top: -8px; right: 16px;
  background: var(--orange);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
}
.template-card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.template-card-icon.teal { background: var(--teal-bg); color: var(--teal); }
.template-card-icon.purple { background: var(--purple-light); color: var(--purple); }
.template-card-icon.orange { background: var(--orange-light); color: var(--orange); }
.template-card-icon.blue { background: var(--blue-light); color: var(--blue); }
.template-card-icon.green { background: var(--green-light); color: var(--green); }
.template-card-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.template-card-name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.template-card-meta { display: flex; flex-direction: column; gap: 3px; }
.template-cat { font-size: 11px; color: var(--mid); }
.template-spec { font-size: 11px; color: var(--teal); font-weight: 600; }

/* Billing */
.billing-grid { display: grid; grid-template-columns: 1fr 380px; gap: 20px; }
.billing-panel {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 24px;
}
.billing-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.cpt-list { display: flex; flex-direction: column; }
.cpt-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px 100px;
  padding: 10px 0;
  border-bottom: 1px solid var(--lightest);
  font-size: 13px;
  align-items: center;
  gap: 8px;
}
.cpt-row:last-child { border-bottom: none; }
.cpt-code { font-weight: 700; color: var(--teal-dark); }
.cpt-name { color: var(--dark-3); }
.cpt-unit { color: var(--mid); font-size: 12px; }
.cpt-rate { font-weight: 600; color: var(--green); text-align: right; }

.billing-summary { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }
.billing-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--lightest);
  font-size: 14px;
}
.billing-stat span { color: var(--mid); }
.billing-stat strong { font-weight: 700; color: var(--dark); }
.flag-none { color: var(--green) !important; }
.top-codes h4 { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: var(--dark-3); }
.code-bar-item { margin-bottom: 14px; }
.code-bar-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; }
.code-num { font-weight: 700; color: var(--teal-dark); }
.code-nm { flex: 1; color: var(--mid); }
.code-cnt { font-weight: 700; color: var(--dark); }
.code-bar-track { height: 6px; background: var(--lightest); border-radius: 3px; overflow: hidden; }
.code-bar-fill { height: 100%; background: var(--teal); border-radius: 3px; transition: width 1s ease; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-panel {
  background: var(--white);
  border: 1px solid var(--lighter);
  border-radius: var(--radius);
  padding: 24px;
}
.settings-panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.settings-form { display: flex; flex-direction: column; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 13px; font-weight: 600; color: var(--dark-3); }
.form-field input, .form-field select {
  padding: 10px 14px;
  border: 1px solid var(--lighter);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.form-field input:focus, .form-field select:focus { border-color: var(--teal); }

.toggle-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--lightest);
  gap: 16px;
}
.toggle-label { font-size: 14px; font-weight: 600; }
.toggle-sub { font-size: 12px; color: var(--mid); }
.toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--lighter);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.toggle.on { background: var(--teal); }
.toggle.on::after { transform: translateX(20px); }

/* Mobile responsive for app */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition);
  }
  .sidebar.open { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel-wide { grid-column: span 1; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .templates-grid { grid-template-columns: repeat(2, 1fr); }
  .billing-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .notes-toolbar { flex-direction: column; }
  .table-header, .table-row { grid-template-columns: 140px 1fr 100px 80px; }
  .table-header > span:nth-child(4),
  .table-header > span:nth-child(6),
  .table-row > span:nth-child(4),
  .table-row > span:nth-child(6) { display: none; }
  .setup-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .clients-grid { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr; }
  .dashboard-stats { grid-template-columns: 1fr 1fr; }
  .view { padding: 16px; }
}

/* ============================================
   DEMO PAGE
   ============================================ */
.demo-page { min-height: 100vh; background: var(--dark); }
.demo-nav {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.demo-nav .nav-logo { color: white; }
.demo-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}
.demo-content h1 { font-size: 42px; font-weight: 900; color: white; letter-spacing: -1.5px; margin-bottom: 12px; }
.demo-content > p { font-size: 18px; color: rgba(255,255,255,0.6); margin-bottom: 40px; }

.demo-steps-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}
.demo-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  transition: opacity var(--transition);
}
.demo-step-item.active { opacity: 1; }
.demo-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: white;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-step-item.active .demo-step-num { background: var(--teal); }
.demo-step-label { font-size: 13px; color: rgba(255,255,255,0.7); font-weight: 600; }
.demo-arrow { color: rgba(255,255,255,0.3); font-size: 20px; }

.demo-window {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  margin-bottom: 40px;
}
.demo-panel { display: none; }
.demo-panel.active { display: block; }
.demo-panel-header {
  padding: 16px 24px;
  background: var(--lightest);
  border-bottom: 1px solid var(--lighter);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.demo-transcript { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.transcript-bubble {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}
.transcript-bubble.ot { background: var(--teal-bg); border: 1px solid var(--teal-light); }
.transcript-bubble.client { background: var(--lightest); border: 1px solid var(--lighter); margin-left: 24px; }
.transcript-waveform { padding: 16px; background: var(--dark-2); border-radius: 12px; }
.tw-label { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.tw-label i { color: var(--red); }
.tw-bars { display: flex; align-items: center; gap: 3px; height: 36px; }
.tw-bar { width: 4px; background: var(--teal); border-radius: 2px; opacity: 0.8; }
.demo-panel > .btn-primary { margin: 20px 24px 24px; }

.demo-processing { padding: 40px 24px; display: flex; flex-direction: column; gap: 16px; }
.process-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--mid);
  padding: 12px 16px;
  border-radius: 8px;
}
.process-step.done { color: var(--green); background: var(--green-light); }
.process-step.active { color: var(--teal-dark); background: var(--teal-bg); font-weight: 600; }
.process-step i { font-size: 16px; }

.demo-note-output {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 0;
}
.demo-note-content { padding: 24px; border-right: 1px solid var(--lighter); display: flex; flex-direction: column; gap: 20px; }
.demo-soap-section { display: flex; gap: 16px; }
.soap-letter {
  width: 32px; height: 32px;
  background: var(--teal);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.soap-body p { font-size: 13px; line-height: 1.6; color: var(--dark-3); margin-bottom: 6px; }

.demo-codes-panel { padding: 24px; background: var(--lightest); display: flex; flex-direction: column; gap: 12px; }
.demo-codes-title { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.demo-code-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--lighter);
}
.demo-code-row.recommended { border-color: var(--teal-light); background: var(--teal-bg); }
.demo-code-row.icd { background: var(--purple-light); border-color: var(--purple-light); }
.demo-code-badge {
  font-size: 10px;
  font-weight: 800;
  background: var(--teal);
  color: white;
  padding: 3px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}
.demo-code-badge.icd { background: var(--purple); }
.demo-code-num { font-size: 13px; font-weight: 700; color: var(--dark); }
.demo-code-name { font-size: 12px; color: var(--mid); }
.demo-code-rate { margin-left: auto; font-weight: 700; color: var(--green); font-size: 13px; }
.demo-audit-clear {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  padding: 10px 12px;
  background: var(--green-light);
  border-radius: 8px;
}
.demo-total { font-size: 16px; font-weight: 700; padding: 8px 0; border-top: 1px solid var(--lighter); }
.demo-total strong { color: var(--teal-dark); }
.btn-sign-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-sign-demo:hover { background: var(--teal-dark); }

.demo-cta { padding: 20px 0; }
.demo-cta p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }

@media (max-width: 680px) {
  .demo-note-output { grid-template-columns: 1fr; }
  .demo-nav { padding: 16px 20px; }
  .demo-content { padding: 40px 16px; }
}

/* ============================================
   RESPONSIVE — LANDING
   ============================================ */
@media (max-width: 900px) {
  .how-it-works .step { grid-template-columns: 50px 1fr; gap: 16px; }
  .how-it-works .step--reverse { direction: ltr; }
}
