/* ── Tool page video walkthrough ───────────────────────────────────────────
   Loaded by templates/tools/partials/_video-walkthrough.twig.

   The player is a facade: this styles the poster and play button, and the
   iframe that replaces them on click. Nothing here assumes a fixed pixel
   width, so the frame holds from 375px up. */

.tool-video-section { margin: 40px 0; }

.tool-video-lead {
  color: var(--color-gray-600);
  margin: 0 0 16px;
  max-width: 70ch;
}

.tool-video {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #0B0616;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

/* A Short is 9:16. Held narrow so a 27 second vertical clip does not take over
   a desktop page it is only supporting. */
.tool-video--vertical {
  aspect-ratio: 9 / 16;
  max-width: 320px;
}

.tool-video__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
}

.tool-video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tool-video__btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--color-primary, #4F46E5);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 26px rgba(79, 70, 229, 0.5);
  transition: all 150ms ease;
}

.tool-video__play:hover .tool-video__btn {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 12px 34px rgba(79, 70, 229, 0.62);
}

.tool-video__play:focus-visible {
  outline: 3px solid var(--color-primary, #4F46E5);
  outline-offset: 3px;
}

.tool-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 767px) {
  .tool-video-section { margin: 28px 0; }
  .tool-video { border-radius: 10px; }
  /* A vertical clip may use more of a phone screen, but never the whole height. */
  .tool-video--vertical { max-width: 260px; }
  /* Still comfortably over the 44px touch minimum. */
  .tool-video__btn { width: 58px; height: 58px; }
  .tool-video__btn svg { width: 24px; height: 24px; }
}
