/* =====================================================================
   CRM Solution Experience — Welcome Modal
   Automatic entry point into the guided walkthrough on the CRM demo
   landing page (index.html only). Formatting matches the guided-tour's
   own cross-page transition screen (e.g. the "Service Request
   Submitted" hand-off): a faded dark overlay with white text directly
   on it, no card panel, and a solid blue primary button.
   ===================================================================== */

.welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000; /* sits above the page; below nothing else exists on this page */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.welcome-modal[hidden] { display: none; }

.welcome-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.92);
  opacity: 0;
  transition: opacity .25s ease;
}

.welcome-modal-panel {
  position: relative;
  width: 100%;
  max-width: 460px;
  text-align: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .28s ease, transform .28s ease;
}
.welcome-modal.is-open .welcome-modal-backdrop { opacity: 1; }
.welcome-modal.is-open .welcome-modal-panel { opacity: 1; transform: translateY(0); }

.welcome-modal-panel h2 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 16px;
}

.welcome-modal-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .75);
  margin: 0 0 14px;
}

.welcome-modal-note {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .55);
  margin: 8px 0 30px;
}

.welcome-modal-cta {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0284C7;
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 14px 30px;
  border-radius: 8px;
  transition: background .18s;
}
.welcome-modal-cta:hover { background: #0369A1; }
.welcome-modal-cta:focus-visible {
  outline: 2.5px solid #0284C7;
  outline-offset: 2px;
}
.welcome-modal-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 560px) {
  .welcome-modal-panel h2 { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .welcome-modal-backdrop, .welcome-modal-panel { transition: none; }
}
