/* uptospeed.dev: neutral N1 palette, L1 showcase home, shared subpage chrome. */
:root{
  color-scheme:light dark;
  --bg:#FFFFFF;--card:#F5F5F7;--text:#1D1D1F;--sub:#515154;--muted:#6E6E73;--line:rgb(0 0 0/.08);
  --chip:rgb(0 0 0/.05);--keyline:rgb(0 0 0/.14);--ishadow:rgb(0 0 0/.12);
  --gutter:16px;
}
@media (prefers-color-scheme:dark){
  :root{
    --bg:#000000;--card:#1C1C1E;--text:#F5F5F7;--sub:#C7C7CC;--muted:#98989D;--line:rgb(255 255 255/.10);
    --chip:rgb(255 255 255/.08);--keyline:rgb(255 255 255/.22);--ishadow:rgb(0 0 0/.5);
  }
}
@media (min-width:760px){:root{--gutter:32px}}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);
  font:17px/1.55 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-underline-offset:.2em;text-decoration-thickness:1px}
a:hover{text-decoration-thickness:2px}
a:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:4px}

/* Chrome shared by every page */
.wrap{max-width:1100px;margin:0 auto;padding:0 var(--gutter)}
.hdr{display:flex;align-items:center;justify-content:space-between;gap:16px;height:76px}
.lockup{display:inline-flex;align-items:center;gap:10px;text-decoration:none}
.lockup img{display:block;flex-shrink:0}
.lockup b{font-size:17px;font-weight:650}
.ftr{border-top:1px solid var(--line);margin-top:28px;padding:22px 0 40px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 24px;font-size:14px;text-align:center;color:var(--muted)}
.ftr a{color:var(--text);overflow-wrap:anywhere}

/* Home: one card per app */
.vh{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
main:has(> .band){padding-top:8px}
.band{border-radius:28px;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr);margin-bottom:20px;background:var(--card);box-shadow:inset 0 0 0 1px var(--line)}
.band .copy{min-width:0;padding:32px 24px 26px;display:flex;flex-direction:column;align-items:flex-start}
.band .icon{width:84px;height:84px;border-radius:22.37%;display:block;box-shadow:0 0 0 .5px var(--keyline),0 6px 18px var(--ishadow)}
.band h2{margin:22px 0 6px;font-size:36px;line-height:1.05;font-weight:800;letter-spacing:-.02em}
.band .tag{margin:0;font-size:19px;line-height:1.45;max-width:26ch;color:var(--sub)}
.band .acts{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;margin-top:24px}
.band .store{display:block;border-radius:10px}
.band .store img{display:block;width:auto;height:48px}
.band .cta{display:flex;flex-direction:column;align-items:center;margin-top:24px}
.band .more{display:flex;flex-wrap:wrap;justify-content:center;gap:0 20px;margin-top:6px;font-size:15px}
.band .more a{display:inline-flex;align-items:center;min-height:44px}
.soon{display:inline-flex;align-items:center;height:48px;padding:0 16px;border-radius:10px;font-size:15px;font-weight:600;background:var(--chip);color:var(--sub)}
.shot{display:flex;justify-content:center;align-items:flex-start;padding:0 24px;height:300px;overflow:hidden}
.device{width:230px;flex-shrink:0;padding:9px;border-radius:44px;background:#0B1220;box-shadow:0 18px 40px rgb(0 0 0/.22);transition:transform .25s ease}
.device img{display:block;width:100%;height:auto;border-radius:36px}
@media (hover:hover) and (pointer:fine){.band:hover .device{transform:translateY(-4px)}}
@media (prefers-reduced-motion:reduce){.device{transition:none}.band:hover .device{transform:none}}
@media (min-width:760px){
  .band{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);min-height:420px}
  .band .copy{padding:56px 0 52px 56px;justify-content:center}
  .band h2{font-size:52px}
  .band .icon{width:96px;height:96px}
  .shot{height:auto;align-items:flex-end;padding:56px 56px 0}
  .device{width:262px;margin-bottom:-120px}
}

/* Subpages: a 42rem reading column */
.doccol{max-width:42rem;margin:0 auto;padding:8px var(--gutter) 0}
.crumb{font-size:14px;color:var(--muted);margin:6px 0 18px}
.crumb a{color:var(--text)}
.crumb .home{display:inline-flex;vertical-align:-4px;padding:3px;margin:-3px;border-radius:50%}
.crumb .home img{display:block}
.doccol h1{font-size:28px;line-height:1.15;letter-spacing:-.015em;font-weight:700;margin:0 0 4px;overflow-wrap:break-word}
@media (min-width:760px){.doccol h1{font-size:34px}}
.doccol h2,.doccol h3{font-size:20px;line-height:1.3;margin:28px 0 8px}
.doccol h1 + p:not(.meta){margin-top:14px}
.doccol .meta{color:var(--muted);font-size:14px;margin:0 0 22px}
.doccol p{margin:0 0 14px}
.doccol .links{display:flex;flex-wrap:wrap;gap:0 20px;font-size:15px}
.doccol .links a{display:inline-flex;align-items:center;min-height:44px}
/* EN/RU switch: CSS :target, no JS. #ru shows RU and hides EN; any other state shows EN.
   scroll-margin larger than the page offset clamps the jump to the top of the page. */
#ru{display:none}
#ru:target{display:block}
body:has(#ru:target) #en{display:none}
#en,#ru{scroll-margin-top:100vh}
.langs{display:flex;gap:2px;padding:3px;border-radius:999px;background:var(--chip);font-size:13px;font-weight:600;letter-spacing:.04em}
.langs a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:32px;padding:0 10px;border-radius:999px;text-decoration:none;color:var(--muted)}
.langs a:hover{color:var(--text)}
.langs a[href="#en"],body:has(#ru:target) .langs a[href="#ru"]{background:var(--bg);color:var(--text);box-shadow:0 1px 3px rgb(0 0 0/.14)}
body:has(#ru:target) .langs a[href="#en"]{background:none;color:var(--muted);box-shadow:none}
