/* "Request your live demo" popup — injected by /js/demo-request.js on any page with a [data-demo-request] link. */
.dr-modal {
  position: fixed; inset: 0; z-index: 10001; padding: 24px;
  background: rgba(20,24,43,.62); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.dr-modal[hidden] { display: none; }
body.dr-open { overflow: hidden; }
.dr-card {
  position: relative; width: 100%; max-width: 460px; max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--surface, #fff); color: var(--ink, #14182b);
  border-radius: var(--r-img, 14px); padding: 32px 30px 28px;
  box-shadow: 0 30px 80px rgba(20,24,43,.35); font-family: var(--font-body, system-ui, sans-serif);
}
.dr-close {
  position: absolute; top: 10px; right: 14px; background: none; border: none;
  font-size: 28px; line-height: 1; color: var(--ink-faint, #8b8fa3); cursor: pointer;
}
.dr-close:hover { color: var(--ink, #14182b); }
.dr-h { font-family: var(--font-display, inherit); font-size: 22px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 10px; }
.dr-p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft, #55597a); margin: 0 0 18px; }
.dr-label { display: block; font-size: 12.5px; font-weight: 700; margin: 0 0 6px; }
.dr-input {
  width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; font-size: 15px; margin-bottom: 14px;
  border: 1px solid var(--line-strong, rgba(20,24,43,.19)); border-radius: var(--r-btn, 8px);
  background: var(--surface, #fff); color: var(--ink, #14182b);
}
.dr-input:focus { outline: 2px solid var(--blue, #6495ed); outline-offset: 1px; border-color: var(--blue, #6495ed); }
.dr-input.dr-bad { border-color: #c0392b; }
.dr-err { color: #a12a2a; font-size: 13px; margin: -4px 0 12px; }
.dr-submit {
  width: 100%; border: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 14.5px;
  padding: 14px 20px; border-radius: var(--r-btn, 8px); background: var(--blue, #6495ed); color: #fff;
  box-shadow: 0 1px 2px rgba(20,24,43,.05), 0 10px 22px rgba(100,149,237,.28);
}
.dr-submit:hover { background: var(--blue-deep, #4169e1); }
.dr-submit:disabled { opacity: .6; cursor: default; }
.dr-note { font-size: 12.5px; color: var(--ink-faint, #8b8fa3); margin: 12px 0 0; text-align: center; }
.dr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dr-done { text-align: center; }
.dr-done b { color: var(--ink, #14182b); word-break: break-all; }

/* A visible way in, for pages that want a ready-made button */
.dr-cta {
  display: inline-block; padding: 13px 26px; border-radius: var(--r-btn, 8px);
  border: 1px solid var(--line-strong, rgba(20,24,43,.19)); background: var(--surface, #fff);
  font-weight: 700; font-size: 14.5px; color: var(--ink, #14182b); text-decoration: none; cursor: pointer; font-family: inherit;
  transition: border-color .18s, background .18s;
}
.dr-cta:hover { border-color: var(--blue, #6495ed); background: var(--surface-tint, #eef3fe); }

/* Header call to action (home page): red, always visible, pulsing dot */
.nav-demo-short { display: none; }
.nav-demo {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: var(--r-btn, 8px);
  background: #e0302d; color: #fff; text-decoration: none;
  font-family: var(--font-body, system-ui, sans-serif); font-weight: 800; font-size: 12.5px; letter-spacing: .04em;
  box-shadow: 0 1px 2px rgba(20,24,43,.08), 0 8px 18px rgba(224,48,45,.32);
  transition: background .18s, transform .1s;
}
.nav-demo:hover { background: #c4211f; transform: translateY(-1px); }
.nav-demo-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #fff; flex: none;
  animation: navDemoPulse 1.6s ease-out infinite;
}
@keyframes navDemoPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@media (prefers-reduced-motion: reduce) { .nav-demo-dot { animation: none; } }
@media (max-width: 1000px) { .nav-demo-long { display: none; } .nav-demo-short { display: inline; } }
@media (max-width: 900px) { .nav-demo { padding: 8px 12px; font-size: 11.5px; } }
@media (max-width: 560px) {
  .nav-demo { padding: 7px 10px; font-size: 11px; letter-spacing: .02em; }
}
