.how-page{background:#f8f9ff}
.desktop-nav .active{color:var(--coral)}
.how-main{overflow:hidden}
.how-intro{padding:58px 0 20px;text-align:center}
.how-intro h1{margin:16px auto 14px;color:var(--navy);font-size:clamp(38px,4.4vw,62px);line-height:1.08;letter-spacing:-.05em}
.how-intro h1 span{color:var(--coral)}
.how-intro>div>p{margin:0;color:var(--muted);font-size:16px}
.story-stage{padding:35px 0 80px}
.stage-grid{display:grid;grid-template-columns:380px 1fr;align-items:end;gap:12px;min-height:640px}
.robot-zone{position:relative;height:610px;display:flex;align-items:flex-end;justify-content:center}
.robot-assistant{position:relative;z-index:3;width:320px;max-height:500px;object-fit:contain;filter:drop-shadow(0 22px 22px rgba(17,26,86,.2));animation:none}
.robot-glow{position:absolute;z-index:1;left:50%;bottom:68px;width:310px;height:310px;transform:translateX(-50%);border-radius:50%;background:radial-gradient(circle,rgba(255,88,72,.2),rgba(232,238,255,.28) 45%,transparent 70%)}
.robot-shadow{position:absolute;z-index:2;bottom:8px;width:205px;height:25px;border-radius:50%;background:rgba(17,26,86,.14);filter:blur(12px);animation:none}
.speech-wrap{position:absolute;z-index:6;top:0;left:10px;width:310px}
.speech-bubble{position:relative;padding:20px 22px;border-radius:22px 22px 22px 5px;background:#fff;border:1px solid #e6e8f2;box-shadow:0 18px 40px rgba(17,26,86,.12);animation:bubbleIn .55s cubic-bezier(.2,.75,.3,1)}
.speech-bubble:after{content:"";position:absolute;left:30px;bottom:-14px;border-style:solid;border-width:15px 15px 0 0;border-color:#fff transparent transparent transparent}
.speech-kicker{display:block;color:var(--coral);font-size:11px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;margin-bottom:7px}
.speech-bubble p{margin:0;color:var(--navy);font-size:14px;font-weight:700;line-height:1.55}
.screen-zone{position:relative;padding-bottom:20px}
.screen-shell{position:relative;min-height:555px;border-radius:30px;background:#fff;border:1px solid #e4e7f2;box-shadow:0 30px 80px rgba(17,26,86,.14);overflow:hidden}
.screen-shell:before{content:"";position:absolute;right:-90px;top:-90px;width:260px;height:260px;border-radius:50%;background:#fff1ee}
.screen-topbar{position:relative;z-index:2;height:58px;padding:0 24px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;border-bottom:1px solid #eceef5;background:rgba(255,255,255,.84);backdrop-filter:blur(8px)}
.screen-dots{display:flex;gap:7px}
.screen-dots i{width:9px;height:9px;border-radius:50%;background:#d9dce8}
.screen-dots i:first-child{background:var(--coral)}
.screen-topbar>span{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--muted)}
.screen-live{justify-self:end;display:flex;align-items:center;gap:7px;color:#218961;font-size:9px;font-weight:800}
.screen-live i{width:7px;height:7px;border-radius:50%;background:#2ecc8d;box-shadow:0 0 0 5px rgba(46,204,141,.14);animation:livePulse 1.7s ease-in-out infinite}
.screen-content{position:relative;z-index:2;padding:42px 52px 28px;min-height:420px;animation:screenEnter .55s ease}
.slide-visual{position:absolute;right:38px;top:26px;width:180px;height:180px;border-radius:30px;background:linear-gradient(145deg,#edf1ff,#fff);border:1px solid #e6e9f4}
.slide-visual:before,.slide-visual:after{content:"";position:absolute;border-radius:50%}
.slide-visual:before{width:86px;height:86px;left:47px;top:35px;border:14px solid var(--coral);border-right-color:#e4e8f7;transform:rotate(-28deg)}
.slide-visual:after{width:42px;height:10px;left:69px;bottom:27px;background:var(--navy);box-shadow:0 18px 0 #cbd1e6}
.slide-tag{display:inline-flex;padding:7px 11px;border-radius:20px;background:#ffebe8;color:#d94739;font-size:9px;font-weight:800;letter-spacing:.12em}
.screen-content h2{max-width:470px;margin:22px 0 14px;color:var(--navy);font-size:clamp(30px,3vw,45px);line-height:1.08;letter-spacing:-.045em}
.screen-content>p{max-width:510px;margin:0;color:var(--muted);font-size:15px;line-height:1.72}
.slide-points{display:flex;flex-wrap:wrap;gap:10px;margin-top:27px;max-width:520px}
.slide-points span{display:flex;align-items:center;gap:8px;padding:10px 13px;border-radius:12px;background:#f4f6fc;color:#414866;font-size:11px;font-weight:700}
.slide-points span:before{content:"✓";display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#dff7eb;color:#1d8d63;font-size:10px}
.screen-footer{position:relative;z-index:2;height:77px;display:grid;grid-template-columns:50px 1fr 50px;align-items:center;gap:20px;padding:0 24px;border-top:1px solid #eceef5}
.slide-arrow{width:43px;height:43px;border-radius:14px;border:1px solid #dfe2ee;background:#fff;color:var(--navy);font-size:20px;cursor:pointer;transition:.25s}
.slide-arrow:hover{background:var(--navy);border-color:var(--navy);color:#fff;transform:translateY(-2px)}
.slide-progress{display:flex;align-items:center;justify-content:center;gap:9px}
.slide-progress button{position:relative;width:34px;height:5px;padding:0;border:0;border-radius:10px;background:#dfe2ee;overflow:hidden;cursor:pointer}
.slide-progress button.active{background:#ffd5cf}
.slide-progress button.active:after{content:"";position:absolute;inset:0;background:var(--coral);transform-origin:left;animation:progressFill 14s linear}
.how-summary{padding:0 0 90px}
.summary-row{display:grid;grid-template-columns:repeat(4,1fr);border-radius:24px;background:var(--navy);overflow:hidden}
.summary-row div{padding:27px 30px;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.12)}
.summary-row div:last-child{border:0}
.summary-row strong{color:white;font-size:24px}
.summary-row span{color:#bfc5e4;font-size:11px;margin-top:4px}
@keyframes robotFloat{0%,100%{transform:translateY(0) rotate(-.3deg)}
50%{transform:translateY(-10px) rotate(.5deg)}
}
@keyframes shadowPulse{0%,100%{transform:scale(1);opacity:.8}
50%{transform:scale(.88);opacity:.55}
}
@keyframes bubbleIn{from{opacity:0;transform:translateY(12px) scale(.96)}
to{opacity:1;transform:none}
}
@keyframes screenEnter{from{opacity:0;transform:translateX(16px)}
to{opacity:1;transform:none}
}
@keyframes livePulse{50%{box-shadow:0 0 0 8px rgba(46,204,141,0)}
}
@keyframes progressFill{from{transform:scaleX(0)}
to{transform:scaleX(1)}
}
@media(max-width:1000px){.stage-grid{grid-template-columns:300px 1fr}
.robot-zone{height:560px}
.robot-assistant{width:280px}
.speech-wrap{width:270px}
.slide-visual{opacity:.24}
.screen-content{padding:40px 34px 25px}
}
@media(max-width:780px){.how-intro{padding-top:40px}
.stage-grid{grid-template-columns:1fr;align-items:start}
.robot-zone{height:410px;max-width:380px;width:100%;margin:auto}
.robot-assistant{width:245px;max-height:360px}
.speech-wrap{left:0;top:0;width:245px}
.speech-bubble{padding:15px 17px}
.speech-bubble p{font-size:12px}
.robot-glow{width:240px;height:240px}
.screen-shell{min-height:540px}
.screen-content{min-height:405px}
.summary-row{grid-template-columns:1fr 1fr}
.summary-row div:nth-child(2){border-right:0}
.summary-row div:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,.12)}
}
@media(max-width:520px){.how-intro h1{font-size:38px}
.story-stage{padding-top:15px}
.robot-zone{height:375px}
.robot-assistant{width:220px}
.speech-wrap{width:225px}
.screen-content{padding:34px 23px 20px}
.screen-content h2{font-size:31px}
.screen-content>p{font-size:13px}
.slide-visual{right:-25px}
.screen-footer{gap:10px;padding:0 14px}
.slide-progress{gap:5px}
.slide-progress button{width:22px}
}

/* Alternating speech and slide-specific animated scenes */
.speech-wrap{top:-10px;left:-76px;width:285px;transition:left .55s cubic-bezier(.2,.8,.2,1),top .55s cubic-bezier(.2,.8,.2,1)}
.robot-zone[data-bubble-side="right"] .speech-wrap{left:192px;top:-34px}
.robot-zone[data-bubble-side="right"] .speech-bubble{border-radius:22px 22px 5px 22px}
.robot-zone[data-bubble-side="right"] .speech-bubble:after{left:auto;right:30px;border-width:15px 0 0 15px;border-color:#fff transparent transparent transparent}
.typing-caret:after{content:"";display:inline-block;width:2px;height:1em;margin-left:3px;vertical-align:-2px;background:var(--coral);animation:caretBlink .7s steps(1) infinite}
@keyframes caretBlink{50%{opacity:0}}
.screen-content{padding-right:275px}
.slide-visual{right:34px;top:50%;width:205px;height:205px;transform:translateY(-50%);overflow:hidden;background:linear-gradient(145deg,#f1f4ff,#fff)}
.slide-visual:before,.slide-visual:after{display:none}
.visual-scene{position:absolute;inset:0;display:grid;place-items:center;padding:19px;color:var(--navy)}
.search-ui{width:100%;display:flex;flex-direction:column;gap:14px}.fake-search{height:38px;border-radius:11px;background:#fff;border:1px solid #dfe3ef;display:flex;align-items:center;padding:0 12px;font-size:10px;font-weight:800;box-shadow:0 8px 18px rgba(17,26,86,.07)}.fake-search:before{content:"⌕";margin-right:7px;color:var(--coral);font-size:16px}.search-word{overflow:hidden;white-space:nowrap;width:0;animation:typeSearch 3s steps(7,end) infinite}.data-vat{position:relative;height:105px;border-radius:16px;background:#111a56;overflow:hidden}.data-vat i{position:absolute;width:28px;height:9px;border-radius:10px;background:#fff;opacity:.8;animation:mixData 2.8s ease-in-out infinite}.data-vat i:nth-child(1){left:20px;top:21px}.data-vat i:nth-child(2){right:18px;top:30px;animation-delay:.35s;background:var(--coral)}.data-vat i:nth-child(3){left:60px;bottom:25px;animation-delay:.7s}.data-vat i:nth-child(4){right:48px;bottom:18px;animation-delay:1s;background:#58d09a}.data-result{position:absolute;left:19px;right:19px;bottom:10px;display:flex;gap:5px}.data-result b{height:5px;flex:1;border-radius:4px;background:#fff;animation:resultLine 2.8s ease infinite}
.database-stack{display:flex;flex-direction:column;align-items:center}.database-stack i{width:126px;height:36px;margin-top:-8px;border-radius:50%;background:linear-gradient(#fff,#e5e9f8);border:2px solid #bec7e5;animation:dbStack 2.8s ease-in-out infinite}.database-stack i:nth-child(2){animation-delay:.15s}.database-stack i:nth-child(3){animation-delay:.3s}.database-stack i:nth-child(4){animation-delay:.45s}.database-stack strong{margin-top:15px;font-size:22px;color:var(--coral)}
.risk-sorter{width:100%;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.risk-column{height:145px;border-radius:13px;background:#fff;padding:9px 6px;display:flex;flex-direction:column-reverse;gap:5px;box-shadow:0 8px 18px rgba(17,26,86,.06)}.risk-column span{height:10px;border-radius:8px;animation:riskDrop 3s ease-in-out infinite}.risk-column.high span{background:#ff6759}.risk-column.medium span{background:#ffba52}.risk-column.low span{background:#52c992}.risk-column b{font-size:7px;margin-top:auto}
.idea-scene .bulb{width:90px;height:90px;border-radius:50%;background:var(--coral);display:grid;place-items:center;color:#fff;font-size:48px;box-shadow:0 0 0 0 rgba(255,88,72,.3);animation:ideaPulse 2.4s ease infinite}.idea-options{position:absolute;inset:18px}.idea-options i{position:absolute;width:45px;height:11px;border-radius:8px;background:#ccd3eb;animation:optionOrbit 4s linear infinite}.idea-options i:nth-child(1){left:0;top:30px}.idea-options i:nth-child(2){right:0;top:52px;animation-delay:1s}.idea-options i:nth-child(3){left:16px;bottom:18px;animation-delay:2s}
.document-scene .paper{position:relative;width:118px;height:145px;border-radius:10px;background:#fff;box-shadow:0 15px 30px rgba(17,26,86,.13);padding:25px 18px}.document-scene .paper i{display:block;height:7px;margin-bottom:10px;border-radius:7px;background:#dfe3f1;animation:docLine 2.6s ease infinite}.document-scene .paper i:nth-child(2){width:75%;animation-delay:.2s}.document-scene .paper i:nth-child(3){width:88%;animation-delay:.4s}.document-scene .stamp{position:absolute;right:-17px;bottom:18px;width:54px;height:54px;border:5px double var(--coral);border-radius:50%;display:grid;place-items:center;color:var(--coral);font-size:20px;font-weight:800;transform:rotate(-14deg);animation:stampIn 2.6s ease infinite}
.calendar-scene .calendar{width:142px;border-radius:15px;background:#fff;box-shadow:0 14px 28px rgba(17,26,86,.12);overflow:hidden}.calendar-head{height:34px;background:var(--coral)}.calendar-days{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;padding:13px}.calendar-days i{aspect-ratio:1;border-radius:50%;background:#e7eaf5}.calendar-days i.active{background:var(--navy);animation:calendarMark 2s ease infinite}
.shield-scene .shield{width:118px;height:138px;background:linear-gradient(145deg,var(--navy),#26347f);clip-path:polygon(50% 0,93% 17%,85% 70%,50% 100%,15% 70%,7% 17%);display:grid;place-items:center;color:#fff;font-size:48px;filter:drop-shadow(0 15px 20px rgba(17,26,86,.25));animation:shieldGlow 2.5s ease infinite}.shield-scene .shield:after{content:"✓"}.mini-stars{position:absolute;inset:0}.mini-stars i{position:absolute;width:7px;height:7px;border-radius:50%;background:var(--coral);animation:starPop 2s ease infinite}.mini-stars i:nth-child(1){left:22px;top:35px}.mini-stars i:nth-child(2){right:24px;top:54px;animation-delay:.4s}.mini-stars i:nth-child(3){left:34px;bottom:26px;animation-delay:.8s}
@keyframes typeSearch{0%,12%{width:0}55%,100%{width:72px}}@keyframes mixData{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(48px,28px) rotate(12deg)}}@keyframes resultLine{0%,55%{transform:scaleX(0)}75%,100%{transform:scaleX(1)}}@keyframes dbStack{50%{transform:translateY(-5px);border-color:var(--coral)}}@keyframes riskDrop{0%{transform:translateY(-75px);opacity:0}35%,100%{transform:none;opacity:1}}@keyframes ideaPulse{50%{transform:scale(1.08);box-shadow:0 0 0 18px rgba(255,88,72,0)}}@keyframes optionOrbit{50%{transform:translateY(20px);background:var(--coral)}}@keyframes docLine{0%,30%{transform:scaleX(0);transform-origin:left}60%,100%{transform:scaleX(1);transform-origin:left}}@keyframes stampIn{0%,55%{transform:scale(1.5) rotate(-14deg);opacity:0}75%,100%{transform:scale(1) rotate(-14deg);opacity:1}}@keyframes calendarMark{50%{transform:scale(1.35);box-shadow:0 0 0 6px rgba(17,26,86,.12)}}@keyframes shieldGlow{50%{transform:translateY(-7px);filter:drop-shadow(0 22px 24px rgba(255,88,72,.28))}}@keyframes starPop{50%{transform:scale(2);opacity:.35}}
@media(max-width:1000px){.robot-zone[data-bubble-side="right"] .speech-wrap{left:105px}.screen-content{padding-right:215px}.slide-visual{width:165px;height:180px;right:24px}}
@media(max-width:780px){.speech-wrap,.robot-zone[data-bubble-side="right"] .speech-wrap{left:0;right:auto;top:-18px;width:245px}.screen-content{padding-right:34px;padding-top:225px}.slide-visual{top:24px;left:50%;right:auto;transform:translateX(-50%);width:185px;height:175px}.robot-zone[data-bubble-side="right"] .speech-bubble{border-radius:22px 22px 22px 5px}.robot-zone[data-bubble-side="right"] .speech-bubble:after{left:30px;right:auto;border-width:15px 15px 0 0;border-color:#fff transparent transparent transparent}}

/* Experimental articulated presenting arm */
.robot-zone{--robot-width:320px}
.robot-body-layer{width:var(--robot-width)!important;clip-path:polygon(0 0,100% 0,100% 18%,58% 18%,58% 64%,100% 64%,100% 100%,0 100%)}
.robot-arm-layer{position:absolute;z-index:4;bottom:0;width:var(--robot-width);max-height:500px;object-fit:contain;clip-path:polygon(58% 18%,100% 18%,100% 64%,58% 64%);transform-origin:61% 37%;filter:drop-shadow(0 10px 12px rgba(17,26,86,.12));animation:presentingArm 5.6s ease-in-out infinite;pointer-events:none}
@keyframes presentingArm{0%,20%,100%{transform:rotate(0deg)}42%{transform:rotate(-3deg)}62%{transform:rotate(1.2deg)}78%{transform:rotate(-1.2deg)}}
@media(max-width:1000px){.robot-zone{--robot-width:280px}.robot-arm-layer{max-height:460px}}
@media(max-width:780px){.robot-zone{--robot-width:245px}.robot-arm-layer{max-height:360px}}
@media(max-width:520px){.robot-zone{--robot-width:220px}}
@media(prefers-reduced-motion:reduce){.robot-arm-layer{animation:none}}

/* Mobile: keep the assistant and the active explanation in one composition. */
@media(max-width:780px){
  .stage-grid{position:relative;display:block;min-height:0}
  .screen-zone{position:relative;padding:0}
  .screen-shell{min-height:0;padding-top:218px;overflow:hidden}
  .robot-zone{
    position:absolute;z-index:5;top:12px;left:14px;
    width:150px;height:198px;max-width:none;margin:0;
    pointer-events:none
  }
  .robot-zone{--robot-width:142px}
  .robot-assistant,.robot-arm-layer{width:142px!important;max-height:188px}
  .robot-glow{bottom:20px;width:145px;height:145px}
  .robot-shadow{bottom:4px;width:112px;height:15px}
  .speech-wrap,.robot-zone[data-bubble-side="right"] .speech-wrap{
    left:126px;right:auto;top:8px;width:calc(100vw - 190px);max-width:260px
  }
  .speech-bubble{padding:13px 14px}
  .speech-bubble p{font-size:11px;line-height:1.45}
  .speech-kicker{font-size:9px;margin-bottom:5px}
  .speech-bubble:after,
  .robot-zone[data-bubble-side="right"] .speech-bubble:after{
    left:-11px;right:auto;bottom:28px;
    border-width:10px 11px 10px 0;
    border-color:transparent #fff transparent transparent
  }
  .screen-content{min-height:0;padding:28px 23px 24px}
  .slide-visual{display:none}
  .screen-content h2{margin-top:16px;font-size:28px}
  .slide-points{margin-top:20px}
}

@media(max-width:420px){
  .screen-shell{padding-top:205px}
  .robot-zone{left:8px;width:136px;height:186px}
  .robot-zone{--robot-width:132px}
  .robot-assistant,.robot-arm-layer{width:132px!important;max-height:176px}
  .speech-wrap,.robot-zone[data-bubble-side="right"] .speech-wrap{
    left:116px;width:calc(100vw - 160px);max-width:225px
  }
}
