/* ==========================================================================
   Demo pop-up: the quiet "Not sure yet? Watch the 5-min demo first" line under the pricing button
   and the pop-up player it opens on this page. Behaviour lives in demo-popup.js.
   ========================================================================== */

/* ---------- The line ---------- */
.vx-demo-line { margin: 14px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.vx-demo-line[hidden] { display: none; }
.vx-demo-line__text { margin: 0; }
.vx-demo-line__a {
  color: var(--ink-2); text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.vx-demo-line__a:hover, .vx-demo-line__a:focus-visible { color: var(--ink-1); text-decoration-color: currentColor; }
.vx-demo-line__a:focus-visible { outline: 2px solid var(--brand-hi); outline-offset: 3px; border-radius: 4px; }

/* ---------- Pop-up player ---------- */
.vx-demo-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: rgba(3, 0, 12, 0.88);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.25s;
  overscroll-behavior: contain;
}
.vx-demo-modal--on { opacity: 1; }
.vx-demo-modal__box {
  position: relative; width: min(100%, 960px, calc((100dvh - 120px) * 16 / 9));
  aspect-ratio: 16 / 9; border-radius: 14px; overflow: visible;
  transform: translateY(10px) scale(0.98); transition: transform 0.3s var(--ease);
}
.vx-demo-modal--on .vx-demo-modal__box { transform: none; }
.vx-demo-modal__media {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #000;
  border: 1px solid var(--line-3); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
}
.vx-demo-modal__media video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vx-demo-modal__media .plyr { border-radius: inherit; }
.vx-demo-modal__close {
  position: absolute; right: 0; bottom: calc(100% + 10px); z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 999px;
  color: #fff; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  cursor: pointer; transition: background 0.2s;
}
.vx-demo-modal__close:hover { background: rgba(95, 92, 255, 0.8); }
.vx-demo-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vx-demo-modal__close svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) {
  .vx-demo-modal, .vx-demo-modal__box { transition: none; }
}

/* Small play icon before "Watch" (tells the visitor it opens a video) */
.vx-demo-line__play { display: inline-block; width: 1.05em; height: 1.05em; margin-right: 5px; vertical-align: -0.17em; flex: none; }
