/* ═══════════════════════════════════════════════════════════════════════
   THE STORY LAYOUT (14 Oct 2026) — /free-ai-score/ only. Loaded after styles.css.
   One full-screen idea at a time: video → free score → why → how → proof →
   offer → guarantee → questions → last ask. Phone first.
   Everything shared (chat, inputs, result, stack, guarantee, FAQ, calculator
   popup) keeps its styles.css look; this file only frames the screens.
   ═══════════════════════════════════════════════════════════════════════ */
:root{--scr-pad-x:16px;--dark-p:#d9d3f2;--dark-dim:#b9b0de}
html{scroll-snap-type:y proximity;scroll-padding-top:0}
.story main{padding:0}
.story .hero-h em{background:linear-gradient(135deg,#a5b4fc,#d8b4fe);-webkit-background-clip:text;background-clip:text;color:transparent}

/* ───────── a screen ───────── */
.story .scr{position:relative;min-height:100vh;min-height:100svh;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:clamp(48px,8vh,96px) var(--scr-pad-x) clamp(72px,11vh,112px);margin:0 auto;max-width:none;width:100%}
.story .scr > *{min-width:0}
.scr-in{width:100%;max-width:760px;margin:0 auto;text-align:center}
.scr-h{font-family:var(--display);font-weight:800;letter-spacing:-.03em;line-height:1.06;font-size:clamp(30px,6.4vw,52px);margin:0 0 14px;color:var(--ink)}
.scr-h em{font-style:normal;background:linear-gradient(135deg,var(--accent),var(--accent-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.scr-p{font-size:clamp(17px,2.2vw,20px);line-height:1.5;color:var(--ink-2);margin:0 auto 22px;max-width:600px}
.scr-dark .scr-h{color:#fff}
.scr-dark .scr-p{color:var(--dark-p)}
.scr-dark .scr-h em{background:linear-gradient(135deg,#a5b4fc,#d8b4fe);-webkit-background-clip:text;background-clip:text}
.eyebrow-dark{background:rgba(255,255,255,.1);color:#ddd3ff}

/* "Next: …" — one tap to the next idea */
.snext{position:absolute;left:50%;bottom:calc(16px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);display:inline-flex;align-items:center;gap:6px;
  color:#fff;font-weight:600;font-size:14.5px;text-decoration:none;padding:10px 16px;min-height:44px;border-radius:999px;background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);white-space:nowrap;backdrop-filter:blur(6px)}
.snext:hover{background:rgba(255,255,255,.16)}
.snext span{display:inline-block;animation:snextBob 2.2s ease-in-out infinite}
@keyframes snextBob{0%,100%{transform:translateY(0)}50%{transform:translateY(3px)}}

/* progress: a thin bar on top, dots on the right on wide screens */
.sprog{position:fixed;top:0;left:0;right:0;height:3px;z-index:45;background:transparent;pointer-events:none}
.sprog i{display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:0 50%;background:linear-gradient(90deg,#818cf8,#c084fc)}
.sdots{position:fixed;right:18px;top:50%;transform:translateY(-50%);z-index:44;display:none;flex-direction:column;gap:4px}
.sdots a{display:block;width:24px;height:24px;border-radius:50%;position:relative}
.sdots a::after{content:"";position:absolute;inset:8px;border-radius:50%;background:rgba(255,255,255,.35);transition:transform .2s,background .2s}
.sdots a:hover::after{background:rgba(255,255,255,.7)}
.sdots a.on::after{background:#fff;transform:scale(1.35)}
@media (min-width:1100px){.sdots{display:flex}}

/* ───────── 1. the video screen ───────── */
.story .scr-watch.box{background:none;box-shadow:none;border-radius:0;max-width:none;text-align:left;padding:0;justify-content:flex-start}
/* phones: a solid strip above the video (the video's walls are light, white text over them failed contrast) */
.story-hdr{position:relative;z-index:4;padding:10px 16px;background:#0d0820;flex:none}
.story-hdr .brand{font-size:16px}
.story-hdr .brand svg{width:26px;height:26px}
.story .scr-watch{display:flex;flex-direction:column;align-items:stretch;height:100vh;height:100svh}
.watch-in{width:100%;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.vid{position:relative;flex:1 1 auto;min-height:0;margin:0;background:#07040f;overflow:hidden}
.vid video{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 40%;background:#07040f}
.vid-sound{position:absolute;left:12px;top:12px;z-index:3;display:inline-flex;align-items:center;gap:8px;font:inherit;font-weight:700;font-size:15px;color:#0d0820;
  background:#fff;border:0;border-radius:999px;padding:10px 16px 10px 12px;min-height:44px;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.35)}
.vid-sound svg{width:20px;height:20px}
.vid-sound[hidden]{display:none}
.vid-sound.pulse{animation:soundPulse 2.4s ease-in-out infinite}
@keyframes soundPulse{0%,100%{box-shadow:0 6px 20px rgba(0,0,0,.35),0 0 0 0 rgba(255,255,255,.55)}50%{box-shadow:0 6px 20px rgba(0,0,0,.35),0 0 0 10px rgba(255,255,255,0)}}
.vid-pp{position:absolute;right:12px;top:12px;z-index:3;width:44px;height:44px;border-radius:50%;border:0;background:rgba(10,6,25,.6);color:#fff;display:grid;place-items:center;cursor:pointer}
.vid-pp svg{width:18px;height:18px;fill:currentColor}
.vid-pp .i-play,.vid.paused .vid-pp .i-pause{display:none}
.vid.paused .vid-pp .i-play{display:block}
.vid-bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.18);z-index:2}
.vid-bar i{display:block;height:100%;width:100%;transform:scaleX(0);transform-origin:0 50%;background:#fff}
.vid-end{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;
  background:rgba(8,4,22,.72);backdrop-filter:blur(3px)}
.vid-end[hidden]{display:none}
.vid-end .btn{width:auto;max-width:100%}
.vid-again{font:inherit;font-weight:600;color:#fff;background:none;border:1px solid rgba(255,255,255,.5);border-radius:999px;padding:10px 18px;min-height:44px;cursor:pointer}
.watch-copy{flex:none;padding:14px 16px calc(14px + env(safe-area-inset-bottom,0px));background:#0d0820;color:#fff;text-align:center}
.watch-copy .eyebrow{display:none}
.watch-copy .hero-h{color:#fff;font-size:clamp(25px,7vw,34px);margin:0 0 4px}
.watch-sub{color:var(--dark-p);font-size:15px;margin:0 auto 12px}
.story .btn-scan{background:linear-gradient(135deg,var(--btn-a),var(--btn-b));color:#fff;border:0;box-shadow:0 8px 22px -6px rgba(99,102,241,.7)}
.story .btn-scan:hover{background:linear-gradient(135deg,#4338ca,#5b21b6);color:#fff;transform:translateY(-1px)}
.watch-btn{width:100%;max-width:440px;border-radius:999px;font-size:17px}
.watch-scan{display:flex;gap:8px;width:100%;max-width:440px;margin:0 auto}
.watch-scan input{flex:1 1 auto;min-width:0;height:52px;padding:0 18px;border:0;border-radius:999px;background:#fff;color:#0d0820;font:inherit;font-size:16px}
.watch-scan input:focus-visible{outline:3px solid #a78bfa;outline-offset:2px}
.watch-scan .btn{flex:none;width:auto;height:52px;padding:0 20px;border-radius:999px;font-size:16px;white-space:nowrap}

@media (min-width:900px){
  .watch-in{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:clamp(32px,5vw,80px);max-width:1180px;margin:0 auto;
    padding:96px 40px 64px;height:auto}
  .story .scr-watch{height:auto}
  .story-hdr{position:absolute;top:0;left:0;right:0;padding:22px 40px;background:none}
  .story-hdr .brand{font-size:18px}
  .vid{order:2;flex:none;height:min(78vh,760px);aspect-ratio:9/16;border-radius:28px;box-shadow:0 30px 70px -20px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.08)}
  .vid video{object-position:50% 50%}
  .vid-sound,.vid-pp{top:14px}
  .watch-copy{order:1;background:none;text-align:left;padding:0}
  .watch-copy .eyebrow{display:inline-block;background:rgba(255,255,255,.1);color:#ddd3ff}
  .watch-copy .hero-h{font-size:clamp(44px,5vw,68px);margin-bottom:16px}
  .watch-sub{font-size:20px;margin:0 0 28px;max-width:30ch}
  .watch-btn{width:auto;padding:18px 32px;font-size:18px}
  .watch-scan{margin:0;max-width:520px}
  .watch-scan input,.watch-scan .btn{height:60px;font-size:18px}
}

/* ───────── 2. the free score ───────── */
.card{width:100%;max-width:680px;background:#fff;color:var(--ink);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);
  padding:clamp(26px,5vw,48px) clamp(18px,5vw,48px);text-align:center}
.card .scr-h{font-size:clamp(30px,6vw,46px)}
.card .scr-p{font-size:clamp(16.5px,2vw,18.5px);margin-bottom:20px}
.scanbox.scan-one{margin:0;background:none;border:0;padding:0;text-align:left}
.scan-one > label{display:block;font-weight:600;font-size:15px;margin:0 0 6px;color:var(--ink)}
.scan-row{display:flex;gap:10px;align-items:stretch}
.scan-row .inp{flex:1 1 auto;min-width:0}
.story .scan-row .inp input{height:54px;font-size:17px;border-radius:12px;padding-left:42px}
.story .scan-row .inp-l{left:14px}
.scan-row .btn{flex:none;width:auto;border-radius:12px;padding:0 22px;min-height:54px;white-space:nowrap}
.scan-one .err{margin:8px 0 0}
.scan-one .scan-gets{margin-top:14px}
@media (max-width:560px){
  .scan-row{flex-direction:column}
  .scan-row .btn{width:100%}
}

/* the result screen */
.story .result.scr{margin:0 auto}
.story .result.scr[hidden]{display:none}
.story .result .result-in{width:100%;max-width:760px;margin:0 auto}
.zgate{margin:6px 0 16px;padding:18px;border-radius:14px;background:linear-gradient(180deg,#f3f1ff,#eef0ff);border:1.5px solid #d9d6ff;text-align:left}
.zgate[hidden],.zhelp[hidden],.zhelp-ok[hidden],.story .zfix[hidden],.story .zlock[hidden]{display:none}
.zgate-h{font-family:var(--display);font-weight:800;letter-spacing:-.02em;font-size:21px;margin:0 0 4px}
.zgate-p{margin:0 0 12px;color:var(--ink-2);font-size:15.5px}
.zgate .err,.zhelp .err{margin:8px 0 0}
.zgate-fine{margin:10px 0 0;font-size:13px;color:var(--ink-dim)}
.zhelp{margin-top:22px;padding-top:18px;border-top:1px solid var(--rule)}
.btn-ghost-d{background:#fff;color:var(--accent-deep);border:2px solid var(--accent-deep)}
.zhelp-ok{margin-top:18px;font-weight:600;color:var(--ok)}
.zcalc{margin:16px 0 0;text-align:center;font-size:15.5px}
.zcalc a{color:var(--accent-deep);font-weight:600;text-underline-offset:3px}

/* ───────── 3. why it matters ───────── */
.story #why .beam{max-width:560px;margin:8px auto 22px;text-align:left}
@media (max-width:720px){
  .story #why .ch-body{min-height:196px;padding-top:12px}
  .story #why .scr-h,.story #how .scr-h{font-size:clamp(28px,7.6vw,40px)}
  .story #why .beam{margin:4px auto 16px}
  .story .gs-list .gs{padding-top:10px;padding-bottom:10px}
}

/* ───────── 4. how it works ───────── */
.how{list-style:none;margin:8px auto 0;padding:0;display:grid;gap:12px;max-width:640px;text-align:left}
.how li{display:flex;gap:16px;align-items:flex-start;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:18px 18px}
.how-n{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;font-family:var(--display);font-weight:800;font-size:19px;color:#fff;
  background:linear-gradient(135deg,var(--btn-a),var(--btn-b))}
.how h3{margin:0 0 4px;font-family:var(--display);font-weight:700;font-size:19px;letter-spacing:-.01em;color:#fff}
.how p{margin:0;color:var(--dark-p);font-size:15.5px;line-height:1.5}
@media (min-width:900px){
  .how{grid-template-columns:repeat(3,1fr);max-width:980px}
  .how li{flex-direction:column}
}

/* ───────── 5–8. proof, offer, guarantee, questions: the shared cards, centred in a screen ───────── */
.story .proof.scr{color:#fff}
.story .proof .scr-in{max-width:var(--wide-w)}
.story .proof h2{font-size:clamp(28px,5.4vw,44px);font-weight:800;letter-spacing:-.03em;margin-bottom:8px}
.story .stack.scr > .stack-in,.story .guar.scr > .guar-in,.story .faq.scr > .faq-in{width:100%;max-width:var(--card-w)}
.story .faq.scr > .faq-in{max-width:760px}
@media (max-width:720px){
  .story .stats{grid-template-columns:1fr;gap:10px}
  .story .stat{padding:14px 16px;display:flex;align-items:center;gap:14px;text-align:left}
  .story .stat .l{margin-top:0}
}

/* ───────── 9. the last ask ───────── */
.last-btn{width:100%;max-width:440px;font-size:18px;padding:18px 28px}
.last-alt{display:inline-block;margin-top:18px;color:#fff;font-weight:600;text-underline-offset:3px;padding:10px 6px}

/* the phone sticky button clears the "Next" pill */
@media (max-width:720px){
  .story .stickycta{background:linear-gradient(135deg,var(--btn-a),var(--btn-b));color:#fff}
  /* fixed room for the sticky button on every screen - never toggled with it, or the page jumps when it appears */
  .story .snext{bottom:calc(80px + env(safe-area-inset-bottom,0px))}
  .story .scr{padding-top:40px;padding-bottom:calc(140px + env(safe-area-inset-bottom,0px))}
}

/* short screens (landscape phones): screens grow with their content */
@media (max-height:560px){
  html{scroll-snap-type:none}
  .story .scr-watch{height:auto}
  .vid{min-height:80vh;flex:none}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-snap-type:none}
  .snext span,.vid-sound.pulse{animation:none}
}
