/* The home page's scroll story (2026-11-13, docs/work/2026-11-13-scroll-story; Jack picked prototype A): one idea per step, a
   pinned stage beside the steps (position: sticky). Native scroll only. Each step's clip
   plays once when it is reached and holds its last frame; with reduced motion or without JavaScript every step shows that
   last frame as a still. Light and dark come from site.css tokens. */
.story-media{position:relative;aspect-ratio:1/1;border:1px solid var(--line);border-radius:28px;overflow:hidden;background:var(--media);box-shadow:var(--shadow)}
.story-media img,.story-media video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.story-media video{opacity:0}
.story-media.playing video{opacity:1}
.story-cap{font-size:13px;color:var(--ink2);margin-top:10px}
.kicker{font-size:13px;font-weight:500;color:var(--acc-text);letter-spacing:.01em;margin-bottom:12px;display:flex;align-items:center;gap:10px}
.kicker .n{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--accbg);color:var(--acc-text);font-size:12px;font-weight:600}
.story-copy h2{font-size:44px;line-height:1.08;text-wrap:balance}
.story-copy p:not(.kicker){font-size:20px;color:var(--ink2);margin-top:14px;max-width:460px}
.story-copy p.soon{font-size:14px;margin-top:12px}
.story-hero h1{text-align:left;margin:0;font-size:64px}
.story-hero .lead{text-align:left;font-size:19px;margin:20px 0 28px;max-width:540px}
.story-hero .form{max-width:none;margin:0}
.story-hero .row{grid-template-columns:1fr 1fr}
.story-hero .row .pill{grid-column:1/-1}
.story-hero .fine{text-align:left}
.story-hero .fw{min-height:210px}
/* "Nurit is early": back under the hero form (compliance E2), sunk note, left-aligned like the words around it. */
.story-status{text-align:left;font-size:14px;background:var(--bg2);border:0;border-radius:14px;padding:16px 18px;margin:32px 0 0;max-width:560px}
#pricing{padding-top:80px}

.sa{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px);column-gap:80px;padding-bottom:40px}
.sa-steps{grid-column:1;grid-row:1}
.sa-stage{grid-column:2;grid-row:1;align-self:start;position:sticky;top:max(calc(50vh - 300px),81px);top:max(calc(50svh - 300px),81px);z-index:2}
.sa-box{position:relative;aspect-ratio:1/1;width:min(520px,62vh)}
.sa-box .story-media{position:absolute;inset:0}
/* The old picture leaves before the new one arrives, so two cards never show through each other. */
.sa-stage .sm{position:absolute;inset:0;opacity:0;transition:opacity .16s linear}
.sa-stage .sm.on{opacity:1;transition:opacity .24s var(--ease) .14s}
.sa-dots{display:flex;gap:6px;margin-top:14px}
.sa-dots i{height:4px;flex:1;border-radius:4px;background:var(--line);transition:background .3s var(--ease)}
.sa-dots i.on{background:var(--acc)}
.sa-step{min-height:78vh;min-height:78svh;display:flex;flex-direction:column;justify-content:center;padding:40px 0}
.sa-step.hero-step{min-height:calc(100vh - 69px);min-height:calc(100svh - 69px);padding-top:8px}
@media (min-width:901px){
  .js.motion .sa-step#how{margin-top:96px}
}
@media (min-width:901px) and (max-height:760px){
  .sa-step.hero-step{padding-top:10px}
  .story-hero h1{font-size:56px}
  .story-hero .lead{margin:14px 0 20px}
  .story-status{margin-top:16px}
  .sa-stage{top:max(calc(50vh - 300px),93px);top:max(calc(50svh - 300px),93px)}
}
/* One-step scroll snapping (2026-11-15, docs/work/2026-11-14-scroll-snap): scoped to .js.motion so reduced-motion and no-JS stay free-scrolling. */
html.js.motion{scroll-snap-type:y mandatory}
html.js.motion.sa-tail-free{scroll-snap-type:none}
.js.motion .sa-step{scroll-snap-align:center;scroll-snap-stop:always}
.js.motion .sa-step.hero-step{scroll-snap-align:start}
.js.motion .sa-tail{scroll-snap-align:start}
.js.motion footer.foot{scroll-snap-align:end}
/* Step 1 fits under the nav on a 1280x720 laptop (the 40px step padding made it 8px too tall), so it rests at the top coming back
   up from step 2 and the first key press from the top moves to step 2, not 8px. */
.js.motion .sa-step.hero-step{padding-bottom:16px}
/* Inactive steps are quieter but stay readable (grey text >= 4.5:1, not transparency). */
.js.motion .sa-step:not(.hero-step) .story-copy :is(h2,p){transition:color .4s var(--ease)}
.js.motion .sa-step:not(.hero-step):not(.on) .story-copy :is(h2,p){color:var(--ink2)}
.sa-inline{display:none}
.nojs .sa-stage{display:none}
.nojs .sa{grid-template-columns:minmax(0,1fr)}
.nojs .sa-inline{display:block;max-width:420px;margin-top:24px}

@media (max-width:900px){
  .sa{display:flex;flex-direction:column}
  .sa-steps{display:contents}
  .sa-step{order:2;min-height:30vh;min-height:30svh;justify-content:flex-start;padding:20px 0 0}
  .sa-step.hero-step{order:0;min-height:0;padding:28px 0 16px}
  .sa-stage{order:1;top:0;align-self:stretch;background:var(--bg);margin:0 -18px;padding:10px 18px 8px;box-shadow:0 1px 0 var(--line)}
  .sa-box{width:min(100%,46vh);width:min(100%,46svh);margin:0 auto}
  .story-media,.sa-box .story-media{border-radius:20px}
  .sa-stage .story-cap{text-align:center;margin-top:6px;font-size:12px}
  .sa-dots{width:min(100%,46vh);width:min(100%,46svh);margin:8px auto 0}
  .story-hero h1{font-size:44px}
  .story-hero .lead{font-size:16px;margin:16px 0 22px}
  .story-copy h2{font-size:30px}
  .story-copy p:not(.kicker){font-size:16px}
  .story-copy p.soon{font-size:13px}
  #pricing{padding-top:64px}
  .story-hero .row{grid-template-columns:minmax(0,1fr)}
  .story-hero .fw{min-height:290px}
  /* The pinned stage covers the top of the screen, so it is the root's scroll padding (story.js keeps --sa-stage-h exact): steps
     snap just under it, and Find, text-fragment links and screen readers bring words into view below it, never behind it.
     Anchors below the story still land 72px from the top. */
  html.js.motion{scroll-padding-top:var(--sa-stage-h,46svh)}
  .js.motion .sa-step.hero-step{scroll-margin-top:72px}
  .js.motion .sa-step:not(.hero-step){scroll-snap-align:start;min-height:calc(100svh - var(--sa-stage-h,46svh));padding-bottom:20px}
  .js.motion .sa-tail,.js.motion #pricing,.js.motion #story,.js.motion #faq,.js.motion #join{scroll-margin-top:calc(72px - var(--sa-stage-h,46svh))}
  /* While focus is in step 1's form the stage sits below it, not over it: the same snap positions come from step margins instead,
     so focusing a field, an error or the text checkbox never scrolls the page as if the top were covered. */
  html.js.motion:has(.hero-step:focus-within){scroll-padding-top:0}
  .js.motion:has(.hero-step:focus-within) .sa-step:not(.hero-step){scroll-margin-top:var(--sa-stage-h,46svh)}
  .js.motion:has(.hero-step:focus-within) :is(.sa-tail,#pricing,#story,#faq,#join){scroll-margin-top:72px}
}
@media (max-width:900px) and (max-height:620px){
  .js.motion .sa-box,.js.motion .sa-dots{width:min(100%,40svh)}
  .js.motion .sa-step:not(.hero-step){padding-top:14px}
}
@media (max-height:520px),(max-width:359px){
  html.js.motion{scroll-snap-type:none;scroll-padding-top:72px}
  .js.motion .sa-step,.js.motion .sa-tail,.js.motion footer.foot{scroll-snap-align:none;scroll-snap-stop:normal}
  .js.motion .sa-stage{display:none}
  .js.motion .sa{grid-template-columns:minmax(0,1fr)}
  .js.motion .sa-inline{display:block;max-width:420px;margin-top:24px}
  .js.motion .sa-step:not(.hero-step),.js.motion .sa-step.hero-step{min-height:0;scroll-margin-top:0;padding-bottom:0}
  .js.motion .sa-tail,.js.motion #pricing,.js.motion #story,.js.motion #faq,.js.motion #join{scroll-margin-top:0}
}
/* The same layout when a step's words don't fit its room on a taller screen (story.js .sa-short: text-spacing overrides, larger text). */
html.js.motion.sa-short{scroll-snap-type:none;scroll-padding-top:72px}
.js.motion.sa-short .sa-step,.js.motion.sa-short .sa-tail,.js.motion.sa-short footer.foot{scroll-snap-align:none;scroll-snap-stop:normal}
.js.motion.sa-short .sa-stage{display:none}
.js.motion.sa-short .sa{grid-template-columns:minmax(0,1fr)}
.js.motion.sa-short .sa-inline{display:block;max-width:420px;margin-top:24px}
.js.motion.sa-short .sa-step:not(.hero-step),.js.motion.sa-short .sa-step.hero-step{min-height:0;scroll-margin-top:0;padding-bottom:0}
.js.motion.sa-short .sa-tail,.js.motion.sa-short #pricing,.js.motion.sa-short #story,.js.motion.sa-short #faq,.js.motion.sa-short #join{scroll-margin-top:0}
@media (prefers-reduced-motion:reduce){
  .story-media video{display:none!important}
  .js.motion .sa-step .story-copy{opacity:1!important}
}
