/* Scroll the Scriptures — homepage scenes (V3, approved 2026-11-11).
   Loads after /assets/v3.css. Rules kept in V3's order; fixes at the end are marked FIX. */

/* ---------- hero ---------- */
.hero { position: relative; background: #FDFDFC; min-height: 1060px; overflow: hidden; text-align: center; }
.hero .hero-content { padding-top: 161px; position: relative; z-index: 2; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 8.6vw, 124px); line-height: 1.12; letter-spacing: -.063em; margin: 19px 0 16px; }
.hero-copy { font-size: clamp(17px, 1.63vw, 22px); line-height: 1.55; color: #606764; font-weight: 400; letter-spacing: .002em; max-width: 550px; margin: 0 auto; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 32px auto 0; }
.launch-note { font-size: 12px; color: #676F6E; white-space: nowrap; }
.hero-stage { position: absolute; left: 0; right: 0; bottom: -186px; height: 712px; z-index: 1; display: flex; align-items: flex-start; justify-content: center; pointer-events: none; }
.hero-stage:before { content: ''; position: absolute; width: min(1010px, 88vw); height: 610px; border-radius: 50%; background: radial-gradient(ellipse at 50% 48%, #DFE3E1 0%, #EEF0EF 39%, rgba(253,253,252,0) 72%); left: 50%; top: 20px; transform: translateX(-50%); opacity: .63; filter: blur(5px); }
.hero-stage:after { content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: 150px; width: 330px; height: 30px; filter: blur(26px); border-radius: 50%; background: rgba(31,39,37,.11); }

/* ---------- phone shell ---------- */
.phone { position: relative; width: 270px; flex: 0 0 auto; padding: 7px; background: #0C0D0E; border-radius: 48px; box-shadow: 0 0 0 1px #5D616466, 0 24px 52px #14181926, 0 70px 110px #14181911; isolation: isolate; }
.phone:after { content: ''; position: absolute; inset: 2px; border: 1px solid #969b9c70; border-radius: 47px; pointer-events: none; }
.phone img { display: block; width: 100%; height: auto; border-radius: 40px; background: #fff; }
.phone.dark-device { background: #040505; box-shadow: 0 0 0 1px #545859, 0 32px 80px #0008, 0 90px 120px #0004; }
.hero-stage .phone { margin-top: 12px; width: 284px; box-shadow: 0 0 0 1px rgba(26,33,33,.22), 0 20px 40px rgba(23,27,27,.15), 0 80px 110px rgba(22,26,26,.10); transform: translate3d(0,0,0); }

/* hero motion */
.hero .hero-content > * { animation: hero-up .9s cubic-bezier(.2,.66,.2,1) both; }
.hero .hero-content > .kicker { animation-delay: .06s; }
.hero .hero-content > h1 { animation-delay: .16s; }
.hero .hero-content > .hero-copy { animation-delay: .28s; }
.hero .hero-content > .hero-actions { animation-delay: .4s; }
.hero-stage .phone { animation: hero-device 1.15s cubic-bezier(.16,.67,.23,1) .35s both; will-change: transform; }
@keyframes hero-up { from { opacity: 0; transform: translateY(16px); filter: blur(3px); } to { opacity: 1; transform: translateY(0); filter: blur(0); } }
@keyframes hero-device { from { opacity: 0; transform: translateY(50px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }
.hero-scroll-cue { position: absolute; left: clamp(26px, 5.5vw, 86px); bottom: 52px; z-index: 3; display: flex; align-items: center; gap: 15px; font-size: 10px; font-weight: 700; letter-spacing: .2em; color: #7A8481; }
.hero-scroll-cue .scroll-rule { width: 72px; height: 1px; background: #BAC0BE; position: relative; overflow: hidden; }
.hero-scroll-cue .scroll-rule:after { content: ''; height: 1px; width: 34px; position: absolute; left: 0; top: 0; background: #4D5654; transform: translateX(-42px); animation: line-walk 4.2s ease-in-out 1.2s infinite; }
@keyframes line-walk { 0%, 15% { transform: translateX(-42px); } 45%, 75% { transform: translateX(80px); } 100% { transform: translateX(80px); } }

/* ---------- reading experience (dark) ---------- */
.immersion { background: #101213; color: #F7F7F6; min-height: 880px; position: relative; overflow: hidden; }
.immersion:before { content: ''; position: absolute; top: -290px; right: -240px; width: 1050px; height: 1050px; pointer-events: none; background: radial-gradient(circle, #2A2F2E 0%, #1B1F1E 37%, transparent 70%); opacity: .64; }
.immersion .inner { min-height: 880px; display: grid; grid-template-columns: 1fr .85fr; align-items: center; gap: 50px; position: relative; }
.immersion-copy { padding-top: 12px; max-width: 650px; }
.immersion h2 { font: 400 clamp(53px, 5.25vw, 76px)/1.20 var(--serif); letter-spacing: -.056em; margin: 28px 0; }
.immersion h2 em { font-style: normal; color: #92999A; }
.immersion p { font-size: 18px; line-height: 1.7; max-width: 410px; color: #B2BAB7; margin: 0; }
.immersion .eyebrow-line { display: flex; align-items: center; gap: 13px; color: #8E9798; font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.immersion .eyebrow-line:before { content: ''; width: 25px; height: 1px; background: #858e8e; }
.immersion-device { justify-self: center; position: relative; margin-top: 8px; }
.immersion-device:before { content: ''; position: absolute; inset: -80px -100px; z-index: -1; border-radius: 50%; background: radial-gradient(ellipse at center, #6A707020 0%, transparent 65%); }
.immersion-device .phone { width: 300px; }
.under-caption { color: #8C9894; text-align: center; font-size: 11px; letter-spacing: .18em; margin-top: 32px; text-transform: uppercase; }

/* ---------- daily rhythm ---------- */
.ritual { background: #F5F6F5; min-height: 900px; overflow: hidden; }
.ritual .inner { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 885px; gap: 36px; align-items: center; }
.ritual-copy { max-width: 570px; margin-top: -22px; }
.ritual h2, .themes h2, .final h2 { font: 400 clamp(54px, 5.15vw, 74px)/1.18 var(--serif); letter-spacing: -.055em; }
.ritual h2 { margin: 23px 0 20px; }
.ritual p { font-size: 18px; line-height: 1.75; color: #626969; max-width: 445px; margin: 0; }
.ritual .soft-rule { width: 54px; height: 1px; background: #B5BFBB; margin: 31px 0 27px; }
.sub-note { font-size: 13px !important; line-height: 1.7 !important; color: #676E6D !important; max-width: 360px !important; }
.ritual-phones { display: flex; align-items: center; justify-content: center; gap: 28px; position: relative; padding: 70px 0 50px; }
.ritual-phones .phone { width: 240px; box-shadow: 0 0 0 1px rgba(67,75,72,.16), 0 22px 45px rgba(21,27,25,.08); }
.ritual-phones .secondary { transform: translateY(80px); }
.ritual-phones .phone-wrap { text-align: center; }
.ritual-phones .phone-wrap .caption { margin-top: 23px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: #606867; }

/* ---------- themes ---------- */
.themes { background: #FDFDFC; min-height: 900px; overflow: hidden; }
.themes .inner { display: grid; grid-template-columns: 1fr .93fr; gap: 70px; align-items: center; min-height: 900px; }
.themes h2 { max-width: 565px; margin: 26px 0 22px; letter-spacing: -.056em; }
.themes p { font-size: 18px; line-height: 1.72; color: #626969; max-width: 460px; margin: 0 0 42px; }
.theme-chooser { display: flex; flex-wrap: wrap; gap: 16px; }
.theme-swatch { border: 0; background: transparent; padding: 7px 8px; border-radius: 9px; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 64px; color: #969B9A; transition: color .2s; }
.theme-swatch .swatch { height: 41px; width: 41px; border-radius: 50%; background: var(--swatch); border: 1px solid #D6D9D7; position: relative; transition: transform .28s cubic-bezier(.16,.67,.23,1), box-shadow .28s; }
.theme-swatch:hover .swatch { transform: scale(1.075); }
.theme-swatch[data-active='true'] .swatch { box-shadow: 0 0 0 4px white, 0 0 0 5px #858D8B; transform: scale(1); }
.theme-swatch[data-active='true'] { color: #202322; font-weight: 700; }
.theme-swatch .label { font-size: 11px; white-space: nowrap; }
.themes-preview { display: flex; align-items: center; justify-content: center; position: relative; min-height: 650px; }
.themes-preview:before { content: ''; position: absolute; inset: 10% -5%; border-radius: 50%; background: radial-gradient(ellipse, #ECEFED 0%, #F9FAF9 52%, transparent 73%); }
.themes-preview .phone { width: 264px; z-index: 1; transition: opacity .2s, transform .45s cubic-bezier(.22,.7,.3,1); }
.themes-preview .phone.changing { opacity: .40; transform: translateY(9px); }
.theme-mininote { color: #717976; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; }

/* ---------- launch / sign-up ---------- */
.final { background: #F0F2F0; min-height: 690px; display: flex; align-items: center; text-align: center; }
.final .inner { padding-top: 92px; padding-bottom: 100px; width: 100%; }
.final h2 { max-width: 840px; margin: 18px auto 16px; font-size: clamp(58px, 6.1vw, 88px); }
.final .final-copy { font-size: 18px; color: #5F6865; line-height: 1.7; margin: 0 auto 29px; max-width: 560px; }

/* ---------- section reveal ---------- */
.reveal { opacity: 1; transform: none; }
@media (min-width: 1024px) {
  .js-ready .reveal { opacity: 0; transform: translateY(18px); filter: blur(2px); transition: opacity .85s ease, transform .95s cubic-bezier(.16,.69,.24,1), filter .85s ease; }
  .js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@media (max-width: 1050px) {
  .hero { min-height: 1000px; }
  .immersion .inner, .ritual .inner, .themes .inner { gap: 24px; }
  .ritual-phones { gap: 18px; }
  .ritual-phones .phone { width: 205px; }
  .themes .inner { grid-template-columns: .9fr 1.1fr; }
  .immersion-device .phone { width: 275px; }
}
@media (max-width: 720px) {
  .hero { min-height: 932px; }
  .hero .hero-content { padding-top: 155px; }
  .hero h1 { font-size: clamp(52px, 13.1vw, 86px); letter-spacing: -.06em; line-height: 1.12; margin: 19px 0 18px; }
  .hero-copy { font-size: 17px; max-width: 320px; line-height: 1.6; }
  .hero-actions { flex-direction: column; gap: 12px; margin-top: 27px; }
  .hero-actions .dark-button { min-height: 48px; font-size: 13px; }
  .launch-note { font-size: 11px; }
  .hero-stage { height: 595px; bottom: -214px; }
  .hero-stage .phone { margin-top: 0; width: 246px; }
  .hero-stage:before { height: 520px; width: 630px; top: 10px; }
  .immersion { min-height: auto; }
  .immersion .inner { min-height: auto; grid-template-columns: 1fr; gap: 12px; padding-top: 110px; padding-bottom: 105px; }
  .immersion-copy { max-width: 460px; }
  .immersion h2 { font-size: clamp(47px, 11.2vw, 68px); margin: 20px 0; line-height: 1.16; }
  .immersion p { font-size: 16px; line-height: 1.75; }
  .immersion-device { padding-top: 48px; }
  .immersion-device .phone { width: 252px; }
  .under-caption { font-size: 10px; margin-top: 26px; }
  .ritual { min-height: auto; }
  .ritual .inner { min-height: auto; grid-template-columns: 1fr; gap: 10px; padding-top: 108px; padding-bottom: 94px; }
  .ritual h2, .themes h2 { font-size: clamp(48px, 11vw, 64px); }
  .ritual p, .themes p { font-size: 16px; }
  .ritual-copy { margin: 0; }
  .ritual .soft-rule { margin: 26px 0 20px; }
  .ritual-phones { gap: 16px; padding: 30px 0 0; }
  .ritual-phones .phone { width: min(42vw, 210px); padding: 5px; border-radius: 37px; }
  .ritual-phones .phone:after { border-radius: 35px; }
  .ritual-phones .phone img { border-radius: 31px; }
  .ritual-phones .secondary { transform: translateY(45px); }
  .ritual-phones .phone-wrap .caption { font-size: 10px; margin-top: 17px; }
  .themes { min-height: auto; }
  .themes .inner { min-height: auto; grid-template-columns: 1fr; gap: 0; padding-top: 102px; padding-bottom: 85px; }
  .themes h2 { margin: 20px 0 14px; }
  .themes p { margin-bottom: 24px; }
  .theme-chooser { gap: 6px; justify-content: space-between; }
  .theme-swatch { padding: 5px; min-width: 55px; }
  .theme-swatch .swatch { height: 37px; width: 37px; }
  .theme-swatch .label { font-size: 10px; }
  .themes-preview { min-height: 570px; }
  .themes-preview .phone { width: 248px; }
  .final { min-height: 635px; }
  .final .inner { padding-top: 100px; padding-bottom: 95px; }
  .final h2 { font-size: clamp(53px, 12vw, 72px); margin: 17px auto 21px; text-wrap: balance; }
  .final h2 br { display: none; }
  .final .final-copy { font-size: 16px; }
}
@media (max-width: 375px) {
  .hero h1 { font-size: 49px; }
  .ritual-phones { gap: 12px; }
  .ritual-phones .phone { width: 40vw; }
  .theme-swatch .label { font-size: 9px; }
  .theme-swatch { min-width: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero .hero-content > *, .hero-stage .phone, .hero-scroll-cue .scroll-rule:after { animation: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
}

/* ---------- FIXES on top of V3 (2026-11-11) ---------- */
/* FIX 1: on phones the EXPLORE cue sat on top of the hero phone. The phone already
   runs off the bottom of the screen, which says "scroll", so the cue is hidden there. */
@media (max-width: 720px) { .hero-scroll-cue { display: none; } }
/* FIX 2: "REAL APP SCREENS / LIGHT" was pinned beside the phone and ran into it.
   It now sits centred under the phone, like the caption in the dark scene. */
.themes-preview { flex-direction: column; }
.theme-mininote { position: relative; z-index: 1; margin-top: 30px; text-align: center; }
@media (max-width: 720px) { .theme-mininote { margin-top: 22px; font-size: 10px; } }
/* FIX 3: the four-books rail is removed until the Book of Mormon and D&C ship
   (McKinzie 2026-11-11, "Wait until it ships"); the dark scene no longer reserves room for it. */
/* The waitlist is skipped (McKinzie 2026-11-11). Until launch, the closing section shows a quiet pill;
   at launch it, the header pill and the hero button become the App Store link. */
.soon-pill { display: inline-flex; align-items: center; height: 52px; padding: 0 26px; margin: 0 auto; border: 1px solid #DADDDC; border-radius: 80px; background: #fff; color: #1c1e1e; font-size: 13px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 12px 35px rgba(18,26,22,.045); }
.final-help { margin: 22px auto 0; font-size: 13px; color: #6A726F; }
.final-help a { text-decoration: underline; text-underline-offset: .18em; }
