#demo{scroll-margin-top:70px}
/* Interactive phone demo on the IT pages: a tap-through sample client app */
.sx{display:grid;grid-template-columns:1fr 340px;gap:48px;align-items:center}
.sx-steps{list-style:none;margin:22px 0 0;padding:0;display:grid;gap:10px}
.sx-steps button{width:100%;display:grid;grid-template-columns:40px 1fr;gap:14px;align-items:center;text-align:left;background:var(--panel);border:1px solid var(--line);color:var(--ink);padding:14px 16px;cursor:pointer;font:inherit;transition:border-color .2s,background .2s,transform .15s}
.sx-steps button:hover{border-color:var(--acc)}
.sx-steps button[aria-current="step"]{border-color:var(--acc);background:var(--panel2);box-shadow:inset 3px 0 0 var(--acc)}
.sx-steps .n{width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:var(--panel2);border:1px solid var(--line);color:var(--acc)}
.sx-steps .n svg{width:20px;height:20px}
.sx-steps b{display:block;font-family:var(--disp);font-size:16px;line-height:1.3}
.sx-steps span{display:block;color:var(--muted);font-size:14px;line-height:1.4}
.sx-note{margin:16px 0 0;font-family:var(--mono);font-size:12.5px;color:var(--muted)}

/* the phone */
.ph{position:relative;width:320px;height:650px;margin:0 auto;border-radius:46px;background:#05090e;padding:12px;box-shadow:0 0 0 2px #22313f,0 0 0 9px #0b141d,0 40px 80px -30px rgba(91,163,199,.55)}
.ph::before{content:"";position:absolute;top:22px;left:50%;width:92px;height:26px;margin-left:-46px;background:#000;border-radius:14px;z-index:5}
.scr{position:relative;width:100%;height:100%;border-radius:36px;overflow:hidden;background:#F4F7FA;color:#14212D;font-family:Poppins,Arial,sans-serif}
.sv{position:absolute;inset:0;display:flex;flex-direction:column;padding:62px 18px 18px;opacity:0;visibility:hidden;transform:translateX(24px);transition:opacity .3s,transform .35s cubic-bezier(.2,.8,.2,1),visibility .3s}
.sv.on{opacity:1;visibility:visible;transform:none}
.sv.back{transform:translateX(-24px)}
.bar{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.bar button{width:34px;height:34px;border-radius:50%;border:0;background:#E3EAF1;color:#14212D;display:flex;align-items:center;justify-content:center;cursor:pointer}
.bar button svg{width:18px;height:18px}
.bar h4{margin:0;font-size:17px;font-weight:600}
.sv .muted{color:#5f7385;font-size:13px;margin:0}
.pbtn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:0;border-radius:14px;background:#4B92B3;color:#fff;font:600 15px Poppins,Arial,sans-serif;padding:14px;cursor:pointer;transition:filter .15s,opacity .2s}
.pbtn:disabled{opacity:.4;cursor:default}
.pbtn.ghost{background:#E3EAF1;color:#14212D}
.pbtn svg{width:18px;height:18px}

/* lock */
.v-lock{background:linear-gradient(180deg,#0C1824,#132233);color:#fff;align-items:center;text-align:center}
.v-lock .appi{width:64px;height:64px;border-radius:18px;background:#1A1E25;margin:34px 0 14px;box-shadow:0 0 0 1px rgba(91,163,199,.35)}
.v-lock h4{margin:0;font-size:21px}
.v-lock .muted{color:#9FB2C2}
.fp{margin-top:auto;margin-bottom:26px;width:96px;height:96px;border-radius:50%;border:0;background:rgba(91,163,199,.12);color:#9CD0E6;position:relative;cursor:pointer}
.fp svg.ic{width:52px;height:52px}
.fp svg.ring{position:absolute;inset:-6px;width:108px;height:108px;transform:rotate(-90deg)}
.fp svg.ring circle{fill:none;stroke:#5BA3C7;stroke-width:4;stroke-dasharray:327;stroke-dashoffset:327;stroke-linecap:round}
.fp.scan svg.ring circle{transition:stroke-dashoffset .9s ease-in-out;stroke-dashoffset:0}
.fp.ok{background:#2f9e6a;color:#fff}
.fp-hint{font-size:13px;color:#9FB2C2;margin-bottom:6px}
.fp:not(.scan){animation:fpPulse 2s ease-out infinite}
@keyframes fpPulse{0%{box-shadow:0 0 0 0 rgba(91,163,199,.5)}70%{box-shadow:0 0 0 18px rgba(91,163,199,0)}100%{box-shadow:0 0 0 0 rgba(91,163,199,0)}}

/* home */
.hello{font-size:22px;font-weight:600;margin:0}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.tile{position:relative;border:0;background:#fff;border-radius:16px;padding:16px 14px;text-align:left;cursor:pointer;box-shadow:0 2px 0 #E3EAF1;font:inherit;color:inherit;transition:transform .15s}
.tile:active{transform:scale(.97)}
.tile i{width:38px;height:38px;border-radius:11px;background:#E6F1F7;color:#4B92B3;display:flex;align-items:center;justify-content:center;margin-bottom:10px}
.tile i svg{width:20px;height:20px}
.tile b{display:block;font-size:14px;font-weight:600;line-height:1.25}
.tile small{color:#5f7385;font-size:12px}
.tile .badge{position:absolute;top:12px;right:12px;min-width:20px;height:20px;border-radius:10px;background:#E03C31;color:#fff;font-size:11.5px;font-weight:600;display:flex;align-items:center;justify-content:center;padding:0 6px}
.recent{margin-top:16px;background:#fff;border-radius:16px;padding:12px 14px}
.recent p{margin:0;display:flex;justify-content:space-between;font-size:13px;padding:5px 0}
.recent p+p{border-top:1px solid #EEF2F6}
.recent em{font-style:normal;color:#2f9e6a;font-weight:600}

/* upload */
.cam{position:relative;flex:1;border-radius:18px;background:#1b2733;overflow:hidden;display:flex;align-items:center;justify-content:center;margin-bottom:14px}
.cam .frame{position:absolute;inset:18px;border:2px dashed rgba(255,255,255,.35);border-radius:12px}
.slip{width:132px;background:#fff;border-radius:4px;padding:12px 10px 16px;font:500 9.5px/1.6 "IBM Plex Mono",monospace;color:#333;transform:rotate(-3deg);box-shadow:0 10px 24px rgba(0,0,0,.4);transition:transform .5s cubic-bezier(.5,0,.2,1),opacity .4s}
.slip b{display:block;text-align:center;font-size:11px;margin-bottom:6px}
.slip p{margin:0;display:flex;justify-content:space-between}
.slip hr{border:0;border-top:1px dashed #bbb;margin:6px 0}
.cam .flash{position:absolute;inset:0;background:#fff;opacity:0;pointer-events:none}
.cam.snap .flash{animation:flash .45s}
@keyframes flash{20%{opacity:.9}100%{opacity:0}}
.cam.done .slip{transform:translateY(160px) scale(.3);opacity:0}
.saved{display:none;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:12px 14px;margin-bottom:12px;animation:pop .4s cubic-bezier(.2,.9,.3,1.3)}
.saved.on{display:flex}
.saved i{width:30px;height:30px;border-radius:50%;background:#2f9e6a;color:#fff;display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.saved i svg{width:16px;height:16px}
.saved b{font-size:13.5px;display:block}.saved small{font-size:12px;color:#5f7385}
@keyframes pop{from{opacity:0;transform:translateY(10px) scale(.96)}}

/* sign */
.doc{background:#fff;border-radius:14px;padding:14px;flex:1;display:flex;flex-direction:column;gap:6px;min-height:0}
.doc .ln{height:6px;border-radius:3px;background:#E6ECF1}
.doc .ln.s{width:70%}.doc .ln.t{width:85%}
.doc h5{margin:0 0 4px;font-size:13px}
.ini{margin-top:6px;align-self:flex-end;border:2px dashed #4B92B3;border-radius:8px;width:84px;height:40px;background:#F2F8FB;color:#4B92B3;font:600 11px Poppins,Arial,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center}
.ini.done{border-style:solid;font:italic 600 20px Georgia,serif;color:#14212D;background:#fff}
.pad{position:relative;margin-top:auto;height:110px;border-radius:10px;background:#F7FAFC;border:1px solid #DDE5EC;touch-action:none}
.pad canvas{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair}
.pad span{position:absolute;left:12px;bottom:8px;font-size:11.5px;color:#8aa0b2;pointer-events:none}
.pad.off{opacity:.45;pointer-events:none}
.signed{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:rgba(244,247,250,.96);text-align:center;padding:24px;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
.signed.on{opacity:1;visibility:visible}
.sv:not(.on) .signed{visibility:hidden;pointer-events:none}
.signed i{width:64px;height:64px;border-radius:50%;background:#2f9e6a;color:#fff;display:flex;align-items:center;justify-content:center;animation:pop .45s cubic-bezier(.2,.9,.3,1.4)}
.signed i svg{width:32px;height:32px}
.signed h4{margin:0;font-size:19px}

/* reports */
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kpi{background:#fff;border-radius:14px;padding:12px}
.kpi small{color:#5f7385;font-size:11.5px}.kpi b{display:block;font-size:17px}
.kpi b.up{color:#2f9e6a}
.chartp{background:#fff;border-radius:14px;padding:14px 12px 10px;margin-top:10px;flex:1;display:flex;flex-direction:column;min-height:0}
.chartp .bars{flex:1;display:flex;align-items:flex-end;gap:10px;border-bottom:1px solid #E3EAF1;min-height:0}
.chartp .grp{flex:1;display:flex;align-items:flex-end;gap:3px;height:100%}
.chartp .grp i{flex:1;border-radius:4px 4px 0 0;height:var(--h);transform-origin:bottom}
.chartp .grp i:first-child{background:#4B92B3}.chartp .grp i:last-child{background:#C9D6E1}
.sv.on .chartp .grp i{animation:growp .7s cubic-bezier(.2,.8,.2,1) backwards}
@keyframes growp{from{transform:scaleY(0)}}
.chartp .lbl{display:flex;gap:10px;margin-top:6px}.chartp .lbl span{flex:1;text-align:center;font-size:10.5px;color:#5f7385}
.legend{display:flex;gap:14px;font-size:11px;color:#5f7385;margin-top:8px}.legend i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.toast{position:absolute;left:18px;right:18px;bottom:84px;background:#14212D;color:#fff;font-size:13px;border-radius:12px;padding:11px 14px;text-align:center;opacity:0;transform:translateY(8px);transition:.25s;pointer-events:none}
.toast.on{opacity:1;transform:none}

@media(max-width:860px){
  .sx{grid-template-columns:1fr;gap:0}
  .sx-copy{display:contents}
  .sx-copy>*{order:0}
  .ph{order:1;margin-top:26px}
  .sx-steps{order:2;margin-top:28px}
  .sx-note{order:3}
  .sx-steps{grid-template-columns:1fr 1fr;gap:8px}
  .sx-steps button{grid-template-columns:1fr;gap:6px;padding:12px}
  .sx-steps b+span{display:none}
  .sx-steps b{font-size:14px}
  .sx-steps .n{width:34px;height:34px}
}
@media(max-width:380px){.ph{width:296px;height:610px}}
@media (prefers-reduced-motion: reduce){.sv,.slip,.fp svg.ring circle{transition:none!important}.fp,.sv.on .chartp .grp i{animation:none!important}}
