/*
 * The "See it in action" block, for feature and landing pages.
 *
 * A feature page that shows one walkthrough should not pay for the whole video
 * hub's stylesheet, so the handful of rules the block needs live here instead.
 * The hub's own pages load assets/css/videos.css, which carries these same
 * classes for its hero and cards; nothing here is loaded twice, because the
 * block never appears on the hub.
 *
 * Built on the site's v2 tokens, like every other page stylesheet.
 */

.vh-inline {
  margin: 44px 0;
  padding: 28px;
  border: 1px solid var(--line, #dfe7f2);
  border-radius: 16px;
  background: #fbfcfe;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 30px;
  align-items: center;
}

.vh-inline h2 {
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink, #10213f);
  margin: 0 0 10px;
}

.vh-inline p {
  margin: 0 0 16px;
  color: var(--ink-soft, #465572);
  font-size: 1rem;
  line-height: 1.62;
}

.vh-inline .vh-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand, #1c68e8);
  margin: 0 0 14px;
}

.vh-inline .vh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.vh-inline-meta {
  font-size: 0.875rem;
  color: var(--ink-soft, #465572);
  margin: 12px 0 0;
}

/* The poster box and, once a visitor asks for it, the player itself. The
   aspect ratio is also set inline on the element so the space is reserved
   before this file arrives. */
.vh-inline .vh-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #06142c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(16, 42, 86, 0.22), 0 2px 8px rgba(16, 42, 86, 0.08);
}

.vh-inline .vh-video {
  display: block;
  width: 100%;
  height: 100%;
  /* Letterbox rather than crop: a screen recording must never lose an edge. */
  object-fit: contain;
  background: #06142c;
}

.vh-inline .vh-video-fallback {
  padding: 24px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.55;
}

.vh-inline .vh-video-fallback a {
  color: #9cc4ff;
}

.vh-inline .vh-card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--brand-dark, #104cad);
  box-shadow: 0 6px 20px rgba(4, 16, 38, 0.36);
  transition: transform 0.18s ease;
}

.vh-inline .vh-card-play:hover,
.vh-inline .vh-card-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.07);
}

@media (max-width: 980px) {
  .vh-inline {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 760px) {
  .vh-inline {
    padding: 20px;
  }

  .vh-inline .vh-player {
    border-radius: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vh-inline .vh-card-play {
    transition: none;
  }
}
