/* Homepage hero video: keep the existing pricing canvas as the preview surface. */
.decision-heading > span > .hero-video-trigger {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}

.decision-heading > span > .hero-video-trigger:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-video-dialog {
  width: min(900px, calc(100% - 32px));
  max-width: 900px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #d3dfe1;
  border-radius: 16px;
  background: #fff;
  color: #122633;
  box-shadow: 0 24px 70px #1226332e;
  overflow: hidden;
}

.hero-video-dialog::backdrop {
  background: rgb(18 38 51 / 52%);
}

.hero-video-dialog-shell {
  max-height: calc(100dvh - 32px);
  padding: 24px;
  overflow: auto;
}

.hero-video-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.hero-video-dialog h2 {
  margin: 0;
  color: #122633;
  font: 550 clamp(24px, 3vw, 34px) / 1.2 "DM Sans", Arial, sans-serif;
  letter-spacing: -.045em;
}

.hero-video-dialog-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #b8cacc;
  border-radius: 50%;
  background: #fff;
  color: #52636d;
  font: 400 25px/1 Arial, sans-serif;
  cursor: pointer;
}

.hero-video-dialog-close:hover {
  border-color: #087f80;
  color: #087f80;
}

.hero-video-dialog-description {
  margin: 8px 0 20px;
  color: #52636d;
  font-size: 15px;
  line-height: 1.6;
}

.hero-video-dialog video {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 150px);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: #eff9f7;
  object-fit: contain;
}

.hero-video-transcript {
  margin-top: 16px;
  border-top: 1px solid #d3dfe1;
  padding-top: 12px;
  color: #52636d;
  font-size: 13px;
  line-height: 1.55;
}

.hero-video-transcript summary {
  color: #087f80;
  font-weight: 600;
  cursor: pointer;
}

.hero-video-transcript ol {
  margin: 12px 0 8px;
  padding-left: 22px;
}

.hero-video-transcript li + li {
  margin-top: 8px;
}

.hero-video-transcript small {
  display: block;
  color: #687981;
  font-size: 11px;
}

.hero-video-dialog-fallback {
  margin: 14px 0 0;
  color: #52636d;
  font-size: 13px;
  line-height: 1.6;
}

.hero-video-dialog-fallback a {
  color: #087f80;
  text-underline-offset: 3px;
}

@media (max-width: 560px) {
  .hero-video-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }

  .hero-video-dialog-shell {
    max-height: calc(100dvh - 24px);
    padding: 18px;
  }

  .hero-video-dialog video {
    max-height: calc(100dvh - 130px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-dialog,
  .hero-video-dialog * {
    scroll-behavior: auto;
    transition: none;
  }
}
