/* Landing: the demo video (YouTube no-cookie player in a 16:9 frame).
   Only var(--...) from /brand/tokens.css. */

.video-frame {
  position: relative;
  max-width: 64rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-term-bg);
}

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

.video-note {
  max-width: 64rem;
  margin: var(--space-4) auto 0;
  text-align: center;
  font-size: var(--font-size-sm);
}

.video-poster {
  position: absolute;
  inset: 0;
  display: block;
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play {
  position: absolute;
  top: 78%;
  left: 50%;
  width: 5rem;
  height: 5rem;
  margin: -2.5rem 0 0 -2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-play svg {
  width: 2.2rem;
  height: 2.2rem;
  margin-left: 0.25rem;
  fill: var(--color-on-primary);
}

.video-poster:hover .video-play,
.video-poster:focus-visible .video-play {
  transform: scale(1.06);
  background: var(--color-primary-hover);
}
