/* ──────────────────────────────────────────────────────────
   Demo-only styles. Loaded on every page of the preview.
   - Disabled-link treatment for nav/footer entries that point
     to pages we have not yet built.
   - Modal that appears once on the homepage.
   ────────────────────────────────────────────────────────── */

.is-demo-disabled,
.is-demo-disabled:hover,
.is-demo-disabled:focus {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.is-demo-disabled .btn,
.btn.is-demo-disabled {
  filter: grayscale(0.4);
}


/* Floating help button — opens the welcome/guide modal on demand. */
.demo-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9990;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: #ed6a2f;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(8, 28, 46, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  animation: demoFabBob 1.6s ease-in-out infinite;
}

/* Radiating pulse ring — sits behind the button and emanates outward.
   Two staggered rings keep the cue continuous. */
.demo-fab::before,
.demo-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ed6a2f;
  z-index: -1;
  pointer-events: none;
}

.demo-fab::before {
  animation: demoFabPulse 1.8s ease-out infinite;
}

.demo-fab::after {
  animation: demoFabPulse 1.8s ease-out 0.9s infinite;
}

@keyframes demoFabBob {
  0%, 100% { transform: translateY(0)    scale(1); }
  50%      { transform: translateY(-8px) scale(1.05); }
}

@keyframes demoFabPulse {
  0%   { transform: scale(1);    opacity: 0.65; }
  80%  { transform: scale(2.15); opacity: 0;    }
  100% { transform: scale(2.15); opacity: 0;    }
}

/* Pause animation only while the user hovers — gives a stable click target. */
.demo-fab:hover,
.demo-fab:focus-visible {
  animation-play-state: paused;
}
.demo-fab:hover::before,
.demo-fab:hover::after,
.demo-fab:focus-visible::before,
.demo-fab:focus-visible::after {
  animation-play-state: paused;
  opacity: 0;
}

/* Respect reduced-motion: no bob, no pulse. */
@media (prefers-reduced-motion: reduce) {
  .demo-fab { animation: none; }
  .demo-fab::before,
  .demo-fab::after { animation: none; opacity: 0; }
}

.demo-fab:hover,
.demo-fab:focus-visible {
  background: #d65a23;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(8, 28, 46, 0.32);
  outline: none;
}

.demo-fab svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.demo-fab__label {
  position: absolute;
  right: calc(100% + 0.75rem);
  top: 50%;
  transform: translateY(-50%);
  background: #0f3756;
  color: #ffffff;
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.demo-fab:hover .demo-fab__label,
.demo-fab:focus-visible .demo-fab__label {
  opacity: 1;
}

@media (max-width: 480px) {
  .demo-fab {
    right: 1rem;
    bottom: 1rem;
    width: 3rem;
    height: 3rem;
  }
  .demo-fab__label { display: none; }
}


.demo-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(8, 28, 46, 0.78);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
}

.demo-modal.is-open { opacity: 1; }
.demo-modal[hidden] { display: none; }

.demo-modal__panel {
  background: #ffffff;
  width: 100%;
  max-width: 34rem;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 10px;
  padding: 2.25rem 2.25rem 1.75rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  transform: translateY(8px);
  transition: transform 0.25s ease;
}

.demo-modal.is-open .demo-modal__panel { transform: translateY(0); }

.demo-modal__eyebrow {
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ed6a2f;
  margin: 0 0 0.5rem;
}

.demo-modal__title {
  font-family: 'Urbanist', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  color: #0f3756;
}

.demo-modal__body {
  font-size: 1rem;
  line-height: 1.6;
  color: #2a3845;
  margin: 0 0 1.1rem;
}

.demo-modal__body p { margin: 0 0 0.85rem; }
.demo-modal__body p:last-child { margin-bottom: 0; }
.demo-modal__body strong { color: #0f3756; font-weight: 700; }

.demo-modal__list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: #2a3845;
}

.demo-modal__list li {
  margin-bottom: 0.4rem;
  line-height: 1.45;
}

.demo-modal__list a {
  color: #0f3756;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.demo-modal__list a:hover { color: #ed6a2f; }

.demo-modal__cta {
  display: inline-block;
  background: #ed6a2f;
  color: #ffffff;
  font-family: 'Urbanist', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.8rem 1.6rem;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: background 0.18s ease;
}

.demo-modal__cta:hover,
.demo-modal__cta:focus-visible {
  background: #d65a23;
  outline: none;
}

@media (max-width: 480px) {
  .demo-modal__panel { padding: 1.75rem 1.4rem 1.35rem; }
  .demo-modal__title { font-size: 1.35rem; }
}
