/* "Live Demo" navigation link and the corner bubble that points visitors to /demo/ */
.site-header .primary-nav a.nav-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.nav-demo::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #f97316;
  animation: demo-pulse 2.4s ease-out infinite;
}

@keyframes demo-pulse {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .55); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(249, 115, 22, 0); }
}

.demo-bubble {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  width: min(330px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 18px 20px 20px;
  border-top: 4px solid #f97316;
  border-radius: 14px;
  background: #0f2a44;
  box-shadow: 0 18px 44px rgba(15, 42, 68, .3);
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  text-align: left;
  animation: demo-bubble-in .35s ease-out;
}

.demo-bubble strong {
  display: block;
  margin: 0 28px 6px 0;
  font-size: 16px;
  line-height: 1.3;
}

.demo-bubble p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  line-height: 1.5;
}

.demo-bubble .demo-bubble-cta {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.demo-bubble button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.demo-bubble button:hover { background: rgba(255, 255, 255, .12); }

.demo-bubble a:focus-visible,
.demo-bubble button:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }

@keyframes demo-bubble-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-demo::before, .demo-bubble { animation: none; }
}

@media (max-width: 580px) {
  .demo-bubble { right: 16px; bottom: 16px; padding: 14px 16px 16px; }
  .demo-bubble p { margin-bottom: 11px; }
}
