/* q2Chat scroll story: QR scan -> WhatsApp -> star -> appointment. Phone drawn in CSS, animated with GSAP ScrollTrigger. */
.story{position:relative;background:linear-gradient(180deg,#0f1b34,#14233e 60%,#101c36);color:#fff;overflow:hidden}
.st-pin{min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(20px,4vw,72px);padding:clamp(24px,5vh,64px) clamp(24px,6vw,96px)}
.st-copy{max-width:560px;justify-self:end}
.st-eyebrow{display:block;margin-bottom:1em;color:#9db8ff;font:700 12px/1 system-ui,sans-serif;letter-spacing:.2em}
.st-title{margin:0 0 .5em;font-size:clamp(32px,4vw,58px);line-height:1.06;letter-spacing:-.015em}
.st-lead{margin:0 0 1.5em;color:#b4c3e3;font-size:clamp(15px,1.3vw,18px);line-height:1.6}
.st-steps{list-style:none;margin:0 0 1.2em;padding:0;display:grid;gap:.7em}
.st-step{display:flex;align-items:center;gap:.9em;font-size:clamp(15px,1.25vw,18px);font-weight:600}
.st-step b{display:grid;place-items:center;width:2em;height:2em;border-radius:50%;background:#234fe5;color:#fff;font-size:.85em}
.st-note{margin:0;color:#7f93bd;font-size:13px}
.st-stage{position:relative;display:grid;place-items:center;justify-self:start;min-height:calc(var(--w) * 2.15)}
.st-glow{position:absolute;width:min(620px,92%);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(35,79,229,.55),rgba(35,79,229,0) 68%);filter:blur(10px)}
.st-phone{--w:clamp(230px,min(27vw,38vh),320px);position:relative;z-index:1;width:var(--w);height:calc(var(--w) * 2.03);font-size:calc(var(--w) / 21);border-radius:2.6em;padding:.55em;background:#0d1730;box-shadow:0 0 0 .12em #2c3b63,0 2.4em 5em -1.2em rgba(7,14,35,.65),inset 0 0 0 .1em #3a4a75;transform-style:preserve-3d;will-change:transform}
.st-stage{--w:clamp(230px,min(27vw,38vh),320px)}
.st-notch{position:absolute;z-index:6;top:1em;left:50%;width:34%;height:1.35em;transform:translateX(-50%);border-radius:1em;background:#0d1730}
.st-screen{position:relative;width:100%;height:100%;overflow:hidden;border-radius:2.1em;background:#eaf0fb;display:flex;flex-direction:column}
.st-cam{position:absolute;inset:0;background:linear-gradient(160deg,#10192e,#1d2a4a);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.1em;padding:2.6em 1.2em 1em}
.st-cam-label{color:#c9d6f5;font-size:1em;letter-spacing:.08em;text-transform:uppercase;font-weight:600}
.st-viewfinder{position:relative;width:78%;aspect-ratio:1;display:grid;place-items:center}
.st-qrwrap{width:84%;aspect-ratio:1}.st-qr{display:block;width:100%;height:100%;border-radius:.5em}
.st-corner{position:absolute;width:22%;height:22%;border:.28em solid #9db8ff;border-radius:.4em}
.st-corner.tl{top:0;left:0;border-right:0;border-bottom:0}.st-corner.tr{top:0;right:0;border-left:0;border-bottom:0}.st-corner.bl{bottom:0;left:0;border-right:0;border-top:0}.st-corner.br{bottom:0;right:0;border-left:0;border-top:0}
.st-scanline{position:absolute;left:4%;right:4%;top:6%;height:.28em;border-radius:1em;background:linear-gradient(90deg,transparent,#5b82ff,transparent);box-shadow:0 0 1.2em .3em rgba(91,130,255,.7)}
.st-flash{position:absolute;inset:0;background:#fff;z-index:5;pointer-events:none}
.st-chat{position:absolute;inset:0;display:flex;flex-direction:column}
.st-head{display:flex;align-items:center;gap:.7em;padding:2.5em .9em .8em;background:#14233e;color:#fff;flex-shrink:0;position:relative;z-index:2}
.st-head img{width:2em;height:2em;border-radius:50%}
.st-head div{flex:1;min-width:0;line-height:1.2}.st-head b{display:block;font-size:1.05em}.st-head small{display:block;font-size:.78em;color:#9db8ff}
.st-wa{width:1.5em;height:1.5em;color:#25d366}
.st-body{flex:1;position:relative;overflow:hidden;background:#eaf0fb}
.st-track{display:flex;flex-direction:column;gap:.6em;padding:.9em .7em 1.6em;will-change:transform}
.st-day{align-self:center;padding:.25em .9em;border-radius:1em;background:#fff;color:#5a6880;font-size:.74em;letter-spacing:.1em;font-weight:700}
.st-msg{display:flex}.st-msg.st-o{justify-content:flex-end}
.st-bubble{max-width:84%;padding:.55em .8em;border-radius:1em;font-size:.98em;line-height:1.35;color:#14233e;background:#fff;box-shadow:0 .08em .2em rgba(20,35,62,.14)}
.st-o .st-bubble{background:#d9fdd3;border-bottom-right-radius:.3em}.st-i .st-bubble{border-bottom-left-radius:.3em}
.st-chips{display:flex;flex-wrap:wrap;gap:.4em;margin-top:.55em}
.st-chip{padding:.28em .8em;border-radius:1em;background:#edf3ff;border:.08em solid #9db8ff;color:#234fe5;font-weight:700;font-size:.92em}
.st-star-card{align-self:center;position:relative;display:grid;justify-items:center;gap:.25em;padding:.9em 1.6em;border-radius:1.2em;background:linear-gradient(160deg,#234fe5,#14233e);color:#fff;box-shadow:0 .6em 1.4em -.4em rgba(35,79,229,.7)}
.st-star-card svg{filter:drop-shadow(0 0 .5em rgba(255,209,102,.8))}.st-star-card b{font-size:.95em;letter-spacing:.04em}
.st-dots{display:flex;gap:.3em}.st-dot{width:.55em;height:.55em;border-radius:50%;background:rgba(255,255,255,.28);display:block}.st-dot.on{background:#ffd166}
.st-rays{position:absolute;left:50%;top:2em;width:0;height:0}.st-ray{position:absolute;left:-.12em;top:-2.7em;width:.24em;height:.9em;border-radius:1em;background:#ffd166;transform-origin:.12em 2.7em}
.st-ok{position:absolute;right:.9em;bottom:.9em;display:grid;place-items:center;width:3em;height:3em;border-radius:50%;background:#234fe5;color:#fff;box-shadow:0 .5em 1.2em -.2em rgba(35,79,229,.8)}
.st-ok svg{width:1.6em;height:1.6em}
@media(max-width:1000px){
 .st-pin{grid-template-columns:1fr;grid-template-rows:auto 1fr;align-content:center;gap:12px;padding:20px 20px 24px}
 .st-copy{justify-self:start;max-width:none}.st-title{font-size:clamp(26px,7vw,36px)}
 .st-lead,.st-steps,.st-note{display:none}
 .st-stage{justify-self:center;min-height:0;--w:clamp(200px,min(62vw,40vh),290px)}.st-phone{--w:clamp(200px,min(62vw,40vh),290px)}
}

/* dark top: header + hero with the looping phone */
.top{position:relative;background:radial-gradient(120% 90% at 85% 40%,#1b3a8a 0,#14233e 48%,#0f1b34 100%);color:#fff}
.top header{position:relative;z-index:3}
.top nav a{color:#c9d6f5}.top nav a:hover{color:#fff}
.top #language{color:#fff}
.top .button.ghost,.hero-dark .button.ghost{background:transparent;color:#fff;border:1px solid #4b63a0}
.top .button.ghost:hover{background:rgba(255,255,255,.1)}
.hero-dark{min-height:calc(100vh - 100px);min-height:calc(100dvh - 100px);padding-top:10px;padding-bottom:70px;position:relative;grid-template-columns:1.05fr .95fr;align-items:center}
.hero-dark h1{color:#fff}
.hero-dark .hero-copy>p{color:#b4c3e3}
.hero-dark .hero-tags span{border-color:#3a4f86;color:#b4c3e3}
.hero-cta{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.hero-phone{position:relative;justify-self:center;display:grid;place-items:center;min-height:calc(var(--hw) * 2.1);--hw:clamp(190px,min(21vw,40vh),270px)}
.hero-phone::before{content:"";position:absolute;width:130%;aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(35,79,229,.5),rgba(35,79,229,0) 65%)}
.st-phone-hero{--w:var(--hw);transform:rotate(-4deg)}
.hero-scroll{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);display:grid;place-items:center;width:44px;height:44px;border:1px solid #3a4f86;border-radius:50%;color:#9db8ff;animation:st-bob 2s ease-in-out infinite}
@keyframes st-bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,6px)}}
.st-typing{display:flex;gap:.3em;padding:.7em .9em}.st-typing i{width:.5em;height:.5em;border-radius:50%;background:#7b8aa8;display:block}
.st-hero-track{padding-top:1em}
.story{background:linear-gradient(180deg,#0f1b34,#14233e 60%,#101c36)}
@media(max-width:800px){
 .hero-dark{grid-template-columns:1fr;gap:20px;padding-bottom:90px;min-height:0}
 .hero-dark h1{font-size:44px;letter-spacing:-2px}
 .hero-phone{--hw:clamp(170px,48vw,230px);min-height:calc(var(--hw) * 2.1)}
 .top nav{display:none}.top .header-actions .button.small.ghost{display:none}
}
@media(prefers-reduced-motion:reduce){.hero-scroll{animation:none}}

/* A visitor can explicitly play motion even when the browser requests reduced motion. */
.motion-toggle{display:inline-flex;align-items:center;gap:8px;margin-top:18px;padding:10px 15px;border:1px solid #8199ce;border-radius:24px;background:rgba(15,27,52,.55);color:#edf3ff;font:600 13px/1.3 system-ui,sans-serif;cursor:pointer}
.motion-toggle::before{content:'▶';font-size:11px}.motion-toggle[aria-pressed=true]::before{content:'Ⅱ'}.motion-toggle:hover{background:#263d71}.motion-toggle:focus-visible{outline:3px solid #ffd166;outline-offset:4px}
html[data-motion=off] .hero-scroll{animation:none}
html[data-motion=on] .hero-scroll{animation:st-bob 2s ease-in-out infinite}
