/* Homepage hero video (2026-10-27): Abigail reading with her mom, her own voice, no sound button, no caption.
   The ad's ReadingAdventureWorlds.com banner (top 190px of the 1080x1920 video) is cropped off here: this is the site.
   Desktop: the right column of the hero, the app tour in .tour-peek below.
   Phones: beside the description, under the headline and "in just 25 lessons!" (hero-abigail-v1.js moves it there),
   trimmed to mom and Abigail reading (her legs cut off), small enough that every hero word fits on the first screen;
   the app reel in .reel-peek below the hero, then the app tour. */
.hero-abigail { position: relative; margin: 0 auto; width: min(100%, calc((100svh - var(--hero-header, 84px) - 90px) * 1080 / 1730), 400px); min-width: 260px; }
.ha-frame { position: relative; border-radius: 30px; overflow: hidden; background: #0b0d12;
  border: 6px solid #FFFFFF; box-shadow: 0 0 0 3px #22B46A, 0 26px 50px -18px rgba(20, 40, 90, .45); }
.ha-video { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1730; object-fit: cover; object-position: 50% 100%; }   /* the shape is on the video, not the bordered frame, so the crop is exact */

/* "in just 25 lessons!" is its own line now (it used to open the description), same look */
.homepage .mom-hero-desc.mh-25-line { margin-bottom: 0; }

.tour-peek { padding: 70px 0 60px; background: linear-gradient(180deg, #e8f3ff, #fffef9); }
.tour-peek .adv-hero-window { max-width: 760px; margin: 0 auto; }
.reel-peek { display: none; }

@media (max-width: 860px) {
  .homepage .adv-hero-copy .mom-hero-desc.mh-25-line { margin-bottom: 2px; }
  .homepage .adv-hero-copy .hero-abigail { float: right; width: clamp(128px, 38vw, 230px); min-width: 0; margin: 3px 0 6px 14px; }
  .ha-frame { border-radius: 18px; border-width: 3px; box-shadow: 0 0 0 2px #22B46A, 0 14px 26px -12px rgba(20, 40, 90, .45); }
  .ha-video { aspect-ratio: 1080 / 1310; object-position: 50% 31.15%; }   /* rows 190-1500 of the video: no banner, no legs */
  .homepage .adv-hero-copy .adv-actions { clear: both; }
  .tour-peek { padding: 30px 0 46px; }   /* phones get the app tour too (Isaiah 2026-10-28), under the app reel */
  .reel-peek { display: block; padding: 28px 0 34px; background: linear-gradient(180deg, #e8f3ff, #fffef9); }
  .reel-peek .hero-phone { width: 100%; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 360px) { .hero-trust { flex-wrap: wrap; } }   /* the smallest phones: Step Up badge above the checklist, not on top of it */

/* The bar that follows down the page (Isaiah 2026-10-27): one big yellow button, "Start your child's first 10 reading lessons FREE" (wording 2026-10-28) */
.homepage .adv-price-dock { width: auto; max-width: calc(100% - 24px); padding: 0; gap: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.homepage .adv-price-dock .btn { min-height: 58px; padding: 16px 30px; border-radius: 18px; font-size: 1.08rem; white-space: nowrap;
  box-shadow: 0 6px 0 #d78a06, 0 14px 34px rgba(4, 45, 69, .3); }
@media (max-width: 520px) {
  .homepage .adv-price-dock { bottom: 10px; width: calc(100% - 24px); }
  .homepage .adv-price-dock .btn { width: 100%; justify-content: center; min-height: 54px; padding: 10px 16px; font-size: .98rem; white-space: normal; line-height: 1.25; text-align: center; }   /* the longer wording takes two lines on phones instead of running off the edge */
}

/* Phones: a smaller header that sits in the page flow (Isaiah 2026-10-27: on his iPhone 16 the hero loaded partly under the
   header). iOS 26 Safari misplaces position:fixed bars against the page on Dynamic Island iPhones (WebKit 300523), and the
   hero's padding guessed the fixed header's height; a sticky header comes first in the flow, so the hero can't slip under it. */
@media (max-width: 860px) {
  .homepage .site-header { position: sticky; top: 0; }
  .homepage .site-header .mobile-menu { position: absolute; left: 0; right: 0; top: 100%; }   /* drops over the page, as before */
  .homepage .header-row { height: 64px; gap: 10px; }
  .homepage .brand img.golden-gateway-logo { width: 58px; height: 58px; }
  .homepage .adv-hero { padding-top: 12px; box-sizing: border-box; min-height: calc(100svh - 64px); display: flex; flex-direction: column; }   /* the hero fills the whole first phone screen under the 64px header (Isaiah 2026-10-28) */
  .homepage .adv-hero > .adv-hero-grid { flex: 1; align-content: center; padding-bottom: 12px; }   /* its words sit in the middle of that screen, not bunched at the top */
  .homepage section[id] { scroll-margin-top: 78px; }
}

/* Isaiah 2026-11-05: big sound on/off button, lower-right corner of the hero video */
.ha-sound { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 18px 0 14px; border: 3px solid #FFFFFF; border-radius: 999px; background: #1F7A3F; color: #FFFFFF;
  font: 800 17px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .55);
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; animation: ha-sound-pulse 1.8s ease-in-out 3; }
.ha-sound svg { width: 26px; height: 26px; flex: none; }
.ha-sound.is-on { background: rgba(20, 60, 35, .82); animation: none; }
.ha-sound:focus-visible { outline: 3px solid #F6B21E; outline-offset: 2px; }
@keyframes ha-sound-pulse { 50% { transform: scale(1.07); } }
/* phones (Isaiah 2026-11-05): a round button on the video's lower-LEFT corner, mostly off the picture so it never covers her */
@media (max-width: 860px) {
  .ha-sound { right: auto; left: -28px; bottom: -6px; width: 46px; height: 46px; min-height: 0; padding: 0; justify-content: center; border-width: 3px; }
  .ha-sound span { display: none; }
  .ha-sound svg { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ha-sound { animation: none; } }
