/* BTR Bot preview advert in the product page hero (13 Oct 2026): a muted video that plays on
   its own and loops, with no play button to press.
   Its own file, loaded by product.html only: browsers hold styles.css?v=6 for 4 hours, so rules
   added there would miss returning visitors until every page's ?v= moved; a new URL is fetched
   fresh. Every value comes from the styles.css tokens. Playback rules (always plays, paused
   off-screen or in a hidden tab) live in site.js, keyed on [data-loop-video]. */

/* Wide screens: the heading spans the hero, the lead and buttons sit beside the video. */
.page-hero-media > .container {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: 3rem;
}

.page-hero-media > .container > * {
  grid-column: 1 / -1;
}

.page-hero-media .lead,
.page-hero-media .button-row {
  grid-column: 1;
  align-self: start;
}

.page-hero-media .bot-ad {
  grid-column: 2;
  grid-row: 4 / span 2;
  align-self: start;
}

/* The frame: the desk window's border, radius and shadow. */
.bot-ad {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #070a0d;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 16:9 box reserved before the first frame arrives, so nothing below it moves. */
.bot-ad-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #070a0d;
}

/* Narrower screens: one column, the video under the buttons. */
@media (max-width: 1080px) {
  .page-hero-media > .container {
    display: block;
  }

  .bot-ad {
    margin-top: 2.25rem;
  }
}
