/* TgPay Crypto promo — the site's own kit (v1, 2026-11-17).
 * Colors are the Mini App's light tokens (@tgpay/ui styles/tokens.css);
 * type, shape, motion and layout are the promo's own. Source of the look:
 * design/promo-kit/ + the Claude Design canvas (design/promo-kit/README.md).
 * Fonts are self-hosted: Geologica 700–800 (display), Inter (UI/body),
 * JetBrains Mono 400–500 (eyebrows, numbers, code). */

/* ---------- fonts ---------- */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-ext.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: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.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: "Geologica";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/geologica-latin-ext.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: "Geologica";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("../fonts/geologica-latin.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: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.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: 400 500;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.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;
}

/* ---------- tokens (design/promo-kit/tokens.css) ---------- */
:root {
  --p-bg: #f1f1f3;
  --p-surface: #ffffff;
  --p-surface-subtle: #f7f7f8;
  --p-sunken: #e9e9ec;
  --p-inverse: #16161a;
  --p-inverse-deep: #0c0c0d;
  --p-ink: #0c0c0d;
  --p-text: #3a3a40;
  --p-muted: #63636a;
  --p-subtle: #9c9ca3;
  --p-inverse-fg: #ffffff;
  --p-inverse-muted: #a8a8b3;
  --p-border: #e0e0e3;
  --p-border-strong: #cacacf;
  --p-inverse-border: #2c2c33;
  --p-accent: #1558c8;
  --p-accent-hover: #0f47a8;
  --p-accent-soft: #e6edfd;
  --p-accent-soft-border: #d3e0fb;
  --p-accent-ink: #123f92;
  --p-success: #0f8a4d;
  --p-success-soft: #dcf3e5;
  --p-success-ink: #0b6238;

  --p-font-display:
    "Geologica", "Vazirmatn", "PingFang SC", "Noto Sans SC", system-ui,
    sans-serif;
  --p-font-ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --p-font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --p-h1: clamp(48px, 6.4vw, 96px);
  --p-h2: clamp(40px, 5vw, 72px);

  --p-r-xs: 8px;
  --p-r-sm: 12px;
  --p-r-md: 14px;
  --p-r-lg: 22px;
  --p-r-xl: 28px;
  --p-r-2xl: 36px;
  --p-r-phone: 46px;
  --p-r-pill: 999px;

  --p-container: 1240px;
  --p-gutter: 32px;
  --p-header-h: 72px;

  --p-shadow-phone: 0 30px 60px -20px rgba(18, 63, 146, 0.35);
  --p-shadow-toast: 0 12px 30px -12px rgba(12, 12, 13, 0.25);
  --p-shadow-pop: 0 16px 40px -12px rgba(12, 12, 13, 0.22);
  --p-ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --p-ease-snap: cubic-bezier(0.6, 0, 0.2, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
  /* Android Chrome flashed a turquoise box on every tapped FAQ row / link;
     the controls show their own pressed state, keyboard focus keeps
     :focus-visible */
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  background: var(--p-bg);
  color: var(--p-ink);
  font: 400 16px/1.55 var(--p-font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--p-accent);
  outline-offset: 2px;
}
.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;
}
@view-transition {
  navigation: auto;
}
/* the head boot script sets it for a non-RU locale; site.js clears it */
html[data-l10n-pending] body {
  visibility: hidden;
}

.wrap {
  width: 100%;
  max-width: var(--p-container);
  margin-inline: auto;
  padding-inline: var(--p-gutter);
}
.display {
  font-family: var(--p-font-display);
  letter-spacing: -0.03em;
  /* 0.95 let a descender touch the next line's ascender («Buying / four») */
  line-height: 1.05;
  font-weight: 800;
  text-wrap: balance;
}
.mono {
  font-family: var(--p-font-mono);
}
.eyebrow {
  font: 400 13px/1.3 var(--p-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--p-accent-ink);
}
.muted {
  color: var(--p-muted);
}
.h1 {
  font-size: var(--p-h1);
}
.h2 {
  font-size: var(--p-h2);
}
.tnum {
  font-variant-numeric: tabular-nums;
}
/* Latin runs inside RTL copy stay readable (amounts, tickers) */
[dir="rtl"] .mono,
[dir="rtl"] .ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 16px 26px;
  border: 0;
  border-radius: var(--p-r-md);
  font: 600 16px/1.2 var(--p-font-ui);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s,
    border-color 0.18s,
    color 0.18s;
}
.btn .arr {
  transition: transform 0.2s ease;
}
[dir="rtl"] .btn .arr {
  transform: scaleX(-1);
}
.btn-accent {
  background: var(--p-accent);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--p-accent);
}
.btn-ghost {
  border: 1.5px solid var(--p-border-strong);
  color: var(--p-ink);
  background: transparent;
}
.btn-ghost-dark {
  border: 1.5px solid var(--p-inverse-border);
  color: #fff;
  background: transparent;
}
@media (hover: hover) {
  .btn-accent:hover {
    background: var(--p-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--p-accent-soft);
  }
  .btn-white:hover {
    color: var(--p-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--p-accent-hover);
  }
  .btn-ghost:hover {
    border-color: var(--p-ink);
  }
  .btn-ghost-dark:hover {
    border-color: #fff;
  }
  .btn:hover .arr {
    transform: translateX(4px);
  }
  [dir="rtl"] .btn:hover .arr {
    transform: scaleX(-1) translateX(4px);
  }
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  color: var(--p-accent);
}
@media (hover: hover) {
  .link-arrow:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--p-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--p-border);
}
.site-header .bar {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--p-header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  color: var(--p-ink);
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand-word {
  font: 700 21px/1 var(--p-font-ui);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.tgp-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}
.tgp-nav-links a {
  padding: 10px 12px;
  border-radius: var(--p-r-pill);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: var(--p-ink);
  transition:
    color 0.18s,
    background-color 0.18s;
}
.tgp-nav-links a[aria-current="page"] {
  color: var(--p-accent);
}
@media (hover: hover) {
  .tgp-nav-links a:hover {
    color: var(--p-accent);
    background: var(--p-surface);
  }
}
/* site.js fitNav(): the measured tiers for long locales */
nav[data-nav-fit="tight"] .tgp-nav-links a {
  padding-inline: 8px;
  font-size: 14px;
}
nav[data-nav-fit="hidden"] .tgp-nav-links {
  display: none;
}
.bar-end {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-inline-start: auto;
}
.header-cta {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: var(--p-r-sm);
  font-size: 15px;
  white-space: nowrap;
}
.header-cta svg {
  flex: none;
}

/* the page row under the header: tablets, phones, and a desktop whose
   locale did not fit the inline links (fitNav → hidden) */
.navscroll {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 0 var(--p-gutter) 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.navscroll::-webkit-scrollbar {
  display: none;
}
.navscroll a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--p-border-strong);
  border-radius: var(--p-r-pill);
  font: 500 14px/1 var(--p-font-ui);
  white-space: nowrap;
  text-decoration: none;
  color: var(--p-ink);
}
.navscroll a[aria-current="page"] {
  background: var(--p-accent);
  border-color: var(--p-accent);
  color: #fff;
}
.site-header:has(nav[data-nav-fit="hidden"]) .navscroll {
  display: flex;
}

/* ---------- language menu (site.js initMenu) ---------- */
.lang-menu {
  position: relative;
}
.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--p-r-sm);
  background: transparent;
  font: 600 14px/1 var(--p-font-mono);
  color: var(--p-muted);
  cursor: pointer;
  transition: color 0.18s;
}
.lang-btn > svg {
  transition: transform 0.18s;
}
.lang-btn[aria-expanded="true"] > svg {
  transform: rotate(-90deg) !important;
}
@media (hover: hover) {
  .lang-btn:hover {
    color: var(--p-ink);
  }
}
.lang-pop {
  position: absolute;
  inset-inline-end: 0;
  top: 50px;
  z-index: 100;
  min-width: 196px;
  padding: 6px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-md);
  background: var(--p-surface);
  box-shadow: var(--p-shadow-pop);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.18s var(--p-ease-out),
    transform 0.18s var(--p-ease-out);
}
.lang-pop[data-open] {
  opacity: 1;
  transform: none;
}
.lang-pop[hidden] {
  display: none;
}
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-list > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: 500 15px/22px var(--p-font-ui);
  color: var(--p-ink);
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
}
.lang-list > button[aria-checked="true"] {
  font-weight: 700;
}
.lang-list > button:active {
  background: var(--p-sunken);
}
.lang-list > button:focus-visible {
  outline-offset: -2px;
}
@media (hover: hover) {
  .lang-list > button:hover {
    background: var(--p-surface-subtle);
  }
}
.lang-check {
  flex: none;
  color: var(--p-accent);
  visibility: hidden;
}
.lang-list > button[aria-checked="true"] .lang-check {
  visibility: visible;
}
.lang-head {
  display: none;
}
.lang-pop.is-sheet {
  position: fixed;
  inset: auto 0 0;
  top: auto;
  z-index: 101;
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: none;
  opacity: 1;
  transform: translateY(100%);
  transition: transform 0.28s var(--p-ease-out);
}
.lang-pop.is-sheet[data-open] {
  transform: none;
}
.lang-pop.is-sheet .lang-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--p-border);
}
.lang-title {
  margin: 0;
  overflow: hidden;
  font: 700 17px/24px var(--p-font-ui);
  letter-spacing: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lang-close {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-inline-end: -8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--p-muted);
  cursor: pointer;
}
.lang-pop.is-sheet .lang-list {
  min-height: 0;
  overflow-y: auto;
  padding: 12px 4px calc(24px + env(safe-area-inset-bottom, 0px));
}
.lang-pop.is-sheet .lang-list > button {
  min-height: 52px;
}
.lang-scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.18s;
}
.lang-scrim[data-open] {
  opacity: 1;
}

/* ---------- sections ---------- */
.sec {
  padding-block: 120px 104px;
}
.sec-tight {
  padding-block: 0 120px;
}
.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 56px;
}
.sec-head .h2 {
  max-width: 820px;
}
.sec-head > p {
  max-width: 360px;
}
.sec-lead {
  max-width: 560px;
  font-size: 18px;
}
.stack-16 > * + * {
  margin-top: 16px;
}

/* ---------- hero ---------- */
.hero {
  padding-block: 80px 80px;
  overflow-x: clip; /* the tilted plate leans past the column */
}
/* the RU H1 opens with one long word («Криптокошелёк»): sized to the column */
.hero h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  overflow-wrap: break-word;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: center;
}
.hero-grid > * {
  min-width: 0;
}
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.dot-live {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-success);
}
.hero-lead {
  margin: 28px 0 36px;
  max-width: 560px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--p-muted);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.hero-note {
  margin-top: 40px;
  font: 400 13px/1.4 var(--p-font-mono);
  color: var(--p-muted);
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding-inline: 40px;
}
.hero-visual .tilt {
  position: absolute;
  inset: 40px 0 30px 70px;
  border-radius: 40px;
  background: var(--p-accent-soft);
  border: 1px solid var(--p-accent-soft-border);
  transform: rotate(4deg);
}

/* phone frame around a real app screenshot */
.phone {
  position: relative;
  flex: none;
  width: 320px;
  /* the height follows the frame (780×1688): a fixed 320/650 box cut the
     tab bar off the bottom of every screenshot (Роман 2026-11-17) */
  padding: 10px;
  border-radius: var(--p-r-phone);
  background: var(--p-inverse);
  box-shadow: var(--p-shadow-phone);
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1688;
  border-radius: 37px;
  object-fit: cover;
  object-position: top;
  background: var(--p-surface-subtle);
}
.phone-sm {
  width: 250px;
  padding: 8px;
  border-radius: 40px;
}
.phone-sm img {
  border-radius: 32px;
}

/* floating status toasts (decorative: aria-hidden) */
.toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 8px);
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  background: var(--p-surface);
  box-shadow: var(--p-shadow-toast);
}
.toast-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
}
.toast-sub {
  font: 400 12px/1.4 var(--p-font-mono);
  color: var(--p-muted);
}
.toast-l {
  inset-inline-start: -8px;
}
.toast-r {
  inset-inline-end: -8px;
}
.ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.ico-sm {
  width: 32px;
  height: 32px;
}
.ico-accent {
  background: var(--p-accent-soft);
  color: var(--p-accent);
}
.ico-success {
  background: var(--p-success-soft);
  color: var(--p-success-ink);
}
.ico-sunken {
  background: var(--p-sunken);
  color: var(--p-ink);
}
.ico-solid {
  background: var(--p-success);
  color: #fff;
}

/* ---------- coin ticker ---------- */
.ticker {
  overflow: hidden;
  padding: 22px 0;
  background: var(--p-inverse);
  color: #fff;
}
.ticker-track {
  display: flex;
  width: max-content;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 36px;
  font: 700 40px/1 var(--p-font-display);
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.ticker-item img {
  width: 44px;
  height: 44px;
}
[dir="rtl"] .ticker {
  direction: ltr;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  border-top: 2px solid var(--p-ink);
}
.steps > li {
  min-width: 0;
  padding: 32px;
  border-inline-end: 1px solid var(--p-border);
}
.steps > li:first-child {
  padding-inline-start: 0;
}
.steps > li:last-child {
  border-inline-end: 0;
}
.step-n {
  font: 400 14px/1 var(--p-font-mono);
  color: var(--p-accent);
}
.steps h3 {
  margin: 48px 0 14px;
  font-size: 32px;
  font-weight: 700;
}

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.bento > * {
  min-width: 0;
}
.b-2 {
  grid-column: span 2;
}
.b-4 {
  grid-column: span 4;
}
.b-6 {
  grid-column: span 6;
}
.tile {
  position: relative;
  border-radius: var(--p-r-xl);
  border: 1px solid var(--p-border);
  background: var(--p-surface);
  padding: 32px;
  transition:
    transform 0.25s var(--p-ease-out),
    border-color 0.25s;
}
@media (hover: hover) {
  .tile.lift:hover {
    transform: translateY(-4px);
    border-color: var(--p-accent);
  }
}
.tile-dark {
  background: var(--p-inverse);
  border-color: var(--p-inverse);
  color: #fff;
}
.tile-accent {
  background: var(--p-accent);
  border-color: var(--p-accent);
  color: #fff;
}
.tile-soft {
  background: var(--p-accent-soft);
  border-color: var(--p-accent-soft-border);
}
.tile-big {
  border-radius: 32px;
  padding: clamp(28px, 4vw, 56px);
}
.tile h3 {
  font-weight: 700;
}
.tile .eyebrow {
  font-size: 12px;
}
.tile-dark .eyebrow,
.tile-accent .eyebrow {
  color: var(--p-accent-soft);
}
.tile-dark .muted,
.on-dark-muted {
  color: var(--p-inverse-muted);
}
.tile-accent .muted {
  color: var(--p-accent-soft);
}
.tile-soft .muted {
  color: var(--p-accent-ink);
}

/* send by username */
.t-send {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  min-height: 340px;
  padding: 40px;
}
.t-send .copy {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}
.t-send h3 {
  font-size: 44px;
}
.t-send p {
  margin-top: 16px;
  max-width: 380px;
}
.mini-form {
  flex: 0 1 280px;
  align-self: center;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  color: var(--p-ink);
}
.mini-label {
  font: 400 11px/1.3 var(--p-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--p-muted);
}
.mini-value {
  margin: 6px 0 18px;
  font-size: 22px;
  font-weight: 600;
}
.caret {
  color: var(--p-accent);
}
.mini-amount {
  margin-top: 6px;
  font: 700 36px/1 var(--p-font-display);
  letter-spacing: -0.03em;
}
.mini-btn {
  display: grid;
  place-items: center;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 12px;
  border-radius: var(--p-r-sm);
  background: var(--p-accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.stars-widget .muted {
  color: var(--p-muted);
}

/* swap */
.t-swap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 340px;
}
.swap-pair {
  display: flex;
  align-items: center;
  gap: 12px;
}
.swap-window {
  height: 28px;
  overflow: hidden;
}
.swap-roll {
  font: 700 24px/28px var(--p-font-display);
}
.swap-spin {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--p-accent);
  color: #fff;
}
.t-swap h3 {
  font-size: 32px;
}
.t-swap p {
  margin-top: 12px;
  font-size: 15px;
}

/* stars */
.t-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  padding: 40px;
}
.t-stars .copy {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.t-stars h3 {
  font-size: 48px;
  font-weight: 800;
}
.t-stars .link-arrow {
  color: #fff;
}
.t-stars dl {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
}
.t-stars dt {
  font-weight: 600;
  margin-bottom: 4px;
}
.t-stars dd {
  margin: 0;
  font-size: 15px;
  color: var(--p-accent-soft);
}
.t-stars .also {
  font-size: 14px;
  color: var(--p-accent-soft);
}
.stars-widget {
  flex: 0 1 300px;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: var(--p-r-lg);
  background: #fff;
  color: var(--p-ink);
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--p-r-sm);
  background: var(--p-sunken);
}
.seg button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: 600 14px/1.2 var(--p-font-ui);
  color: var(--p-muted);
  cursor: pointer;
  transition:
    background-color 0.18s,
    color 0.18s;
}
.seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--p-ink);
  box-shadow: 0 1px 2px rgba(12, 12, 13, 0.12);
}
.sw-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
}
.sw-star {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--p-accent-soft);
  color: var(--p-accent);
}
.sw-big {
  font: 700 34px/1 var(--p-font-display);
  letter-spacing: -0.03em;
}
.sw-line {
  margin-top: 4px;
  font: 400 12px/1.4 var(--p-font-mono);
  color: var(--p-muted);
}
.sw-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--p-border);
  font-size: 14px;
}
.sw-total b {
  font-weight: 600;
  text-align: end;
}
.stars-widget .mini-btn {
  min-height: 48px;
  margin: 0;
}
/* both texts are in the markup (translated, crawlable); the mode shows one */
.stars-widget[data-mode="buy"] .m-sell,
.stars-widget[data-mode="sell"] .m-buy {
  display: none;
}

/* buy crypto with a card */
.t-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
}
.offers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  background: var(--p-surface-subtle);
}
.offers .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.offers .row b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.offer {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  color: var(--p-muted);
}
.offer b {
  font-weight: 600;
}
.offer-best {
  border: 2px solid var(--p-accent);
  color: var(--p-ink);
}
.t-card h3 {
  font-size: 28px;
}
.t-card p {
  margin-top: 10px;
  font-size: 14px;
}

/* the two wide feature panels (merchant API, subscriptions) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.split > * {
  min-width: 0;
}
.split h3 {
  margin-top: 16px;
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 800;
}
.split .lead {
  margin: 20px 0 36px;
  max-width: 520px;
  font-size: 17px;
}
.caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 28px;
}
.caps > * {
  min-width: 0;
}
.caps b {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.caps span {
  font-size: 14px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.api-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.api-flow {
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.code-win {
  overflow: hidden;
  border: 1px solid var(--p-inverse-border);
  border-radius: 20px;
  background: var(--p-inverse-deep);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--p-inverse-border);
}
.code-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--p-inverse-border);
}
.code-bar span {
  margin-inline-start: 8px;
  font: 400 12px/1 var(--p-font-mono);
  color: var(--p-inverse-muted);
}
.code-win pre {
  margin: 0;
  padding: 20px;
  overflow-x: auto;
  font: 400 13px/1.75 var(--p-font-mono);
  color: #fff;
  direction: ltr;
  text-align: left;
}
.c-dim {
  color: var(--p-inverse-muted);
}
.c-str {
  color: var(--p-accent-soft);
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--p-inverse-border);
  border-radius: 16px;
  background: var(--p-inverse-deep);
  font: 400 13px/1.5 var(--p-font-mono);
  min-width: 0;
}
.flow-row .ell {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--p-inverse-muted);
}
.flow-ok {
  color: var(--p-success);
  font-weight: 500;
}
.flow-light {
  border-color: transparent;
  background: #fff;
  color: var(--p-ink);
  font-family: var(--p-font-ui);
}
.flow-hook {
  display: block;
  border-color: var(--p-success);
}
.flow-hook .head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #fff;
}
.subs-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.subs-visual .phone-wrap {
  display: flex;
  justify-content: center;
}
.event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--p-accent-soft-border);
  border-radius: 16px;
  background: #fff;
}
.event > div {
  flex: 1;
  min-width: 0;
}

/* ---------- promotion ---------- */
.post-card {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--p-border);
  border-radius: 32px;
  background: #fff;
}
.post-card > .mini-label {
  margin-bottom: 20px;
}
.post {
  padding: 20px;
  border-radius: var(--p-r-lg);
  background: var(--p-surface-subtle);
}
.post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.post-head img {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.post-head b {
  display: block;
  font-weight: 600;
}
.post-head small {
  font-size: 13px;
  color: var(--p-muted);
}
.post > p {
  margin-bottom: 16px;
}
.check {
  padding: 16px;
  border: 1px solid var(--p-border);
  border-radius: 16px;
  background: #fff;
}
.check-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}
.check-head .display {
  font-size: 26px;
  font-weight: 700;
}
.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--p-sunken);
}
.bar-fill {
  width: 73%;
  height: 100%;
  border-radius: 4px;
  background: var(--p-accent);
}
.join {
  position: relative;
  height: 48px;
  margin-top: 14px;
}
.join > span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: var(--p-r-sm);
  font-weight: 600;
  text-align: center;
}
.join-a {
  background: var(--p-accent);
  color: #fff;
}
.join-b {
  background: var(--p-success-soft);
  color: var(--p-success-ink);
  opacity: 0;
}
.paid-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--p-inverse);
  color: #fff;
  opacity: 0;
}
.promo-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card {
  padding: 22px 24px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-lg);
  background: #fff;
  transition:
    transform 0.25s var(--p-ease-out),
    border-color 0.25s;
}
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
    border-color: var(--p-accent);
  }
}
.card h3 {
  font-size: 24px;
  font-weight: 700;
}
.card h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.card p {
  margin-top: 8px;
  font-size: 15px;
}
.card h4 + p {
  margin-top: 6px;
  font-size: 14px;
}
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cards-2 > * {
  min-width: 0;
}

/* ---------- FAQ (site.js initAccordion: button + the panel after it) ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
}
.faq-grid > * {
  min-width: 0;
}
.faq-list {
  border-top: 2px solid var(--p-ink);
}
.faq-item {
  border-bottom: 1px solid var(--p-border);
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 44px;
  padding: 26px 0;
  border: 0;
  background: none;
  font: 600 20px/1.3 var(--p-font-ui);
  color: var(--p-ink);
  text-align: start;
  cursor: pointer;
}
.faq-sign {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--p-border-strong);
  border-radius: 50%;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.faq-sign svg {
  transform: none !important;
}
.faq-sign .v {
  transition: opacity 0.2s;
}
.faq-q[aria-expanded="true"] .faq-sign {
  background: var(--p-accent);
  border-color: var(--p-accent);
  color: #fff;
}
.faq-q[aria-expanded="true"] .faq-sign .v {
  opacity: 0;
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--p-ease-out);
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  max-width: 640px;
  padding-bottom: 28px;
  color: var(--p-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding: clamp(36px, 6vw, 80px);
  border-radius: var(--p-r-2xl);
  background: var(--p-accent);
  color: #fff;
}
.cta-band > div {
  max-width: 760px;
}
.cta-band .display {
  font-size: clamp(48px, 7vw, 104px);
}
.cta-band p {
  margin-top: 24px;
  font-size: 19px;
  color: var(--p-accent-soft);
}
.cta-band .btn {
  padding: 22px 30px;
  font-size: 18px;
}

/* ---------- footer ---------- */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--p-border);
  font-size: 15px;
}
.foot {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.foot > * {
  min-width: 0;
}
.foot .brand img {
  width: 40px;
  height: 40px;
}
.foot .brand-word {
  font-size: 24px;
}
.foot-about {
  margin-top: 14px;
  max-width: 320px;
  color: var(--p-muted);
}
.foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.foot-col .mini-label {
  font-size: 12px;
  margin-bottom: 8px;
}
.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  text-decoration: none;
}
@media (hover: hover) {
  .foot-col a:hover {
    color: var(--p-accent);
  }
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  font-size: 12px;
  color: var(--p-muted);
}

/* ---------- motion ---------- */
@keyframes p-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes p-float {
  50% {
    transform: translateY(-10px);
  }
}
@keyframes p-feed {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  7%,
  86% {
    opacity: 1;
    transform: none;
  }
  96%,
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
@keyframes p-marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes p-blink {
  50% {
    opacity: 0.25;
  }
}
@keyframes p-fill {
  0% {
    width: 8%;
  }
  70%,
  100% {
    width: 73%;
  }
}
@keyframes p-roll {
  0%,
  40% {
    transform: translateY(0);
  }
  50%,
  90% {
    transform: translateY(-28px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes p-spin {
  0%,
  40% {
    transform: rotate(0);
  }
  50%,
  90% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes p-join-a {
  0%,
  35% {
    opacity: 1;
    transform: none;
  }
  42%,
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@keyframes p-join-b {
  0%,
  38% {
    opacity: 0;
    transform: translateY(8px);
  }
  45%,
  95% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
@keyframes p-paid {
  0%,
  48% {
    opacity: 0;
    transform: translateY(10px);
  }
  55%,
  92% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: p-rise 0.9s var(--p-ease-out) both;
  }
  .r2 {
    animation-delay: 0.08s;
  }
  .r3 {
    animation-delay: 0.16s;
  }
  .r4 {
    animation-delay: 0.24s;
  }
  .float {
    animation: p-float 6s ease-in-out infinite;
  }
  .feed {
    opacity: 0;
    animation: p-feed 9s var(--p-ease-out) infinite;
  }
  .f2 {
    animation-delay: 1.1s;
  }
  .f3 {
    animation-delay: 2.2s;
  }
  .blink {
    animation: p-blink 1.6s ease-in-out infinite;
  }
  .ticker-track {
    animation: p-marquee 38s linear infinite;
  }
  .bar-fill {
    animation: p-fill 6s var(--p-ease-snap) infinite;
  }
  .swap-roll {
    animation: p-roll 4s ease-in-out infinite;
  }
  .swap-spin,
  .spin {
    animation: p-spin 4s var(--p-ease-snap) infinite;
  }
  .join-a {
    animation: p-join-a 7s ease infinite;
  }
  .join-b {
    animation: p-join-b 7s ease infinite;
  }
  .paid-toast {
    animation: p-paid 7s ease infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .join-a {
    opacity: 0;
  }
  .join-b,
  .paid-toast {
    opacity: 1;
  }
}

/* ---------- ≤ 960px: tablets ---------- */
@media (max-width: 960px) {
  :root {
    --p-gutter: 16px;
  }
  .tgp-nav-links {
    display: none;
  }
  .navscroll {
    display: flex;
  }
  .hero-grid,
  .faq-grid,
  .split,
  .caps {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .caps {
    gap: 20px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps > li,
  .steps > li:first-child {
    padding: 24px 0;
    border-inline-end: 0;
    border-bottom: 1px solid var(--p-border);
  }
  .steps h3 {
    margin-top: 16px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .b-2,
  .b-4,
  .b-6 {
    grid-column: auto;
  }
  .foot {
    grid-template-columns: 1fr 1fr;
  }
  .toast-l {
    inset-inline-start: -4px;
  }
  .toast-r {
    inset-inline-end: -4px;
  }
}

/* ---------- ≤ 480px: phones (floor 360) ---------- */
@media (max-width: 480px) {
  :root {
    --p-header-h: 60px;
  }
  .site-header .bar {
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand-word {
    font-size: 17px;
  }
  .lang-btn {
    padding: 0 6px;
  }
  .header-cta {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
  }
  .header-cta svg {
    display: none;
  }
  .hero h1.display {
    font-size: min(44px, 10.4vw);
  }
  .sec {
    padding-block: 56px 64px;
  }
  .sec-tight {
    padding-bottom: 64px;
  }
  .hero {
    padding-block: 32px 64px;
  }
  .h1 {
    font-size: 44px;
  }
  .h2 {
    font-size: 36px;
  }
  .sec-head {
    margin-bottom: 32px;
  }
  .hero-lead {
    font-size: 18px;
  }
  .hero-cta .btn {
    flex: 1 1 100%;
  }
  .btn {
    padding: 16px 20px;
    font-size: 15px;
  }
  .hero-visual {
    padding-inline: 0;
  }
  .phone {
    zoom: 0.82;
  }
  .ticker {
    padding: 12px 0;
  }
  .ticker-item {
    gap: 10px;
    padding: 0 16px;
    font-size: 22px;
  }
  .ticker-item img {
    width: 26px;
    height: 26px;
  }
  .tile,
  .t-send,
  .t-stars,
  .t-card {
    min-height: 0;
    padding: 24px;
    border-radius: 24px;
  }
  .tile-big {
    border-radius: 24px;
  }
  .t-send h3,
  .t-stars h3 {
    font-size: 32px;
  }
  .t-swap h3,
  .t-card h3 {
    font-size: 26px;
  }
  .sw-big {
    font-size: 26px;
  }
  .mini-amount {
    font-size: 26px;
  }
  .check-head .display {
    font-size: 20px;
  }
  .split h3 {
    font-size: 32px;
  }
  .actions .btn {
    flex: 1 1 100%;
  }
  .code-win pre {
    font-size: 11.5px;
  }
  .cards-2 {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .faq-q {
    padding: 20px 0;
    font-size: 17px;
  }
  .cta-band {
    border-radius: 24px;
  }
  .cta-band .display {
    font-size: 44px;
  }
  .cta-band .btn {
    flex: 1 1 100%;
  }
  .foot {
    gap: 28px 16px;
  }
  .foot > :first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- ≤ 420px: the header CTA turns into the Telegram plane ---------- */
@media (max-width: 420px) {
  .header-cta {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--p-r-sm);
  }
  .header-cta svg {
    display: block;
    width: 18px;
    height: 18px;
  }
  .header-cta span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* =====================================================================
   Inner pages (2026-11-17): Merchant API, Subscriptions, Checks & invoices,
   Stars, About, Transfers, 404 — built by tools/kit_page.py on the home
   frame. Same tokens, same breakpoints (960 / 480 / floor 360).
   ===================================================================== */
.sec-title {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}
.sec-aside {
  max-width: 400px;
}
.h3x {
  font-size: clamp(36px, 4vw, 56px);
}
.faq-lead {
  margin: 20px 0 32px;
}
.grid-3,
.grid-4,
.stack {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-3 > *,
.grid-4 > * {
  min-width: 0;
}
.stack {
  gap: 12px;
}
.card .step-n {
  display: block;
  margin-bottom: 16px;
}
.card h3.display {
  font-size: 26px;
  line-height: 1.05;
}
.card-sm h3.display {
  font-family: var(--p-font-ui);
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.3;
}
.card-sm p {
  font-size: 14px;
}
.card-lg {
  padding: 28px;
}
.card-soft {
  background: var(--p-accent-soft);
  border-color: var(--p-accent-soft-border);
}
.card-soft .muted {
  color: var(--p-accent-ink);
}
.card-soft .link-arrow {
  margin-top: 12px;
  color: var(--p-accent);
}
.card-dark {
  background: transparent;
  border-color: var(--p-inverse-border);
  color: #fff;
}
.card-dark .muted {
  color: var(--p-inverse-muted);
}
.card-dark h3.display {
  font-size: 22px;
}
@media (hover: hover) {
  .card:not(.code-card):hover {
    transform: translateY(-4px);
    border-color: var(--p-accent);
  }
}

/* panels: the big rounded containers */
.panel {
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-2xl);
  background: #fff;
}
.panel-soft {
  background: var(--p-accent-soft);
  border-color: var(--p-accent-soft-border);
}
.panel-dark {
  background: var(--p-inverse);
  border-color: var(--p-inverse);
  color: #fff;
}
.panel-dark .muted {
  color: var(--p-inverse-muted);
}
.panel-dark .eyebrow,
.band-dark .eyebrow {
  color: var(--p-accent-soft);
}
.panel-accent {
  background: var(--p-accent);
  border-color: var(--p-accent);
  color: #fff;
}
.panel-accent .eyebrow {
  color: var(--p-accent-soft);
}
.panel-accent .sec-lead {
  margin-top: 24px;
  color: var(--p-accent-soft);
}
.panel-accent .rows-cards > li {
  border-color: transparent;
}
.panel > .eyebrow + .h2,
.panel > .eyebrow + .h3x,
.split > div > .eyebrow + .h2,
.split > div > .eyebrow + .h3x {
  margin-top: 16px;
}
.split > div > .sec-lead {
  margin-top: 20px;
}

/* a full-width dark band */
.band-dark {
  background: var(--p-inverse);
  color: #fff;
}
.band-dark .muted {
  color: var(--p-inverse-muted);
}
.band-dark .h2 + .sec-lead {
  margin: 24px 0 40px;
}
.band-dark .tilt-dark,
.tilt-dark {
  background: rgba(21, 88, 200, 0.18);
  border-color: rgba(21, 88, 200, 0.4);
}
.link-arrow.on-dark {
  color: #fff;
}

.split-center {
  align-items: center;
}
.split-stretch {
  align-items: stretch;
}
.split-rev > :first-child {
  order: 0;
}

/* numbered rows: 01 · title · text */
.rows,
.vsteps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rows {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rows > li,
.vsteps > li {
  display: flex;
  gap: 18px;
}
.rows h3,
.vsteps h3 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}
.rows p,
.vsteps p {
  margin-top: 4px;
  font-size: 15px;
}
.rows .step-n,
.vsteps .step-n {
  padding-top: 3px;
}
.band-dark .rows .step-n,
.panel-dark .rows .step-n {
  color: var(--p-accent-soft);
}
.rows-cards {
  gap: 12px;
}
.rows-cards > li {
  padding: 20px 22px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-lg);
  background: #fff;
  color: var(--p-ink);
}
.rows-cards .muted {
  color: var(--p-muted);
}
.vsteps {
  border-top: 2px solid var(--p-ink);
}
.vsteps > li {
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--p-border);
}
.vsteps h3 {
  font: 700 26px/1.05 var(--p-font-display);
  letter-spacing: -0.02em;
}
.vsteps p {
  margin-top: 8px;
}

/* code */
.code-win.sticky {
  position: sticky;
  top: 96px;
}
.code-foot {
  display: grid;
  gap: 6px;
  padding: 16px 20px;
  border-top: 1px solid var(--p-inverse-border);
  font: 400 13px/1.5 var(--p-font-mono);
  color: #fff;
}
.c-mute {
  color: var(--p-inverse-muted);
}
.dot-ok {
  color: var(--p-success);
}
.code-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.code-top {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: var(--p-inverse);
  color: #fff;
  font: 400 12.5px/1.7 var(--p-font-mono);
  direction: ltr;
  text-align: left;
}
.code-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 24px 26px;
}
.code-body p {
  margin: 0;
}
.coin-pair {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--p-accent);
  font-weight: 700;
}
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: var(--p-r-pill);
  background: var(--p-success-soft);
  color: var(--p-success-ink);
  font-size: 12px;
}
.batch {
  display: grid;
  gap: 4px;
}
.batch > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--p-r-xs);
  background: var(--p-surface-subtle);
  font-size: 12px;
  color: var(--p-muted);
}
.batch .ok {
  color: var(--p-success-ink);
}

/* a toast that is just a mono chip */
.toast.chip {
  padding: 10px 14px;
  font: 500 13px/1.3 var(--p-font-mono);
  color: var(--p-ink);
}

/* the checkout phone: the payment page scrolls, then «Paid» */
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: var(--p-surface-subtle);
}
.phone .screen {
  height: auto;
  aspect-ratio: 780 / 1688;
}
.phone .screen img {
  height: auto;
  aspect-ratio: auto;
  border-radius: 0;
}
.co-paid {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.phone .screen .co-paid {
  height: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .co-scroll {
    animation: p-coscroll 12s ease-in-out infinite;
  }
  .co-paid {
    animation: p-copaid 12s ease-in-out infinite;
  }
  .progress-fill {
    animation: p-fill 6s var(--p-ease-snap) infinite;
  }
  .trial-days i {
    animation: p-day 7s ease infinite;
  }
  .drift {
    animation: p-float 7s ease-in-out infinite;
  }
  .d2 {
    animation-delay: -2s;
  }
  .d3 {
    animation-delay: -4s;
  }
  .sky {
    animation: p-twinkle 3.2s ease-in-out infinite;
  }
  .s2 {
    animation-delay: 1.1s;
  }
  .s3 {
    animation-delay: 2.2s;
  }
}
@keyframes p-coscroll {
  0%,
  12% {
    transform: translateY(0);
  }
  45%,
  100% {
    transform: translateY(-36%);
  }
}
@keyframes p-copaid {
  0%,
  74% {
    opacity: 0;
  }
  80%,
  96% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes p-day {
  0% {
    background: var(--p-border);
  }
  40%,
  100% {
    background: var(--p-accent);
  }
}
@keyframes p-twinkle {
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}

/* agent snippets */
.snippets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.snippet {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--p-inverse-border);
  border-radius: 20px;
  background: var(--p-inverse-deep);
}
.snippet-label {
  display: block;
  margin-bottom: 10px;
  font: 400 12px/1.3 var(--p-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--p-inverse-muted);
}
.snippet pre {
  margin: 0;
  padding-inline-end: 44px;
  white-space: pre-wrap;
  word-break: break-word;
  font: 400 13px/1.6 var(--p-font-mono);
  color: #fff;
  direction: ltr;
  text-align: left;
}
.snippet p {
  font-size: 15px;
}
/* the snippet's copy BUTTON — scoped: the home tiles' text blocks are `div.copy` */
button.copy {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--p-inverse-border);
  border-radius: var(--p-r-sm);
  background: var(--p-inverse);
  color: #fff;
  cursor: pointer;
}
button.copy > span:not(.sr-only) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
button.copy.is-copied {
  border-color: var(--p-success);
  color: var(--p-success-soft);
}
.safety {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--p-success);
  border-radius: 20px;
  background: rgba(15, 138, 77, 0.12);
  color: var(--p-success-soft);
  font-size: 15px;
}
.safety svg {
  flex: none;
  margin-top: 2px;
}

/* facts (fees, terms) */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}
.fact {
  min-width: 0;
  padding-top: 16px;
  border-top: 2px solid var(--p-ink);
}
.fact-label {
  display: block;
  font: 400 12px/1.3 var(--p-font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--p-muted);
}
.fact-value {
  display: block;
  margin: 10px 0 12px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.05;
}
.fact p {
  font-size: 14px;
}

/* docs links next to the FAQ */
.doc-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.doc-link,
.linkcard {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-md);
  background: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s;
}
.doc-link .arr,
.linkcard .arr {
  color: var(--p-accent);
  transition: transform 0.2s;
}
[dir="rtl"] .doc-link .arr,
[dir="rtl"] .linkcard .arr {
  transform: scaleX(-1);
}
@media (hover: hover) {
  .doc-link:hover,
  .linkcard:hover {
    border-color: var(--p-accent);
  }
}

/* Subscriptions: the trial demo, the lifecycle, the payer side */
.trial-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.trial-demo > .mini-label {
  color: var(--p-accent-ink);
}
.trial-card {
  max-width: 400px;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--p-shadow-toast);
}
.trial-head,
.payer-plan,
.post-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trial-head img,
.payer-plan img {
  flex: none;
  border-radius: 14px;
}
.trial-head b,
.payer-plan b {
  display: block;
  font-size: 18px;
}
.trial-head small,
.payer-plan small {
  display: block;
  font-size: 13px;
  color: var(--p-muted);
}
.trial-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: var(--p-bg);
}
.trial-big {
  font-size: 34px;
  font-weight: 700;
}
.trial-box .muted {
  margin-top: 6px;
}
.trial-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 16px;
}
.trial-days i {
  height: 8px;
  border-radius: 4px;
  background: var(--p-accent);
}
.trial-days i:nth-child(2) {
  animation-delay: 0.5s;
}
.trial-days i:nth-child(3) {
  animation-delay: 1s;
}
.trial-days i:nth-child(4) {
  animation-delay: 1.5s;
}
.trial-days i:nth-child(5) {
  animation-delay: 2s;
}
.trial-days i:nth-child(6) {
  animation-delay: 2.5s;
}
.trial-days i:nth-child(7) {
  animation-delay: 3s;
}
.trial-scale {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--p-muted);
}
.trial-note {
  margin-top: 10px;
  font-size: 13px;
  text-align: center;
  color: var(--p-muted);
}
.toast-static {
  position: relative;
  align-self: flex-start;
}
.progress {
  height: 4px;
  margin: 40px 0 32px;
  border-radius: 2px;
  background: var(--p-inverse-border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--p-accent);
  transform-origin: 0 50%;
}
[dir="rtl"] .progress-fill {
  transform-origin: 100% 50%;
}
.stages h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}
.stages p {
  font-size: 15px;
}
.stage-n {
  font-size: 13px;
  color: var(--p-accent-soft);
}
.payer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.payer-plan,
.payer-row {
  padding: 16px 18px;
  border: 1px solid var(--p-border);
  border-radius: 18px;
  background: var(--p-bg);
}
.payer-plan > div {
  flex: 1;
  min-width: 0;
}
.payer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
}
.payer-row > span:nth-child(2) {
  flex: 1;
}
.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p-success);
}
.dot-accent {
  background: var(--p-accent);
}

/* Checks: the screen switch, invoice caps, the giveaway */
.hero-switch {
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hero-switch > .seg {
  width: min(320px, 100%);
}
.hero-visual-in {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  padding-inline: 40px;
}
.seg button[aria-pressed="true"] {
  background: #fff;
  color: var(--p-ink);
  box-shadow: 0 1px 2px rgba(12, 12, 13, 0.12);
}
.caps-rule {
  gap: 24px 28px;
}
.caps-rule > div {
  padding-top: 14px;
  border-top: 2px solid var(--p-ink);
}
.band-dark .post-card {
  color: var(--p-ink);
}
.band-dark .split + .giveaway {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--p-inverse-border);
}

/* Stars hero */
.stars-visual {
  align-items: center;
  min-height: 460px;
}
.stars-card {
  flex: none;
  width: min(360px, 100%);
  padding: 24px;
  border: 1px solid var(--p-border);
  box-shadow: var(--p-shadow-pop);
}
.sky {
  position: absolute;
  color: var(--p-accent);
  opacity: 0.9;
}
.sky svg,
.sky img {
  width: 100%;
  height: 100%;
  display: block;
}
.s1 {
  top: 6%;
  inset-inline-start: 6%;
  width: 34px;
  height: 34px;
}
.s2 {
  top: 18%;
  inset-inline-end: 4%;
  width: 22px;
  height: 22px;
}
.s3 {
  bottom: 8%;
  inset-inline-start: 14%;
  width: 26px;
  height: 26px;
}

/* About */
.hero-page {
  padding-bottom: 64px;
}
.hero-page .hero-lead {
  max-width: 820px;
  margin-bottom: 56px;
}
.stat {
  padding: 28px;
  border-radius: var(--p-r-lg);
  background: #fff;
}
.stat-n {
  font-size: 64px;
  font-weight: 800;
}
.stat .muted {
  margin-top: 8px;
}
.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toc .mini-label {
  margin-bottom: 8px;
}
.toc a {
  /* block, not flex: RTL <bdi> runs (the «1.» numbers) must keep their spaces */
  display: block;
  min-height: 40px;
  padding-block: 10px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--p-border);
  color: var(--p-muted);
  text-decoration: none;
}
@media (hover: hover) {
  .toc a:hover {
    border-color: var(--p-accent);
    color: var(--p-ink);
  }
}
.prose > * + * {
  margin-top: 18px;
}
.prose h2 {
  margin-top: 56px;
  font: 800 clamp(30px, 3.4vw, 44px) / 1 var(--p-font-display);
  letter-spacing: -0.03em;
  scroll-margin-top: 96px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--p-text);
}
.prose h2 + p {
  margin-top: 20px;
}
.coin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.coin-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-pill);
  background: #fff;
  font: 500 13px/1 var(--p-font-mono);
}
.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.band-dark .inline-links {
  margin-top: 32px;
}
.kv {
  overflow: hidden;
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-lg);
  background: #fff;
}
.kv-row {
  padding: 14px 20px;
  font-weight: 500;
}
.kv-row + .kv-row {
  border-top: 1px solid var(--p-border);
}
.contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.prose .contact p {
  color: #fff;
}
.prose .contact p.on-dark-muted {
  color: var(--p-inverse-muted);
}

/* 404 */
.nf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: 48px;
  align-items: center;
  min-height: 52vh;
}
.nf-art {
  position: relative;
  aspect-ratio: 1;
}
.nf-art .display {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(96px, 14vw, 180px);
  color: var(--p-accent-soft);
  -webkit-text-stroke: 2px var(--p-accent);
}
.nf-art img {
  position: absolute;
}
.nf-art img:nth-of-type(1) {
  top: 8%;
  inset-inline-start: 4%;
}
.nf-art img:nth-of-type(2) {
  top: 14%;
  inset-inline-end: 6%;
}
.nf-art img:nth-of-type(3) {
  bottom: 6%;
  inset-inline-start: 38%;
}

@media (max-width: 960px) {
  .grid-3,
  .grid-4,
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split-rev > :first-child {
    order: 1;
  }
  .code-win.sticky {
    position: static;
  }
  .doc {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .toc {
    position: static;
  }
  .nf-grid {
    grid-template-columns: 1fr;
  }
  .nf-art {
    max-width: 300px;
  }
  .hero-visual-in {
    padding-inline: 0;
  }
}
@media (max-width: 600px) {
  .grid-3,
  .grid-4,
  .facts {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .panel {
    border-radius: 24px;
  }
  .h3x {
    font-size: 32px;
  }
  .vsteps h3 {
    font-size: 22px;
  }
  .fact-value {
    font-size: 26px;
  }
  .stat-n {
    font-size: 48px;
  }
  .stars-visual {
    min-height: 0;
  }
  .trial-card {
    padding: 18px;
  }
  .trial-big {
    font-size: 26px;
  }
  .band-dark .split + .giveaway {
    margin-top: 56px;
    padding-top: 56px;
  }
  .prose p {
    font-size: 16px;
  }
}
.band-dark {
  overflow-x: clip;
}
.cta-band .display {
  overflow-wrap: break-word;
  hyphens: auto;
}
@media (max-width: 480px) {
  .cta-band .display {
    font-size: min(44px, 10.4vw);
  }
}
.wrap.grid-3,
.wrap.grid-4 {
  margin-inline: auto;
}
.sec-head > .sec-title {
  flex: 1 1 560px;
  max-width: 760px;
}
.sec-head > .sec-aside {
  flex: 0 1 380px;
}
[hidden] {
  display: none !important;
}
.split > .hero-visual {
  justify-self: center;
}
.sec-lead + .caps,
.sec-lead + .rows {
  margin-top: 32px;
}
main > section {
  overflow-x: clip;
}

/* Legal pages (tools/legal_pages.py) */
.legal-hero {
  padding-bottom: 40px;
}
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.legal-tabs a {
  /* inline-block, not flex: the RTL runtime wraps Latin runs in <bdi>, and
     flex items swallow the spaces between them («استخدامTgPay») */
  display: inline-block;
  min-height: 44px;
  padding: 11px 18px;
  line-height: 20px;
  border: 1px solid var(--p-border-strong);
  border-radius: var(--p-r-pill);
  font-weight: 600;
  text-decoration: none;
}
.legal-tabs a[aria-current="page"] {
  background: var(--p-ink);
  border-color: var(--p-ink);
  color: #fff;
}
.legal-hero .h1 {
  font-size: clamp(44px, 6vw, 88px);
  max-width: 1000px;
}
.legal-edition {
  margin-top: 24px;
  font-size: 13px;
  color: var(--p-muted);
}
.legal-doc .toc {
  max-height: calc(100vh - 128px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-lg);
  background: #fff;
}
.legal-doc .toc a {
  min-height: 36px;
  font-size: 14px;
  line-height: 1.3;
}
.legal {
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--p-border);
  border-radius: var(--p-r-xl);
  background: #fff;
}
.legal > * + * {
  margin-top: 14px;
}
.legal h2 {
  margin-top: 40px;
  font: 700 24px/1.2 var(--p-font-ui);
  letter-spacing: -0.01em;
  scroll-margin-top: 96px;
}
.legal h2:first-child {
  margin-top: 0;
}
.legal h3 {
  margin-top: 24px;
  font-size: 18px;
}
.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--p-text);
}
.legal ul {
  padding-inline-start: 22px;
}
.legal li + li {
  margin-top: 6px;
}
.legal a {
  color: var(--p-accent);
  overflow-wrap: anywhere;
}
.legal-see {
  margin-top: 40px !important;
  padding-top: 20px;
  border-top: 1px solid var(--p-border);
}
@media (max-width: 960px) {
  .legal-doc .toc {
    display: none;
  }
}

/* Articles (tools/blog_pages.py): About's document template; the kit has no
   inline code and no text links of its own */
.keep-all {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.article-body {
  min-width: 0;
}
.article-body p code {
  padding: 2px 6px;
  border-radius: var(--p-r-xs);
  background: var(--p-accent-soft);
  font: 400 0.86em/1.4 var(--p-font-mono);
  overflow-wrap: anywhere;
}
.article-body p a {
  color: var(--p-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Long single words of the other locales (de compounds, es/fr/it/pt
   «-ción / -ments / -ências») in a narrow column: the FAQ heading beside
   the list at 1440, a panel heading and a footer link at 360. Hyphenate
   by the page's lang, break as the last resort (overlap sweep 2026-11-17). */
.display,
.foot-col a {
  overflow-wrap: break-word;
  hyphens: auto;
}
.foot-col a {
  max-width: 100%;
}

/* Arabic and Persian script joins its letters: any tracking (the mono
   eyebrow's 0.12em, the display headings' −0.03em) breaks the joins and
   spaces the word apart. RTL pages carry only those two scripts. */
[dir="rtl"] *,
[dir="rtl"] *::before,
[dir="rtl"] *::after {
  letter-spacing: 0 !important;
}
/* …and a monospace face has no Arabic glyphs: the system fallback drew the
   eyebrows and mono chips in a stretched fixed-width Arabic. Latin still
   comes from JetBrains Mono; Arabic and Persian take the UI font. */
[dir="rtl"] {
  --p-font-mono: "JetBrains Mono", var(--p-font-ui);
}
/* the labels that are words, not code, take the UI face outright */
[dir="rtl"] :is(.eyebrow, .chip, .toast, .mini-label) {
  font-family: var(--p-font-ui);
}

/* a long compound in a two-column feature list (de «Zahlungsbenachrichtigungen» at 1024) */
.caps .muted {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Telegram Stars wear Telegram's own gold Star (the Fragment stars icon,
   web/assets/img/tg-star.svg), never the kit's blue outline */
.tg-star {
  display: block;
}
.sw-star {
  background: #fff4d6;
}
.sw-star .tg-star {
  width: 26px;
  height: 26px;
}
