/* Home hero media (Ryan 2026-11-26, round 5): a 16:9 video under the three phones, the store badges under the video with
   the support chat beside Android, the "Tired of your scheduling software?" bar under the CTAs (on the badges' row on
   desktop) and the pillars line centred above the sports rail. Everything is placed by the layout itself: the media block
   uses the same formulas as .hero-stage (02-hero.css), the bar and chat sit in slots (js/hero-dock.js moves them in). */

.hero {
  --hm-sw: min(743px, 59vw);                                  /* .hero-stage width */
  --hm-w: calc(var(--hm-sw) * .754);                          /* video width: 560px at 1440 */
  --hm-top: calc(462px + 14.4vw - 9px);                       /* 14px under the phones (stage bottom: 462px + 14.4vw) */
  --hm-gap: 12px;
  --hm-chat: 64px;                                            /* .p2elc-launch */
  --hm-badge-h: calc((var(--hm-w) - var(--hm-chat) - 2 * var(--hm-gap)) / 2 * 92 / 304);
  --hm-row-h: max(var(--hm-chat), var(--hm-badge-h));
  --hm-bottom: calc(var(--hm-top) + var(--hm-w) * .5625 + var(--hm-gap) + var(--hm-row-h));
}

/* desktop: centred under the middle phone (stage centre + 10px), absolutely placed like the stage */
.hero-media { position: absolute; z-index: 7; width: var(--hm-w); top: var(--hm-top);
  right: calc(max(12px, 50vw - 649px) + var(--hm-sw) * .123 - 10px); }
@media (min-width: 992px) {
  .hero-inner { min-height: calc(var(--hm-bottom) + 26px); }  /* the rail starts below the badges */
}

.hero-video-card { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #05060d center / cover no-repeat;
  box-shadow: 0 0 0 1.5px #4a4a52, 0 24px 50px -18px rgba(0,0,0,.9), 0 18px 40px -20px rgba(124,77,255,.55); }
.hero-video-card video { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; cursor: pointer; }
.hero-video-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  display: none; place-items: center; background: #d0fa00; box-shadow: 0 0 0 9px rgba(208,250,0,.18), 0 0 36px rgba(208,250,0,.45); }
.hero-video-play::after { content: ""; margin-left: 5px; border-left: 20px solid #101400; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.hero-video-card.is-paused .hero-video-play { display: grid; }
.hero-video-sound { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(11,15,19,.72); color: #fff; cursor: pointer;
  font: 800 11px/1 "Barlow", Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.hero-video-sound svg { width: 16px; height: 16px; fill: none; stroke: #d0fa00; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-video-sound .is-on, .hero-video-card.is-sound .hero-video-sound .is-off { display: none; }
.hero-video-card.is-sound .hero-video-sound .is-on { display: block; }
.hero-video-play:focus-visible, .hero-video-sound:focus-visible { outline: 3px solid #d0fa00; outline-offset: 3px; }

/* store badges fill the video width, the chat launcher beside Android */
.hero-store-row { display: flex; align-items: center; gap: var(--hm-gap); margin-top: var(--hm-gap); }
.hero-store-row .p2e-install-row--hero { position: static; inset: auto; flex: 1 1 auto; width: auto; min-width: 0; margin: 0; gap: var(--hm-gap); }
.hero-store-row .p2e-install-button { height: auto; min-height: 0; aspect-ratio: 304 / 92; }
.hero-chat-slot { flex: 0 0 var(--hm-chat); width: var(--hm-chat); min-height: var(--hm-chat); display: grid; place-items: center; }
.hero-chat-slot .p2elc { position: static !important; inset: auto !important; z-index: auto !important; }
.hero-chat-slot .p2elc-teaser { display: none !important; }

/* the "Tired" bar, in flow under the CTAs (hero-dock.js lines it up with the badges on desktop) */
.hero-switch-slot { margin: 0 0 22px; }
.hero-switch-slot:empty, .hero-switch-slot:not(:has(.p2esw-banner.is-shown)) { display: none; }
.hero-switch-slot .p2esw-banner { position: static !important; inset: auto !important; width: 100% !important; max-width: none !important; margin: 0 !important;
  transform: none !important; opacity: 1 !important; visibility: visible !important; transition: none !important; animation: none !important; display: none !important; }
.hero-switch-slot .p2esw-banner.is-shown { display: flex !important; }
.hero-switch-slot .p2esw-banner-main { flex: 1; min-width: 0; }
@media (min-width: 992px) { .hero-switch-slot .p2esw-banner { min-height: var(--hm-badge-h); } }   /* same height as the badges */

/* pillars line: centred across the page, just above the sports rail */
.hero-pillars--rail { position: relative; z-index: 6; flex: none; align-self: center; justify-content: center; margin: 22px 16px 0; }

/* tablet and phone: stacked under the phones */
@media (max-width: 991.98px) {
  .hero { --hm-chat: 56px; }
  .hero-media { position: relative; top: auto; right: auto; width: min(620px, calc(100% - 32px)); margin: 14px auto 0; }
  .hero-chat-slot .p2elc-launch { width: 56px; height: 56px; border-radius: 19px; }
  .hero-switch-slot { text-align: left; }
}
@media (max-width: 767.98px) {
  .hero { --hm-gap: 10px; --hm-chat: 52px; }
  .hero-media { order: 4; margin: 10px auto 18px; }
  .hero-copy > .hero-switch-slot { order: 6; margin: 0 auto 24px; padding: 0 16px; width: 100%; }
  .hero-pillars--rail { order: 10; margin: 4px 16px 0; }
  .hero-chat-slot .p2elc-launch { width: 52px; height: 52px; border-radius: 17px; }
  .hero-video-sound { height: 30px; font-size: 10px; padding: 0 10px 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video-card video { cursor: default; }
}
@media print { .hero-media { display: none; } }
