/* RodiCRM Demo Tutorial Overlay — shared by A/B/C/D demos */
.tutorial-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.tutorial-overlay.is-open { display: flex; animation: tut-fade-in 220ms ease; }
.tutorial-modal {
  background: #ffffff;
  border-radius: 18px;
  width: 100%; max-width: 600px;
  padding: 28px 32px 22px;
  position: relative;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4);
  animation: tut-modal-in 280ms cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 92vh; overflow-y: auto;
}
.tutorial-skip {
  position: absolute; top: 14px; right: 14px;
  background: #f1f5f9; border: 1px solid #cbd5e1;
  color: #64748b; padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: 150ms ease;
}
.tutorial-skip:hover { background: #e2e8f0; color: #475569; }
.tutorial-header { text-align: center; margin-bottom: 18px; padding: 0 32px; }
.tutorial-header h2 {
  font-size: 1.18rem; color: #1d436d;
  margin: 0; font-weight: 700; letter-spacing: -0.01em;
}
.tutorial-header p {
  font-size: 0.78rem; color: #64748b;
  margin: 5px 0 0;
}
.tutorial-progress {
  display: flex; gap: 6px; justify-content: center;
  margin-bottom: 22px;
}
.tut-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #cbd5e1;
  transition: 200ms ease;
}
.tut-dot.is-active {
  background: #3c9470;
  width: 22px; border-radius: 4px;
}
.tut-dot.is-done { background: #46a67d; }
.tutorial-step { display: none; }
.tutorial-step.is-active { display: block; animation: tut-step-in 220ms ease; }
.step-illu {
  width: 96px; height: 96px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, rgba(60, 148, 112, 0.18), rgba(60, 148, 112, 0.06));
  border: 1px solid rgba(60, 148, 112, 0.28);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  color: #2f785b;
  position: relative;
  box-shadow: 0 6px 20px rgba(60, 148, 112, 0.12);
}
.step-illu svg { width: 44px; height: 44px; }
.step-num {
  position: absolute; top: -10px; right: -10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #3c9470, #46a67d);
  color: white;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(60, 148, 112, 0.45);
}
.tutorial-step h3 {
  font-size: 1.1rem; color: #0f172a;
  text-align: center; margin: 0 0 8px;
  font-weight: 700; letter-spacing: -0.005em;
}
.tutorial-step p {
  font-size: 0.88rem; color: #334155;
  line-height: 1.65; text-align: center;
  max-width: 480px; margin: 0 auto;
}
.tutorial-step p strong { color: #1d436d; font-weight: 700; }
.step-meta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  background: #edf4ff; border: 1px solid #c8d8ea;
  color: #184a80;
  font-size: 0.7rem; font-weight: 600;
  margin: 14px auto 0;
}
.step-meta-wrap { display: flex; justify-content: center; }
.step-tech {
  margin-top: 10px;
  display: flex; flex-wrap: wrap; gap: 4px;
  justify-content: center;
}
.step-tech-pill {
  padding: 2px 8px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid #cbd5e1;
  color: #475569;
  font-size: 0.66rem; font-weight: 600;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}
.tutorial-nav {
  display: flex; align-items: center; gap: 12px;
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}
.tutorial-nav button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.8rem; font-weight: 600;
  border-radius: 9px;
  padding: 9px 14px;
  cursor: pointer;
  transition: 150ms ease;
  flex: 1;
}
.tut-btn-ghost {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
}
.tut-btn-ghost:hover { background: #f1f5f9; }
.tut-btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.tut-btn-primary {
  background: linear-gradient(135deg, #3c9470 0%, #46a67d 100%);
  border: 1px solid #2f785b;
  color: white;
  box-shadow: 0 4px 12px rgba(60, 148, 112, 0.32);
}
.tut-btn-primary:hover {
  background: linear-gradient(135deg, #2f785b 0%, #3c9470 100%);
}
.step-info {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  flex: 0;
  min-width: 36px;
  text-align: center;
}
.tutorial-replay-btn {
  position: fixed;
  bottom: 16px; left: 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  z-index: 100;
  display: inline-flex; align-items: center; gap: 5px;
  transition: 150ms ease;
}
.tutorial-replay-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}
@keyframes tut-fade-in {
  0% { opacity: 0; } 100% { opacity: 1; }
}
@keyframes tut-modal-in {
  0% { transform: translateY(20px) scale(0.95); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes tut-step-in {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
  .tutorial-modal { padding: 22px 20px 18px; }
  .tutorial-header { padding: 0; }
  .step-illu { width: 72px; height: 72px; border-radius: 18px; }
  .step-illu svg { width: 32px; height: 32px; }
  .step-num { width: 26px; height: 26px; font-size: 12px; }
  .tutorial-header h2 { font-size: 1rem; }
  .tutorial-step h3 { font-size: 0.96rem; }
  .tutorial-step p { font-size: 0.82rem; }
  .tutorial-replay-btn { font-size: 10px; padding: 5px 10px; }
}
