/* Hero reel (home UA/RU/EN + Google Shopping/PMax page UA/RU/EN). Home hero: silent 4:5 loop next to the H1 that opens the voiced UPLIFY pitch in a dialog.
   Loaded only on "/" (layouts/base.html). Desktop >= 1280px: the reel sits in the free area right of the
   headline (absolute, so the H1 and CTAs never move) and replaces the "years" stat card; the figures move
   to a line under the CTAs (inserted by hero-reel.js). Below 1280px: a compact card under the hero. */
.hero .wrap { position: relative; --reel-w: 460px; }
@media (min-width: 1440px) and (max-width: 1599px) { .hero .wrap { --reel-w: 430px; } }
@media (min-width: 1280px) and (max-width: 1439px) { .hero .wrap { --reel-w: 285px; } }

.hero-reel {
  position: absolute; top: 0; right: clamp(38px, 2.97vw, 40px); z-index: 2;
  width: var(--reel-w); aspect-ratio: 4 / 5;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: oklch(10% 0 0);
  box-shadow: 0 24px 60px -40px oklch(88% 0.24 125 / 0.14);
}
.hero-reel__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-reel__poster { display: none; }
.hero-reel__play {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px;
  padding: 10px 14px; border: 1px solid oklch(100% 0 0 / 0.14); border-radius: 10px;
  background: oklch(12% 0 0 / 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--fg); font: 600 15px/1.2 var(--font-body); cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.hero-reel__play:hover { background: oklch(16% 0 0 / 0.86); border-color: var(--accent); transform: translateY(-1px); }
.hero-reel__play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-reel__icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: oklch(14% 0 0); }
.hero-reel__label { flex: 1; text-align: left; }
.hero-reel__meta { font: 600 12px/1 var(--font-mono); color: var(--fg-2); letter-spacing: .04em; }

.hero-stats-line { margin-top: 22px; font: 600 13px/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.hero-stats-line b { color: var(--accent); font-weight: 700; }
.hero-stats-line .sep { margin: 0 10px; color: oklch(45% 0 0); }

@media (min-width: 1280px) {
  .hero .hero-hero-stat { display: none; }
  .hero .hero-cta-col { max-width: 880px; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  .hero-reel__play { left: 10px; right: 10px; bottom: 10px; padding: 8px 10px; font-size: 13px; }
  .hero-reel__meta { display: none; }
}
@media (max-width: 1279px) {
  .hero-reel {
    position: relative; top: auto; right: auto; width: 100%; max-width: 520px; aspect-ratio: auto;
    margin-top: 22px; display: flex; align-items: center; gap: 14px; padding: 10px; box-shadow: none;
  }
  .hero-reel__video { display: none; }
  .hero-reel__poster { display: block; flex: none; width: 76px; aspect-ratio: 4 / 5; border-radius: 8px; object-fit: cover; }
  .hero-reel__play { position: static; flex: 1; background: transparent; border: 0; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-reel__play:hover { transform: none; background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .hero-reel__video { display: none; } .hero-reel { background: center / cover no-repeat var(--reel-poster, url(/static/media/pitch/uplify-hero-poster.webp)); } }

.pitch-modal {
  width: min(92vw, 560px); max-height: 92vh; padding: 0; border: 1px solid var(--line);
  border-radius: 16px; background: oklch(10% 0 0); color: var(--fg); overflow: hidden;
}
.pitch-modal::backdrop { background: oklch(0% 0 0 / 0.78); }
.pitch-modal__video { display: block; width: 100%; max-height: calc(92vh - 72px); aspect-ratio: 4 / 5; background: #000; }
.pitch-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.pitch-modal__cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 6px; background: var(--accent); color: oklch(14% 0 0); font: 600 15px/1.2 var(--font-body); text-decoration: none; }
.pitch-modal__close { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; font: 600 14px/1.2 var(--font-body); cursor: pointer; }
.pitch-modal__close:focus-visible, .pitch-modal__cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Google Shopping + PMax page: the H1, lede and KPIs span the full width, so on desktop the hero reserves a right
   column for the reel in CSS (applied before first paint, no layout shift), shrinks the H1 and stacks lede + KPIs. */
@media (min-width: 1280px) {
  .pmax-hero .wrap { padding-right: calc(var(--reel-w) + 56px); }
  .pmax-hero .hero-reel { top: clamp(0px, 1vw, 8px); }
  .pmax-hero h1.pmax-title { font-size: clamp(56px, 4.7vw, 92px); }
  .pmax-hero .hero-below { display: grid; grid-template-columns: 1fr; gap: 22px; }
  .pmax-hero .hero-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 640px; }
}
