/* The story around the tour: the phone (with the app inside) stays in the middle (fixed, see ending.css),
   the download section lives below it in the morning cream. */
:root{--gut:clamp(28px,3vw,64px)}
.story{position:relative;font-family:'Nunito',ui-rounded,system-ui,sans-serif;color:var(--paper);overflow-x:clip}
.story-js .rv{opacity:0;transform:translateY(16px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0) * 70ms)}
.story-js .rv.in{opacity:1;transform:none}

.sec-title{margin:0 0 .5em;font-size:clamp(2rem,4.6vw,4.25rem);line-height:1.02;font-weight:900;letter-spacing:-.035em;text-wrap:balance}
.lead{margin:0 0 1em;font-size:clamp(1.125rem,1.5vw,1.25rem);line-height:1.5;font-weight:600;color:#f1eafb}
.story a:focus-visible,.story button:focus-visible,.story summary:focus-visible{outline:3px solid var(--yellow);outline-offset:4px;border-radius:4px}
.b6 a:focus-visible,.b6 button:focus-visible,.b6 summary:focus-visible{outline-color:var(--purple)}

/* B6: morning cream, download */
.b6{padding:calc(26svh + clamp(24px,5svh,56px)) clamp(20px,4vw,64px) 40px;background:linear-gradient(180deg,var(--deep) 0,var(--paper) 26svh,var(--paper) 100%);color:var(--ink)}
.b6 .lead{color:#4a3a5e}
.b6-grid{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,5vw,80px);align-items:center;min-height:calc(100svh - 26svh - 2 * clamp(24px,5svh,56px))}
.b6-copy{max-width:34rem}
.b6-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:.4rem 0 1.6rem}
.b6-actions .store-btn{height:56px}
.cta{display:inline-flex;align-items:center;justify-content:center;min-height:64px;margin:0;padding:0 40px;border-radius:20px;background:var(--yellow);color:#3e285c;font-size:1.375rem;font-weight:900;box-shadow:0 10px 28px #ba8a2744;transition:transform .2s,background .2s}
.cta:hover{background:#ffdc5e;transform:translateY(-2px)}
.offer{position:relative;justify-self:center;width:min(100%,400px,calc((100svh - 120px) * 789 / 828));margin:0}
.wave-fig{display:block;width:100%;height:auto;filter:drop-shadow(0 14px 14px #2a1a4a33)}
.faq{max-width:46rem;margin:clamp(48px,9svh,110px) auto 0}
.faq h3{margin:0 0 .75rem;font-size:1.5rem;font-weight:900;letter-spacing:-.02em}
.faq details{border-top:1px solid #d6c9e1}
.faq details:last-of-type{border-bottom:1px solid #d6c9e1}
.faq summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:60px;padding:12px 0;font-size:1.125rem;line-height:1.35;font-weight:800;list-style:none;cursor:pointer}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:'+';flex-shrink:0;font-size:1.75rem;line-height:1;font-weight:700;color:var(--purple)}
.faq details[open] summary::after{content:'−'}
.faq details p{margin:0 0 1.2rem;font-size:1.125rem;line-height:1.6;font-weight:600;color:#4a3a5e}
.story-foot{max-width:46rem;margin:clamp(36px,6svh,64px) auto 0;padding-top:1rem;border-top:1px solid #d6c9e1;display:flex;flex-wrap:wrap;gap:0 24px;align-items:center;font-size:.9375rem;font-weight:700;color:#5c456c}
.story-foot button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0;border:0;background:none;color:var(--deep);font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.story-foot button span{font-size:1.4rem;line-height:1;text-decoration:none}

/* ---- the dark alarm screens inside the phone (ring, steps, scan) ---- */
.game.story-night .phone-screen{background:#0a0a0c;color:#fff}
.game.story-night .phone-screen::before{content:'';position:absolute;left:0;right:0;top:0;height:62%;background:radial-gradient(ellipse 78% 58% at 50% 8%,#5b49b0a8,#35286e70 42%,transparent 78%);pointer-events:none}
.game.story-night .phone-status,.game.story-night .phone-app{position:relative;color:#fff}
.game.story-night .phone-app b{color:#c3b3ff}
.game.story-night .camera-dot{color:#7ad0a8}
.game.story .phone-screen{transition:background-color .35s ease}

/* ---- mobile sticky band + out state ---- */
.story-band{position:fixed;left:0;right:0;top:0;height:var(--band-h,50dvh);z-index:25;background:var(--deep);opacity:var(--band,0);pointer-events:none;-webkit-mask-image:linear-gradient(#000 calc(100% - 18px),transparent);mask-image:linear-gradient(#000 calc(100% - 18px),transparent)}
.game.story.story-out #phone-rig,.game.story-out .story-band{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .4s,visibility 0s .4s}

@media(min-width:1100px){.story-band{display:none}}
@media(max-width:1099px){
  .b6{padding-top:calc(26svh + 24px)}
  .b6-grid{display:flex;flex-direction:column;align-items:stretch;min-height:0}
  .offer{justify-self:center;margin:8px auto 0;width:min(78%,300px)}
}
@media(max-width:420px){.cta{width:100%}}
@media(prefers-reduced-motion:reduce){.story-js .rv{opacity:1;transform:none}}
/* SSS link in the story footer */
.story-foot .foot-link{display:inline-flex;align-items:center;min-height:44px;color:var(--deep);font-weight:800;text-decoration:underline;text-underline-offset:3px}
/* The story pages sit on paper: the page ground under them (and the overscroll glow past the last stop) is paper too, never the purple of the welcome screen (Emre, 25 Kas) */
html:has(#game.epilogue:not(.perde-run)),html:has(#game.epilogue:not(.perde-run)) body{background:var(--paper)}
