/* Snapik site: общие токены и каркас (навигация, кнопки, знак, футер). Лендинг и текстовые страницы подключают этот файл.
   Две темы из приложения: светлая «Рассвет» (по умолчанию) и тёмная «Стекло» ([data-theme="dark"], ставит скрипт в <head>). */
:root{
  color-scheme:light;
  --pearl:#FBF3EE;--g1:#FFF4EC;--g2:#F7F0F3;--g3:#F1ECFF;
  --aurora-1:rgba(196,180,255,.55);--aurora-2:rgba(170,214,255,.5);--aurora-3:rgba(255,200,170,.45);
  --text:#172033;--muted:#566174;--faint:#626C7D;--heading:#111827;
  --ink:#141414;--ink-2:#2A2A2E;--ink-3:#3A3A40;--on-ink:#FFFFFF;
  --glass:rgba(255,255,255,.55);--glass-2:rgba(255,255,255,.72);--glass-3:rgba(255,255,255,.85);
  --line:rgba(20,20,30,.08);--line-2:rgba(20,20,30,.14);
  --bevel:inset 0 1px 0 rgba(255,255,255,.9);
  --shadow:0 8px 24px rgba(20,20,30,.06);--shadow-lg:0 24px 60px rgba(20,20,30,.12);
  --nav:rgba(255,255,255,.72);
  --shell:#1B1F27;--card:#242A33;--cardline:#46505E;
  --chat-accent:#B04E10;--bubble:#FFE9D4;--bubble-line:#FFD2AE;
  --accent:#FF8C42;--accent-soft:rgba(255,140,66,.2);--accent-text:#B8520F;--on-accent:#1B1520;
  --brand-dot:linear-gradient(160deg,#FFC04A 0%,#FF7A6B 50%,#FF4FB8 100%);
  --capture:#2F8CFF;--ok:#1E9E5A;--warn:#B42318;
  --font:Inter,-apple-system,"Segoe UI",sans-serif;--mono:"JetBrains Mono",ui-monospace,monospace;--brand:Unbounded,Inter,sans-serif;
  --container:1120px;--gutter:24px;
  --ease:cubic-bezier(.16,1,.3,1);
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --pearl:#5F5C8C;--g1:#5F5C8C;--g2:#7E5878;--g3:#58627A;
  --aurora-1:rgba(255,214,150,.22);--aurora-2:rgba(120,220,210,.18);--aurora-3:rgba(255,120,140,.16);
  --text:#EEF2F8;--muted:#E0DCE8;--faint:#D4CEDD;--heading:#FFFFFF;
  --ink:#F4F4F7;--ink-2:#FFFFFF;--ink-3:#E4E4EA;--on-ink:#141414;
  --glass:rgba(255,255,255,.10);--glass-2:rgba(255,255,255,.14);--glass-3:rgba(255,255,255,.18);
  --line:rgba(255,255,255,.18);--line-2:rgba(255,255,255,.32);
  --bevel:inset 0 1px 0 rgba(255,255,255,.22);
  --shadow:0 8px 24px rgba(0,0,0,.18);--shadow-lg:0 24px 60px rgba(0,0,0,.32);
  --nav:rgba(40,36,58,.6);
  --accent-text:#FFB788;--ok:#7BE0A8;--warn:#FF9B95;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scrollbar-color:var(--line-2) transparent;-webkit-text-size-adjust:100%}
body{font-family:var(--font);font-size:16px;line-height:1.6;color:var(--text);background:var(--pearl);-webkit-font-smoothing:antialiased;overflow-x:hidden;position:relative;min-height:100vh}
.bg{position:absolute;inset:0;z-index:-1;background:linear-gradient(170deg,var(--g1) 0%,var(--g2) 45%,var(--g3) 100%);overflow:hidden;pointer-events:none}
.bg i{position:absolute;border-radius:50%;filter:blur(90px);opacity:.9}
.bg i:nth-child(1){right:-12%;top:-8%;width:52vw;height:52vw;background:var(--aurora-1)}
.bg i:nth-child(2){left:-14%;top:14%;width:44vw;height:44vw;background:var(--aurora-2)}
.bg i:nth-child(3){left:20%;top:78%;width:46vw;height:46vw;background:var(--aurora-3)}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
h1,h2,h3{letter-spacing:-.022em;text-wrap:balance;color:var(--heading)}
p{text-wrap:pretty}
::selection{background:var(--accent-soft);color:var(--heading)}
:focus-visible{outline:2px solid var(--capture);outline-offset:3px;border-radius:8px}
.wrap{max-width:var(--container);margin:0 auto;padding-inline:var(--gutter)}
.nw{white-space:nowrap}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:480px){:root{--gutter:16px}}

/* buttons: pill, graphite / glass */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:600;font-size:15px;border-radius:999px;padding:11px 22px;transition:background .15s,border-color .15s,transform .15s,box-shadow .15s;text-align:center;line-height:1.2}
.btn-primary{background:var(--ink);color:var(--on-ink);box-shadow:0 1px 2px rgba(20,20,30,.18),inset 0 1px 0 rgba(255,255,255,.14);padding:8px 8px 8px 22px}
.btn-primary .arr{width:28px;height:28px;border-radius:50%;background:var(--on-ink);display:grid;place-items:center;flex-shrink:0;transition:transform .2s var(--ease)}
.btn-primary .arr svg{width:12px;height:12px;stroke:var(--ink);fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.btn-primary:hover{background:var(--ink-2);transform:translateY(-1px)}
.btn-primary:hover .arr{transform:translateX(2px)}
.btn-primary:active{background:var(--ink-3);transform:translateY(1px)}
.btn-lg{font-size:16px;padding:10px 10px 10px 26px}
.btn-lg .arr{width:32px;height:32px}
.btn-ghost{background:var(--glass-3);color:var(--heading);border:1px solid var(--line);box-shadow:var(--bevel),var(--shadow);backdrop-filter:blur(20px) saturate(180%)}
.btn-ghost.btn-lg{padding:12px 26px}
.btn-ghost:hover{background:var(--glass-2);border-color:var(--line-2)}
:root:not([data-theme="dark"]) .btn-ghost:hover{background:#fff}
.btn-ghost svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.kbd span,kbd{font-family:var(--mono);background:var(--glass-3);color:var(--heading);border:1px solid var(--line);border-radius:999px;padding:1px 8px;font-weight:600;font-size:.8em;white-space:nowrap;box-shadow:var(--bevel)}
.kbd{display:inline-flex;gap:4px}
.glass{background:var(--glass-3);border:1px solid var(--line);border-radius:24px;backdrop-filter:blur(20px) saturate(180%);box-shadow:var(--bevel),var(--shadow)}

/* brand: official app icon + wordmark in Unbounded, the i's dot is an annotation mark in the icon's S gradient */
.logo{display:inline-flex;align-items:center;gap:10px;color:var(--heading);flex-shrink:0}
.logo img{width:32px;height:32px;display:block;filter:drop-shadow(0 2px 6px rgba(40,30,120,.25))}
.wm{font-family:var(--brand);font-weight:700;font-size:19px;letter-spacing:-.045em;line-height:1;white-space:nowrap}
.wm-i{position:relative;display:inline-block}
.wm-i i{position:absolute;left:50%;top:-.02em;width:.25em;height:.25em;border-radius:50%;background:var(--brand-dot);transform:translateX(-50%);box-shadow:0 0 0 .045em var(--pearl)}
.logo:hover .wm-i i{animation:dot .5s var(--ease)}
@keyframes dot{40%{transform:translate(-50%,-.18em) scale(1.12)}}

/* nav: floating pill */
.nav{position:sticky;top:12px;z-index:50;padding-inline:var(--gutter)}
.nav-in{max-width:var(--container);margin:0 auto;display:flex;align-items:center;justify-content:space-between;height:58px;gap:16px;padding:0 9px 0 14px;border-radius:999px;background:var(--nav);border:1px solid var(--line);backdrop-filter:blur(20px) saturate(180%);box-shadow:var(--bevel),var(--shadow)}
.nav-links{display:flex;gap:24px;font-size:14px;font-weight:500;color:var(--muted)}
.nav-links a{transition:color .15s}
.nav-links a:hover{color:var(--heading)}
.nav-cta{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:500;color:var(--muted)}
.nav-cta .plat{margin-right:4px}
.nav-cta .btn{padding:6px 6px 6px 16px;font-size:13.5px}
.nav-cta .btn .arr{width:26px;height:26px}
.lang{display:flex;padding:3px;border-radius:999px;background:var(--glass-2);border:1px solid var(--line);font:600 11.5px/1 var(--mono);letter-spacing:.04em}
.lang a{padding:6px 8px;border-radius:999px;color:var(--muted);transition:background .15s,color .15s}
.lang a:hover{color:var(--heading)}
.lang a[aria-current]{background:var(--ink);color:var(--on-ink)}
.icon-btn{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:var(--muted);border:1px solid var(--line);background:var(--glass-2);transition:color .15s,background .15s}
.icon-btn:hover{color:var(--heading);background:var(--glass-3)}
.icon-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.icon-btn .moon{display:none}
:root[data-theme="dark"] .icon-btn .sun{display:none}
:root[data-theme="dark"] .icon-btn .moon{display:block}
@media(max-width:900px){.nav-links{display:none}.nav-cta .plat{display:none}}
@media(max-width:480px){.nav-in{padding:0 7px 0 10px;gap:8px}.nav-cta{gap:6px}.lang a[aria-current]{display:none}.icon-btn{width:32px;height:32px}.logo{gap:8px}.logo img{width:28px;height:28px}.wm{font-size:17px}.nav-cta .btn{padding:5px 5px 5px 12px;gap:8px}}
@media(max-width:360px){.icon-btn{display:none}}

/* footer */
.footer{padding:0 0 32px}
.footer-in{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;font-size:13px;color:var(--muted);padding:14px 22px 14px 14px;border-radius:999px;background:var(--glass-2);border:1px solid var(--line);box-shadow:var(--bevel)}
.footer-in .logo img{width:24px;height:24px}
.footer-in .wm{font-size:15px}
.footer-brand{display:flex;align-items:center;gap:14px}
.footer-in .tag{font:500 12px var(--mono);color:var(--faint)}
.footer-links{display:flex;gap:6px 18px;flex-wrap:wrap}
.footer-links a{transition:color .15s}
.footer-links a:hover{color:var(--heading)}
@media(max-width:760px){.footer-in{flex-direction:column;text-align:center;border-radius:24px;padding:20px}.footer-brand{flex-direction:column;gap:8px}.footer-links{justify-content:center}}

/* reveal: content is visible without JS; the .js class opts in */
.js .rv{opacity:0;transform:translateY(28px);transition:opacity .75s var(--ease),transform .75s var(--ease)}
.js .rv.in{opacity:1;transform:none}
.js .rv-kids>*{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
.js .rv-kids.in>*{opacity:1;transform:none}
.rv-kids.in>*:nth-child(2){transition-delay:.08s}.rv-kids.in>*:nth-child(3){transition-delay:.16s}.rv-kids.in>*:nth-child(4){transition-delay:.24s}.rv-kids.in>*:nth-child(5){transition-delay:.32s}.rv-kids.in>*:nth-child(6){transition-delay:.4s}.rv-kids.in>*:nth-child(7){transition-delay:.48s}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.js .rv,.js .rv-kids>*{opacity:1;transform:none;transition:none}*,*::before,*::after{animation:none!important}}
