/* dems landing — tokens: dems_landing/.studio/tokens.md (source: static/css/lab_tokens.css, surface dems) */
@font-face { font-family: Benzin; src: url(/static/fonts/Benzin-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Benzin; src: url(/static/fonts/Benzin-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Benzin; src: url(/static/fonts/Benzin-Semibold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Benzin; src: url(/static/fonts/Benzin-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #000000;
  --surface: #0f0f0f;
  --fill: #1f1f1f;
  --active: #2e2e2e;
  --border: rgba(255, 255, 255, 0.14);
  --hairline: rgba(255, 255, 255, 0.08);
  --fg: #ffffff;
  --fg-2: #b3b3b3;
  --fg-3: #8c8c8c;
  --cta: #62c934;
  --cta-hover: #7fe04a;
  --cta-ink: #07170a;
  --accent: #7cf60a;
  --inverse-ink: #12141a;
  --focus: rgba(255, 255, 255, 0.92);
  --rank-novice: #9aa3b0;
  --rank-advanced: #6fa8ff;
  --rank-producer: #7cf60a;
  --r-chip: 8px; --r-inner: 12px; --r-win: 16px; --r-scene: 24px; --r-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: 16px;
  --section: 64px;
  --nav-h: 60px;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --section: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/24px Benzin, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--fg); color: var(--inverse-ink); padding: 12px 16px; border-radius: var(--r-inner); font: 600 14px/20px Benzin; }
.skip:focus { top: 16px; }

/* ---------- text styles (tokens.md) ---------- */
.t-hero { font: 700 30px/36px Benzin; letter-spacing: -0.01em; text-wrap: balance; }
.t-section { font: 600 24px/32px Benzin; text-wrap: balance; }
.t-tagline { font: 700 30px/36px Benzin; letter-spacing: -0.01em; text-wrap: balance; }
.t-sub { font: 400 16px/24px Benzin; color: var(--fg-2); text-wrap: pretty; }
.heading-6 { font: 600 20px/28px Benzin; text-wrap: balance; }
.title-3 { font: 500 16px/24px Benzin; }
.body-3 { font: 400 16px/24px Benzin; text-wrap: pretty; }
.body-6 { font: 400 14px/20px Benzin; text-wrap: pretty; }
.caption-2 { font: 400 14px/20px Benzin; }
.caption-3 { font: 600 12px/16px Benzin; letter-spacing: 0.04em; text-transform: uppercase; }
.caption-4 { font: 500 12px/16px Benzin; letter-spacing: 0.01em; }
.muted { color: var(--fg-2); }
.faint { color: var(--fg-3); }
@media (min-width: 768px) {
  .t-hero { font-size: 36px; line-height: 40px; }
  .t-section { font: 700 30px/36px Benzin; letter-spacing: -0.01em; }
  .t-tagline { font-size: 36px; line-height: 40px; }
  .t-sub { font: 500 18px/28px Benzin; }
}
@media (min-width: 1280px) {
  .t-hero { font-size: 48px; line-height: 48px; letter-spacing: -0.02em; }
  .t-section { font-size: 36px; line-height: 40px; }
  .t-tagline { font-size: 60px; line-height: 60px; letter-spacing: -0.02em; }
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: 1248px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section__head { max-width: 680px; margin-bottom: 40px; }
.section__head .t-sub { margin-top: 16px; max-width: 560px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: var(--r-pill); border: 1px solid transparent; font: 600 16px/24px Benzin; white-space: nowrap; transition: background-color 200ms var(--ease-out), opacity 200ms var(--ease-out), transform 120ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { border-radius: var(--r-pill); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; line-height: 20px; }
.btn--cta { background: var(--cta); color: var(--cta-ink); }
.btn--inverse { background: #fff; color: var(--inverse-ink); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 4px; display: inline-flex; min-height: 44px; align-items: center; transition: text-decoration-color 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn--cta:hover { background: var(--cta-hover); }
  .btn--inverse:hover { background: #d9d9d9; }
  .btn--ghost:hover { background: var(--fill); }
  .link:hover { text-decoration-color: var(--fg); }
}

/* ---------- nav ---------- */
.nav { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding: 0 var(--gutter); pointer-events: none; }
.nav__bar { pointer-events: auto; display: flex; align-items: center; gap: 8px; height: var(--nav-h); padding: 0 8px 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border); background: rgba(15, 15, 15, 0.72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); width: 100%; max-width: 720px; }
.nav__logo { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/24px Benzin; min-height: 44px; margin-right: auto; }
.nav__logo { flex: none; }
@media (max-width: 767px) { .nav__cta { padding: 0 16px; } }
.nav__logo img { width: 28px; height: 28px; }
.nav__links { display: none; gap: 24px; margin-right: 16px; }
.nav__links a { font: 500 14px/20px Benzin; color: var(--fg-2); min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; transition: color 200ms var(--ease-out); }
/* room for the language switcher: the bar is a little wider on desktop, the links a little closer on tablets */
/* desktop: the bar is as wide as the page grid (.wrap content), links in its centre */
@media (min-width: 1024px) {
  .nav__bar { position: relative; max-width: calc(1248px - 2 * var(--gutter)); padding: 0 8px 0 20px; }
  .nav__links { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) { .nav__links { gap: 16px; margin-right: 8px; } }
.nav__links a[aria-current="true"] { color: var(--fg); }
.nav__cta { transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
/* language switcher: RU | EN, the current one filled */
.lang { flex: none; display: inline-flex; padding: 3px; border-radius: var(--r-pill); border: 1px solid var(--border); }
.lang a { min-width: 36px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: var(--r-pill); font: 600 12px/16px Benzin; letter-spacing: 0.04em; color: var(--fg-2); transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.lang a[aria-current="true"] { background: var(--fill); color: var(--fg); }
.lang a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .lang a:not([aria-current="true"]):hover { color: var(--fg); } }
@media (max-width: 400px) { .lang a { min-width: 30px; padding: 0 6px; } }
/* globe dropdown in the nav bar */
.langdd { position: relative; flex: none; }
.langdd > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: var(--r-pill); font: 600 12px/16px Benzin; letter-spacing: 0.04em; color: var(--fg-2); cursor: pointer; user-select: none; transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.langdd > summary::-webkit-details-marker { display: none; }
.langdd > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.langdd[open] > summary { color: var(--fg); background: var(--fill); }
.langdd__globe { width: 18px; height: 18px; }
.langdd__chev { width: 12px; height: 12px; transition: rotate 200ms var(--ease-out); }
.langdd[open] .langdd__chev { rotate: 180deg; }
.langdd__menu { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; min-width: 184px; display: grid; gap: 2px; padding: 6px; border-radius: 16px; border: 1px solid var(--border); background: rgba(20, 20, 20, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); transform-origin: top right; }
.langdd[open] .langdd__menu { animation: langdd-in 160ms var(--ease-out); }
@keyframes langdd-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.langdd__menu a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 0 12px; border-radius: 10px; font: 500 14px/20px Benzin; color: var(--fg-2); transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out); }
.langdd__menu a span { font: 600 11px/16px Benzin; letter-spacing: 0.04em; color: var(--fg-3); }
.langdd__menu a[aria-current="true"] { color: var(--fg); background: var(--fill); }
.langdd__menu a:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) { .langdd > summary:hover { color: var(--fg); } .langdd__menu a:hover { color: var(--fg); background: var(--fill); } }
@media (prefers-reduced-motion: reduce) { .langdd[open] .langdd__menu { animation: none; } .langdd__chev { transition: none; } }
/* phones: where the nav has a burger, the switcher lives in the menu (the bar has no room for both) */
@media (max-width: 767px) { .nav__bar:has(.nav__toggle) .langdd { display: none; } }
.menu .lang { align-self: flex-start; margin-top: 24px; }
.menu .lang a { min-height: 0; height: 40px; min-width: 52px; border-bottom: 0; font: 600 14px/20px Benzin; justify-content: center; }
.nav__cta.is-hidden { opacity: 0; transform: scale(0.96); pointer-events: none; }
.nav__toggle { width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center; }
.nav__toggle span { position: relative; display: block; width: 18px; height: 1.5px; background: var(--fg); transition: background-color 200ms var(--ease-out); }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--fg); transition: transform 300ms var(--ease-out); }
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--fg); } .nav__toggle:hover { background: var(--fill); } }
@media (min-width: 768px) { .nav__links { display: flex; } .nav__toggle { display: none; } }
.menu { position: fixed; inset: 0; z-index: 45; padding: calc(var(--nav-h) + 40px) var(--gutter) 40px; background: rgba(0, 0, 0, 0.92); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); display: flex; flex-direction: column; gap: 8px; }
.menu[hidden] { display: none; }
.menu a { font: 600 24px/32px Benzin; min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid var(--hairline); }
.menu .btn { margin-top: 24px; align-self: flex-start; }
.menu > * { opacity: 0; transform: translateY(24px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.menu.is-open > * { opacity: 1; transform: none; }
.menu.is-open > *:nth-child(2) { transition-delay: 60ms; }
.menu.is-open > *:nth-child(3) { transition-delay: 120ms; }
.menu.is-open > *:nth-child(4) { transition-delay: 180ms; }
.menu.is-open > *:nth-child(5) { transition-delay: 240ms; }
@media (prefers-reduced-transparency: reduce) {
  .nav__bar { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .menu { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- small atoms ---------- */
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-chip); background: var(--active); font: 600 12px/16px Benzin; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.chip--quiet { background: var(--fill); color: var(--fg-2); }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); font: 600 12px/16px Benzin; color: var(--rank-novice); white-space: nowrap; }
.pill--advanced { color: var(--rank-advanced); }
.pill--producer { color: var(--rank-producer); }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--fill); font: 500 12px/16px Benzin; white-space: nowrap; }
.tag--more { background: transparent; border: 1px solid var(--border); color: var(--fg-2); }
.win { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-win); overflow: hidden; }
.win__bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--hairline); font: 500 12px/16px Benzin; color: var(--fg-2); }
.win__bar b { color: var(--fg); font-weight: 600; }
.win__bar .sp { margin-left: auto; }
.win__body { padding: 16px; }

/* file icon (scene prop) */
.file { display: grid; justify-items: center; gap: 8px; min-width: 104px; width: max-content; font: 500 12px/16px Benzin; color: var(--fg-2); white-space: nowrap; touch-action: none; user-select: none; -webkit-user-select: none; }
.file__ico { display: block; width: 48px; height: 60px; border-radius: 8px; background: var(--fill); border: 1px solid var(--border); position: relative; }
.file__ico::after { content: ""; position: absolute; left: 12px; right: 12px; top: 22px; height: 16px; background: repeating-linear-gradient(90deg, var(--accent) 0 2px, transparent 2px 5px); }
.file--drag { cursor: grab; }
.file.is-dragging { cursor: grabbing; z-index: 5; }
.file.is-dragging .file__ico { box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.9); border-color: rgba(255, 255, 255, 0.32); }

/* notification */
.toast { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px; background: var(--fill); border: 1px solid var(--border); border-radius: var(--r-win); text-align: left; }
.toast > img { width: 32px; height: 32px; border-radius: 8px; }
.toast b { display: block; font: 600 14px/20px Benzin; }
.toast p { font: 400 12px/16px Benzin; color: var(--fg-2); margin-top: 4px; text-wrap: pretty; }
.toast b, .toast p { min-width: 0; }
.toast > div { min-width: 0; }
.toast .toast__file { color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast__chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* ---------- hero ---------- */
.hero { padding: calc(var(--nav-h) + 48px) 0 48px; }
.hero__grid { display: grid; gap: 40px; }
.hero__copy { max-width: 680px; }
.hero__title { background: linear-gradient(90deg, #ffffff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__copy .t-sub { margin-top: 16px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.hero__proof { margin-top: 16px; color: var(--fg-3); }
.hero__qr { display: none; }
@media (min-width: 1024px) { .hero { padding-top: calc(var(--nav-h) + 72px); } }
@media (min-width: 1280px) { .hero__grid { grid-template-columns: 5fr 7fr; align-items: center; gap: 32px; } }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .hero__qr { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
}
.qr img { width: 88px; height: 88px; border-radius: var(--r-inner); background: #fff; padding: 4px; }
.qr { color: var(--fg-2); font: 400 14px/20px Benzin; }

/* ---------- dems OS scene ---------- */
.os { position: relative; border: 1px solid var(--border); border-radius: var(--r-scene); overflow: hidden; background: #000; aspect-ratio: 9 / 13; isolation: isolate; }
.os__grid { position: absolute; left: -40%; right: -40%; bottom: 0; height: 90%; transform: perspective(600px) rotateX(68deg); transform-origin: 50% 100%; background-image: linear-gradient(rgba(124, 246, 10, 0.7) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 246, 10, 0.7) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: linear-gradient(transparent, #000 70%); mask-image: linear-gradient(transparent, #000 70%); pointer-events: none; z-index: -1; }
.os__menubar { position: absolute; inset: 0 0 auto 0; height: 40px; display: flex; align-items: center; gap: 16px; padding: 0 12px 0 16px; font: 500 12px/16px Benzin; color: var(--fg-2); background: rgba(15, 15, 15, 0.72); border-bottom: 1px solid var(--hairline); z-index: 3; }
.os__menubar img { width: 18px; height: 18px; }
.os__menubar b { color: var(--fg); }
.os__menubar .sp { margin-left: auto; }
.os__menu { display: none; }
.os__rank { position: relative; display: inline-grid; }
.os__rank .pill { grid-area: 1 / 1; justify-self: end; height: 24px; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.os__rank .pill--advanced { opacity: 0; transform: translateY(4px); }
.os.is-ranked .os__rank .pill:first-child { opacity: 0; transform: translateY(-4px); }
.os.is-ranked .os__rank .pill--advanced { opacity: 1; transform: none; }
.os__files { display: none; }
.os__toasts { position: absolute; left: 12px; right: 12px; top: 52px; display: grid; z-index: 4; pointer-events: none; }
.os__toasts .toast { grid-area: 1 / 1; transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.os__toasts .toast.is-out { opacity: 0; transform: translateY(-12px) scale(0.98); }
.os__toasts .toast.is-pending { opacity: 0; transform: translateY(-16px); }
@media (max-width: 767px) {
  .os__toasts .toast__chips { display: none; }
  .os:not(.os--live) .os__toasts .toast { display: none; }
  .os:not(.os--live) .os__toasts .toast[data-toast="r1"] { display: grid; }
}
@media (min-width: 768px) {
  .os { aspect-ratio: 4 / 3; }
  .os__menu { display: inline; }
  .os__files { position: absolute; left: 12px; top: 72px; display: grid; gap: 24px; z-index: 2; }
  .os__toasts { left: auto; right: 16px; top: 64px; width: 216px; display: flex; flex-direction: column; gap: 12px; }
  .os__toasts .toast { grid-area: auto; }
  .os__toasts .toast.is-pending { transform: translateX(24px); }
  .os__toasts .toast.is-out { display: none; }
}

@media (min-width: 1024px) { .os { aspect-ratio: 16 / 10; } }
@media (min-width: 1280px) { .os { aspect-ratio: 7 / 6; } .final .os { aspect-ratio: auto; } }

/* phone window inside the scene */
.phone { position: absolute; left: 50%; top: 116px; bottom: -32px; width: min(72%, 300px); transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 12px; display: flex; flex-direction: column; z-index: 1; transition: border-color 300ms var(--ease-out); }
.phone.is-target { border-color: rgba(124, 246, 10, 0.6); }
@media (max-width: 767px) {
  .hero .os { aspect-ratio: auto; padding: 124px 16px 24px; }
  .hero .phone { position: relative; left: auto; top: auto; bottom: auto; transform: none; width: 100%; max-width: 320px; margin: 0 auto; }
  .hero .player { margin-top: 12px; }
}
@media (min-width: 768px) { .phone { top: 64px; bottom: 24px; width: auto; aspect-ratio: 9 / 17.5; left: 45%; } }
.phone__top { display: flex; align-items: center; justify-content: space-between; height: 32px; font: 500 12px/16px Benzin; color: var(--fg-2); }
.phone__top b { color: var(--fg); font-weight: 600; }
.player { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.player__cover { position: relative; border-radius: var(--r-inner); overflow: hidden; background: var(--fill); }
.player__cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.player__meta b { display: block; font: 600 14px/20px Benzin; }
.player__meta span { font: 400 12px/16px Benzin; color: var(--fg-2); }
.player__row { display: flex; align-items: center; gap: 12px; }
.player__play { flex: none; width: 44px; height: 44px; border-radius: var(--r-pill); background: #fff; color: var(--inverse-ink); display: grid; place-items: center; transition: transform 120ms var(--ease-out), background-color 200ms var(--ease-out); }
.player__play:active { transform: scale(0.97); }
.player__play svg { width: 20px; height: 20px; }
.player__play .i-pause { display: none; }
.player.is-playing .player__play .i-play { display: none; }
.player.is-playing .player__play .i-pause { display: block; }
.player__track { flex: 1; min-width: 0; }
.player__bar { height: 4px; border-radius: 2px; background: var(--active); overflow: hidden; }
.player__fill { display: block; height: 100%; width: 100%; background: var(--fg); transform-origin: 0 50%; transform: scaleX(0); }
.player__time { display: flex; justify-content: space-between; margin-top: 4px; font: 500 12px/16px Benzin; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.player.is-error .player__time { color: var(--fg-2); }
.reacts { display: flex; gap: 8px; }
.react { flex: 1; min-height: 44px; border-radius: var(--r-pill); border: 1px solid var(--border); font: 600 14px/20px Benzin; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 120ms var(--ease-out); }
.react:active { transform: scale(0.97); }
.react[aria-pressed="true"] { background: #fff; color: var(--inverse-ink); border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .react:hover { background: var(--fill); } .react[aria-pressed="true"]:hover { background: #fff; } .player__play:hover { background: #d9d9d9; } }
.upload { position: absolute; inset: 56px 12px auto; display: grid; gap: 8px; padding: 12px; border-radius: var(--r-inner); background: var(--fill); border: 1px solid var(--border); z-index: 2; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.upload[hidden] { display: grid !important; opacity: 0; transform: translateY(-8px); pointer-events: none; }
.upload b { font: 600 12px/16px Benzin; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload span { font: 400 12px/16px Benzin; color: var(--fg-2); }
.upload .player__fill { background: var(--accent); }

/* ---------- problem ---------- */
.problem__grid { display: grid; gap: 40px; align-items: center; }
.problem__copy .body-3 { margin-top: 16px; color: var(--fg-2); max-width: 560px; }
.filelist li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.filelist li + li { border-top: 1px solid var(--hairline); }
.filelist .file__ico { width: 32px; height: 40px; border-radius: 6px; }
.filelist .file__ico::after { left: 7px; right: 7px; top: 14px; height: 11px; }
.filelist b { display: block; font: 500 14px/20px Benzin; overflow-wrap: anywhere; }
.filelist span { font: 400 12px/16px Benzin; color: var(--fg-3); }
.filelist i { font: 500 12px/16px Benzin; font-style: normal; color: var(--fg-3); white-space: nowrap; }
@media (min-width: 1024px) { .problem__grid { grid-template-columns: 6fr 5fr; gap: 80px; } }

/* ---------- steps ---------- */
.steps { display: grid; gap: 64px; }
.step { display: grid; gap: 24px; align-items: center; }
.step__n { font: 600 12px/16px Benzin; letter-spacing: 0.04em; color: var(--accent); }
.step__title { margin-top: 8px; }
.step__copy .body-3 { margin-top: 12px; color: var(--fg-2); max-width: 440px; }
@media (min-width: 1024px) {
  .steps { gap: 96px; }
  .step { grid-template-columns: 5fr 7fr; gap: 80px; }
  .step:nth-child(even) { grid-template-columns: 7fr 5fr; }
  .step:nth-child(even) .step__copy { order: 2; }
}
.feedstack { position: relative; height: 296px; }
.feedcard { position: absolute; inset: 0 0 auto; display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: var(--r-inner); background: var(--fill); transition: transform 500ms var(--ease-in-out), opacity 500ms var(--ease-in-out); }
.feedcard img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.feedcard b { display: block; font: 600 16px/24px Benzin; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feedcard span { display: block; font: 400 12px/16px Benzin; color: var(--fg-2); }
.feedcard small { display: inline-flex; margin-top: 12px; }
.feedcard[data-pos="0"] { transform: translateY(0); opacity: 1; z-index: 3; }
.feedcard[data-pos="1"] { transform: translateY(148px) scale(0.96); opacity: 0.6; z-index: 2; }
.feedcard[data-pos="2"] { transform: translateY(240px) scale(0.92); opacity: 0; z-index: 1; }
.feedcard[data-pos="3"] { transform: translateY(240px) scale(0.9); opacity: 0; z-index: 0; }
.feedcard[data-pos="-1"] { transform: translateY(-48px) scale(0.98); opacity: 0; z-index: 4; }
@media (min-width: 768px) { .feedcard { grid-template-columns: 160px 1fr; } .feedstack { height: 320px; } .feedcard[data-pos="1"] { transform: translateY(196px) scale(0.96); } .feedcard[data-pos="2"] { transform: translateY(268px) scale(0.92); } .feedcard[data-pos="3"] { transform: translateY(268px) scale(0.9); } }
.mock { display: grid; gap: 12px; }
.mock__row { display: flex; flex-wrap: wrap; gap: 8px; }
.mock__react { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border); font: 600 14px/20px Benzin; transition: background-color 400ms var(--ease-out), color 400ms var(--ease-out); }
.mock__react.is-on { background: #fff; color: var(--inverse-ink); border-color: transparent; }
.mock__field { min-height: 72px; border-radius: var(--r-inner); background: var(--fill); border: 1px solid rgba(255, 255, 255, 0.12); padding: 12px; font: 400 14px/20px Benzin; color: var(--fg-3); }
.mock__send { justify-self: end; }
.drop { position: relative; display: grid; place-items: center; gap: 12px; min-height: 232px; border-radius: var(--r-inner); border: 1px dashed var(--border); text-align: center; padding: 24px; overflow: hidden; }
.drop .file { transition: transform 700ms var(--ease-out), opacity 700ms var(--ease-out); }
.drop__bar { width: min(240px, 80%); }
.drop__status { font: 500 12px/16px Benzin; color: var(--fg-2); }
.drop .player__fill { background: var(--accent); transition: transform 1200ms var(--ease-in-out); }
html:not(.js-motion) .drop .player__fill, .is-in .drop .player__fill { transform: scaleX(1); }
.js-motion .drop .file { opacity: 0; transform: translateY(-40px) scale(0.9); }
.js-motion .is-in .drop .file { opacity: 1; transform: none; transition-delay: 200ms; }
.js-motion .is-in .drop .player__fill { transition-delay: 700ms; }

/* ---------- tagline ---------- */
.tagline { padding: var(--section) 0; }
.tagline__text { max-width: 960px; }
.tagline__text .w { transition: color 500ms var(--ease-out); }
.js-motion .tagline__text .w { color: rgba(255, 255, 255, 0.3); }
.js-motion .tagline__text .w.is-lit { color: var(--fg); }
.js-motion .tagline__text .line2 .w.is-lit { color: var(--fg-2); }
.tagline__text .line1, .tagline__text .line2 { display: block; text-wrap: balance; }
.tagline__text .line2 { color: var(--fg-2); }

/* ---------- benefits ---------- */
.benefits { display: grid; gap: 16px; }
.benefit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-scene); padding: 24px; display: grid; gap: 24px; align-content: space-between; }
.benefit__visual { min-height: 176px; display: grid; align-content: center; justify-items: start; gap: 8px; }
.benefit .body-6 { margin-top: 8px; color: var(--fg-2); max-width: 440px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.ranks { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ranks figure { display: grid; justify-items: center; gap: 8px; }
.ranks img { height: 96px; width: auto; }
.ranks .arrow { color: var(--fg-3); align-self: center; padding-bottom: 32px; }
@media (max-width: 767px) { .ranks > :nth-child(n + 4) { display: none; } }
.reviewcard { width: 100%; max-width: 400px; display: grid; gap: 8px; padding: 16px; border-radius: var(--r-win); background: var(--fill); }
.reviewcard__head { display: flex; align-items: center; gap: 8px; font: 600 14px/20px Benzin; }
.reviewcard__head img { width: 24px; height: 24px; border-radius: 6px; }
.reviewcard p { font: 400 12px/16px Benzin; color: var(--fg-2); }
.reviewcard__line { display: block; height: 8px; border-radius: 4px; background: var(--active); }
.reviewcard__ask { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--hairline); font: 500 12px/16px Benzin; color: var(--fg-2); }
.reviewcard__ask .sp { margin-left: auto; }
.reviewcard__ask span:not(.sp) { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border); color: var(--fg); }
.reviewcard__ask span.is-on { background: #fff; color: var(--inverse-ink); border-color: transparent; }
.homescreen { display: grid; justify-items: center; gap: 8px; font: 500 12px/16px Benzin; }
.homescreen img { width: 88px; height: 88px; border-radius: 20px; }
@media (min-width: 768px) { .benefits { grid-template-columns: 1fr 1fr; } }

/* ---------- top ---------- */
.top__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
.track img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-inner); background: var(--fill); }
.track b { display: block; margin-top: 8px; font: 500 14px/20px Benzin; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track span { display: block; font: 400 12px/16px Benzin; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track small { display: block; font: 400 12px/16px Benzin; color: var(--fg-3); }
.top__cta { margin-top: 40px; }
@media (min-width: 768px) { .top__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .top__grid { grid-template-columns: repeat(5, 1fr); } }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--r-win); background: var(--surface); }
.faq details + details { margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 12px 24px; font: 500 16px/24px Benzin; border-radius: var(--r-win); transition: background-color 200ms var(--ease-out); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--fg-2); border-bottom: 1.5px solid var(--fg-2); transform: rotate(45deg) translate(-2px, -2px); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 24px 24px; color: var(--fg-2); font: 400 14px/20px Benzin; max-width: 640px; text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { background: var(--fill); } }

/* ---------- final ---------- */
.final .os { aspect-ratio: auto; padding: 96px 24px 72px; display: grid; justify-items: center; text-align: center; gap: 24px; }
.final__icon { width: 88px; height: 88px; border-radius: 20px; }
.final__title { max-width: 680px; }
.final__actions { display: grid; justify-items: center; gap: 12px; }
.final .qr { display: none; text-align: left; margin-top: 16px; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) { .final .qr { display: flex; align-items: center; gap: 16px; } }

/* ---------- footer ---------- */
.footer { padding: 48px 0 64px; border-top: 1px solid var(--hairline); }
.footer__row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; font: 400 14px/20px Benzin; color: var(--fg-2); }
.footer__row a { min-height: 44px; display: inline-flex; align-items: center; transition: color 200ms var(--ease-out); }
.footer__row .sp { margin-right: auto; }
@media (hover: hover) and (pointer: fine) { .footer__row a:hover { color: var(--fg); } }
.footer__grid { display: grid; gap: 24px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.social { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px; border-radius: var(--r-pill); border: 1px solid var(--border); font: 500 14px/20px Benzin; color: var(--fg); transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out); }
.social__ico { width: 18px; height: 18px; flex: none; fill: currentColor; }
.footer__legal { display: grid; gap: 4px; font: 400 12px/18px Benzin; color: var(--fg-3); }
@media (hover: hover) and (pointer: fine) { .social:hover { background: var(--fill); border-color: rgba(255, 255, 255, 0.28); } }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 64px; }
.nf__inner { display: grid; justify-items: center; gap: 16px; max-width: 520px; }
.nf .file { margin-bottom: 8px; }

/* ---------- install ---------- */
.install { padding: calc(var(--nav-h) + 56px) 0 176px; }
.install__head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.install__head .t-sub { margin-top: 12px; }
.install__qr { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .install__qr { display: flex; align-items: center; gap: 16px; width: fit-content; margin: 0 auto 32px; padding: 16px 24px 16px 16px; border-radius: var(--r-win); border: 1px solid var(--border); background: var(--surface); }
}
.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 auto 32px; width: fit-content; max-width: 100%; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); font: 600 14px/20px Benzin; color: var(--fg-2); transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out); }
.tab[aria-selected="true"] { background: var(--fg); color: var(--inverse-ink); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { color: var(--fg); } }
.cards { display: grid; gap: 24px; max-width: 420px; margin: 0 auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-scene); overflow: hidden; text-align: center; }
.card__pic { height: 232px; position: relative; overflow: hidden; }
.card__txt { background: var(--fill); padding: 24px; }
.card__txt b { display: block; font: 700 24px/32px Benzin; }
.card__txt p { margin-top: 8px; font: 400 14px/20px Benzin; color: var(--fg-2); text-wrap: balance; }
@media (min-width: 1024px) { .cards { max-width: 1104px; grid-template-columns: repeat(3, 1fr); } }
[hidden] { display: none !important; }

/* phone schematic in install cards */
.ph { position: absolute; left: 50%; width: 216px; height: 380px; margin-left: -108px; border: 2px solid var(--cta); border-radius: 40px; background: #000; }
.ph--top { top: 28px; }
.ph--bottom { bottom: 28px; }
.ph__screen { position: absolute; inset: 6px; border-radius: 34px; overflow: hidden; background: var(--surface); }
.ph__status { display: flex; justify-content: space-between; padding: 12px 20px 0; font: 600 10px/12px Benzin; color: var(--fg); }
.ph__blur { position: absolute; left: 14px; right: 14px; border-radius: 10px; background: var(--active); filter: blur(3px); opacity: 0.6; }
.ph__bar { position: absolute; left: 10px; right: 10px; height: 44px; display: flex; align-items: center; justify-content: space-around; border-radius: 16px; background: var(--fill); color: rgba(255, 255, 255, 0.4); }
.ph__bar svg { width: 18px; height: 18px; }
.ph__addr { position: absolute; left: 12px; right: 12px; top: 34px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; background: #fff; color: var(--inverse-ink); font: 500 12px/16px Benzin; }
.ph__hit { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-pill); background: #fff; color: var(--inverse-ink); font: 700 14px/20px Benzin; z-index: 2; }
.ph__hit svg { width: 22px; height: 22px; }
.ph__row { position: absolute; left: 50%; top: 50%; width: 252px; margin-left: -126px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: #fff; color: var(--inverse-ink); border-radius: 12px; font: 500 13px/16px Benzin; white-space: nowrap; z-index: 2; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.8); }
.ph__row svg { flex: none; width: 18px; height: 18px; }
.ph__dialog { position: absolute; left: 14px; right: 14px; top: 96px; border-radius: 14px; background: var(--fill); overflow: hidden; text-align: center; }
.ph__dialog p { padding: 12px; font: 500 11px/14px Benzin; color: var(--fg-2); }
.ph__dialog div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--hairline); font: 600 10px/14px Benzin; }
.ph__dialog span { padding: 10px 0; color: var(--fg-3); }
.ph__dialog span + span { border-left: 1px solid var(--hairline); }
.ph__dialog .is-hit { background: #fff; color: var(--inverse-ink); }
.ph__home { position: absolute; left: 0; right: 0; top: 64px; display: grid; grid-template-columns: repeat(4, 40px); justify-content: center; gap: 16px 12px; }
.ph__home i { width: 40px; height: 40px; border-radius: 10px; background: var(--active); opacity: 0.5; filter: blur(1px); }
.ph__home .ph__app { display: grid; justify-items: center; gap: 4px; font: 500 9px/12px Benzin; color: var(--fg); opacity: 1; filter: none; background: none; width: 40px; height: auto; }
.ph__home .ph__app img { width: 40px; height: 40px; border-radius: 10px; }
.ph__feed { position: absolute; left: 14px; right: 14px; top: 44px; display: grid; gap: 8px; }
.ph__feed img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; }
.ph__feed b { font: 600 11px/14px Benzin; text-align: left; }

/* install card motion: loops only while the card is on screen */
@keyframes dl-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); } 50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
@keyframes dl-pop { 0% { transform: translateY(12px) scale(0.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes dl-drop { 0% { transform: translateY(-24px) scale(0.6); opacity: 0; } 60% { transform: translateY(0) scale(1.06); opacity: 1; } 100% { transform: none; opacity: 1; } }
.js-motion .card.is-in .ph__hit { animation: dl-pulse 1600ms var(--ease-in-out) 400ms infinite; }
.js-motion .card.is-in .ph__row { animation: dl-pop 600ms var(--ease-out) 300ms both; }
.js-motion .card.is-in .ph__app { animation: dl-drop 700ms var(--ease-out) 300ms both; }
.js-motion .card.is-in .ph__dialog .is-hit { animation: dl-pulse 1600ms var(--ease-in-out) 600ms infinite; }

.install__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px)); display: grid; justify-items: center; gap: 0; background: rgba(0, 0, 0, 0.84); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--hairline); }
.install__bar .btn { width: 100%; max-width: 420px; }
@media (prefers-reduced-transparency: reduce) { .install__bar { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* ---------- reveal (only when JS + motion allowed) ---------- */
.js-motion [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
.js-motion [data-reveal-delay="1"] { transition-delay: 80ms; }
.js-motion [data-reveal-delay="2"] { transition-delay: 160ms; }
.js-motion .hero__copy > * { animation: dl-pop 700ms var(--ease-out) both; }
.js-motion .hero__copy > *:nth-child(2) { animation-delay: 80ms; }
.js-motion .hero__copy > *:nth-child(3) { animation-delay: 160ms; }
.js-motion .hero__copy > *:nth-child(4) { animation-delay: 220ms; }
.js-motion .hero .os { animation: dl-pop 800ms var(--ease-out) 120ms both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- cookie consent (only when Yandex Metrica is configured) ----------
   An oil-painted cookie peeks over the top-left edge of the bar and spins in when the bar appears. */
.consent { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 14px; max-width: 440px; margin: 0 auto; padding: 16px; border-radius: 16px; background: rgba(15, 15, 15, 0.92); border: 1px solid rgba(255, 255, 255, 0.14); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font: 400 14px/20px Benzin; color: var(--fg-2); }
.consent[hidden] { display: none; }
.consent__cookie { position: absolute; left: 10px; top: -40px; width: 76px; height: auto; align-self: start; rotate: -10deg; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6)); pointer-events: none; }
.consent__text { display: grid; gap: 6px; }
.consent__text p { margin: 0; }
.consent__title { font: 600 16px/24px Benzin; color: #fff; padding-left: 72px; min-height: 24px; }
.consent__link { justify-self: start; font: 500 12px/16px Benzin; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); }
@media (hover: hover) and (pointer: fine) { .consent__link:hover { text-decoration-color: #fff; } }
.consent__btns { display: flex; gap: 8px; justify-content: flex-end; }
.consent .btn--light { background: #fff; color: #12141A; }
.consent__no { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.24); }
@media (min-width: 768px) {
  .consent { left: 24px; right: auto; bottom: 24px; grid-template-columns: 92px minmax(0, 1fr) auto; column-gap: 24px; max-width: 880px; padding: 20px 20px 20px 24px; }
  .consent__cookie { position: static; width: 112px; margin: -40px 0 -8px -6px; }
  .consent__title { padding-left: 0; }
  .consent__text p:not(.consent__title) { max-width: 520px; }
  .consent__btns { grid-column: auto; align-self: center; }
}
.js-motion .consent:not([hidden]) { animation: consent-in 360ms var(--ease-out) both; }
.js-motion .consent:not([hidden]) .consent__cookie { animation: consent-cookie 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 120ms both; }
@keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes consent-cookie { from { opacity: 0; rotate: -70deg; scale: 0.5; translate: -12px 18px; } }
@media (prefers-reduced-transparency: reduce) { .consent { background: #0F0F0F; -webkit-backdrop-filter: none; backdrop-filter: none; } }
