/* Isaiah 2026-11-04: the hero's words and photo fill the screen on every device (on desktop they sat in a 1280px box in
   the middle; on tablets and phones the description was 13px), and "Ages 2–11" sits centred under the Step Up badge.
   Loaded last on the homepage, so it only has to win on the hero. */

/* ages centred under the Step Up badge (index.html: .sb-col = badge + age) */
.hero-trust .sb-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.hero-trust .sb-col .hf-age { font-size: .9rem; color: #5a6886; white-space: nowrap; }

/* desktop and iPad landscape: wide columns, type and photo that grow with the screen */
@media (min-width: 1101px) {
  .homepage .adv-hero > .adv-hero-grid { width: 87vw; margin-left: 9vw; margin-right: auto; max-width: none; grid-template-columns: minmax(0, 50vw) auto; justify-content: space-between; /* (an auto column collapses: the copy is a size container, cqi type) */ column-gap: clamp(30px, 3vw, 90px); }
  .homepage .adv-hero-copy h1.mom-hero-title { font-size: clamp(3.2rem, 3.9vw, 5.6rem);
    /* 2026-11-13: ...but never wider than its own column. The video's width follows the window's HEIGHT, so on tall
       windows (1440x900, 16:10 MacBooks, a full-screen 1920x1080) the column shrank, the words did not, and "Teach your
       child to read" ran under the video ("...to rea"). The first line is 11.27 letters-heights wide: 8.85cqi of the
       column (.adv-hero-copy is the size container) plus what fits in the gap before the video, less a little air. */
    font-size: min(clamp(3.2rem, 3.9vw, 5.6rem), calc(8.85cqi + .266vw - 1.5px)); }
  .homepage .adv-hero-copy .adv-eyebrow { font-size: clamp(.86rem, .82vw, 1.2rem); }
  .homepage .adv-hero-copy .adv-description { font-size: clamp(1.05rem, 1.15vw, 1.6rem); }
  .homepage .adv-hero-copy .adv-actions .btn-lg { font-size: clamp(1rem, 1.1vw, 1.5rem); }
  .homepage .adv-hero .hero-abigail { width: min(calc((100svh - 230px) * 1080 / 1730), 38vw, 680px); }
}
/* wide screens: the words sit over the open sand in the middle; the coral and fish on the left stay in view */
@media (min-width: 1440px) {
  .homepage .adv-hero > .adv-hero-grid { width: 68vw; margin-left: 22.5vw; grid-template-columns: minmax(0, 43vw) auto; } /* (Isaiah 2026-11-04: words a touch right, video a touch left) */
}
@media (min-width: 1500px) { .homepage .adv-hero-copy .hero-trust, .homepage .adv-hero-copy .hero-fit { zoom: 1.08; } }
@media (min-width: 1800px) and (min-height: 1000px) { .homepage .adv-hero-copy .hero-trust, .homepage .adv-hero-copy .hero-fit { zoom: 1.25; } }

/* iPad portrait: bigger words, a bigger photo beside them. One column only (up to 860px, where the video sits inside the
   words): 2026-11-13 these sizes also reached 861-1100px, where the video has a column of its own, and the 80px
   headline ran under the video on iPad landscape (1024x768, 1080x810) and small laptop windows. */
@media (min-width: 641px) and (max-width: 860px) {
  .homepage .adv-hero-copy h1.mom-hero-title { font-size: clamp(3rem, 8vw, 5rem); }
  .homepage .adv-hero-copy .adv-description { font-size: clamp(1.08rem, 2.35vw, 1.45rem); }
  .homepage .adv-hero-copy .adv-eyebrow { font-size: clamp(.8rem, 1.5vw, 1.05rem); }
  .homepage .adv-hero-copy .hero-abigail { width: clamp(240px, 40vw, 420px); }
  .homepage .adv-hero-copy .adv-actions .btn-lg { font-size: clamp(1.1rem, 2.5vw, 1.55rem); }
  .homepage .adv-hero-copy .hero-trust, .homepage .adv-hero-copy .hero-fit { zoom: 1.3; }
  /* pre-launch device check: "the fun & easy way!" broke onto two lines (iPad mini/Pro, landscape phones); keep it on one */
  .homepage .mom-hero-title .mh-3 { font-size: min(.7em, 11cqi); }
  .homepage .mom-hero-title .mh-3 em { white-space: nowrap; }
}

/* iPad landscape and small laptop windows (861-1100px): two columns, so the words are sized to their own column */
@media (min-width: 861px) and (max-width: 1100px) {
  .homepage .adv-hero > .adv-hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(26px, 3.4vw, 40px); align-items: start; } /* (start: the video sits level with the words, so it is all on the first screen) */
  .homepage .adv-hero-copy h1.mom-hero-title { font-size: 3.9vw; font-size: min(3.9rem, 8.7cqi); }
  .homepage .adv-hero-copy .adv-description { font-size: clamp(1rem, 1.8vw, 1.2rem); }
  .homepage .mom-hero-title .mh-3 em { white-space: nowrap; }
}

/* phones: readable description */
@media (max-width: 640px) {
  .homepage .adv-hero-copy .adv-description { font-size: clamp(.9rem, 3.8vw, 1.02rem); }
  .homepage .adv-hero-copy .adv-description .mh-beg { font-size: 1.04em; } /* (was 1.12em: a touch smaller on phones) */
  .homepage .adv-hero-copy h1.mom-hero-title { font-size: clamp(1.7rem, 7.7vw, 2.5rem); } /* (a touch bigger, still one line per phrase) */
  /* the button's words on one line */
  .homepage .adv-hero-copy .adv-actions .btn { white-space: nowrap; font-size: clamp(.86rem, 3.9vw, 1rem); padding-left: 14px; padding-right: 14px; }
  .hero-trust .sb-col { flex: 0 1 auto; min-width: 0; }
  .hero-trust .sb-col .hf-age { font-size: .78rem; }
}

/* Isaiah 2026-11-04 (looks): no cream wash over the whole hero (it hid the ocean, and on phones whited out the middle);
   a soft cream glow sits behind the words only, so the reef and its animals show all around them */
.homepage .adv-hero { background: none; }
.homepage .adv-hero-copy { position: relative; isolation: isolate; }
.homepage .adv-hero-copy::before { content: ''; position: absolute; z-index: -1; pointer-events: none; inset: -34px -44px; border-radius: 48px;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 253, 246, .9) 0%, rgba(255, 253, 246, .84) 58%, rgba(255, 253, 246, 0) 100%);
  filter: blur(14px); }
@media (max-width: 1100px) {
  .homepage .adv-hero > .adv-hero-grid { width: auto; margin-left: 6vw; margin-right: 6vw; }
  .homepage .adv-hero-copy::before { inset: -90px -60px; border-radius: 0; filter: none; box-shadow: none;
    /* an even cream veil over the whole text area that fades out on all four edges (two crossed edge fades as a mask),
       so the words are easy to read and no seam or white box shows */
    background: rgba(255, 253, 246, .8);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%), linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%), linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
    mask-composite: intersect;
 }
  .homepage .hero-trust .hf-age, .homepage .hero-fit a { text-shadow: 0 0 6px #FFFDF6, 0 0 12px #FFFDF6; }
}
@media (max-width: 640px) {
  .homepage .adv-hero > .adv-hero-grid { margin-left: 26px; margin-right: 26px; }
  .homepage .adv-hero-copy::before { inset: -70px -40px; }
}

/* Isaiah 2026-11-04: "the fun & easy way!" flat (no tilt) and a little bigger; the whole headline block a little bigger */
.homepage .mom-hero-title .mh-3 { font-size: .7em; }
.homepage .mom-hero-title .mh-3 em { rotate: 0deg; }

/* Isaiah 2026-11-04 (real phone): the floating "Start your child's first 10 reading lessons FREE" button stuck in the
   middle of the screen while scrolling up. iPhone Safari moves its toolbar while you scroll, and a fixed bar centred with
   left:50% + transform can lag or jump mid-screen. Phones: pinned by both edges, no transform, above the home bar. */
@media (max-width: 900px) {
  .homepage .adv-price-dock { left: 12px; right: 12px; width: auto; max-width: none; margin: 0 auto; transform: none; translate: none; justify-content: center; /* (iPad: centred, was hugging the left) */
    bottom: max(10px, env(safe-area-inset-bottom)); }
}

/* Isaiah 2026-11-04: on phones, no app-on-a-phone video right below the hero (.reel-peek, index.html); the hero leads straight
   into the "Inside Reading Adventure Worlds" tour. (Desktop never showed it.) */
.homepage .reel-peek { display: none; }

/* pre-launch check: at 375px "Step Up approved" spilled out of its badge (the badge was squeezed to 88px) */
@media (max-width: 400px) { .homepage .hero-trust .stepup-badge.sb-hero { flex: none; } .homepage .hero-trust .hero-perks li { font-size: .66rem; } .homepage .hero-trust { gap: 8px; } .homepage .hero-trust .hero-perks { padding-left: 6px; } }

/* 2026-11-14 phone sweep: "Already exploring? Continue" was a 20px-tall tap target; the tap area grows, the look does not */
.homepage .hero-fit a { display: inline-block; padding: 12px 8px; margin: -12px -8px -12px auto; } /* (left margin stays auto: the link keeps its place at the right edge) */
