/* KaroVox: one stylesheet for every page. Graphite technical base, one hot pink accent (primary action, active state,
   logo). Light and dark follow the system; html[data-theme] forces one (Telegram Mini App: tg.js sets it from Telegram's
   colour scheme; the colours stay the KaroVox palette, the same as the site). */

/* ---------- type: self-hosted fonts (public/fonts/, SIL OFL 1.1, see fonts/LICENSES.txt) ----------
   Unbounded (display: wordmark, headlines, big numbers), Golos Text (interface and reading), JetBrains Mono (timers,
   counters, codes). One file per unicode subset: a page downloads only what its text needs (latin ~89 KB for an English
   page, + cyrillic ~53 KB for a Russian one). Other scripts (CJK, Arabic, Hebrew, Devanagari …) fall through to the
   system fonts of the stack. The "Fallback" faces are local Arial scaled to the web fonts' metrics (no jump on swap). */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/static/fonts/golos-text-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/static/fonts/golos-text-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/static/fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("/static/fonts/golos-text-cyrillic-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/static/fonts/unbounded-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/static/fonts/unbounded-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/static/fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/static/fonts/unbounded-cyrillic-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/jetbrains-mono-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
/* metric-matched fallbacks, latin + cyrillic only (Arial's Arabic / Hebrew must not take the place of the system fonts) */
@font-face { font-family: "Golos Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Roboto"); size-adjust: 106.1%; ascent-override: 92.4%; descent-override: 20.7%; line-gap-override: 0%; unicode-range: U+0000-024F, U+0400-04FF, U+2000-206F, U+20AC, U+2116; }
@font-face { font-family: "Unbounded Fallback"; src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Roboto"); size-adjust: 129.8%; ascent-override: 77%; descent-override: 19.3%; line-gap-override: 0%; unicode-range: U+0000-024F, U+0400-04FF, U+2000-206F, U+20AC, U+2116; }

:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ebebef;
  --card: var(--surface);
  --text: #121318;
  --muted: #5b606b;
  --line: rgba(18, 19, 24, 0.12);
  --line-strong: rgba(18, 19, 24, 0.22);
  --accent: #d1145a;
  --accent-hover: #b30f4c;
  --accent-pressed: #940b3e;
  --accent-text: #ffffff;
  --accent-soft: rgba(209, 20, 90, 0.08);
  --ok: #13804b;
  --ok-soft: rgba(19, 128, 75, 0.1);
  --danger: #c62828;
  --danger-text: #ffffff;
  --danger-soft: rgba(198, 40, 40, 0.08);
  --focus: #d1145a;
  --me: #ececf0;
  --peer: #ffffff;
  --banner: #fff4d6;
  --banner-text: #5b4500;
  --scrim: rgba(14, 15, 19, 0.45);
  --shadow: 0 12px 40px -16px rgba(14, 15, 19, 0.28);
  --radius: 12px;
  --radius-s: 10px;
  /* families */
  --font: "Golos Text", "Golos Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --display: "Unbounded", "Unbounded Fallback", "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  /* modular scale (≈1.125 below the base, ≈1.2 above): captions … display */
  --fs-cap: 11px;
  --fs-xs: 12px;
  --fs-s: 13.5px;
  --fs-sm: 15px;
  --fs-base: 16px;
  --fs-m: 17px;
  --fs-l: 19px;
  --fs-xl: 22px;
  --fs-2xl: 26px;
  --fs-3xl: 32px;
  --fs-4xl: 44px;
  /* line heights: Cyrillic has tall caps and descenders (у, д, щ): body never below 1.45 */
  --lh-display: 1.12;
  --lh-head: 1.22;
  --lh-ui: 1.35;
  --lh-body: 1.5;
  /* tracking: negative only on the display face at size, positive only on caps labels */
  --tr-display: -0.035em;
  --tr-head: -0.02em;
  --tr-caps: 0.12em;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --tile: linear-gradient(135deg, #ff3d8b 0%, #d1145a 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0f13;
    --surface: #181a21;
    --surface-2: #22252e;
    --text: #ecedef;
    --muted: #9a9fab;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent: #ff3d8b;
    --accent-hover: #ff62a3;
    --accent-pressed: #e0306f;
    --accent-text: #0e0f13;
    --accent-soft: rgba(255, 61, 139, 0.12);
    --ok: #2fbf71;
    --ok-soft: rgba(47, 191, 113, 0.14);
    --danger: #ff5a4e;
    --danger-text: #0e0f13;
    --danger-soft: rgba(255, 90, 78, 0.13);
    --focus: #ffb3d1;
    --me: #23262f;
    --peer: #181a21;
    --banner: #3a3214;
    --banner-text: #ffe7a3;
    --scrim: rgba(0, 0, 0, 0.6);
    --shadow: 0 16px 48px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e0f13;
  --surface: #181a21;
  --surface-2: #22252e;
  --text: #ecedef;
  --muted: #9a9fab;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ff3d8b;
  --accent-hover: #ff62a3;
  --accent-pressed: #e0306f;
  --accent-text: #0e0f13;
  --accent-soft: rgba(255, 61, 139, 0.12);
  --ok: #2fbf71;
  --ok-soft: rgba(47, 191, 113, 0.14);
  --danger: #ff5a4e;
  --danger-text: #0e0f13;
  --danger-soft: rgba(255, 90, 78, 0.13);
  --focus: #ffb3d1;
  --me: #23262f;
  --peer: #181a21;
  --banner: #3a3214;
  --banner-text: #ffe7a3;
  --scrim: rgba(0, 0, 0, 0.6);
  --shadow: 0 16px 48px -16px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-base)/var(--lh-body) var(--font);
  font-kerning: normal;
  font-synthesis: none; /* no faux bold / italic: every weight used exists in the variable fonts */
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
/* static texts stay invisible until common.js has put the right language / market in (at most 1.2 s) */
html:not(.kv-i18n) [data-t] { visibility: hidden; animation: kv-show 0s linear 1.2s forwards; }
@keyframes kv-show { to { visibility: visible; } }
/* the type system's roles, usable on any element */
.t-display { font-family: var(--display); font-weight: 600; letter-spacing: var(--tr-head); line-height: var(--lh-display); }
.t-caps { font-family: var(--font); font-size: var(--fs-cap); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; line-height: 1.3; }
button, input, select, textarea { font-synthesis: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: max(16px, env(safe-area-inset-top), var(--tg-top, 0px)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom), var(--tg-bottom, 0px)) max(16px, env(safe-area-inset-left));
}
html.in-tg .wrap { min-height: var(--tg-viewport-stable-height, 100dvh); }
/* in a call the screen does not scroll: only the transcript does */
.wrap:has(> .incall:not([hidden])) { height: 100vh; height: 100dvh; }
html.in-tg .wrap:has(> .incall:not([hidden])) { height: var(--tg-viewport-stable-height, 100dvh); }
.wrap > section { flex: 1; display: flex; flex-direction: column; min-height: 0; }
h1 { font-family: var(--display); font-size: var(--fs-xl); line-height: var(--lh-head); margin: 8px 0 8px; font-weight: 600; letter-spacing: var(--tr-head); text-wrap: balance; }
h2 { font-family: var(--display); font-size: var(--fs-l); line-height: var(--lh-head); margin: 16px 0 6px; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: var(--lh-head); }
p { margin: 8px 0; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.45; }
.center { text-align: center; }
.mono, .num { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
}
label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin: 14px 0 6px; }
.card > label:first-child, .card > div:first-child > label:first-child { margin-top: 0; }
select, input[type="text"], input[type="email"], input[type="tel"], input[inputmode="numeric"] {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  padding: 12px 14px;
  min-height: 52px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s var(--ease);
}
select {
  padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
input[type="text"] { letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--mono); font-size: 16px; }
input[type="text"]::placeholder, input::placeholder { text-transform: none; letter-spacing: 0.02em; color: var(--muted); opacity: 0.8; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.spacer { flex: 1; min-height: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  margin: 8px 0;
  padding: 0 18px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease), opacity 0.15s var(--ease);
}
.btn:hover:not(:disabled) { background: var(--accent-hover); }
.btn:active:not(:disabled) { background: var(--accent-pressed); transform: scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.btn.big { min-height: 60px; font-size: 18px; }
.btn.compact { width: auto; flex: none; min-height: 52px; margin: 0; padding: 0 18px; font-size: 16px; }
.btn.secondary { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn.secondary:hover:not(:disabled) { background: var(--surface-2); }
.btn.secondary:active:not(:disabled) { background: var(--surface-2); }
.btn.danger { background: var(--danger); color: var(--danger-text); }
.btn.danger:hover:not(:disabled), .btn.danger:active:not(:disabled) { background: var(--danger); filter: brightness(0.95); }
.btn.ghost { background: transparent; color: var(--text); min-height: 52px; font-size: 16px; font-weight: 500; }
.btn.ghost:hover:not(:disabled), .btn.ghost:active:not(:disabled) { background: var(--surface-2); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
.row2 { display: flex; gap: 10px; }
.row2 .btn { flex: 1; min-width: 0; min-height: 52px; font-size: 15px; padding: 0 10px; margin: 6px 0; }
.error { color: var(--danger); margin: 8px 0; font-size: 15px; }
.link-box {
  word-break: break-all;
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-s);
  padding: 12px;
  margin: 8px 0;
  user-select: all;
  -webkit-user-select: all;
}
.banner {
  background: var(--banner);
  color: var(--banner-text);
  border-radius: var(--radius-s);
  padding: 10px 14px;
  margin: 8px 0;
  font-size: 15px;
}
button.banner { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; min-height: 52px; }

/* ---------- brand: logo mark, tile, wordmark ---------- */
.kv-mark { display: block; fill: currentColor; }
.kv-tile {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 22%; background: var(--tile); color: #fff;
}
.kv-tile .kv-mark { width: 62%; height: 62%; }
/* KaroVox in the display face: tight, one weight, "Vox" in the accent */
.wordmark { font-family: var(--display); font-weight: 600; letter-spacing: -0.045em; margin: 0; line-height: 1; font-feature-settings: "kern" 1; }
.wordmark span { color: var(--accent); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: -4px 0 4px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-height: 44px; }
.brand .kv-tile { width: 32px; height: 32px; }
.brand .wordmark { font-size: 18px; }
.top-links { display: flex; align-items: center; gap: 4px; }
.top-links a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius-s); }
.top-links a:hover { color: var(--text); background: var(--surface-2); }
.icon-btn { width: 44px; height: 44px; padding: 0 !important; justify-content: center; border: 1px solid var(--line); border-radius: 50% !important; color: var(--text) !important; background: var(--card); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.page-head { display: flex; align-items: center; gap: 8px; min-height: 52px; margin: -4px 0 8px; }
.page-head .back { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--text); text-decoration: none; margin-left: -10px; }
.page-head .back:hover { background: var(--surface-2); }
.page-head .back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.page-head .brand { margin-left: auto; }
.page-head .brand .kv-tile { width: 28px; height: 28px; }
.page-head .brand .wordmark { font-size: 15px; }

/* hero (landing, Mini App home, join screen) */
.hero { text-align: left; padding: 12px 0 4px; }
.brand-hero { display: flex; align-items: center; gap: 14px; }
.brand-hero .kv-tile { width: 56px; height: 56px; }
.brand-hero h1.wordmark { font-size: 30px; margin: 0; }
/* descriptor under the wordmark: a technical caps label */
.descriptor { margin: 8px 0 0; color: var(--muted); font-size: var(--fs-cap); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; line-height: 1.3; }
.promise { color: var(--text); font-size: var(--fs-m); line-height: 1.45; margin: 16px 0 0; max-width: 30ch; letter-spacing: -0.005em; text-wrap: balance; }
.hero .logo { display: none; }
.hero.compact { padding-top: 4px; text-align: center; }
.hero.compact .kv-tile { width: 48px; height: 48px; margin: 0 auto 12px; display: flex; }
.hero.compact h1 { margin: 0 0 6px; }
.hero.compact .promise { margin: 6px auto 0; }

/* ---------- balance (subscription / tokens) ---------- */
.sub-box { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 18px 0 4px; }
.chip, .balance {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 56px; padding: 10px 14px 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-size: 15px; font-weight: 500; text-align: left; overflow: hidden;
}
/* numbers inside texts (ui.js numSpans): the display face, tabular, a step bigger: "Осталось 12 345 токенов" */
.n { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.03em; }
.chip .n { font-size: 1.12em; }
button.chip { cursor: pointer; transition: border-color 0.15s var(--ease); }
button.chip:hover { border-color: var(--line-strong); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.chip .bal-text { flex: 1; min-width: 0; }
/* balance chip: dot | "Осталось 12 345 токенов" over "≈ 207 минут разговора" | chevron */
.chip { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 1px; }
.chip .dot { grid-column: 1; grid-row: 1 / span 2; }
.chip .bal-text { grid-column: 2; grid-row: 1; }
.chip .chev { grid-column: 3; grid-row: 1 / span 2; }
.chip .bal-num { grid-column: 2; grid-row: 2; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 13px; font-weight: 400; }
.chip .chev { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.chip .bar { position: absolute; left: 14px; right: 14px; bottom: 7px; height: 3px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.chip .bar > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 2px; transition: width 0.2s var(--ease); }
.chip[data-state="checking"] .dot { animation: blink 1s ease-in-out infinite alternate; }
.chip[data-state="active"] .dot { background: var(--ok); }
.chip[data-state="trial"] .dot { background: var(--accent); }
.chip[data-state="problem"] { color: var(--text); }
.chip[data-state="problem"] .dot { background: var(--danger); }
.chip[data-state="locked"] .dot { background: var(--danger); }
@keyframes blink { from { opacity: 0.25; } to { opacity: 1; } }
.code-card { width: 100%; margin: 0; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-card .muted.small { margin: 10px 0 0; line-height: 1.4; }
.code-card .error { margin: 8px 0 0; font-size: 15px; }
.inline-err {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-s); padding: 8px 8px 8px 14px; margin: 8px 0; font-size: 15px; min-height: 52px;
}
.retry { flex: none; min-height: 44px; padding: 0 14px; border-radius: var(--radius-s); border: 0; background: var(--danger); color: var(--danger-text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }

/* sign-in box (browser without an account) */
.auth-box { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 16px; }
.auth-box > b { font-family: var(--display); font-size: var(--fs-m); font-weight: 600; letter-spacing: -0.015em; line-height: var(--lh-head); }
.auth-box > p { margin: 2px 0 8px; color: var(--muted); font-size: 15px; }
.auth-box .btn { margin: 4px 0; }

/* ---------- mode cards (landing + Mini App home) ---------- */
.cards { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 4px; }
.bigcard {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 12px 14px 14px; min-height: 84px;
  color: var(--text); text-decoration: none; text-align: left; font: inherit; cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.bigcard:hover:not(:disabled) { border-color: var(--line-strong); }
.bigcard:active:not(:disabled) { transform: scale(0.99); background: var(--surface-2); }
.bigcard:disabled { opacity: 0.5; cursor: default; }
.bigcard .ico { flex: none; width: 46px; height: 46px; border-radius: var(--radius-s); background: var(--bg); border: 1px solid var(--line); color: var(--text); display: flex; align-items: center; justify-content: center; transition: color 0.15s var(--ease); }
.bigcard:hover .ico { color: var(--accent); }
.bigcard .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bigcard .txt { flex: 1; min-width: 0; display: block; }
.bigcard .txt > b { display: block; font-size: var(--fs-m); font-weight: 600; line-height: 1.25; letter-spacing: -0.012em; }
.bigcard .txt > span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.bigcard .chev, .bigcard .lock { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bigcard .lock { display: none; }
.bigcard.locked .lock { display: block; }
.bigcard.locked .chev { display: none; }
.bigcard.locked .ico { color: var(--muted); }
.bigcard.soon { opacity: 0.72; }
.badge { font-style: normal; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); vertical-align: 2px; margin-left: 4px; }
.hint { text-align: center; color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.linkbtn { display: flex; align-items: center; gap: 8px; margin: 10px auto 0; min-height: 48px; padding: 0 14px; background: none; border: 0; border-radius: var(--radius-s); color: var(--text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; }
.linkbtn:hover { background: var(--surface-2); }
.linkbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.foot { text-align: center; font-size: 14px; color: var(--muted); margin: 16px 0 0; }

/* ---------- "who it is for" ---------- */
/* section tags: caps, tracked, with a short accent rule in front */
.sec-title { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: var(--fs-cap); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; line-height: 1.3; color: var(--muted); margin: 28px 0 12px; }
.sec-title::before { content: ""; flex: none; width: 14px; height: 2px; border-radius: 1px; background: var(--accent); }
.aud-chips { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.aud-chips::-webkit-scrollbar { display: none; }
.aud-chip {
  flex: none; scroll-snap-align: start; min-height: 52px; padding: 0 16px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); color: var(--text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: border-color 0.15s var(--ease);
}
.aud-chip:hover { border-color: var(--line-strong); }
.aud-grid { display: none; }
.aud-list { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 8px; }
.aud-list li { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); scroll-margin: 16px; transition: border-color 0.2s var(--ease); }
.aud-list li.on { border-color: var(--accent); }
.aud-list b { display: block; font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.01em; }
.aud-list p { margin: 3px 0 0; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* ---------- footer ---------- */
.foot-nav { margin: 28px 0 0; padding: 18px 0 4px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 2px; margin-left: -10px; }
.foot-links a { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: var(--radius-s); }
.foot-links a:hover { background: var(--surface-2); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.foot-legal a { color: var(--muted); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot-legal a:hover { color: var(--text); text-decoration: underline; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius); background: var(--surface-2); gap: 2px; }
.seg button { min-width: 44px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 500 12px/1 var(--mono); letter-spacing: 0.06em; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.install-hint { display: flex; align-items: center; gap: 10px; width: 100%; margin: 14px 0 0; min-height: 52px; padding: 0 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
.install-hint svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }

/* ---------- steps: languages -> who -> talk ---------- */
.steps { list-style: none; display: flex; padding: 0; margin: 6px 0 8px; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; position: relative; }
.steps li::before { content: ""; position: absolute; top: 14px; right: 50%; width: 100%; height: 1px; background: var(--line-strong); }
.steps li:first-child::before { display: none; }
.steps li.on::before, .steps li.cur::before { background: var(--text); }
.steps li span { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 12px; font-family: var(--mono); }
.steps li.on span { background: var(--text); border-color: var(--text); color: var(--bg); }
.steps li.cur span { border-color: var(--accent); color: var(--accent); }
.steps li.on, .steps li.cur { color: var(--text); }
.steps li em { font-style: normal; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: var(--fs-m); margin: 18px 0 2px; }
.step-title .num { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; font-family: var(--mono); letter-spacing: 0; }
.swap-sep { display: flex; justify-content: center; color: var(--muted); margin: 10px 0 -6px; }
.swap-sep svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- waiting for the guest ---------- */
.pulse { position: relative; width: 132px; height: 132px; margin: 18px auto 6px; }
.pulse span, .pulse i { position: absolute; inset: 34px; border-radius: 50%; }
.pulse span { background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.pulse span svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pulse i { border: 1px solid var(--accent); opacity: 0.5; animation: ring 2.4s var(--ease) infinite; }
.pulse i + i { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2); opacity: 0; } }
.wait-title { font-size: var(--fs-l); margin: 6px 0 4px; }
.invite .inv-text { font-size: 16px; margin: 6px 0 2px; line-height: 1.4; }
.gate-msg { font-size: 18px; line-height: 1.45; margin: 8px auto; max-width: 32ch; }
.done-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.done-ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.done-ico.warn { background: var(--danger-soft); color: var(--danger); }
.done-ico.brand { background: var(--tile); color: #fff; }

/* ---------- sheets ("how it works", paywall, sign in), toast ---------- */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-back { position: absolute; inset: 0; background: var(--scrim); animation: fade 0.2s var(--ease); }
.sheet-body {
  position: relative; width: 100%; max-width: 480px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); color: var(--text); border-radius: 16px 16px 0 0; border: 1px solid var(--line); border-bottom: 0;
  padding: 10px 20px calc(18px + max(env(safe-area-inset-bottom), var(--tg-bottom, 0px)));
  animation: up 0.2s var(--ease);
  box-shadow: var(--shadow);
}
.grabber { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto 10px; }
.sheet-body h2 { margin: 6px 0 6px; font-size: var(--fs-xl); letter-spacing: var(--tr-head); padding-right: 36px; }
.sheet-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.sheet-x:hover { background: var(--surface-2); color: var(--text); }
.sheet-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.how { list-style: none; padding: 0; margin: 6px 0 12px; counter-reset: how; }
.how li { display: flex; gap: 14px; align-items: flex-start; margin: 14px 0; }
.how li span { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); font-weight: 500; font-size: 12px; font-family: var(--mono); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.how p { margin: 3px 0 0; font-size: 16px; line-height: 1.45; }
.demo { margin: 6px 0 14px; }
.demo-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.demo-tabs button { min-height: 40px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.demo-tabs button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.demo video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 60vh; object-fit: cover; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
/* demo strip of the Mini App home: 9:16 cards in a horizontal strip, the playing one grows */
.demos .sec-title { margin: 22px 0 10px; }
.demo-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; align-items: flex-start; }
.demo-row::-webkit-scrollbar { display: none; }
.demo-card {
  position: relative; flex: none; width: 128px; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); transition: width 0.25s var(--ease), border-color 0.15s var(--ease);
}
.demo-card.playing { width: 208px; border-color: var(--accent); }
.demo-card video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--surface-2); }
.demo-play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: linear-gradient(180deg, rgba(14, 15, 19, 0) 45%, rgba(14, 15, 19, 0.78) 100%); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.demo-play svg { width: 44px; height: 44px; padding: 12px 10px 12px 14px; border-radius: 50%; background: var(--accent); color: var(--accent-text); fill: currentColor; stroke: none; box-shadow: 0 6px 18px -6px rgba(209, 20, 90, 0.7); transition: transform 0.15s var(--ease); }
.demo-play:active svg { transform: scale(0.94); }
.demo-cap { position: absolute; left: 10px; right: 10px; bottom: 9px; color: #fff; font-size: var(--fs-s); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); pointer-events: none; transition: opacity 0.2s var(--ease); }
.demo-card.playing .demo-cap { opacity: 0; }
.demo-snd { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(14, 15, 19, 0.62); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.demo-snd[aria-pressed="true"] { background: var(--accent); color: var(--accent-text); }
.demo-snd svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(24px); opacity: 0.6; } to { transform: none; opacity: 1; } }
.toast {
  position: fixed; left: 50%; bottom: calc(24px + max(env(safe-area-inset-bottom), var(--tg-bottom, 0px))); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: var(--radius); font-size: 15px; z-index: 60;
  max-width: calc(100vw - 32px); word-break: break-word; text-align: center; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.toast[hidden] { display: none; }
.toast-act { flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
/* free-try tag on a mode card */
.trial-tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent); border: 1px solid currentColor; border-radius: 6px; padding: 2px 7px; }
.bigcard .trial-tag:empty { display: none; }
/* calls group: "call by link" and "call an ordinary number" in one card */
.mode-group { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.mode-group > .bigcard { border: 0; border-radius: 0; background: transparent; }
.subcard { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px 0 74px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.subcard:hover { background: var(--surface-2); }
.subcard svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
.subcard .sc-txt { flex: 1; min-width: 0; }
.subcard.soon { color: var(--muted); }
.trial-tag.approx { color: var(--muted); border: 0; padding: 0; font-weight: 500; font-size: 12.5px; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.sc-note { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 1px; }
.sc-note:empty { display: none; }
.subcard .sc-txt { padding: 8px 0; }
.biz { margin: 20px 0 0; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.biz > b { display: block; font-size: 16px; font-weight: 600; }
.biz .btn { margin-bottom: 0; }
.biz-form textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 12px 14px; resize: vertical; }
input.plain { text-transform: none !important; letter-spacing: 0 !important; font-family: var(--font) !important; font-size: 17px !important; }
.bigcard.choice { min-height: 104px; align-items: flex-start; }
.bigcard.choice .txt > span { font-size: 14px; }
.pw-enough { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.pw-enough b { display: block; font-size: var(--fs-cap); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; line-height: 1.3; color: var(--muted); margin-bottom: 8px; }
.pw-enough ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 4px; }
.pw-enough li { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); }
.pw-enough li span:last-child { font-family: var(--mono); font-weight: 500; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.pw-hours { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: var(--text); }
@media (min-width: 960px) {
  html:not(.in-tg) body.landing .subcard { padding-left: 20px; }
  html:not(.in-tg) body.landing .mode-group > .bigcard { min-height: 144px; }
}
/* live token counter (calls, near, tour, message) */
.tok-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }
.tok-live .ring { width: 16px; height: 16px; }
.tok-live .ring circle { fill: none; stroke-width: 2.5; }
.tok-live .ring .bg { stroke: var(--surface-2); }
.tok-live .ring .fg { stroke: var(--accent); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 0.4s linear; }
.tok-live b { color: var(--text); font-weight: 500; }
.tok-explain { text-align: center; font-size: 12px; color: var(--muted); margin: 4px 0 0; }

/* ---------- paywall ---------- */
.pw { display: flex; flex-direction: column; }
.pw-head { padding: 4px 0 2px; }
.pw-head h2 { font-size: var(--fs-2xl); line-height: 1.15; margin: 4px 0 8px; letter-spacing: var(--tr-display); padding-right: 36px; }
.pw-head p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.45; }
/* /pricing: the page title is a tag, the paywall headline below it is the real headline */
body[data-page="pricing"] h1 { font: 600 var(--fs-cap)/1.3 var(--font); letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--muted); margin: 4px 0 2px; }
.pw-plan {
  display: block; width: 100%; text-align: left; margin: 16px 0 0; padding: 16px; border-radius: var(--radius);
  border: 1.5px solid var(--accent); background: var(--card); color: var(--text); font: inherit; cursor: pointer;
}
.pw-plan.off { border: 1px solid var(--line); padding: 16.5px; }
.pw-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pw-plan-top b { font-size: var(--fs-m); font-weight: 600; letter-spacing: -0.01em; }
.pw-price { font-family: var(--display); font-variant-numeric: tabular-nums lining-nums; font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.04em; white-space: nowrap; line-height: 1.1; }
.pw-price small { font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.pw-plan-line { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.pw-terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 0; }
.pw-term {
  min-height: 72px; padding: 8px 6px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center;
}
.pw-term b { font-family: var(--display); font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.02em; }
.pw-term .num { font-size: 12.5px; color: var(--muted); }
.pw-term em { font-style: normal; font-size: 12px; color: var(--ok); font-weight: 600; }
.pw-term[aria-pressed="true"] { border: 1.5px solid var(--accent); padding: 7.5px 5.5px; }
.pw-sub-label { font-size: var(--fs-cap); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; line-height: 1.3; color: var(--muted); margin: 20px 0 0; }
.pw-once { display: block; margin: 8px auto 0; min-height: 44px; padding: 0 12px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: var(--radius-s); }
.pw-once[aria-pressed="true"] { color: var(--accent); }
.pw-pay { margin-top: 16px; }
.pw-via { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 2px 0 0; text-align: center; }
.pw-via svg { width: 14px; height: 14px; fill: currentColor; }
.pw-alt { display: block; margin: 4px auto 0; min-height: 44px; background: none; border: 0; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pw-facts { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pw-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.4; }
.pw-facts svg { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--text); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.pw-status { text-align: center; color: var(--muted); font-size: 14px; min-height: 20px; margin: 6px 0 0; }
.pw-done { text-align: center; padding: 18px 0 4px; }
.pw-done h2 { margin: 4px 0 6px; }
.pw-done p { color: var(--muted); margin: 0 0 14px; }
.pw-topups { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; }
.pw-topups .pw-plan { margin: 0; }
.skeleton { height: 18px; border-radius: 6px; background: var(--surface-2); margin: 10px 0; animation: blink 1s ease-in-out infinite alternate; }

/* ---------- profile ---------- */
.pr-section { margin: 18px 0 0; }
.pr-section > h2 { font-family: var(--font); font-size: var(--fs-cap); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; line-height: 1.3; color: var(--muted); margin: 0 0 10px; }
.pr-plan { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pr-plan b { font-family: var(--display); font-size: var(--fs-l); font-weight: 600; letter-spacing: var(--tr-head); line-height: var(--lh-head); display: block; }
.pr-plan .muted { font-size: 14px; }
.pr-tag { flex: none; font-size: var(--fs-cap); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--ok-soft); color: var(--ok); }
.pr-tag.off { background: var(--surface-2); color: var(--muted); }
.pr-big { font-family: var(--display); font-variant-numeric: tabular-nums lining-nums; font-size: var(--fs-3xl); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; }
.pr-split { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.pr-split .num { color: var(--text); }
.pr-meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin: 12px 0 2px; }
.pr-meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.usage { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.usage li { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.usage .u-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.usage .u-bar i { display: block; height: 100%; background: var(--text); opacity: 0.8; border-radius: 4px; }
.usage .num { color: var(--muted); font-size: 13px; text-align: right; min-width: 3ch; }
.code-show { display: flex; align-items: center; gap: 8px; }
.code-show code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 15px; letter-spacing: 0.02em; padding: 14px 12px; border-radius: var(--radius-s); background: var(--bg); border: 1px solid var(--line); overflow-wrap: anywhere; }
.code-show .btn { width: auto; margin: 0; }
.hist { list-style: none; padding: 0; margin: 0; }
.hist li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.hist li:last-child { border-bottom: 0; }
.hist .muted { font-size: 13px; }
.hist .num { white-space: nowrap; }

/* ---------- legal ---------- */
.legal h1 { font-size: var(--fs-2xl); letter-spacing: var(--tr-display); margin: 6px 0 14px; }
.legal p { line-height: 1.6; color: var(--text); max-width: 68ch; }
.draft { display: inline-block; font-size: var(--fs-cap); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; color: var(--banner-text); background: var(--banner); padding: 4px 8px; border-radius: 6px; }

/* ---------- in-call ---------- */
.call-head { text-align: center; padding: 6px 0 2px; }
.mode-name { font-size: var(--fs-cap); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; line-height: 1.3; color: var(--muted); }
/* in-call status line ("Идёт разговор"): the display face, calm weight */
.status { font-family: var(--display); font-size: var(--fs-xl); font-weight: 500; letter-spacing: var(--tr-head); line-height: var(--lh-head); margin: 6px 0 4px; min-height: 1.3em; transition: color 0.2s var(--ease); cursor: default; -webkit-user-select: none; user-select: none; }
.status.live, .status[data-state="live"] { color: var(--ok); }
.status[data-state="wait"] { color: var(--muted); }
.status[data-state="peer"] { color: var(--accent); }
.status[data-state="me"] { color: var(--text); }
.sub { font-size: 14px; color: var(--muted); }
.langs { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.langs select { width: auto; min-height: 44px; padding: 6px 36px 6px 14px; font-size: 15px; border-radius: var(--radius-s); background-color: var(--card); }
.meter { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin: 12px auto 0; width: 56%; }
.meter > i { display: block; height: 100%; width: 0; background: var(--text); transition: width 80ms linear; }
.transcript {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  margin: 12px 0;
  padding: 4px 2px;
  min-height: 160px;
}
.empty { text-align: center; color: var(--muted); font-size: 15px; margin: 32px auto 0; max-width: 30ch; }
/* transcript: the translation large and calm (regular weight, open leading), the original small and muted above it */
.line { max-width: 86%; margin: 10px 0; padding: 11px 15px 12px; border-radius: var(--radius); }
.line.peer { background: var(--peer); border: 1px solid var(--line); border-top-left-radius: 4px; }
.line.me { background: var(--me); margin-left: auto; border-top-right-radius: 4px; text-align: right; }
.line .orig { font-size: var(--fs-s); line-height: 1.4; color: var(--muted); margin-bottom: 2px; }
.line .tr { font-size: var(--fs-l); font-weight: 400; line-height: 1.42; letter-spacing: -0.006em; }
.line.peer .orig { margin: 4px 0 0; }
.line.me .orig { font-size: var(--fs-m); line-height: 1.42; color: var(--text); margin-bottom: 2px; }
.line.me .tr { font-size: var(--fs-s); color: var(--muted); line-height: 1.4; letter-spacing: 0; }
.line.partial { opacity: 0.7; }
.controls { display: flex; gap: 28px; justify-content: center; align-items: flex-start; padding: 8px 0 2px; }
.round {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.round:active { transform: scale(0.96); }
.round svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.round.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.round.hang { width: 72px; height: 72px; background: var(--danger); border-color: var(--danger); color: var(--danger-text); margin-top: -4px; }
.round.hang svg { width: 32px; height: 32px; }
.ctl-label { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); text-align: center; margin-top: 7px; max-width: 92px; line-height: 1.25; }
.ctl { display: flex; flex-direction: column; align-items: center; }
.minutes-line, .token-line { display: flex; justify-content: center; gap: 10px; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 8px 0 0; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.token-line b { font-weight: 500; color: var(--text); }
/* original voice under the translation: small in-call toggle (own listening only) */
.orig-toggle { display: block; margin: 2px auto 0; min-height: 40px; padding: 0 12px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.orig-toggle[hidden] { display: none; }

/* ---------- tour: guide ---------- */
.qr-box { background: #fff; border-radius: var(--radius); padding: 12px; margin: 8px auto 4px; width: min(80vw, 300px); border: 1px solid var(--line); }
.qr-box canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.center-small { text-align: center; font-size: 14px; color: var(--muted); }
.short-link { text-align: center; font-family: var(--mono); font-size: 15px; font-weight: 600; word-break: break-all; margin: 4px 0 8px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 6px 0; }
.pill-row.left { justify-content: flex-start; }
.pill { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); }
.guide-bar { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin: 6px 0; }
.round.small { width: 52px; height: 52px; }
.round.small svg { width: 22px; height: 22px; }
.section-title { font-size: var(--fs-cap); font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: var(--tr-caps); line-height: 1.3; margin: 16px 0 6px; }
.list { overflow-y: auto; -webkit-overflow-scrolling: touch; max-height: 36vh; }
.q { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 6px 0; }
.q .tr { font-size: var(--fs-m); line-height: 1.42; }
.q .orig { font-size: var(--fs-s); color: var(--muted); }
.speech { font-size: 16px; color: var(--muted); margin: 4px 0; }
.partial { opacity: 0.7; }
.btn.link { background: transparent; color: var(--danger); border: 0; min-height: 52px; font-size: 16px; }
.btn.link:hover:not(:disabled), .btn.link:active:not(:disabled) { background: var(--danger-soft); }

/* ---------- tour: listener ---------- */
.big-transcript { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; min-height: 200px; }
.big-transcript .seg { font-size: 23px; font-weight: 400; line-height: 1.4; margin: 0 0 16px; letter-spacing: -0.012em; }
.big-transcript .seg.question { font-size: 19px; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 10px; }
.big-transcript .seg .sub { display: block; font-size: 14px; color: var(--muted); }
.btn.quiet { background: transparent; color: var(--muted); border: 1px dashed var(--line-strong); font-size: 15px; min-height: 52px; font-weight: 500; }
.btn.quiet.active { color: var(--ok); border-color: var(--ok); border-style: solid; }

/* ---------- share buttons (/call) ---------- */
.btn.share { background: var(--card); color: var(--text); border-color: var(--line-strong); }
.btn.share:hover:not(:disabled) { background: var(--surface-2); }
/* the market's main messenger (call.js): WhatsApp internationally, Telegram on the ru market */
.btn.share.lead { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.btn.share.lead:hover:not(:disabled) { background: var(--accent-hover); }

/* ---------- interpreter in an ordinary call (/interp) ---------- */
.big-number { display: block; font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); text-decoration: none; margin: 6px 0 10px; }
.step { font-size: 17px; margin: 8px 0; }
.interp-off { color: var(--danger); margin: 8px 0 0; }
label.check { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--text); margin: 14px 0 4px; min-height: 44px; cursor: pointer; }
label.check input { width: 22px; height: 22px; flex: none; accent-color: var(--accent); }

/* ---------- near: one phone between two people ---------- */
.near { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); z-index: 5; }
.near .half { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px max(16px, env(safe-area-inset-left)); }
.near .half.peer { background: var(--surface-2); color: var(--text); padding-top: max(16px, env(safe-area-inset-top), var(--tg-top, 0px)); }
.near .half.me { background: var(--bg); color: var(--text); padding-bottom: max(16px, env(safe-area-inset-bottom), var(--tg-bottom, 0px)); }
.near .half.flip { transform: rotate(180deg); }
.near-lines { display: flex; flex-direction: column; gap: 10px; max-width: 720px; width: 100%; margin: 0 auto; }
.near-line .tr { font-size: 29px; line-height: 1.28; font-weight: 500; letter-spacing: -0.018em; }
.near-line .orig { font-size: var(--fs-s); opacity: 0.6; margin-top: 4px; line-height: 1.4; }
.near-line { opacity: 0.5; }
.near-line:last-child { opacity: 1; }
.near-line.partial .tr { opacity: 0.8; }
.near-empty { font-size: 18px; opacity: 0.6; text-align: center; }
.near-mid { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.near-mid .banner { margin: 0; padding: 4px 10px; }
.near-status { font-size: 14px; color: var(--ok); font-weight: 600; cursor: default; }
.near-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 7px; vertical-align: 1px; }
.btn.near-small { width: auto; min-height: 44px; font-size: 15px; padding: 0 16px; margin: 0; }
.near-resume { position: fixed; left: 16px; right: 16px; top: 45%; width: auto; z-index: 6; }
.near-tok { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; font-size: 12px; color: var(--muted); }

/* pages loaded into the Telegram Mini App: the subscription is already known there */
html.in-tg #codeSaved { display: none !important; }

/* boot watchdog (inline script of every page): the modules did not start */
.boot-fail {
  position: fixed; top: max(12px, env(safe-area-inset-top), var(--tg-top, 0px)); left: 12px; right: 12px; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg); color: var(--danger); border: 1px solid var(--danger); border-radius: var(--radius); padding: 8px 8px 8px 14px; font-size: 16px;
  box-shadow: var(--shadow);
}

/* free trial on the home screens */
.code-toggle { display: block; margin: 2px auto 0; min-height: 48px; padding: 0 12px; background: none; border: 0; color: var(--text); font: inherit; font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; cursor: pointer; border-radius: var(--radius-s); }
.code-toggle:hover { text-decoration-color: currentColor; }

/* ---------- "Надиктовать сообщение" ---------- */
.msg-head { text-align: center; padding: 4px 0 2px; }
.msg-head h1 { margin: 6px 0 8px; }
.msg-head .chip { margin: 0 auto; }
.msg-langs { display: flex; align-items: flex-end; gap: 8px; padding: 12px; }
.msg-lang { flex: 1; min-width: 0; }
.msg-lang label { margin: 0 0 6px; }
.msg-lang select { min-height: 52px; padding: 10px 34px 10px 12px; }
.msg-swap { flex: none; width: 44px; height: 52px; border: 0; border-radius: var(--radius-s); background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.msg-swap:hover { background: var(--surface-2); color: var(--text); }
.msg-swap svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.msg-rec { display: flex; flex-direction: column; align-items: center; padding: 18px 0 8px; }
.mic-btn {
  position: relative; width: 128px; height: 128px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease);
}
.mic-btn:hover:not(:disabled) { background: var(--accent-hover); }
.mic-btn:active:not(:disabled) { transform: scale(0.97); background: var(--accent-pressed); }
.mic-btn:disabled { opacity: 0.75; cursor: default; }
.mic-btn[data-state="rec"] { background: var(--danger); color: var(--danger-text); }
.mic-btn svg { position: relative; z-index: 1; width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mic-btn #stopIco { fill: currentColor; stroke: none; }
.mic-ring { position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--danger); opacity: 0; transition: transform 90ms linear, opacity 0.2s var(--ease); pointer-events: none; }
.mic-btn[data-state="rec"] .mic-ring { opacity: 0.5; }
.mic-spin { position: absolute; inset: 34px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, 0.3); border-top-color: currentColor; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.msg-timer { font-family: var(--mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-top: 14px; }
.msg-status { color: var(--muted); font-size: 16px; margin-top: 8px; text-align: center; min-height: 1.4em; }
.msg-live { padding: 12px 14px; }
.msg-live-text { font-size: 17px; line-height: 1.4; margin-top: 4px; max-height: 30vh; overflow-y: auto; }
.msg-result { padding: 14px; }
.msg-result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.style-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.style-chip { min-height: 44px; padding: 0 14px; border-radius: var(--radius-s); border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; cursor: pointer; }
.style-chip.on { border-color: var(--accent); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 0.5px var(--accent); }
.style-chip:disabled { opacity: 0.6; cursor: default; }
.msg-result textarea {
  width: 100%; min-height: 140px; resize: vertical; font: inherit; font-size: 18px; line-height: 1.45; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 12px 14px;
}
.msg-hint { margin: 6px 2px 4px; }
.msg-said { margin: 8px 0 6px; }
.msg-said summary { cursor: pointer; color: var(--muted); font-size: 15px; padding: 10px 0; }
.msg-said div { font-size: 15px; line-height: 1.45; white-space: pre-wrap; padding: 4px 0 2px; }
.msg-code { margin: 8px 0; }
.msg-history { margin: 18px 0 4px; }
.msg-hist-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: var(--fs-cap); font-weight: 600; letter-spacing: var(--tr-caps); text-transform: uppercase; }
.msg-hist-head .linkbtn { margin: 0; min-height: 44px; font-size: 14px; text-transform: none; letter-spacing: 0; }
.msg-hist { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.msg-hist button { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font: inherit; color: var(--text); cursor: pointer; min-height: 52px; }
.msg-hist-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; line-height: 1.35; white-space: pre-wrap; }
.msg-text { font-size: 18px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-s); padding: 12px 14px; cursor: copy; -webkit-user-select: text; user-select: text; }
.msg-text:active { background: var(--surface-2); }
.btn.copy-main { margin: 10px 0 2px; min-height: 60px; font-size: 18px; }
.btn.copy-main.copied { background: var(--ok); color: #fff; }
.msg-edit { margin: 2px auto 4px; min-height: 44px; font-size: 15px; }
.copy-buf { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; }
.btn.tg-try { margin: 12px 0 0; }

/* ---------- desktop landing (/) ---------- */
.desk { display: none !important; }
@media (min-width: 960px) {
  html:not(.in-tg) body.landing .wrap { max-width: 1120px; padding-left: 40px; padding-right: 40px; }
  html:not(.in-tg) body.landing .desk:not([hidden]) { display: block !important; }
  html:not(.in-tg) body.landing .mob { display: none !important; }
  html:not(.in-tg) body.landing .home-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: start; margin-top: 48px; }
  html:not(.in-tg) body.landing .hero-col { position: sticky; top: 32px; }
  html:not(.in-tg) body.landing .hero-title { font-size: var(--fs-4xl); line-height: 1.06; letter-spacing: -0.045em; font-weight: 600; margin: 20px 0 18px; text-wrap: balance; }
  html:not(.in-tg) body.landing .hero-lead { font-size: var(--fs-l); line-height: 1.5; color: var(--muted); margin: 0 0 24px; max-width: 38ch; text-wrap: pretty; }
  html:not(.in-tg) body.landing .descriptor.desk { margin-top: 8px; }
  html:not(.in-tg) body.landing .brand .wordmark { font-size: 20px; }
  html:not(.in-tg) body.landing .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
  html:not(.in-tg) body.landing .bigcard { flex-direction: column; align-items: flex-start; min-height: 196px; padding: 20px; gap: 18px; }
  html:not(.in-tg) body.landing .bigcard .txt > b { font-family: var(--display); font-size: var(--fs-m); letter-spacing: -0.02em; line-height: 1.2; }
  html:not(.in-tg) body.landing .bigcard .txt > span { font-size: 15px; margin-top: 6px; }
  html:not(.in-tg) body.landing .bigcard .chev, html:not(.in-tg) body.landing .bigcard .lock { position: absolute; top: 20px; right: 18px; }
  html:not(.in-tg) body.landing .modes .sec-title { margin-top: 0; }
  html:not(.in-tg) body.landing .aud-chips { display: none; }
  html:not(.in-tg) body.landing .aud-grid { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
  html:not(.in-tg) body.landing .aud-grid li { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
  html:not(.in-tg) body.landing .aud-grid b { display: block; font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px; }
  html:not(.in-tg) body.landing .aud-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
  html:not(.in-tg) body.landing .audience { margin-top: 40px; }
  html:not(.in-tg) body.landing .teaser:not([hidden]) { display: flex !important; align-items: center; justify-content: space-between; gap: 24px; margin: 40px 0 0; padding: 28px 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
  html:not(.in-tg) body.landing .teaser[hidden] { display: none !important; }
  html:not(.in-tg) body.landing .teaser h3 { margin: 0 0 8px; font-size: var(--fs-xl); letter-spacing: var(--tr-head); }
  html:not(.in-tg) body.landing .teaser p { margin: 0; color: var(--muted); }
  html:not(.in-tg) body.landing .teaser .pw-price { font-size: 30px; }
  html:not(.in-tg) body.landing .teaser .btn { width: auto; padding: 0 28px; margin: 0; }
  html:not(.in-tg) body.landing .foot-nav { flex-direction: row; justify-content: space-between; align-items: center; margin-top: 48px; }
  html:not(.in-tg) body.landing .topbar { margin-top: 8px; }
  .sheet { align-items: center; }
  .sheet-body { border-radius: 16px; border-bottom: 1px solid var(--line); max-height: 86vh; padding-bottom: 22px; }
  .sheet-body .grabber { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
/* pages loaded into the Mini App: Telegram's own back button replaces the page header */
html.in-tg .page-head { display: none; }
.trial-tag { font-style: normal; }
/* phone: the hero carries the logo, the top bar only the profile button */
.topbar .brand { visibility: hidden; }
@media (min-width: 960px) { html:not(.in-tg) body.landing .topbar .brand { visibility: visible; } }
body.landing .topbar { margin-bottom: -40px; }
@media (min-width: 960px) { html:not(.in-tg) body.landing .topbar { margin-bottom: 4px; } }
.pr-plan { flex-direction: column; align-items: flex-start; gap: 10px; }
.pr-plan .muted { display: block; margin-top: 2px; }
.usage li { grid-template-columns: 96px 1fr 6ch; }
.consent p { margin: 6px 0 2px; font-size: 16px; line-height: 1.45; }
.consent a { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 6px; color: var(--text); font-size: 14px; }
.token-line { flex-direction: column; align-items: center; gap: 2px; }
.near-mid .token-line { padding: 0; }
@media (min-width: 960px) {
  html:not(.in-tg) body.landing #teaser:not([hidden]) { display: grid !important; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
  html:not(.in-tg) body.landing #teaser .pw-price { font-size: 26px; }
}
