/* The demo video and discovery-call dialogs (shared/site.js). Owns .bpx*. */
html.bpx-lock {
  overflow: hidden;
}
.bpx {
  --bpx-ease: cubic-bezier(.16, 1, .3, 1);
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 72px 24px 32px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
}
.bpx-scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 12, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.bpx.is-open .bpx-scrim {
  opacity: 1;
}
.bpx-close {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s var(--bpx-ease);
}
.bpx-close:active {
  transform: scale(0.94);
}
.bpx-close:focus-visible {
  outline: 2px solid #3cbaff;
  outline-offset: 2px;
}

/* ---------- the demo video ---------- */
.bpx-stage {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%, (100vh - 200px) * 16 / 9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.32s ease,
    transform 0.5s var(--bpx-ease);
}
.bpx.is-open .bpx-stage {
  opacity: 1;
  transform: none;
}
.bpx-vid {
  position: relative;
  width: 100%;
}
.bpx-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 90px -30px rgba(0, 0, 0, 0.9),
    0 0 120px -40px rgba(90, 150, 230, 0.35);
}
.bpx--video .bpx-close {
  top: -52px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.bpx--video .bpx-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.bpx-cta {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 9999px;
  background: #fff;
  color: #06294c;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.008em;
  text-decoration: none;
  box-shadow:
    0 2px 4px rgba(2, 10, 22, 0.2),
    0 16px 36px -10px rgba(2, 10, 22, 0.6);
  transition: transform 0.3s var(--bpx-ease);
}
.bpx-cta:hover {
  transform: translateY(-2px);
}
.bpx-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

/* ---------- the discovery call ---------- */
.bpx-panel {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(1040px, 100%);
  height: min(780px, 100%);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #fff;
  color: #0e1014;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 40px 100px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.32s ease,
    transform 0.5s var(--bpx-ease);
}
.bpx.is-open .bpx-panel {
  opacity: 1;
  transform: none;
}
.bpx--book .bpx-close {
  top: 16px;
  right: 16px;
  background: #f1f4f8;
  color: #06294c;
}
.bpx--book .bpx-close:hover {
  background: #e6ebf2;
}
.bpx--book .bpx-close:focus-visible {
  outline-color: #06294c;
}
.bpx-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.bpx-head {
  padding: 32px 72px 4px 36px;
}
.bpx-head h2,
.bpx-booked h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #06294c;
  font-variation-settings: "opsz" 32;
}
.bpx-head p,
.bpx-booked p {
  margin: 8px 0 0;
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.5;
  color: #5d6068;
}
.bpx-cal {
  position: relative;
  flex: 1;
  min-height: 0;
}
.bpx-cal-in {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.bpx-cal-in iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.bpx-cal.is-ready .bpx-cal-in {
  opacity: 1;
}
.bpx-wait {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: 14px;
  color: #8a8c96;
  transition: opacity 0.3s ease;
}
.bpx-wait::before {
  content: "";
  width: 20px;
  height: 20px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 2px solid #dfe4ec;
  border-top-color: #06294c;
  animation: bpx-spin 0.9s linear infinite;
}
.bpx-wait {
  align-content: center;
  justify-items: center;
}
.bpx-cal.is-ready .bpx-wait {
  opacity: 0;
  pointer-events: none;
}
@keyframes bpx-spin {
  to {
    transform: rotate(360deg);
  }
}
.bpx-fail {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  font-size: 15px;
  color: #3a3d45;
}
.bpx-fail p {
  margin: 0;
}
.bpx-btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 9999px;
  background: #06294c;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.bpx-btn:hover {
  background: #0a3560;
}
.bpx-booked {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 40px 32px;
  text-align: center;
}
.bpx-booked h2 {
  margin-top: 16px;
  outline: none;
}
.bpx-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #06294c;
  color: #fff;
  box-shadow: 0 0 0 6px rgba(6, 41, 76, 0.08);
}

@media (max-width: 760px) {
  .bpx {
    padding: 64px 12px 20px;
  }
  .bpx--book {
    padding: 0;
  }
  .bpx-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .bpx-head {
    padding: 24px 68px 4px 20px;
  }
  .bpx-head h2 {
    font-size: 22px;
  }
  .bpx--video .bpx-close {
    top: -52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bpx-scrim,
  .bpx-stage,
  .bpx-panel,
  .bpx-cal-in,
  .bpx-wait {
    transition: none;
  }
  .bpx-wait::before {
    animation: none;
  }
}
