/* === BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --navy: #0F1219;
  --navy-light: #171C28;
  --navy-lighter: #1E2433;
  --surface: #232A3B;
  --teal: #06B6D4;
  --teal-dark: #0891B2;
  --teal-glow: rgba(6,182,212,0.15);
  --red: #EF4444;
  --red-glow: rgba(239,68,68,0.12);
  --yellow: #F59E0B;
  --yellow-glow: rgba(245,158,11,0.12);
  --green: #10B981;
  --green-glow: rgba(16,185,129,0.12);
  --white: #F1F5F9;
  --gray: #94A3B8;
  --gray-dark: #64748B;
  --gray-faint: #334155;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.3);
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
}
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy);
  color: var(--white);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.hidden { display: none !important; }
.page { min-height: 100dvh; }
a { color: var(--teal); text-decoration: none; }

input, select, textarea {
  font-family: inherit; font-size: 1rem;
  background: var(--surface); border: 1.5px solid var(--gray-faint);
  color: var(--white); border-radius: var(--radius-sm);
  padding: 14px 16px; width: 100%; outline: none; transition: border-color var(--transition);
}
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394A3B8'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* === BUTTONS === */
.btn-primary, .btn-primary-sm, .btn-primary-lg {
  background: var(--teal); color: #fff; border: none; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.btn-primary { padding: 12px 24px; font-size: 1rem; }
.btn-primary-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-primary-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-primary:hover, .btn-primary-lg:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-primary:active, .btn-primary-lg:active { transform: scale(0.98); }
.btn-ghost {
  background: transparent; color: var(--teal); border: 1.5px solid rgba(6,182,212,0.25);
  border-radius: var(--radius-sm); padding: 10px 20px; font-size: 0.95rem;
  font-weight: 500; cursor: pointer; font-family: inherit; transition: all var(--transition);
}
.btn-ghost:hover { background: var(--teal-glow); }
.btn-full { width: 100%; margin-top: 8px; }
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px; border-radius: var(--radius-sm);
  background: #fff; color: #333; border: none; font-size: 0.95rem;
  font-weight: 500; cursor: pointer; font-family: inherit; margin-top: 12px;
}
.icon-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 8px; border-radius: 50%; transition: background var(--transition); }
.icon-btn:hover { background: rgba(255,255,255,0.08); }

/* === LANDING === */
.landing-nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; max-width: 960px; margin: 0 auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; }
.nav-buttons { display: flex; gap: 10px; }
.hero { text-align: center; padding: 60px 24px 40px; max-width: 680px; margin: 0 auto; }
.hero-badge { display: inline-block; padding: 6px 16px; border-radius: 20px; background: var(--teal-glow); color: var(--teal); font-size: 0.85rem; font-weight: 500; margin-bottom: 24px; }
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em; }
.hero-sub { color: var(--gray); font-size: 1.15rem; line-height: 1.6; margin-bottom: 32px; }
.hero-note { color: var(--gray-dark); font-size: 0.85rem; margin-top: 12px; }

/* Watch Hero */
.watch-hero { display: flex; align-items: center; gap: 40px; justify-content: center; margin: 40px auto 32px; max-width: 600px; flex-wrap: wrap; }
.watch-frame { position: relative; flex-shrink: 0; }
.watch-body { width: 180px; height: 216px; background: #2A2A2E; border-radius: 40px; padding: 12px; box-shadow: 0 8px 40px rgba(6,182,212,0.2), inset 0 0 0 2px rgba(255,255,255,0.08); position: relative; }
.watch-band { width: 100px; height: 32px; background: #1E1E22; border-radius: 8px; margin: 0 auto; }
.watch-band.top { border-radius: 8px 8px 0 0; margin-bottom: -4px; }
.watch-band.bottom { border-radius: 0 0 8px 8px; margin-top: -4px; }
.watch-crown { position: absolute; right: -8px; top: 50%; transform: translateY(-50%); width: 8px; height: 28px; background: #3A3A3E; border-radius: 0 4px 4px 0; }
.watch-screen { width: 100%; height: 100%; background: var(--navy); border-radius: 30px; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.watch-status-bar { display: flex; justify-content: space-between; align-items: center; }
.watch-time-display { font-size: 0.7rem; color: var(--gray); font-weight: 600; }
.watch-rec { font-size: 0.65rem; color: var(--red); font-weight: 700; animation: recBlink 1.5s ease-in-out infinite; }
@keyframes recBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.watch-waveform { display: flex; align-items: center; justify-content: center; gap: 3px; height: 40px; padding: 4px 0; }
.wave-bar { width: 4px; height: var(--h); background: var(--teal); border-radius: 2px; animation: waveAnim 1.2s ease-in-out infinite alternate; }
.wave-bar:nth-child(2n) { animation-delay: 0.15s; }
.wave-bar:nth-child(3n) { animation-delay: 0.3s; }
.wave-bar:nth-child(5n) { animation-delay: 0.5s; }
@keyframes waveAnim { 0% { transform: scaleY(0.6); } 100% { transform: scaleY(1); } }
.watch-transcript { font-size: 0.6rem; color: var(--white); line-height: 1.4; font-style: italic; opacity: 0.9; }
.watch-patient-tag { font-size: 0.6rem; color: var(--teal); font-weight: 600; background: var(--teal-glow); padding: 4px 8px; border-radius: 6px; text-align: center; margin-top: auto; }
.watch-features { text-align: left; }
.watch-feat { padding: 8px 0; font-size: 0.95rem; color: var(--gray); }
.watch-feat strong { color: var(--white); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-demo { font-size: 1rem; padding: 14px 28px; }

/* Before/After */
.before-after { padding: 60px 24px; max-width: 1000px; margin: 0 auto; }
.before-after h2 { text-align: center; margin-bottom: 32px; font-size: 1.8rem; }
.ba-grid { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; justify-content: center; }
.ba-card { flex: 1; min-width: 320px; border-radius: var(--radius); padding: 24px; font-size: 0.9rem; line-height: 1.7; }
.ba-card.before { background: rgba(239,68,68,0.08); border: 2px solid rgba(239,68,68,0.25); }
.ba-card.after { background: rgba(16,185,129,0.08); border: 2px solid rgba(16,185,129,0.25); }
.ba-label { font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
.ba-content p { margin-bottom: 8px; }
.messy-note { color: var(--gray); font-family: 'Courier New', monospace; font-size: 0.85rem; }
.scribble { color: var(--gray-dark); font-style: italic; font-size: 0.8rem; opacity: 0.6; }
.ba-arrow { font-size: 2rem; color: var(--teal); display: flex; align-items: center; justify-content: center; }
.ba-arrow svg { width: 48px; height: 48px; }
.sbar-output { font-size: 0.88rem; }
.sbar-patient { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sbar-patient:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sbar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sbar-header strong { color: var(--teal); font-size: 1rem; }
.sbar-priority { font-size: 0.75rem; font-weight: 700; color: var(--red); background: var(--red-glow); padding: 2px 8px; border-radius: 6px; }
.sbar-output p { margin-bottom: 6px; line-height: 1.6; }
.sbar-output strong { color: var(--white); }
@media (max-width: 768px) {
  .ba-grid { flex-direction: column; }
  .ba-arrow { transform: rotate(90deg); }
  .ba-arrow svg { transform: rotate(90deg); }
}

/* How It Works */
.how-it-works { padding: 40px 24px; max-width: 800px; margin: 0 auto; }
.how-it-works h2 { text-align: center; margin-bottom: 32px; font-size: 1.5rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.step { text-align: center; padding: 24px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius); }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gray); font-size: 0.9rem; line-height: 1.5; }

/* Pricing */
.pricing { padding: 40px 24px; max-width: 700px; margin: 0 auto; }
.pricing h2 { text-align: center; margin-bottom: 32px; font-size: 1.5rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pricing-3 { max-width: 900px; margin: 0 auto; }
.price-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 28px; position: relative; }
.price-card.featured { border-color: var(--teal); }
.price-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--teal); color: #fff; padding: 4px 14px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.price-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.price { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.price span { font-size: 1rem; font-weight: 400; color: var(--gray); }
.price-card ul { list-style: none; margin-bottom: 20px; }
.price-card li { padding: 6px 0; color: var(--gray); font-size: 0.9rem; }

/* HIPAA */
.hipaa-section { text-align: center; padding: 40px 24px; max-width: 600px; margin: 0 auto; }
.hipaa-badge { display: inline-block; padding: 8px 20px; border-radius: 20px; background: var(--green-glow); color: var(--green); font-weight: 600; margin-bottom: 16px; }
.hipaa-section p { color: var(--gray); line-height: 1.6; font-size: 0.95rem; }

/* Trust Section */
.trust-section { padding: 60px 24px; max-width: 900px; margin: 0 auto; background: rgba(6,182,212,0.03); }
.trust-section h2 { text-align: center; margin-bottom: 40px; font-size: 1.8rem; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.trust-card { text-align: center; padding: 28px 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); transition: transform var(--transition); }
.trust-card:hover { transform: translateY(-4px); border-color: rgba(6,182,212,0.2); }
.trust-icon { font-size: 2.5rem; margin-bottom: 12px; }
.trust-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--white); }
.trust-card p { color: var(--gray); font-size: 0.88rem; line-height: 1.5; }

/* Testimonials */
.testimonials { padding: 60px 24px; max-width: 1000px; margin: 0 auto; }
.testimonials h2 { text-align: center; margin-bottom: 40px; font-size: 1.8rem; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.testimonial-card { background: rgba(255,255,255,0.03); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius); padding: 24px; transition: all var(--transition); }
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(6,182,212,0.3); box-shadow: 0 8px 24px rgba(6,182,212,0.12); }
.testimonial-quote { margin-bottom: 20px; }
.testimonial-quote p { font-size: 0.95rem; line-height: 1.7; color: var(--gray); font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.author-name { font-weight: 600; font-size: 0.9rem; color: var(--white); }
.author-role { font-size: 0.8rem; color: var(--gray-dark); margin-top: 2px; }

/* FAQ Section */
.faq-section { padding: 60px 24px; max-width: 800px; margin: 0 auto; }
.faq-section h2 { text-align: center; margin-bottom: 40px; font-size: 1.8rem; }
.faq-grid { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 20px 24px; transition: all var(--transition); }
.faq-item:hover { border-color: rgba(6,182,212,0.2); background: rgba(6,182,212,0.04); }
.faq-q { font-weight: 700; font-size: 1rem; margin-bottom: 10px; color: var(--white); }
.faq-a { color: var(--gray); font-size: 0.9rem; line-height: 1.6; }

/* Footer */
.landing-footer { padding: 48px 24px 32px; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 60px; background: rgba(0,0,0,0.2); }
.footer-content { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 2fr; gap: 48px; margin-bottom: 32px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-tagline { color: var(--gray-dark); font-size: 0.85rem; margin-top: 8px; }
.footer-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); margin-bottom: 12px; }
.footer-col a { display: block; color: var(--gray); font-size: 0.85rem; margin-bottom: 8px; text-decoration: none; transition: color var(--transition); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); max-width: 1000px; margin: 0 auto; }
.footer-bottom p { color: var(--gray-dark); font-size: 0.8rem; margin-bottom: 4px; }
.footer-disclaimer { font-size: 0.7rem; color: var(--gray-faint); font-style: italic; }
@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
  .footer-links-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* === AUTH MODAL === */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; }
.modal-content { background: var(--navy-light); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 28px; width: 100%; max-width: 420px; position: relative; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--gray); font-size: 1.3rem; cursor: pointer; padding: 4px; }
.auth-box h2 { margin-bottom: 20px; }
.auth-box form { display: flex; flex-direction: column; gap: 12px; }
.auth-switch { text-align: center; margin-top: 16px; color: var(--gray); font-size: 0.9rem; cursor: pointer; }
.auth-switch span { color: var(--teal); font-weight: 500; }
.error-msg { color: var(--red); font-size: 0.85rem; text-align: center; margin-top: 12px; }

/* === ONBOARDING === */
.onboarding-content { max-width: 480px; margin: 0 auto; padding: 40px 20px; text-align: center; }
.ob-icon-ring { width: 72px; height: 72px; border-radius: 50%; background: var(--teal-glow); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 2rem; }
.onboarding-content h2 { font-size: 1.6rem; margin-bottom: 24px; }
.onboarding-cards { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; text-align: left; }
.ob-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: 16px 20px; transition: transform var(--transition); }
.ob-card.highlight { border-color: rgba(245,158,11,0.4); background: var(--yellow-glow); }
.ob-emoji { font-size: 1.4rem; margin-bottom: 6px; }
.ob-card h3 { font-size: 1rem; margin-bottom: 4px; }
.ob-card p { color: var(--gray); font-size: 0.9rem; line-height: 1.5; }

/* === QUICK START === */
.qs-content { max-width: 420px; margin: 0 auto; padding: 80px 20px 40px; text-align: center; }
.qs-icon { font-size: 3.5rem; margin-bottom: 16px; animation: qsPulse 2s ease-in-out infinite; }
@keyframes qsPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.qs-content h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.qs-sub { color: var(--gray); font-size: 1.05rem; line-height: 1.6; margin-bottom: 32px; }
/* Specialty picker */
.qs-specialty { margin-bottom: 20px; }
.qs-spec-label { font-size: 0.85rem; color: var(--gray); margin-bottom: 10px; display: block; }
.qs-spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qs-spec {
  background: var(--navy-light); border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 10px 6px; font-size: 0.8rem; color: var(--gray);
  cursor: pointer; transition: all var(--transition); font-family: inherit; text-align: center;
}
.qs-spec:hover { border-color: rgba(6,182,212,0.3); }
.qs-spec.active { border-color: var(--teal); background: var(--teal-glow); color: var(--white); }

.qs-example {
  background: rgba(6,182,212,0.06); border: 1px solid rgba(6,182,212,0.15);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 32px; text-align: left;
}
.qs-ex-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--teal); font-weight: 700; margin-bottom: 8px; }
.qs-example p { color: var(--gray); font-size: 0.9rem; line-height: 1.5; font-style: italic; }

/* === SETUP === */
.app-screen { padding: 0 16px; }
.setup-header { text-align: center; padding: 48px 0 24px; }
.setup-icon { font-size: 2.5rem; margin-bottom: 12px; }
.setup-header h1 { font-size: 1.8rem; font-weight: 800; }
.setup-header p { color: var(--gray); margin-top: 8px; }
.setup-form { max-width: 500px; margin: 0 auto; padding-bottom: 40px; }
.setup-form label { display: block; font-weight: 600; margin: 20px 0 8px; font-size: 0.8rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.08em; }
.patient-count-row { display: flex; align-items: center; gap: 20px; justify-content: center; padding: 8px 0; }
.count-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--gray-faint); color: var(--white); font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.count-btn:active { transform: scale(0.92); background: var(--teal-glow); border-color: var(--teal); }
#patient-count { font-size: 2.2rem; font-weight: 800; min-width: 48px; text-align: center; }
.patient-field { background: rgba(255,255,255,0.025); border: 1px solid rgba(255,255,255,0.05); border-radius: var(--radius); padding: 16px; margin-top: 12px; animation: slideUp 0.3s ease-out both; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.field-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 600; font-size: 0.95rem; }
.field-num { width: 24px; height: 24px; border-radius: 50%; background: var(--teal); font-size: 0.75rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.patient-field .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.patient-field input { font-size: 0.9rem; padding: 12px 14px; }

/* === DASHBOARD === */
.top-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; position: sticky; top: 0; background: var(--navy);
  z-index: 50; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tb-left { display: flex; align-items: center; gap: 8px; }
.tb-right { display: flex; align-items: center; gap: 4px; }
.tb-btn { background: none; border: none; color: var(--gray); font-size: 0.9rem; cursor: pointer; padding: 6px 10px; border-radius: var(--radius-xs); transition: all var(--transition); font-family: inherit; }
.tb-btn:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.tb-end { color: var(--red); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tb-stats { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--gray-dark); }
.stat { display: flex; align-items: center; gap: 3px; }
.stat-num { color: var(--white); font-weight: 700; }
.stat-divider { opacity: 0.3; }
.critical-stat { color: var(--red); }
.unit-badge { background: var(--teal); color: #fff; padding: 4px 12px; border-radius: 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; }
.shift-timer { color: var(--gray); font-size: 0.85rem; font-variant-numeric: tabular-nums; font-weight: 500; }

/* === RECORDING OVERLAY === */
.recording-overlay {
  position: fixed; top: 0; left: 0; right: 0;
  background: linear-gradient(180deg, rgba(239,68,68,0.12) 0%, transparent 100%);
  z-index: 45; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top));
  transition: all 0.3s ease;
}
.rec-active { border-bottom: 2px solid rgba(239,68,68,0.3); }
.rec-transcribing { background: linear-gradient(180deg, rgba(6,182,212,0.12) 0%, transparent 100%); border-bottom-color: rgba(6,182,212,0.3); }
.rec-transcribing .rec-dot { background: var(--teal); animation: none; }
.rec-transcribing .rec-label { color: var(--teal); }
.rec-transcribing .rec-label::after { content: 'Transcribing...'; }
.rec-transcribing .rec-label span { display: none; }
.rec-indicator { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: recPulse 1s ease-in-out infinite; }
@keyframes recPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.rec-label { color: var(--red); }
.rec-duration { color: var(--gray); font-weight: 400; font-variant-numeric: tabular-nums; }
.rec-visualizer { display: flex; align-items: center; justify-content: center; gap: 3px; height: 48px; margin: 8px 0; }
.viz-bar { width: 4px; height: 100%; background: var(--teal); border-radius: 2px; transform: scaleY(0.15); transition: transform 0.05s ease; opacity: 0.8; }
.live-transcript { font-size: 0.9rem; color: var(--white); padding: 8px 12px; background: rgba(255,255,255,0.05); border-radius: var(--radius-sm); margin-top: 4px; max-height: 60px; overflow: hidden; }
.live-transcript.interim { opacity: 0.6; font-style: italic; }
.rec-stop-btn { display: block; margin: 8px auto 0; background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: var(--red); padding: 8px 24px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit; }

/* === NOTE CONFIRMATION === */
.note-confirmation {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px);
  z-index: 200; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}
.note-confirmation.nc-show { transform: translateX(-50%) translateY(0); }
.nc-inner {
  display: flex; align-items: center; gap: 12px; padding: 12px 20px;
  background: var(--navy-light); border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius); box-shadow: var(--shadow); min-width: 240px;
}
.nc-check { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.nc-room { font-weight: 700; font-size: 0.9rem; }
.nc-text { color: var(--gray); font-size: 0.8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }

/* === PATIENT CARDS === */
.patient-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 10px; padding-bottom: 140px;
}
@media (min-width: 480px) { .patient-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .patient-grid { grid-template-columns: repeat(3, 1fr); } }
.patient-card {
  background: var(--navy-light); border: 1.5px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 16px; cursor: pointer;
  transition: all var(--transition); min-height: 120px;
  display: flex; flex-direction: column;
}
.patient-card:active { transform: scale(0.97); }
.patient-card.critical { border-color: rgba(239,68,68,0.4); background: linear-gradient(135deg, var(--navy-light), rgba(239,68,68,0.06)); }
.patient-card.has-notes { border-color: rgba(6,182,212,0.2); }
.patient-card.empty { border-style: dashed; opacity: 0.7; }

.pc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pc-room { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.pc-status-dot { width: 8px; height: 8px; border-radius: 50%; }
.pc-status-dot.critical { background: var(--red); box-shadow: 0 0 8px var(--red); animation: recPulse 1.5s infinite; }
.pc-status-dot.has-notes { background: var(--teal); }
.pc-status-dot.empty { background: var(--gray-faint); }
.pc-identity { font-size: 0.85rem; color: var(--gray); display: flex; gap: 6px; }
.pc-initials { font-weight: 600; color: var(--white); }
.pc-age { color: var(--gray-dark); }
.pc-dx { font-size: 0.78rem; color: var(--gray-dark); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-notes-bar { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.pc-note-count { font-size: 0.75rem; color: var(--gray-dark); font-weight: 500; }
.pc-last-time { font-size: 0.7rem; color: var(--gray-faint); }
.pc-last-note { font-size: 0.8rem; color: var(--gray); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.pc-empty-hint { font-size: 0.78rem; color: var(--gray-faint); margin-top: 4px; font-style: italic; }
.empty-patients { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }
.ep-icon { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; }
.empty-patients p { font-size: 1.1rem; font-weight: 600; }
.empty-patients .sub { color: var(--gray); font-size: 0.9rem; margin-top: 4px; font-weight: 400; }
.ep-example { color: var(--gray-dark); font-size: 0.85rem; font-style: italic; margin-top: 16px; padding: 12px 16px; background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); display: inline-block; }

/* Recent notes on card */
.pc-recent { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.pc-note-row { display: flex; gap: 6px; align-items: center; font-size: 0.8rem; line-height: 1.4; padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.pcn-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.pc-note-row:last-child { border-bottom: none; }
.pcn-time { color: var(--gray-faint); font-size: 0.7rem; font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 36px; }
.pcn-text { color: var(--gray); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcn-critical .pcn-text { color: var(--red); font-weight: 500; }
.pcn-pending .pcn-text { color: var(--yellow); }
.pcn-more { font-size: 0.7rem; color: var(--gray-faint); text-align: right; padding-top: 2px; }

/* Note dots */
.pc-dots { display: flex; gap: 3px; margin-top: 8px; flex-wrap: wrap; }
.pc-dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-routine { background: var(--teal); opacity: 0.5; }
.dot-pending { background: var(--yellow); }
.dot-critical { background: var(--red); box-shadow: 0 0 4px var(--red); }

/* Badges */
.pc-badges { display: flex; align-items: center; gap: 4px; }
.pc-badge { font-size: 0.65rem; padding: 1px 4px; border-radius: 4px; }
.badge-critical { background: var(--red-glow); }
.badge-pending { background: var(--yellow-glow); }

.pc-critical-badge { margin-top: 8px; font-size: 0.7rem; font-weight: 700; color: var(--red); background: var(--red-glow); padding: 3px 8px; border-radius: var(--radius-xs); display: inline-block; }

/* === TIMELINE === */
.timeline { padding-bottom: 140px; }
.tl-item { display: flex; gap: 12px; padding: 4px 0; animation: slideUp 0.3s ease-out both; }
.tl-dot-line { display: flex; flex-direction: column; align-items: center; width: 16px; flex-shrink: 0; padding-top: 6px; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.tl-dot.critical { background: var(--red); box-shadow: 0 0 8px var(--red); }
.tl-line { width: 2px; flex: 1; background: rgba(255,255,255,0.05); margin-top: 4px; }
.tl-item:last-child .tl-line { display: none; }
.tl-content { flex: 1; background: var(--navy-light); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 6px; border: 1px solid rgba(255,255,255,0.04); }
.tl-critical .tl-content { border-color: rgba(239,68,68,0.2); background: linear-gradient(135deg, var(--navy-light), rgba(239,68,68,0.04)); }
.tl-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tl-room { font-weight: 700; font-size: 0.8rem; color: var(--teal); cursor: pointer; }
.tl-room:hover { text-decoration: underline; }
.tl-time { color: var(--gray-faint); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.tl-text { font-size: 0.9rem; line-height: 1.55; color: var(--gray); }

.empty-state { text-align: center; padding: 80px 20px; }
.es-icon { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state p { font-size: 1.2rem; font-weight: 600; }
.empty-state .sub { color: var(--gray); font-size: 0.9rem; margin-top: 6px; font-weight: 400; }

/* === HANDOFF === */
/* Template Picker */
.ho-template-picker { display: flex; flex-direction: column; gap: 8px; margin: 20px auto 0; max-width: 400px; text-align: left; }
.ho-tpl {
  background: var(--navy-light); border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); padding: 12px 16px; cursor: pointer;
  transition: all var(--transition); font-family: inherit; color: var(--white); text-align: left; width: 100%;
}
.ho-tpl:hover { border-color: rgba(6,182,212,0.3); background: rgba(6,182,212,0.04); }
.ho-tpl.active { border-color: var(--teal); background: var(--teal-glow); }
.ho-tpl-name { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 2px; }
.ho-tpl-desc { display: block; font-size: 0.75rem; color: var(--gray); line-height: 1.4; }
.ho-tpl.active .ho-tpl-desc { color: var(--teal); }

/* QR Transfer Modal */
.qr-modal-content { text-align: center; max-width: 360px; }
.qr-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.qr-header h3 { font-size: 1.1rem; }
.qr-desc { font-size: 0.8rem; color: var(--gray); margin-bottom: 20px; line-height: 1.5; }
.qr-canvas-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.qr-canvas-wrap canvas { border-radius: 12px; }
.qr-alt { font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; }
.qr-alt strong { color: var(--teal); letter-spacing: 3px; font-size: 1.2rem; }
.qr-timer { font-size: 0.8rem; color: var(--gray-faint); }

/* End Shift Modal */
.es-modal { max-width: 380px; text-align: center; }
.es-modal h3 { font-size: 1.2rem; margin-bottom: 16px; }
.es-stat-row { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.es-stat { text-align: center; }
.es-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--teal); }
.es-label { font-size: 0.7rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; }
.es-critical .es-num { color: var(--red); }
.es-warning { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px; }
.es-warning p { font-size: 0.85rem; color: var(--gray); line-height: 1.5; }
.es-delete-msg { font-size: 0.8rem; color: var(--gray-faint); margin-bottom: 12px; }
.btn-danger { background: var(--red); color: white; border: none; padding: 14px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; cursor: pointer; font-family: inherit; }
.btn-full { width: 100%; }

.handoff-loading-content { text-align: center; padding: 80px 20px; }
.loading-spinner { width: 44px; height: 44px; border: 3px solid rgba(255,255,255,0.08); border-top-color: var(--teal); border-radius: 50%; margin: 0 auto 20px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.handoff-actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.handoff-content {
  background: var(--navy-light); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius); padding: 20px; line-height: 1.7;
  font-size: 0.9rem; white-space: pre-wrap; padding-bottom: 140px;
}
.ho-patient-header { color: var(--teal); font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ho-patient-header:first-child { margin-top: 0; }
.ho-todo { padding: 3px 0; color: var(--yellow); }
.ho-bullet { padding: 2px 0; }
.ho-warn { color: var(--red); }

/* === BOTTOM NAV === */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy-light); border-top: 1px solid rgba(255,255,255,0.05);
  display: flex; justify-content: space-around;
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  z-index: 100; backdrop-filter: blur(12px);
}
.nav-btn {
  background: none; border: none; color: var(--gray-faint); font-size: 0.65rem;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; padding: 8px 20px; font-family: inherit; transition: color var(--transition);
  position: relative;
}
.nav-btn.active { color: var(--teal); }
.nav-btn.active::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 2px; background: var(--teal); border-radius: 1px; }
.nav-icon { font-size: 1.2rem; }

/* === MIC FAB === */
.mic-fab {
  position: fixed; bottom: calc(68px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 101;
  box-shadow: 0 4px 24px rgba(6,182,212,0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mic-fab:hover { transform: translateX(-50%) scale(1.06); }
.mic-fab:active { transform: translateX(-50%) scale(0.92); }
.mic-fab.recording {
  background: linear-gradient(135deg, var(--red), #DC2626);
  box-shadow: 0 4px 24px rgba(239,68,68,0.4);
  animation: micPulse 1.5s ease-in-out infinite;
}
@keyframes micPulse { 0%,100% { box-shadow: 0 4px 24px rgba(239,68,68,0.4); } 50% { box-shadow: 0 4px 32px rgba(239,68,68,0.6), 0 0 0 12px rgba(239,68,68,0.08); } }

/* Continuous Mode */
.continuous-btn {
  position: fixed; bottom: calc(68px + env(safe-area-inset-bottom) + 70px);
  right: 16px; z-index: 101;
  background: var(--navy-light); border: 1px solid rgba(255,255,255,0.08);
  color: var(--gray); padding: 8px 14px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all var(--transition);
}
.continuous-btn.active { background: var(--teal-glow); border-color: var(--teal); color: var(--teal); }
.cb-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 4px; animation: recPulse 1.2s infinite; }

/* Text Input */
.text-input-bar {
  position: fixed; bottom: calc(68px + env(safe-area-inset-bottom) + 68px);
  left: 12px; right: 12px; display: flex; gap: 8px; z-index: 101; align-items: flex-end;
}
.text-input-bar textarea {
  flex: 1; border-radius: 16px; padding: 12px 16px; background: var(--navy-light);
  font-size: 0.9rem; border: 1.5px solid rgba(255,255,255,0.08); resize: none;
  min-height: 72px; max-height: 140px; line-height: 1.5; font-family: inherit; color: var(--white);
}
.text-input-bar textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.send-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff; border: none; font-size: 1.1rem; cursor: pointer; flex-shrink: 0; transition: all var(--transition); }
.send-btn:active { transform: scale(0.9); }

/* Room Selector */
.rs-modal { max-width: 360px; }
.rs-note { color: var(--gray); font-size: 0.85rem; margin: 8px 0 16px; font-style: italic; }
.rs-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.rs-btn {
  background: var(--surface); border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm); padding: 14px; cursor: pointer; text-align: center;
  transition: all var(--transition); color: var(--white); font-family: inherit;
}
.rs-btn:active { transform: scale(0.95); border-color: var(--teal); background: var(--teal-glow); }
.rs-room { display: block; font-size: 1.1rem; font-weight: 700; }
.rs-init { display: block; font-size: 0.8rem; color: var(--gray); margin-top: 2px; }

/* Patient Detail */
.pd-modal {
  max-width: 500px; max-height: 85vh; display: flex; flex-direction: column;
  transform: translateY(20px); opacity: 0; transition: all 0.25s ease-out;
}
.pd-open .pd-modal { transform: translateY(0); opacity: 1; }
.pd-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.pd-room { font-size: 1.5rem; font-weight: 800; }
.pd-identity { font-size: 0.85rem; color: var(--gray); margin-top: 2px; }
.pd-notes { flex: 1; overflow-y: auto; min-height: 100px; max-height: 50vh; margin-bottom: 12px; }
.dn-item { background: var(--surface); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 6px; animation: slideUp 0.2s ease-out both; border-left: 3px solid var(--teal); }
.dn-item.dn-critical { border-left-color: var(--red); background: linear-gradient(90deg, rgba(239,68,68,0.06), var(--surface)); }
.dn-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.dn-time { color: var(--gray-faint); font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.dn-actions { display: flex; gap: 2px; opacity: 0.5; transition: opacity var(--transition); }
.dn-item:hover .dn-actions { opacity: 1; }
@media (hover: none) { .dn-actions { opacity: 1; } }
.dn-action-btn { background: none; border: none; font-size: 0.75rem; cursor: pointer; padding: 4px 6px; border-radius: 4px; transition: background var(--transition); }
.dn-action-btn:hover { background: rgba(255,255,255,0.08); }
.dn-delete:hover { background: var(--red-glow); }
.dn-text { font-size: 0.9rem; line-height: 1.5; }
.pd-header-actions { display: flex; align-items: center; gap: 8px; }
.pd-delete-btn { background: none; border: none; font-size: 1rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; opacity: 0.5; transition: all var(--transition); }
.pd-delete-btn:hover { opacity: 1; background: var(--red-glow); }
.detail-empty { color: var(--gray-faint); text-align: center; padding: 32px 16px; font-style: italic; }
.pd-input { display: flex; gap: 8px; }
.pd-input input { flex: 1; font-size: 0.9rem; }

/* Feedback */
#feedback-text { min-height: 100px; resize: vertical; margin-bottom: 12px; }

/* === TOAST === */
.toast {
  position: fixed; top: 20px; left: 50%; z-index: 2000;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; font-family: inherit;
  transform: translateX(-50%) translateY(-20px); opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none; white-space: nowrap;
}
.toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--green); color: #fff; }
.toast-error { background: var(--red); color: #fff; }
.toast-warn { background: var(--yellow); color: #000; }
.toast-info { background: var(--navy-light); color: var(--white); border: 1px solid rgba(255,255,255,0.1); }

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .patient-grid { grid-template-columns: 1fr; gap: 8px; }
  .watch-hero { flex-direction: column; gap: 24px; }
  .watch-body { width: 150px; height: 180px; border-radius: 34px; }
  .watch-screen { border-radius: 26px; padding: 10px; }
  .watch-band { width: 84px; }
  .watch-features { text-align: center; }
  .tb-stats { display: none; }
  .rs-buttons { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .patient-grid { grid-template-columns: repeat(3, 1fr); }
}
