/* Demo video lightbox — subnotice.com + app landing */
.demo-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 20, 14, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.demo-video-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.demo-video-modal[hidden] {
  display: none !important;
}

.demo-video-modal:not([hidden]).is-open {
  display: flex;
}

.demo-video-modal__dialog {
  position: relative;
  width: min(960px, 100%);
  margin: 0;
  border: none;
  padding: 0;
  background: transparent;
}

.demo-video-modal__close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.demo-video-modal__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.demo-video-modal__frame {
  border-radius: var(--r-xl, 14px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, 0.65);
  background: #0b1a14;
}

.demo-video-modal__video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

.demo-video-modal__cap {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
}

body.demo-video-modal-open {
  overflow: hidden;
}

/* Clickable poster in #how-it-works */
.demo-video-poster {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: var(--r-xl, 14px);
  overflow: hidden;
  cursor: pointer;
  background: #0b1a14;
  box-shadow: 0 24px 48px -20px rgba(6, 44, 28, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.demo-video-poster:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 56px -18px rgba(6, 44, 28, 0.28);
}

.demo-video-poster img {
  display: block;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.demo-video-poster__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(6, 20, 14, 0.38);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: background 0.18s ease;
}

.demo-video-poster:hover .demo-video-poster__play {
  background: rgba(6, 20, 14, 0.52);
}

.demo-video-poster__icon {
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #062c1c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  padding-left: 0.2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

@media (max-width: 640px) {
  .demo-video-modal__close {
    top: -2.25rem;
    right: 0.25rem;
  }
}
