/* Hero phone: Sanne's real app screen (header + chat bar) with the card deck the user swipes through.
   Header and chat bar keep their proportions; the space between holds the deck. */
.hero-story .hero-card-loop{display:none!important}
.hero-deck{container-type:size;background:linear-gradient(180deg,#fdfcff,#f7f4ff);overflow:hidden}
.hd-top,.hd-bottom{position:absolute;left:0;width:100%;height:auto;z-index:4;pointer-events:none}
.hd-top{top:0}
.hd-bottom{bottom:0}
.hd-stack{position:absolute;left:0;right:0;top:46cqw;bottom:31cqw;z-index:2}
/* empty card + stack waiting in the phone */
.hd-empty{position:absolute;left:50%;top:50%;height:min(calc(100% - 9cqw),calc(80cqw / .655));aspect-ratio:.655;transform:translate(-50%,-50%);border-radius:8cqw;background:#fffefd;box-shadow:0 3cqw 8cqw #2a116018}
/* the cards pop out of the phone, flip, and swipe away */
.hero-pop{position:absolute;inset:0;z-index:7;pointer-events:none}
.hd-card{position:absolute;left:49%;top:29%;width:41%;aspect-ratio:.664;transform:translate(-50%,-50%) scale(.56);opacity:0;perspective:1100px;pointer-events:auto;cursor:pointer;transition:transform .5s cubic-bezier(.3,1.35,.5,1),opacity .25s}
.hd-card.is-rest{opacity:1;transform:translate(-50.7%,-43.9%) scale(.566)}
.hd-card.is-rest .hd-flip img{box-shadow:0 1px 3px #1c0a4a22,0 6px 12px -6px #1c0a4a30}
.hd-card.is-up{opacity:1;transform:translate(-42%,-74%) rotate(-3deg) scale(1)}
.hd-card.is-out{opacity:0;transform:translate(-160%,-80%) rotate(-16deg) scale(.95);transition:transform .42s cubic-bezier(.5,0,.8,.4),opacity .38s}
.hd-flip{position:relative;width:100%;height:100%;transform-style:preserve-3d;transition:transform .5s cubic-bezier(.4,.1,.2,1)}
.hd-flip img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:clamp(14px,1.6vw,24px);backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 2px 6px #1c0a4a26,0 16px 30px -8px #1c0a4a4d,0 42px 70px -22px #12053a80}
.hd-b{transform:rotateY(180deg)}
.hd-card.flipped .hd-flip{transform:rotateY(180deg)}
.hd-card.no-t,.hd-card.no-t .hd-flip{transition:none!important}
.hero-story:not([data-step="0"]) .hero-pop{opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s .25s}
@media(prefers-reduced-motion:reduce){.hd-card,.hd-flip{transition:none!important}}
/* r29b: screen reaches the bottom edge of the glass (no light strip under the chat bar) */
.hero-story .story-screen{height:42.15%;border-radius:12%/6% 12%/6% 14%/7.5% 14%/7.5%}
.hero-deck{background:linear-gradient(#4d179a,#4d179a) bottom/100% 12cqw no-repeat,linear-gradient(180deg,#fdfcff,#f7f4ff)}
.hd-bottom{bottom:-1px}
/* intro text sits a bit lower; "3.000+ mensen" bold */
.story-intro p strong{font-weight:700}
@media(min-width:901px){.hero-story .story-intro{top:66%}}
@media(max-width:900px){.hd-card{width:38%}}
/* clean bezel edge around the screen (hides the photo's light glass rim) */
.hero-story .story-screen::after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 2px #15111c;z-index:9;pointer-events:none}

/* ===== hero round 1 (Sanne's notes) ===== */
/* headline sits around the hand as one line: "JOUW eigen" ← hand → "dagelijkse geldmaatje" */
@media(min-width:901px){
  .hero-story .story-left{left:auto;right:calc(50% + min(205px,14.2vw));top:27%;text-align:right;max-width:none;width:max-content}
  .hero-story .story-right{left:calc(50% + min(195px,13.5vw));top:43%;width:max-content;max-width:40%}
  .hero-story[data-step="3"] .story-right{left:calc(50% + min(300px,21vw))}
  .hero-story[data-step="3"] .story-left{right:calc(50% + min(270px,18.7vw))}
  .hero-story .story-intro{top:76%}
}
/* "Dít kan dus nog": budget card floats free of the phone */
.hero-story .budget-callout{left:86%;top:4%;rotate:4deg}
/* Jouw bank: connect screen shows its banks and checks */
.hero-connect .ah-banks span{opacity:1!important;transform:none!important}

/* Ping: a real iOS-style notification that drops out of the phone */
.hero-story .phone-notification{display:none}
.hero-notif{position:absolute;z-index:8;left:50.5%;top:21%;width:46%;transform:translate(-50%,-30px) scale(.9);opacity:0;pointer-events:none;display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border:0;border-radius:20px;background:rgba(250,248,255,.86);-webkit-backdrop-filter:blur(18px) saturate(1.6);backdrop-filter:blur(18px) saturate(1.6);box-shadow:0 18px 40px -10px #1c0a4a66,0 0 0 .5px #ffffff90 inset;text-align:left;font-family:Poppins,Inter,sans-serif;color:#24163a;cursor:pointer;transition:transform .45s cubic-bezier(.3,1.4,.5,1),opacity .3s}
.hn-icon{flex:none;width:38px;height:38px;border-radius:10px;background:#7122e4;display:grid;place-items:center;overflow:hidden}
.hn-icon img{width:88%}
.hn-body{flex:1;min-width:0;display:grid;gap:1px}
.hn-top{display:flex;justify-content:space-between;align-items:baseline}
.hn-top b{font-size:14px;color:#7122e4}
.hn-top small{font-size:12px;color:#8a8199}
.hn-title{font-size:14px;font-weight:600}
.hn-text{font-size:13.5px;color:#4b4060}
.hero-story[data-step="2"].has-message:not(.chat-open) .hero-notif{opacity:1;transform:translate(-50%,0) scale(1);pointer-events:auto}

/* chat: the app frame inside the phone, the bubbles pop out big enough to read */
.hero-story.chat-open .phone-chat{opacity:0!important}
.hero-story[data-step="2"].chat-open .phone-home{opacity:1!important}
.hero-story[data-step="2"].chat-open .phone-lock-screen{opacity:0}
.hero-story .hd-stack{transition:opacity .3s}
.hero-story.chat-open .hd-stack{opacity:0}
.hero-chatpop{position:absolute;z-index:8;left:50.5%;top:11%;width:50%;transform:translateX(-50%);display:flex;flex-direction:column;gap:9px;pointer-events:none;font-family:Poppins,Inter,sans-serif}
.hc{margin:0;max-width:86%;padding:11px 15px;border-radius:20px;font-size:clamp(13px,1.05vw,15.5px);line-height:1.4;box-shadow:0 14px 30px -12px #1c0a4a66;opacity:0;transform:translateY(16px) scale(.85);transition:opacity .3s,transform .4s cubic-bezier(.3,1.5,.5,1)}
.hc.c{align-self:flex-start;background:#fff;color:#2d1d45;border-bottom-left-radius:6px}
.hc.u{align-self:flex-end;background:#7f22fe;color:#fff;border-bottom-right-radius:6px}
.hc.goal{align-self:flex-start;background:#fff;border:2px solid #8ad6a3;display:grid;gap:2px;color:#2d1d45}
.hc.goal span{font-size:12px;color:#22a052;font-weight:600}
.hc.goal strong{font-size:22px;color:#22a052}
.hc.goal small{font-size:12px}
.hero-story[data-step="2"].chat-open .hc{opacity:1;transform:none}
.hero-story.chat-open .hc:nth-child(2){transition-delay:.55s}
.hero-story.chat-open .hc:nth-child(3){transition-delay:1.1s}
.hero-story.chat-open .hc:nth-child(4){transition-delay:1.65s}
.hero-story.chat-open .hc:nth-child(5){transition-delay:2.2s}
@media(max-width:900px){.hero-notif{width:70%;padding:9px 10px}.hn-icon{width:28px;height:28px}.hn-top b,.hn-title{font-size:12px}.hn-text{font-size:11.5px}.hero-chatpop{width:76%}.hc{font-size:12px;padding:8px 11px}}
.hero-story .phone-lock-screen{justify-content:flex-start;padding-top:16%}
.hero-story .phone-lock-screen>img{width:40%;margin-top:auto;margin-bottom:14%;opacity:.5}

/* ===== hero round 2: Sanne's Figma 18073:76750 (frame 1345 wide = 100vw) ===== */
@media(min-width:901px){
  .hero-story .story-hand{width:45.2vw;max-width:660px;left:49.3vw;top:17%}
  .hero-story .story-left,.hero-story .story-right{font-weight:700;letter-spacing:-.02em;line-height:1}
  header.hero-story[data-step] .story-left{font-size:min(8.6vw,124px);right:auto;left:5.95vw;top:23%;text-align:left}
  header.hero-story[data-step] .story-right{font-size:min(6vw,88px);left:61.5vw;top:61%;max-width:none;width:max-content;white-space:nowrap}
  header.hero-story[data-step="3"] .story-left{left:5.95vw;right:auto}
  header.hero-story[data-step="3"] .story-right{left:66vw}
  .hero-story .story-intro{left:5vw;top:75%;width:min(365px,27vw);text-align:left}
  .hero-story .story-intro p{font-size:clamp(14px,1.2vw,17px);line-height:1.45;margin-bottom:28px}
}
.story-intro p strong{color:#ffe14d;font-weight:600}
.hero-story .story-intro .button{display:flex;justify-content:center;width:100%;border-radius:6px;background:#ffe14d;color:#3b1680;font-weight:800;font-size:clamp(17px,1.6vw,22px);min-height:50px;height:50px;padding:0 12px;align-items:center;gap:8px;letter-spacing:-.02em}
/* +3.000: five faces pop up above the line */
.hero-people{display:flex;justify-content:center;margin:0 0 8px}
.hero-people img{width:30px;height:30px;border-radius:50%;border:1.5px solid #fff;margin-left:-10px;transform:translateY(10px) scale(0);opacity:0;animation:hp-pop .5s cubic-bezier(.3,1.6,.5,1) forwards}
.hero-people img:first-child{margin-left:0}
.hero-people img:nth-child(1){animation-delay:.9s}.hero-people img:nth-child(2){animation-delay:1s}.hero-people img:nth-child(3){animation-delay:1.1s}.hero-people img:nth-child(4){animation-delay:1.2s}.hero-people img:nth-child(5){animation-delay:1.3s}
.story-intro:hover .hero-people img{animation:hp-bleep .5s cubic-bezier(.3,1.6,.5,1) both}
.story-intro:hover .hero-people img:nth-child(2){animation-delay:.05s}.story-intro:hover .hero-people img:nth-child(3){animation-delay:.1s}.story-intro:hover .hero-people img:nth-child(4){animation-delay:.15s}.story-intro:hover .hero-people img:nth-child(5){animation-delay:.2s}
@keyframes hp-pop{to{transform:none;opacity:1}}
@keyframes hp-bleep{0%{transform:none;opacity:1}40%{transform:translateY(-6px) scale(1.15);opacity:1}100%{transform:none;opacity:1}}
/* new bank icons (already round + white): fill their circle */
.p2-set span.b img,.story-connections span.b img,.ax-orbit span.b img{width:64%;height:64%;object-fit:contain}
.story-connections span:nth-child(8){left:0;top:52%}
.story-connections span:nth-child(9){left:22%;top:60%}
.story-connections span:nth-child(10){left:42%;top:-5%}
.ax-orbit span:nth-child(5){left:-30px;top:170px;animation-delay:-1.5s}
.ax-orbit span:nth-child(6){left:200px;top:60px;animation-delay:-2.5s}

/* ===== realistic hands (light / dark / rings), one per hero step; same box, same screen spot ===== */
.hero-story .story-grip,.hero-story .story-fingers{visibility:hidden}
.rh-set{position:absolute;inset:0;pointer-events:none}
.rh-back{z-index:1;filter:drop-shadow(0 16px 26px #1a064a40)}
.rh-front{z-index:4}
.rh{position:absolute;height:auto;opacity:0;transition:opacity .45s ease}
.hero-story .rh-set img.rh-light,.hero-story .rh-set img.rh-rings{left:-8.42%;top:.48%;width:116.3%;max-width:none;height:auto}
.hero-story .rh-set img.rh-dark{left:-7.49%;top:.6%;width:114.5%;max-width:none;height:auto}
.hero-story[data-step="0"] .rh-light,.hero-story[data-step="1"] .rh-dark,.hero-story[data-step="2"] .rh-dark,.hero-story[data-step="3"] .rh-light{opacity:1}
/* screen sits exactly in the new phone's display (x 72–252, y 40–378 of 315×610), phone is upright */
.hero-story .story-screen{left:31.45%;top:8.08%;width:34.5%;height:44.4%;transform:none;border-radius:14.5%/7.4%;z-index:2}
/* hero CTA: copy changes per step, small wiggle after a few seconds */
.hero-cta .hc-label{display:inline-flex;gap:8px;align-items:center;transition:opacity .18s,transform .18s}
.hero-cta.swap .hc-label{opacity:0;transform:translateY(6px)}
.hero-cta.wiggle{animation:hc-wiggle 1.1s ease-in-out 2}
@keyframes hc-wiggle{0%,100%{transform:rotate(0)}10%{transform:rotate(-2.2deg) scale(1.02)}20%{transform:rotate(2deg) scale(1.02)}30%{transform:rotate(-1.4deg)}40%{transform:rotate(1deg)}50%{transform:rotate(0)}}
.hero-story .hero-story-sticky::after{height:36px}
.hero-story .hero-story-sticky::after{height:115px;z-index:1}
