/* ===== mobile layout (always mobile: the frame is 390px wide) ===== */
html.m .wrap{padding-left:16px;padding-right:16px}
html.m .btn{width:100%}
html.m .btn-sm{width:auto}
html.m .row{flex-direction:column}
html.m .lead{font-size:15px;line-height:1.5}
html.m .sec{padding:20px 16px 18px}
html.m .h2{font-size:24px}
html.m .sec-in{gap:12px}
html.m .sec-head{gap:8px}
/* header: brand at the top; once you scroll it shows where you are + a way back to the menu */
html.m .hdr{position:sticky;top:0;z-index:30;background:rgba(243,244,247,.96);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-bottom:1px solid #e4e6ec}
html.m .hdr-in{display:flex;align-items:center;gap:8px;height:56px;padding:0 10px 0 16px}
html.m .hdr .brand{gap:9px;font-size:19px;flex:none}
html.m .hdr .sp{flex:1}
html.m .hdr-demo{color:#3a3f4a;text-decoration:none;font-weight:700;font-size:15px;min-height:44px;display:inline-flex;align-items:center;padding:0 10px}
html.m .hdr .btn-sm{padding:0 14px;min-height:40px;flex:none}
html.m .back{display:none;flex:none;align-items:center;gap:2px;min-height:44px;padding:0 14px 0 8px;border-radius:999px;border:0;background:#17181c;color:#fff;font-weight:700;font-size:14px;font-family:inherit;cursor:pointer}
html.m .hl{display:none;flex:1;min-width:0;flex-direction:column;gap:1px;padding-left:2px}
html.m .hl-k{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--hk,#3346c9);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.m .hl-t{font-size:14px;font-weight:800;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.m .hdr.scrolled .brand,html.m .hdr.scrolled .hdr-demo,html.m .hdr.scrolled .sp{display:none}
html.m .hdr.scrolled .hl{display:flex}
html.m .hdr.scrolled .back{display:inline-flex}
html.m .hdr.in-menu .back{display:none}
/* hero */
html.m .hero{padding:22px 16px 26px;flex-direction:column;flex-wrap:nowrap;gap:20px;align-items:stretch}
html.m .hero-text{flex:none;gap:14px}
html.m .hero-phone{flex:none;width:100%;gap:0}
html.m h1{font-size:33px}
/* explorer: phone on the left, what it shows on the right, one screen */
html.m .xp{--k:.68;display:flex;flex-direction:column;gap:8px;align-items:stretch;width:100%}
html.m .xp-grid{display:flex;gap:10px;align-items:stretch}
html.m .xp-ph{flex:none}
html.m .xp .phone{width:200px;height:410px;padding:7px;border-radius:30px;box-shadow:0 14px 30px rgba(23,24,28,.16)}
html.m .xp .inner{flex:none;width:calc(186px / var(--k));height:calc(396px / var(--k));transform:scale(var(--k));transform-origin:0 0;border-radius:calc(24px / var(--k))}
html.m .xp-side{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
html.m .xp-k{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--ink)}
html.m .xp-n{font-size:18px;font-weight:800;line-height:1.15;color:#17181c;overflow-wrap:anywhere}
html.m .xp-sv{margin:0;font-size:13px;line-height:1.4;color:#3a3f4a}
html.m .xp-pts{list-style:none;margin:2px 0 0;padding:8px 0 0;border-top:1px solid color-mix(in srgb,var(--ink) 25%,transparent);display:flex;flex-direction:column;gap:6px}
html.m .xp-pts li{display:flex;gap:6px;font-size:12.5px;line-height:1.35;color:#17181c}
html.m .xp-pts i{font-style:normal;font-weight:800;color:var(--ink);flex:none}
html.m .xp-step{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:2px}
html.m .xp-nav{width:44px;height:44px;flex:none;border-radius:14px;border:0;background:var(--soft);color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
html.m .xp-nav:active{transform:scale(.94)}
html.m .xp-cnt{font-size:13px;font-weight:800;color:#3a3f4a}
html.m .xp-tip{display:flex;gap:8px;align-items:center;font-size:12.5px;color:#3a3f4a;line-height:1.35}
html.m .xp-tip svg{flex:none}
html.m .xp-foot{display:flex;flex-direction:column;gap:8px}
html.m .xp-foot:empty{display:none}
html.m .xp-priv{background:#fff;border:1px solid #e4e6ec;border-radius:14px}
html.m .xp-priv summary{min-height:44px;display:flex;align-items:center;gap:10px;padding:0 14px;cursor:pointer;font-size:14px;list-style:none;color:#17181c}
html.m .xp-priv summary::-webkit-details-marker{display:none}
html.m .xp-priv summary::after{content:'';margin-left:auto;width:8px;height:8px;border-right:2px solid #5e6470;border-bottom:2px solid #5e6470;transform:rotate(45deg)}
html.m .xp-priv[open] summary::after{transform:rotate(-135deg)}
html.m .xp-priv p{margin:0;padding:0 14px 12px;font-size:13.5px;line-height:1.5;color:#3a3f4a}
html.m .xp-more{min-height:44px}
html.m .xp-steps{display:flex;gap:8px;justify-content:center}
html.m .xp-steps button{width:44px;height:44px;border-radius:50%;border:2px solid #3346c9;background:#fff;color:#3346c9;font-weight:800;font-size:16px;cursor:pointer;padding:0}
html.m .xp-steps button[aria-pressed=true]{background:#3346c9;color:#fff}
@keyframes nudge{0%,100%{box-shadow:0 0 0 0 rgba(51,70,201,0)}50%{box-shadow:0 0 0 5px rgba(51,70,201,.45)}}
html.m .nudge .s-chip{animation:nudge .6s ease-in-out 3}
@media (prefers-reduced-motion:reduce){html.m .nudge .s-chip{animation:none!important}}
/* dialog when a bottom-menu tab is tapped inside a section */
html.m .dlg{position:fixed;inset:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:#17181c;z-index:80;display:flex;align-items:flex-end;justify-content:center;padding:14px;background:rgba(23,24,28,.5)}
html.m .dlg[hidden]{display:none}
html.m .dlg-c{background:#fff;border-radius:22px;padding:18px;width:100%;max-width:340px;display:flex;flex-direction:column;gap:10px;box-shadow:0 20px 50px rgba(23,24,28,.35)}
html.m .dlg-c b{font-size:19px;line-height:1.2}
html.m .dlg-c p{margin:0;font-size:14px;line-height:1.5;color:#3a3f4a}
html.m .dlg-act{display:flex;flex-direction:column;gap:8px;margin-top:4px}
/* menu tiles: purpose + six marked items; same height or lower than before */
html.m .tiles{display:flex;flex-direction:column;gap:12px}
html.m .tile{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #dfe2ea;border-radius:22px;padding:12px;text-decoration:none;color:#17181c;box-shadow:0 2px 6px rgba(23,24,28,.05)}
html.m .tile:hover{color:#17181c;border-color:var(--ink)}
html.m .tile:active{transform:scale(.99)}
html.m .tile-top{display:flex;align-items:center;gap:10px}
html.m .tile-tt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
html.m .tile-k{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--ink)}
html.m .tile-t{font-size:20px;font-weight:800;line-height:1.15}
html.m .tile-go{width:44px;height:44px;border-radius:50%;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;flex:none}
html.m .tile-d{font-size:13px;line-height:1.4;color:#3a3f4a}
html.m .tg{display:grid;grid-template-columns:1fr 1fr;gap:5px}
html.m .tc{display:flex;align-items:center;gap:6px;background:var(--soft);border-radius:10px;padding:0 7px 0 8px;height:30px;min-width:0;font-size:12px;font-weight:700;color:#17181c}
html.m .tc>span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.m .tc em{font-style:normal;font-weight:700;font-size:10.5px;line-height:1;color:var(--ink);background:#fff;border-radius:6px;padding:3px 5px;flex:none;display:inline-flex;align-items:center;gap:3px}
html.m .tc em.warn{color:#b3261e}
html.m .tc em svg{width:9px;height:9px}
html.m .ig-i{width:15px;height:15px;flex:none;color:var(--ink)}
/* why: swipeable cards */
html.m .why-row{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px 4px;scrollbar-width:none}
html.m .why-row::-webkit-scrollbar{display:none}
html.m .why-row .why{flex:0 0 80%;scroll-snap-align:start}
html.m .swipe{font-size:13px;color:#5e6470}
/* how to start: compact rows */
html.m .start-list{display:flex;flex-direction:column;gap:12px}
html.m .start-list>div{display:flex;gap:14px;align-items:flex-start}
html.m .start-list .num{font-size:28px;line-height:1;width:28px;flex:none}
html.m .start-list .tx{display:flex;flex-direction:column;gap:3px}
html.m .demo{padding:22px 16px 22px}
html.m .demo-in{display:flex;flex-direction:column;gap:12px}
html.m .ftr{padding:36px 16px 24px}
html.m .ftr .h2{font-size:26px}
html.m .lead-c{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
html.m .lead-more{align-self:flex-start;min-height:40px;margin:-6px 0 -6px;padding:0;border:0;background:none;color:#3346c9;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit;text-decoration:underline;text-underline-offset:3px}
html.m .hero-text .lead-more{margin-top:-8px}
html.m .sec .lead-c{-webkit-line-clamp:2}
@media (max-width:380px){html.m .tc{font-size:11.5px;gap:5px;padding:0 6px}
html.m .tc em{font-size:10px;padding:3px 4px}
html.m .tc .ig-i{width:14px;height:14px}}
/* tap-hint hand: shows once when the phone comes into view, stops at the first touch */
html.m .xp-ph{position:relative}
html.m .xp-hand{position:absolute;left:0;top:0;width:36px;height:36px;margin:-3px 0 0 -12px;pointer-events:none;opacity:0;z-index:3;filter:drop-shadow(0 3px 4px rgba(0,0,0,.4))}
html.m .xp-hand svg{display:block}
html.m .xp-hand::before{content:"";position:absolute;left:12px;top:3px;width:14px;height:14px;margin:-7px 0 0 -7px;border-radius:50%;background:rgba(51,70,201,.55);opacity:0;transform:scale(0)}
html.m .hand-on .xp-hand{animation:handmove 5s ease-in-out 3 both}
html.m .hand-on .xp-hand::before{animation:handtap 5s ease-in-out 3 both}
html.m .hand-off .xp-hand{display:none}
@keyframes handmove{
0%{opacity:0;transform:translate(150px,330px)}
8%{opacity:1;transform:translate(140px,290px)}
26%{transform:translate(104px,66px)}
31%{transform:translate(104px,66px) scale(.88)}
36%{transform:translate(104px,66px) scale(1)}
60%{transform:translate(112px,372px)}
65%{transform:translate(112px,372px) scale(.88)}
70%{transform:translate(112px,372px) scale(1)}
86%{opacity:1;transform:translate(150px,320px)}
100%{opacity:0;transform:translate(150px,340px)}}
@keyframes handtap{
0%,29%{opacity:0;transform:scale(0)}
31%{opacity:.9;transform:scale(.5)}
40%{opacity:0;transform:scale(3.2)}
41%,63%{opacity:0;transform:scale(0)}
65%{opacity:.9;transform:scale(.5)}
74%{opacity:0;transform:scale(3.2)}
100%{opacity:0;transform:scale(0)}}
@media (prefers-reduced-motion:reduce){html.m .hand-on .xp-hand{animation:none;opacity:1;transform:translate(104px,66px)}
html.m .hand-on .xp-hand::before{animation:none}}
/* soft stop on the start of every tab: the page "catches" near the section boundary */
html.m #menu,html.m #sections>.sec{scroll-snap-align:start}
/* ===== adjustments for the real page (window scroll, live header and hero markup) ===== */
html.m{scroll-padding-top:56px;scroll-snap-type:y proximity}
html.m #menu,html.m #sections>.sec{scroll-snap-align:start}
html.m .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html.m .hdr-in.wrap{max-width:none;margin:0;flex-wrap:nowrap;justify-content:flex-start}
html.m .hdr #nav{margin-left:auto;flex:none;flex-wrap:nowrap}
html.m .hdr #nav a:not(.btn){padding:0 10px}
html.m .hdr #nav .btn-sm{padding:0 14px;min-height:40px}
html.m .hdr.scrolled #nav a:not(.btn){display:none}
html.m .hdr.scrolled #nav{margin-left:0}
html.m .hdr.scrolled .hl{flex:1}
html.m .hdr.scrolled .brand{display:none}
html.m .hero.wrap{max-width:640px;margin:0 auto}
html.m .hero-phone{align-items:stretch}
html.m .sec-in,html.m .demo-in,html.m #why .wrap,html.m #start .wrap,html.m .ftr .wrap{max-width:640px;margin-left:auto;margin-right:auto}
html.m .demo-cta{display:flex;flex-direction:column;gap:8px}
html.m .xp-more{width:100%}
html.m .btn{width:100%}html.m .btn-sm{width:auto}html.m .xp-nav{width:44px}
html.m .xp-steps button{width:44px}
@media (max-width:380px){
 html.m .xp-step{flex-wrap:wrap}
 html.m .xp-cnt{width:100%;text-align:center}
 html.m .xp-side{overflow-wrap:anywhere}
}
html.m .dlg .btn{width:100%}
