/* ==========================================================================
   Video card
   Figma source: Video player (3462:20185) on VAT workflow step 2.
   800x450 bordered card: Bullet logo + wordmark top-left (40,40),
   36px Inter Medium headline (-0.72px tracking, #222 — one-off colour
   in Figma, not bound to a token) vertically centred at x=40, 48px
   play-circle button beside it, illustration on the right.
   ========================================================================== */

.video-card {
  position: relative;
  aspect-ratio: 16 / 9; /* 800x450 */
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.video-card__brand {
  position: absolute;
  top: 40px;
  left: 40px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.video-card__brand img:first-child { width: 19px; height: 29px; }
.video-card__brand img:last-child { width: 34px; height: 14px; margin-top: 8px; }

.video-card__headline {
  position: absolute;
  left: 40px;
  top: 50%;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 2.25rem; /* 36px, one-off display size from Figma */
  font-weight: var(--weight-medium);
  letter-spacing: -0.02em; /* -0.72px at 36px */
  line-height: 1.2;
  color: #222222; /* Figma uses #222 here, not text-primary — extracted as-is */
}

.video-card__play {
  flex: none;
  display: inline-flex;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: none;
  color: var(--color-text);
  cursor: pointer;
  border-radius: var(--radius-full);
}

.video-card__play > svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.video-card__illustration {
  position: absolute;
  right: 12%;
  top: 50%;
  translate: 0 -50%;
  width: 33%;
  max-width: 264px;
}

/* provisional */
.video-card__play:hover {
  color: var(--color-text-muted);
}

/* Footer actions under a video step (Cancel / Next step) */
.step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  padding-top: 48px;
}

/* Collapse-into-icon (Peter, 22 Jul): clicking the step CTA shoots the video card up
   into the header video icon, then the page navigates. The fly-to transform is computed
   + applied inline by ui.js (data-collapse-into); this sets the glide + lifts the card
   above the sticky header so it flies over it, not behind. */
.video-card.is-collapsing {
  transition: transform 0.55s cubic-bezier(0.32, 0, 0.1, 1), opacity 0.5s ease;
  transform-origin: 0 0;
  position: relative;
  z-index: 999;
  pointer-events: none;
  will-change: transform, opacity;
}
/* the icon gives a little pop as the card lands in it */
@keyframes videoIconCatch { 0% { transform: scale(1); } 45% { transform: scale(1.3); } 100% { transform: scale(1); } }
.btn--icon.is-catching { animation: videoIconCatch 0.5s ease; }
@media (prefers-reduced-motion: reduce) {
  .video-card.is-collapsing { transition: none; }
  .btn--icon.is-catching { animation: none; }
}
