/* ==========================================================================
   Resewaro Technologies Inc. — Official Design System & Stylesheet
   Theme: Scandinavian Clinical Minimalist Warm Aesthetic
   Palette: Matches Resewaro Scheduler (#fbf9f5, warm linen, deep obsidian)
   ========================================================================== */

:root {
  /* ---- Clinical Aesthetic Minimalist Warm Palette ---- */
  --bg: #fbf9f5;
  --bg-inset: #f3efe8;
  --bg-subtle: #f8f5ee;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #eae5dc;
  --border-strong: #ddd6cb;
  --border-focus: #1c1917;

  --text: #1f1c18;
  --text-muted: #736b63;
  --text-faint: #9c948b;

  --accent: #8c7a6b;
  --accent-hover: #736152;
  --accent-soft: #f4f0e8;
  --accent-contrast: #ffffff;

  --dark-pill: #1c1917;
  --dark-pill-hover: #2e2a27;

  --teal: #0d9488;
  --teal-soft: #f0fdfa;
  --teal-border: #ccfbf1;

  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --blue-border: #dbeafe;

  --success: #15803d;
  --success-soft: #f0fdf4;
  --success-border: #bbf7d0;

  --amber: #b45309;
  --amber-soft: #fffbeb;
  --amber-border: #fef3c7;

  /* Typography */
  --font-display: 'Outfit', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Grotesk', 'JetBrains Mono', monospace;

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(31, 28, 24, 0.04), 0 1px 2px rgba(31, 28, 24, 0.02);
  --shadow-md: 0 4px 16px rgba(31, 28, 24, 0.05), 0 2px 4px rgba(31, 28, 24, 0.03);
  --shadow-lg: 0 12px 36px rgba(31, 28, 24, 0.07), 0 4px 12px rgba(31, 28, 24, 0.04);
  --shadow-floating: 0 20px 48px rgba(31, 28, 24, 0.12), 0 8px 20px rgba(31, 28, 24, 0.06);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1180px;
  --header-height: 76px;
}

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

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle background texture */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(140, 122, 107, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.03) 0%, transparent 40%);
  z-index: 0;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: all 0.25s ease;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.logo-symbol {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-header-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 7px;
  background: var(--bg-inset);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-staff-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-pill);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-staff-login:hover {
  background: var(--dark-pill-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  padding: 80px 0 90px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--teal);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  opacity: 0.6;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.badge-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero-title .title-accent {
  color: var(--accent);
  display: block;
}

.hero-subtitle {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.waitlist-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  outline: none;
}

.waitlist-form input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px rgba(28, 25, 23, 0.08);
}

.btn-primary {
  height: 52px;
  padding: 0 24px;
  border-radius: var(--radius-full);
  background: var(--dark-pill);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--dark-pill-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.form-success-msg {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  color: var(--success);
  font-weight: 500;
  font-size: 0.92rem;
}

.form-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.form-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   3D AI Muse Canvas & Interactive Visualizer
   ========================================================================== */

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.muse-container {
  width: 100%;
  height: 480px;
  position: relative;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at center, #ffffff 0%, #f4f0e8 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  cursor: grab;
}

.muse-container:active {
  cursor: grabbing;
}

#muse-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.muse-speech-bubble {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float-soft 4s ease-in-out infinite;
  pointer-events: auto;
  z-index: 10;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.muse-avatar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dark-pill);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.muse-speech-text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.muse-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  z-index: 10;
}

.muse-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal);
}

.muse-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.btn-trigger-speak {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: background 0.15s ease;
}

.btn-trigger-speak:hover {
  background: var(--bg-inset);
}

/* ==========================================================================
   Metrics Strip (High Contrast Proof)
   ========================================================================== */

.metrics-strip {
  margin: 40px 0 90px;
}

.metrics-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 40px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.metric-number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.metric-unit {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}

.metric-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Live Conversational Voice Simulator
   ========================================================================== */

.demo-section {
  padding: 80px 0;
  background: var(--bg-inset);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.simulator-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sim-header {
  padding: 18px 24px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sim-caller-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.caller-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark-pill);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.caller-details h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.caller-details p {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.sim-telemetry {
  display: flex;
  align-items: center;
  gap: 16px;
}

.telemetry-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.telemetry-pill.active {
  background: var(--teal-soft);
  color: var(--teal);
  border-color: var(--teal-border);
}

.sim-body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
}

.dialogue-bubble {
  max-width: 80%;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.94rem;
  line-height: 1.5;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dialogue-bubble.patient {
  align-self: flex-start;
  background: var(--bg-inset);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.dialogue-bubble.agent {
  align-self: flex-end;
  background: var(--dark-pill);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.bubble-sender {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.sim-audio-bar {
  padding: 20px 30px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-play-sim {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark-pill);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-play-sim:hover {
  transform: scale(1.05);
  background: var(--dark-pill-hover);
}

.waveform-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
}

.wave-bar {
  width: 4px;
  background: var(--border-strong);
  border-radius: var(--radius-full);
  height: 8px;
  transition: height 0.15s ease, background 0.15s ease;
}

.waveform-wrap.playing .wave-bar {
  background: var(--accent);
  animation: wave-bounce 1s ease-in-out infinite alternate;
}

.waveform-wrap.playing .wave-bar:nth-child(2n) { animation-delay: 0.15s; }
.waveform-wrap.playing .wave-bar:nth-child(3n) { animation-delay: 0.3s; }
.waveform-wrap.playing .wave-bar:nth-child(4n) { animation-delay: 0.45s; }

@keyframes wave-bounce {
  0% { height: 6px; }
  100% { height: 28px; }
}

.sim-status-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Clinic ROI Calculator
   ========================================================================== */

.calculator-section {
  padding: 90px 0;
}

.calculator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.slider-display-val {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-pill);
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--dark-pill);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.calc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.calc-results {
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.result-card-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.result-main-val {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}

.result-main-lbl {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-muted);
}

.result-grid-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.result-sub-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-sub-val {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.result-sub-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Live Mini Scheduler Demo Grid
   ========================================================================== */

.scheduler-demo-section {
  padding: 90px 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mini-scheduler-wrap {
  max-width: 960px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mini-sched-topbar {
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sched-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sched-date-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--bg-inset);
  border-radius: var(--radius-xs);
  color: var(--text);
}

.btn-simulate-booking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark-pill);
  color: #fff;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-simulate-booking:hover {
  transform: translateY(-1px);
  background: var(--dark-pill-hover);
}

.mini-sched-columns {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  min-height: 380px;
}

.time-gutter {
  border-right: 1px solid var(--border);
  background: var(--bg-inset);
  display: flex;
  flex-direction: column;
}

.time-slot-label {
  height: 70px;
  padding: 10px 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  text-align: right;
}

.provider-col {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
}

.provider-col:last-child {
  border-right: none;
}

.provider-header {
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.provider-badge {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.slot-row {
  height: 70px;
  border-bottom: 1px solid var(--border);
  padding: 6px 10px;
  position: relative;
}

.appt-pill {
  height: 100%;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid transparent;
}

.appt-pill.confirmed {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.appt-pill.ai-booked {
  background: var(--teal-soft);
  border-color: var(--teal-border);
  color: var(--teal);
  animation: slide-in-slot 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-in-slot {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.appt-patient {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.appt-type {
  font-size: 0.72rem;
  opacity: 0.8;
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */

.features-section {
  padding: 90px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrap.bronze { background: var(--accent-soft); color: var(--accent); }
.feature-icon-wrap.teal { background: var(--teal-soft); color: var(--teal); }
.feature-icon-wrap.blue { background: var(--blue-soft); color: var(--blue); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.feature-card p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-section {
  padding: 80px 0 100px;
  background: var(--bg-inset);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-question {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 26px;
}

.faq-item.open .faq-answer {
  padding: 0 26px 22px 26px;
  max-height: 280px;
}

.faq-answer p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   Floating AI Muse Navigator (Sarah Widget)
   ========================================================================== */

.floating-muse-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.btn-open-muse-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-pill);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 10px 18px 10px 12px;
  box-shadow: var(--shadow-floating);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-open-muse-panel:hover {
  transform: translateY(-2px);
  background: var(--dark-pill-hover);
}

.muse-avatar-ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.muse-nav-panel {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: panel-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.muse-nav-panel.open {
  display: flex;
}

@keyframes panel-pop {
  0% { opacity: 0; transform: translateY(10px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.muse-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.muse-nav-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.muse-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.muse-nav-btn {
  background: var(--bg-inset);
  border: 1px solid transparent;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.muse-nav-btn:hover {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.footer-col a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-faint);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
}

/* ==========================================================================
   Dedicated Legal & Policy Page Styles
   ========================================================================== */

.policy-hero {
  padding: 60px 0 40px;
  background: var(--bg-inset);
  border-bottom: 1px solid var(--border);
}

.policy-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.policy-breadcrumbs a {
  color: var(--text);
  text-decoration: none;
}

.policy-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.2;
}

.policy-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.policy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  padding: 60px 0 100px;
}

.policy-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.policy-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.policy-toc h6 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.policy-toc a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.policy-toc a:hover {
  background: var(--bg-inset);
  color: var(--text);
}

.policy-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.policy-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.policy-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.policy-section p, .policy-section li {
  font-size: 0.98rem;
  color: var(--text);
  line-height: 1.7;
}

.policy-section ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.policy-alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--amber);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; }
  .muse-container { height: 380px; }
  .calculator-card { grid-template-columns: 1fr; gap: 40px; }
  .metrics-box { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .policy-layout { grid-template-columns: 1fr; }
  .policy-sidebar { display: none; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2.4rem; }
  .nav-links { display: none; }
  .metrics-box { grid-template-columns: 1fr; padding: 24px; }
  .waitlist-form { flex-direction: column; }
  .sim-audio-bar { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}
