/* =========================================================
   ФинПульс — публичный лендинг (finpulse-app.ru)
   Токены наследуют приложение: индиго #1b1a31 + ECG-бирюза #1fbfa0.
   ========================================================= */

:root {
  --bg:        #16152a;
  --bg-2:      #1b1a31;
  --surface:   #232244;
  --surface-2: #2d2b52;
  --rule:      #33305e;
  --rule-2:    #494680;

  --ink:       #f3f6fa;
  --ink-2:     #b9c0d4;
  --ink-3:     #8a90ab;

  --brand:     #1fbfa0;
  --brand-2:   #35e0bd;
  --brand-ink: #08211c;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --shell: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Onest, -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
/* Иначе любое наше правило с display перебивает hidden из UA-стилей
   (скрытые до запуска платежей метки PRO — как раз такой случай). */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

/* Клавиатурная навигация: без этого фокус на тёмном фоне не виден вообще. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 { margin: 0; line-height: 1.06; letter-spacing: -.025em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 72px); font-weight: 900; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
p  { margin: 0; }
/* Абзацы верстаем «красиво»: без висячих строк из одного слова. */
.lede, .sec-head p, .card p, .insight p, .step p, .case p, .faq .answer, .ticks li { text-wrap: pretty; }

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }

/* ---------- фоновая атмосфера ---------- */
.glow {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(90px); opacity: .5;
}
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(115, 110, 190, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115, 110, 190, .14) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 15%, transparent 72%);
}

/* ---------- шапка ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(140%);
  /* Фолбэк обязателен: без поддержки color-mix объявление отбрасывается
     целиком и шапка становится прозрачной поверх контента. */
  background: rgba(27, 26, 49, .86);
  background: color-mix(in srgb, var(--bg-2) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-head.stuck { border-bottom-color: var(--rule); }
.read-bar {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .12s linear; pointer-events: none;
}
.head-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.logo img { width: 32px; height: 32px; }
.head-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.head-nav .nav-link { color: var(--ink-2); font-size: 15px; transition: color .2s; }
.head-nav .nav-link:hover { color: var(--ink); }
.head-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.lbl-short { display: none; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 14px; border: 1px solid transparent;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: var(--brand-ink);
  box-shadow: 0 10px 30px -10px rgba(31, 191, 160, .75), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -12px rgba(31, 191, 160, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { background: rgba(255, 255, 255, .04); border-color: var(--rule-2); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: var(--brand); transform: translateY(-2px); }
/* Демо — третий по смыслу вход, поэтому свой цвет: заметно, но не спорит
   с бирюзовой регистрацией. */
.btn-demo { background: rgba(124, 108, 232, .18); border-color: #6c5ce8; color: #cfc9ff; }
.btn-demo:hover { background: rgba(124, 108, 232, .3); border-color: #8a7bff; color: #eae7ff; transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 15px; border-radius: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: clip; }
.hero .glow-a { width: 620px; height: 620px; left: -180px; top: -220px; background: #1fbfa0; opacity: .22; }
.hero .glow-b { width: 720px; height: 720px; right: -240px; top: -120px; background: #6c4bd6; opacity: .3; }
.hero-in {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: 40px; align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  border: 1px solid var(--rule-2); background: rgba(255, 255, 255, .04);
  font-size: 14px; color: var(--ink-2); font-weight: 600;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 rgba(31, 191, 160, .6); animation: ping 2.4s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(31, 191, 160, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(31, 191, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 191, 160, 0); }
}

.hero h1 { margin: 22px 0 0; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 60%, #7de3cd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin-top: 20px; max-width: 30em; color: var(--ink-2); font-size: clamp(17px, 1.35vw, 19px); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-fine { margin-top: 16px; color: var(--ink-3); font-size: 14px; }

.proof { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.proof span { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.proof svg { width: 17px; height: 17px; color: var(--brand); flex: none; }

/* ---------- мокап телефона ---------- */
.phone {
  position: relative; width: 100%; aspect-ratio: 780 / 1688;
  border-radius: 42px; padding: 9px;
  background: linear-gradient(160deg, #4a4880, #1d1c34 45%, #35335e);
  box-shadow:
    0 2px 3px rgba(255, 255, 255, .12) inset,
    0 40px 90px -30px rgba(0, 0, 0, .85),
    0 12px 30px -12px rgba(0, 0, 0, .7);
}
.phone img { border-radius: 34px; width: 100%; height: 100%; object-fit: cover; object-position: top; }

.hero-stage { position: relative; }

/* ---------- витрина экранов (табы + один телефон) ---------- */
.stage { position: relative; display: grid; justify-items: center; gap: 22px; }
.stage-tabs {
  display: inline-flex; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--rule);
}
.stage-tabs button {
  padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-2);
  font: inherit; font-size: 14.5px; font-weight: 700; letter-spacing: -.01em;
  transition: background .25s, color .25s;
}
.stage-tabs button:hover { color: var(--ink); }
.stage-tabs button.on { background: var(--brand); color: var(--brand-ink); }
/* Телефон НЕ качается: постоянное движение размывало мелкий текст на
   скриншоте — экран невозможно было прочитать. Живость даёт подсветка за
   рамкой, она ничего не двигает. */
.phone-solo { width: min(76%, 340px); }
/* Размер задаём явно: у <img> (replaced element) width/height: auto с inset
   означает НАТУРАЛЬНЫЙ размер, а не «растянуть между краями» — картинка
   вылезала за рамку телефона вправо и вниз. */
.phone-solo .shot {
  position: absolute; left: 9px; top: 9px;
  width: calc(100% - 18px); height: calc(100% - 18px);
  opacity: 0; transition: opacity .45s var(--ease);
}
.phone-solo .shot.on { opacity: 1; }
/* Подпись под витриной: две строки резервируем заранее, иначе телефон
   подпрыгивает при переключении на более длинный текст. */
.stage-cap { min-height: 2.6lh; max-width: 22em; text-align: center; color: var(--ink-3); font-size: 14.5px; }
/* Дышащее свечение под телефоном: рисуется ЗА рамкой, поэтому пиксели
   скриншота остаются неподвижными и резкими. */
.hero-stage::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 50%; top: 50%; width: 112%; aspect-ratio: 1 / 1.05;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(31, 191, 160, .42), rgba(108, 75, 214, .22) 55%, transparent 74%);
  filter: blur(30px);
  animation: stage-breathe 6.5s ease-in-out infinite;
}
@keyframes stage-breathe {
  0%, 100% { opacity: .42; transform: scale(.96); }
  50%      { opacity: 1;   transform: scale(1.08); }
}

/* ---------- цифры демо-месяца ---------- */
.numbers-sec { padding-top: 34px; }
.numbers {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: center;
  padding: 40px 44px; border-radius: var(--r-lg);
  background: linear-gradient(140deg, #1e1d3a, #1b1a31 60%, #1d3340);
  border: 1px solid var(--rule-2);
}
.numbers-lead .btn { margin-top: 24px; }

/* мини-отчёт месяца */
.report {
  padding: 22px 24px 18px; border-radius: var(--r-md);
  background: rgba(12, 11, 26, .5); border: 1px solid var(--rule);
}
.report-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.report-cap { display: block; color: var(--ink-3); font-size: 13.5px; }
.report-sum { display: block; margin-top: 4px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.report-delta { color: #ff8b8b; font-weight: 700; font-size: 15px; white-space: nowrap; }
.report-delta i { font-style: normal; color: var(--ink-3); font-weight: 500; }
.report-rows { display: grid; gap: 16px; padding: 18px 0; }
.rep-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 8px 10px; }
.rep-name { color: var(--ink); font-size: 15px; }
/* Сумма и чип лимита стоят колонкой справа — как .cat-right в списке категорий. */
.rep-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.rep-sum { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rep-sum.over { color: #ff8b8b; }
.rep-bar { grid-column: 2 / -1; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
/* Полоса — доля категории в расходах месяца, сплошным цветом категории.
   Градиент «в красное» был выдумкой: превышение в приложении показывают
   красная сумма и красный чип лимита, полоса цвет не меняет. */
.rep-bar b { display: block; height: 100%; border-radius: 4px; background: var(--cat, var(--brand)); }
.rep-meta { grid-column: 2 / -1; color: var(--ink-3); font-size: 13px; }
.rep-share { color: var(--brand-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.report-foot { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 13.5px; }

/* ---------- выводы («что вы узнаете») ---------- */
.insights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.insight {
  position: relative; padding: 30px 28px 30px 32px; border-radius: var(--r-md);
  background: var(--surface);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 66%, var(--bg)));
  border: 1px solid var(--rule);
}
.insight::before {
  content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--brand-2), transparent);
}
.insight p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- списки с галочками ---------- */
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: 16px; }
.ticks li b { color: var(--ink); display: inline; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px;
  border-radius: 7px; background: rgba(31, 191, 160, .14); border: 1px solid rgba(31, 191, 160, .38);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 4px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.sec-lede { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 34em; }

/* ---------- совместный доступ ---------- */
.together {
  position: relative; overflow: hidden;
  padding: 56px 48px; border-radius: var(--r-lg);
  background: linear-gradient(140deg, #23204a, #1b1a31 58%, #1d3340);
  border: 1px solid var(--rule-2);
}
.together-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px; align-items: center;
}
.together-copy .ticks { margin-top: 26px; }
.together-art { position: relative; display: flex; justify-content: center; }

/* Сцена синхронизации: две «мини-ленты» операций и запись, перелетающая
   с одного телефона на другой. Всё нарисовано разметкой — скриншот такое
   не покажет, а суть секции именно в движении. */
.sync-scene {
  position: relative; width: 100%; max-width: 470px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start;
}
.mini {
  position: relative; z-index: 2;
  padding: 14px 14px 16px; border-radius: var(--r-md);
  background: var(--surface);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 72%, var(--bg)));
  border: 1px solid var(--rule-2);
  box-shadow: 0 26px 60px -28px rgba(0, 0, 0, .95);
}
.mini-b { margin-top: 56px; }
.mini-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.mini-title { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.mini-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px rgba(31,191,160,.9); }
.mini-row {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 9px;
  padding: 9px 0; font-size: 13.5px; color: var(--ink-2);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent);
}
.mini-row:last-of-type { border-bottom: 0; }
.mini-row b { color: #ff8b8b; font-weight: 700; font-size: 13px; white-space: nowrap; }
.mini-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-ic { width: 22px; height: 22px; border-radius: 7px; display: block; }
/* Цвета — ровно те, что приложение даёт этим категориям по умолчанию
   (см. _default_color_for в app.py). «Продукты» и «Транспорт» и правда
   попадают в один синий: расхождение с приложением владелец считает
   дефектом, даже если разные оттенки смотрятся нарядней. */
.ic-cafe { background: #eab308; }
.ic-bus  { background: #0ea5e9; }
.ic-food { background: #0ea5e9; }

/* Пока секция за экраном, цикл стоит: анимация ничего не показывает, но
   продолжает будить композитор. Запускаем по классу .in от IntersectionObserver. */
.together .mini-a .new,
.together .mini-b,
.together .mini-b .arrive,
.together .mini-b .arrive::after,
.together .amt i { animation-play-state: paused; }
.together.in .mini-a .new,
.together.in .mini-b,
.together.in .mini-b .arrive,
.together.in .mini-b .arrive::after,
.together.in .amt i { animation-play-state: running; }

/* Левый телефон: запись «отправляется» — подсвечивается и гаснет.
   Правый: та же запись «прилетает» — выезжает снизу с бирюзовой вспышкой. */
.mini-a .new { animation: send 2.6s ease-in-out infinite; }
@keyframes send {
  0%, 8%    { opacity: 0; transform: translateY(6px); }
  16%, 60%  { opacity: 1; transform: none; }
  100%      { opacity: 1; }
}
/* До прилёта записи на втором телефоне НЕТ: призрак операции, которой ещё не
   было, читается как баг синхронизации. Место под неё при этом зарезервировано
   (анимируется только прозрачность): пробовали раздвигать список по высоте —
   карточки скакали по высоте каждый цикл, и это раздражает сильнее, чем
   короткая пустая полоса. */
.mini-b .arrive { position: relative; animation: arrive 2.6s ease-in-out infinite; }
@keyframes arrive {
  0%, 48%   { opacity: 0; transform: translateY(7px); }
  58%, 100% { opacity: 1; transform: none; }
}
/* Единственный акцент — бирюзовая волна за строкой. Растушёвана по всем
   краям, поэтому у неё нет углов и она не выглядит прямоугольником,
   наклеенным поверх карточки; уходит чуть раньше конца цикла. */
.mini-b .arrive::after {
  content: ""; position: absolute; z-index: -1; inset: -10px -12px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(53, 224, 189, .38) 16%,
                              rgba(53, 224, 189, .14) 62%, transparent);
  /* Маска гасит волну сверху и снизу: без неё у заливки остаётся ровный край
     и она снова читается как прямоугольник. */
  mask-image: linear-gradient(180deg, transparent, #000 42%, #000 58%, transparent);
  animation: arrive-glow 2.6s ease-in-out infinite;
}
@keyframes arrive-glow {
  0%, 48%   { opacity: 0; }
  58%       { opacity: 1; }
  86%, 100% { opacity: 0; }
}
.mini-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--rule);
  font-size: 12.5px; color: var(--ink-3);
}
.mini-total b { font-size: 16px; color: var(--ink); }

/* Остаток пересчитывается: старое значение уезжает вверх, новое приходит снизу.
   На своём телефоне это происходит сразу, на телефоне близкого — после прилёта
   записи, поэтому у правой карточки та же анимация с задержкой (.late). */
.amt { position: relative; display: inline-grid; overflow: hidden; height: 1.25em; }
.amt i { grid-area: 1 / 1; font-style: normal; }
.amt-old { animation: amt-out 2.6s ease-in-out infinite; }
.amt-new { animation: amt-in  2.6s ease-in-out infinite; color: var(--brand-2); }
.amt.late .amt-old { animation-name: amt-out-late; }
.amt.late .amt-new { animation-name: amt-in-late; }

@keyframes amt-out {
  0%, 14%  { opacity: 1; transform: none; }
  22%, 100% { opacity: 0; transform: translateY(-100%); }
}
@keyframes amt-in {
  0%, 14%  { opacity: 0; transform: translateY(100%); }
  22%, 100% { opacity: 1; transform: none; }
}
@keyframes amt-out-late {
  0%, 62%  { opacity: 1; transform: none; }
  72%, 100% { opacity: 0; transform: translateY(-100%); }
}
@keyframes amt-in-late {
  0%, 62%  { opacity: 0; transform: translateY(100%); }
  72%, 100% { opacity: 1; transform: none; }
}

/* Линия живёт РОВНО в зазоре между карточками: 54px — это gap сетки, поэтому
   left:50% + translate:-50% ставит её от правого края левой карточки до левого
   края правой. Раньше блок был шире зазора (88px) и заезжал на обе карточки —
   пунктир начинался посреди строки и читался как кривой.
   Вертикаль: 160px — центр строки «Продукты» на левой карточке (14 padding +
   32 шапка + 12 отступ + две строки по 41 + половина третьей), высота 56px —
   ровно margin-top правой карточки, то есть центр её строки «Продукты».
   Числа в px, а не в %: правая карточка по ходу цикла меняет содержимое, и
   процент уплывал бы вместе с ней. Меняются отступы/шрифт строк — пересчитать. */
.sync-link {
  position: absolute; z-index: 3; left: 50%; top: 160px;
  translate: -50% 0; width: 54px; height: 56px; overflow: visible;
}
.sync-dot { filter: drop-shadow(0 0 8px rgba(53, 224, 189, .95)); }

/* ---------- секции ---------- */
section { position: relative; }
/* Якоря из шапки: без этого заголовок секции уезжает под липкую шапку. */
section[id] { scroll-margin-top: 88px; }
.sec { padding: 54px 0; }
.sec-head { max-width: 44rem; margin-bottom: 34px; }
.sec-head p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }
.kicker {
  display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}

/* шаги — таймлайн, а не ещё одна сетка карточек: три коробки подряд после
   бенто и выводов сливались в одну однообразную ленту */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; counter-reset: s; }
.steps::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: 21px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--rule-2) 55%, transparent);
}
.step { position: relative; padding-top: 62px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--brand);
  color: var(--brand); font-weight: 800; font-size: 17px;
}
.step p { margin-top: 12px; color: var(--ink-2); font-size: 16px; }

/* bento-фичи */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.card {
  position: relative; overflow: hidden;
  padding: 30px 28px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--rule);
  transition: border-color .3s, transform .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 191, 160, .16), transparent 62%);
}
.card:hover { border-color: var(--rule-2); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card .ic {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 13px; background: rgba(31, 191, 160, .12); border: 1px solid rgba(31, 191, 160, .3); color: var(--brand);
}
.card .ic svg { width: 22px; height: 22px; }
.card p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.card-wide { grid-column: span 3; }
.card-third { grid-column: span 2; }
/* Карточки с живым примером: три в ряд, одинаковой высоты, мок всегда
   прижат к низу — иначе примеры «плавают» на разной высоте. */
.card-demo { grid-column: span 2; display: flex; flex-direction: column; }
.card-demo .mock { margin-top: auto; }

/* мини-демо внутри карточек: показать функцию, а не пересказать её */
.mock { margin-top: 20px; padding: 16px; border-radius: var(--r-sm);
        min-height: 195px; display: grid; align-content: center;
        background: rgba(12, 11, 26, .55); border: 1px solid var(--rule); }
.mock-field {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--rule-2);
}
.mock-expr { color: var(--ink-3); font-size: 15px; font-variant-numeric: tabular-nums; }
.mock-res { color: var(--brand-2); font-size: 20px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.mock-chips span {
  padding: 6px 12px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--rule);
}
.mock-chips .on { color: var(--brand-ink); background: var(--brand-2); border-color: var(--brand-2); font-weight: 700; }
.mock-limit { display: grid; gap: 16px; }
.lim-top { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.lim-right { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.lim-top b { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lim-top b.over { color: #ff8b8b; }
/* Чип лимита «из 40 000 ₽» — то же, что .lim-chip в приложении: зелёный, пока
   в пределах суммы, красный при превышении. */
.lim-chip { padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
            white-space: nowrap; font-variant-numeric: tabular-nums; }
.lim-chip.lim-ok   { background: rgba(31, 191, 160, .14); color: var(--brand-2); }
.lim-chip.lim-over { background: rgba(255, 107, 99, .16); color: #ff8b8b; }
/* Иконка категории с глифом внутри — как .fm-cat-ic ниже и как приложение
   рисует категории через applyCatIcon(). Цвет берётся из --cat строки:
   пустые цветные квадраты не отличались друг от друга. */
.lim-ic { display: grid; place-items: center; width: 22px; height: 22px; flex: none;
          border-radius: 7px; background: var(--cat); color: var(--bg); }
.lim-ic svg { width: 14px; height: 14px; }
.lim-bar { margin-top: 8px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
/* Полоса всегда сплошная цветом категории и показывает долю в расходах месяца,
   а не процент лимита — превышение краснеет суммой и чипом (см. .rep-bar). */
.lim-bar span { display: block; height: 100%; border-radius: 4px; background: var(--cat, var(--brand)); }
.lim-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }
.lim-share { color: var(--brand-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Календарь месяца в Истории: клетка — число дня и мелкая сумма расхода под ним
   (.hc-day в приложении). Тепловой карты «чем темнее, тем больше» там нет. */
.mock-cal { align-content: start; gap: 10px; }
/* Над сеткой в приложении стоит только переключатель месяца — итога месяца
   внутри календаря нет. */
.cal-head { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--ink-3); font-size: 15px; }
.cal-head b { color: var(--ink); font-size: 15px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week span { font-size: 10px; text-align: center; text-transform: uppercase; letter-spacing: .4px; color: var(--ink-3); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  /* Число прижато к верху клетки, сумма подписана под ним — как .hc-day. */
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-height: 40px; padding: 4px 1px; border-radius: 9px;
  background: rgba(255, 255, 255, .05); border: 1px solid transparent;
}
.cal-day b { font-size: 12.5px; font-weight: 500; color: var(--ink-2); line-height: 1.15; }
.cal-day i { font-style: normal; font-size: 9.5px; font-weight: 700; line-height: 1.15;
             color: #ff8b8b; font-variant-numeric: tabular-nums; }
.cal-day.sel { background: rgba(31, 191, 160, .14); border-color: var(--brand); }

/* строка «мелочей» — намеренно не карточки: четыре сетки плашек подряд
   читались как один длинный однообразный блок */
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
/* Плашка теперь кнопка-переключатель (см. блок «интерактивные мелочи» ниже),
   поэтому пилюлю рисуем на button, а не на li. */
.chips button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px; font: inherit; font-size: 14.5px; color: var(--ink-2);
  background: rgba(255, 255, 255, .035); border: 1px solid var(--rule);
  cursor: pointer; text-align: left;
  transition: background .25s, color .25s, border-color .25s;
}
.chips .pro-tag { margin-left: 0; padding: 2px 7px; font-size: 11px; }

/* тарифы (секция скрыта до запуска платежей — см. landing.js).
   Обе карточки собраны одинаково: шапка фиксированной высоты → кнопка →
   список. Иначе цена, кнопки и галочки стояли на разных уровнях. */
/* Переключатель живёт в сетке .plans первым рядом правой колонки — так он
   явно принадлежит PRO. Нижний отступ добавляется к gap: бейдж «Всё включено»
   вылезает на 12px выше карточки и иначе почти касался бы кнопок. */
.plan-switch {
  grid-column: 2; grid-row: 1; justify-self: start;
  display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 5px;
  border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--rule);
}
.plan-switch button {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 10px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink-2);
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  transition: background .25s, color .25s;
}
.plan-switch button:hover { color: var(--ink); }
.plan-switch button.on { background: var(--brand); color: var(--brand-ink); }
.plan-switch i { font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--brand); }
.plan-switch button.on i { color: var(--brand-ink); opacity: .75; }
/* Подпись нужна только в одну колонку — на десктопе переключатель и так стоит
   ровно над карточкой PRO, по её левому краю. */
.plan-switch-cap { display: none; }

.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; align-items: stretch; }
.plan {
  grid-row: 2;
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px 30px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--rule);
}
.plan-pro {
  background: linear-gradient(160deg, #22314b, #1e1d3a 55%, #1c3a38);
  border-color: rgba(31, 191, 160, .45);
}
.plan-badge {
  position: absolute; top: -12px; left: 30px;
  padding: 5px 14px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
  font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
}
/* Шапка одной высоты в обеих карточках — кнопки и списки встают вровень. */
.plan-head { min-height: 168px; }
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.plan-pro .plan-name { color: var(--brand); }
.plan-price { margin-top: 14px; font-size: 44px; font-weight: 900; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price b { font-weight: 900; }
.plan-price small { font-size: 17px; font-weight: 700; color: var(--ink-3); letter-spacing: -.01em; }
.plan-note { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; }
.plan .btn { width: 100%; }
.plan .ticks { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--rule); gap: 12px; }
.plan-pro .ticks { border-top-color: rgba(31, 191, 160, .25); }
.plan .ticks li { font-size: 15.5px; padding-left: 30px; }
.plan .ticks li::before { width: 19px; height: 19px; border-radius: 6px; top: 3px; }
.plan .ticks li::after { left: 6px; top: 8px; }
.plans-fine { margin-top: 18px; max-width: 60rem; color: var(--ink-3); font-size: 13.5px; }
/* метка платной функции в заголовках секций */
.pro-tag {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  padding: 3px 9px; border-radius: 7px;
  background: rgba(192, 132, 252, .16); border: 1px solid rgba(192, 132, 252, .5);
  color: #d9b6ff; font-size: 12px; font-weight: 800; letter-spacing: .1em;
}

/* приватность */
.privacy {
  position: relative; overflow: hidden;
  padding: 54px 48px; border-radius: var(--r-lg);
  background: linear-gradient(140deg, #1f2a45, #1b1a31 55%, #23204a);
  border: 1px solid var(--rule-2);
}
.privacy .glow-c { width: 460px; height: 460px; right: -120px; bottom: -220px; background: var(--brand); opacity: .22; }
.privacy-in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }

/* где работает — одна строка с разделителями вместо трёх коробок */
.cases {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
  background: rgba(255, 255, 255, .02);
}
.case { padding: 28px 30px; border-left: 1px solid var(--rule); }
.case:first-child { border-left: 0; }
.case h3 { margin: 10px 0 10px; font-size: 18px; }
.case p { color: var(--ink-2); font-size: 15px; }
.case .tag { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }

/* FAQ */
/* Ширина как у остальных секций: собственный max-width делал блок заметно
   уже соседних и читался как сбой раскладки. Длину строки держит уже сам
   ответ внутри карточки. */
.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--surface);
  transition: border-color .3s, background .3s;
}
.faq details[open] { border-color: var(--rule-2); background: color-mix(in srgb, var(--surface) 88%, var(--brand) 4%); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 26px;
  font-size: 17.5px; font-weight: 700; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; flex: none; width: 12px; height: 12px;
  border-right: 2.2px solid var(--ink-3); border-bottom: 2.2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease), border-color .3s;
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); border-color: var(--brand); }
.faq .answer { padding: 0 26px 24px; color: var(--ink-2); font-size: 16px; max-width: 76ch; }

/* финальный CTA */
.final {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 40px; border-radius: var(--r-lg);
  background: linear-gradient(150deg, #21284a, #1b1a31 60%, #1c3a38);
  border: 1px solid var(--rule-2);
}
.final .glow-d { width: 520px; height: 300px; left: 50%; translate: -50% 0; bottom: -160px; background: var(--brand); opacity: .28; }
.final-in { position: relative; }
.final p { margin: 18px auto 0; max-width: 34rem; color: var(--ink-2); }
.final .hero-cta { justify-content: center; }
.final .hero-fine { text-align: center; }

/* футер */
.site-foot { border-top: 1px solid var(--rule); padding: 44px 0 32px; margin-top: 54px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid > * { min-width: 0; }
.foot-grid a { overflow-wrap: anywhere; }
.foot-grid .foot-h { margin: 0 0 14px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.foot-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
/* Ссылки футера — полноценные тач-таргеты, а не строки в 23px. */
.foot-grid a { color: var(--ink-2); font-size: 15px; transition: color .2s;
               display: inline-block; padding-block: 11px; }
.foot-grid a:hover { color: var(--brand); }
.foot-about p { margin-top: 14px; color: var(--ink-3); font-size: 15px; max-width: 26em; }
.foot-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; gap: 12px 28px; color: var(--ink-3); font-size: 14px;
}

/* ---------- липкая CTA-панель (только телефон) ---------- */
.sticky-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(22, 21, 42, .92);
  backdrop-filter: blur(14px) saturate(140%);
  border-top: 1px solid var(--rule);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.sticky-cta.on { transform: none; }
.sticky-cta .btn { flex: 1; }

/* ---------- интерактивные «мелочи»: чип → панель с кадром из приложения ------
   Восемь названий подряд ничего не объясняли. Теперь чип — таб, а панель
   показывает настоящий кадр демо: рисованные моки врали в деталях. */
.feat { margin-top: 22px; }
/* Подводка к ленте чипов: без неё восемь пилюль висели сразу после карточек
   и читались как продолжение предыдущего блока. */
.feat-lead { margin-bottom: 14px; color: var(--ink-2); font-size: 17px; max-width: 46em; }
.chips button:hover { color: var(--ink); border-color: var(--rule-2); }
.chips button[aria-selected="true"] {
  background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 700;
}
/* На бирюзовой заливке полупрозрачная метка PRO расплывается — на выбранном
   чипе делаем её плотной. */
.chips button[aria-selected="true"] .pro-tag { background: #c084fc; border-color: #c084fc; color: #2a1140; }

.feat-panels { margin-top: 18px; }
/* Кадр слева, текст справа. Высоту панели диктует кадр: фиксированная рамка
   давала широким кадрам пустые поля сверху и снизу, а тексту справа — метров
   триста пустоты. */
.feat-panel {
  /* Колонку текста ограничиваем и центрируем пару: на широком экране два
     предложения растягивались на 700px и справа зияла пустота. */
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 46ch);
  gap: 30px; align-items: center; justify-content: center;
  padding: 20px 22px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--rule);
  animation: feat-in .34s var(--ease) both;
}
/* Панель без кадра (фото чека — снять нечего) не должна схлопываться в две
   строки текста. */
/* 252px — не на глаз: соседние панели с кадром выходят 252–324px, при 180
   переключение на эту заметно подбрасывает страницу. */
.feat-panel-solo { grid-template-columns: minmax(0, 62ch); min-height: 252px; }
/* Без JS панели остаются открытыми и идут стопкой — тогда между ними нужен
   отступ; со скриптом открыта ровно одна и правило не срабатывает. */
.feat-panel + .feat-panel { margin-top: 12px; }
.feat-panel p { margin: 0; color: var(--ink-2); font-size: 16px; text-wrap: pretty; }
.feat-panel:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; }
@keyframes feat-in { from { opacity: 0; transform: translateY(10px); } }

/* Рамка облегает кадр: своей высоты у неё нет, размер диктует картинка. */
.feat-shot {
  display: grid; place-items: center; margin: 0;
  /* Пол по высоте: широкий кадр (корректировка — 780×398) иначе делает панель
     вдвое ниже соседних, и страница дёргается при переключении. */
  min-height: 210px; padding: 10px; border-radius: var(--r-sm);
  background: rgba(12, 11, 26, .55); border: 1px solid var(--rule);
}
/* max-height в пикселях (не в процентах): процент у грид-элемента считался от
   строки, которую он же и растягивал, и высокий кадр вылезал из рамки. Потолок
   держит самый длинный кадр — редактор категории, 780×850. */
.feat-shot img { max-width: 100%; max-height: 260px; width: auto; height: auto; }

/* ---------- появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- адаптив ---------- */
/* Меню шапки прячется РАНЬШЕ остальной раскладки: пять ссылок + три кнопки
   требуют ~1090px, и в вилке 1041–1089 логотип сжимался флексом до наезда на
   «Возможности», а «Зарегистрироваться» вылезала за правый край (scrollWidth
   1059 при вьюпорте 1041, скролла нет из-за overflow-x:clip — кнопка просто
   срезалась). Порог именно 1089, а не 1040. */
/* Одна граница на всю раскладку: в вилке 1041–1089 карточки сцены синхронизации
   ужимались так, что заголовок «ТЕЛЕФОН БЛИЗКОГО» переносился на две строки,
   строки уезжали вниз и пунктир промахивался мимо «Продуктов» на 19px, а
   названия категорий обрезались многоточием. Одноколоночная раскладка,
   которая и так включалась ниже, снимает обе проблемы. */
@media (max-width: 1089px) {
  .head-nav .nav-link { display: none; }
  /* minmax(0,...) обязателен: голый 1fr это minmax(auto,1fr), и трек
     раздувается до min-content содержимого — на 320px мини-отчёт и витрина
     вылезали за экран, а overflow-x:clip не давал их доскроллить. */
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero { padding-top: 48px; }
  .stage { margin-inline: auto; }
  .privacy-in, .together-in, .numbers { grid-template-columns: minmax(0, 1fr); }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .card-wide, .card-third, .card-demo { grid-column: span 2; }
  /* Пять карточек по span 2 из четырёх колонок дают ряды 2+2+1: последняя
     стоит одна в левой половине, а соседка календарной растягивается по её
     высоте на пустоту. Календарная идёт во всю ширину — ряды сходятся 2+2/4/2+2. */
  .bento > article:nth-child(3) { grid-column: span 4; }
  /* Панель фичи: колонки поровну — иначе текст жмётся в остаток. */
  .feat-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
  .feat-panel-solo { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .sticky-cta { display: flex; }
  /* В шапке остаются два входа: демо и регистрация. «Войти» уезжает —
     вернувшийся пользователь всё равно попадает в приложение по ярлыку. */
  .head-actions .btn-ghost { display: none; }
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .head-in { height: 62px; gap: 12px; }
  .head-nav { gap: 8px; }
  .head-actions { gap: 8px; margin-left: 0; }
  .btn-sm { padding: 12px 14px; font-size: 14px; border-radius: 11px; }
  .card { padding: 26px 22px; }
  .logo { font-size: 17px; gap: 8px; }
  .logo img { width: 26px; height: 26px; }
  .shell { width: min(100% - 32px, var(--shell)); }
  .steps, .cases, .insights, .plans { grid-template-columns: minmax(0, 1fr); }
  .plan { padding: 28px 22px 26px; }
  /* Вертикальный таймлайн: линия идёт слева вдоль номеров. */
  .steps { gap: 26px; }
  .steps::before { left: 20px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto;
                   background: linear-gradient(180deg, var(--brand), var(--rule-2) 60%, transparent); }
  .step { padding: 2px 0 0 62px; }
  .case { border-left: 0; border-top: 1px solid var(--rule); padding: 22px 22px; }
  .case:first-child { border-top: 0; }
  .numbers { padding: 30px 22px; gap: 26px; }
  .report { padding: 18px 16px 14px; }
  /* Сумма и дельта в одну строку не влезают на узком экране — «к июню»
     уезжало за край карточки. Дельта переносится под сумму. */
  .report-top { flex-wrap: wrap; gap: 6px 16px; }
  .report-foot { flex-direction: column; gap: 4px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  /* span 4 из медиазапроса 1040 обязан сброситься здесь: в одной колонке грид
     достраивает три НЕЯВНЫЕ и режет карточки вчетверо (та же грабля, что с
     .card-wide ниже). */
  .card-wide, .card-third, .card-demo,
  .bento > article:nth-child(3) { grid-column: auto; }
  .privacy, .final, .together { padding: 40px 20px; }
  .sec { padding: 56px 0; }
  /* Нижний отступ держит место под липкой панелью — иначе она накрывает
     строку копирайта (шорткат padding обязан её сохранять). */
  .site-foot { margin-top: 48px; padding: 40px 0 calc(120px + env(safe-area-inset-bottom)); }
  .foot-grid { gap: 26px 20px; }
  /* На узком экране карточки идут друг под другом: рядом суммы ломались бы
     на две строки. Линию убираем — в вертикальной раскладке она указывала
     в пустоту; смысл держит сама вспышка прилетевшей записи. */
  .sync-scene { grid-template-columns: 1fr; gap: 30px; max-width: 296px; margin-inline: auto; }
  /* Горизонтальная линия в вертикальной раскладке указывала в пустоту —
     заменяем её вертикальной: запись так же летит с телефона на телефон,
     иначе на мобиле секция про синхронизацию стоит неподвижно. */
  .sync-link { display: none; }
  /* Пунктир занимает ровно зазор между карточками (gap 30px): половина сцены
     приходится на его середину, потому что карточки одинаковой высоты. */
  .sync-scene::before {
    content: ""; position: absolute; z-index: 1; left: 50%; top: calc(50% - 15px);
    height: 30px; border-left: 2px dashed rgba(53, 224, 189, .35);
  }
  .sync-scene::after {
    content: ""; position: absolute; z-index: 3; left: 50%; top: 50%;
    width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
    background: var(--brand-2); box-shadow: 0 0 12px rgba(53, 224, 189, .9);
    animation: sync-drop 2.6s ease-in-out infinite; animation-play-state: paused;
  }
  .together.in .sync-scene::after { animation-play-state: running; }
  /* Фазы совпадают с CSS-анимациями send/arrive: точка появляется, когда
     запись возникла слева (16 %), долетает к 52 % и гаснет ровно тогда, когда
     строка проявляется справа (58 %). Раньше точка ещё летела, а запись уже
     стояла на втором телефоне — «прилетело раньше, чем долетело». */
  @keyframes sync-drop {
    0%, 14%   { opacity: 0; transform: translateY(-26px); }
    20%       { opacity: 1; transform: translateY(-20px); }
    52%       { opacity: 1; transform: translateY(16px); }
    58%, 100% { opacity: 0; transform: translateY(22px); }
  }
  /* Текст секции идёт первым — сцена без подписи ничего не объясняет. */
  .together-art { order: 0; margin-top: 26px; }
  /* Сцена ужата: на телефоне две карточки в столбик занимали пол-экрана, а
     зарезервированная (пустая до прилёта) третья строка на такой высоте
     читалась как дырка в карточке. Мельче строки — короче пауза. */
  .mini { padding: 12px 12px 13px; }
  .mini-top { margin-bottom: 9px; padding-bottom: 8px; }
  .mini-title { font-size: 11px; }
  .mini-row { grid-template-columns: 18px 1fr auto; gap: 8px; padding: 7px 0; font-size: 12.5px; }
  .mini-row b { font-size: 12px; }
  .mini-ic { width: 18px; height: 18px; border-radius: 6px; }
  .mini-total { margin-top: 9px; padding-top: 9px; font-size: 11.5px; }
  .mini-total b { font-size: 14px; }
  .mini-b { margin-top: 0; }
  .together-art { margin-bottom: 8px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  /* Экран целиком в 390px — это очень длинная башня; на телефоне показываем
     верхнюю часть, как в полосе ниже. */
  .phone-solo { width: min(86%, 320px); aspect-ratio: 780 / 1240; }
  /* Тач-цель не меньше 44px: на телефоне по этим табам целятся пальцем. */
  .stage-tabs button, .plan-switch button { padding: 12px 16px; font-size: 14px; }
  /* Пятый экран («Счета») в один ряд на 390px влезает только на ужатых боках.
     Вертикальный отступ ужимать нельзя — на нём держится высота тач-цели. */
  .stage-tabs { max-width: 100%; }
  .stage-tabs button { padding: 13px 9px; font-size: 13px; }
  /* На 320px пять табов (min-content 322px) распирали грид-колонку и весь hero:
     правый край уезжал за экран, «Цели» срезались. min-width:0 снимает
     распирание, лента получает свою прокрутку — как у чипов ниже. */
  .hero-in > * { min-width: 0; }
  .stage-tabs { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .stage-tabs::-webkit-scrollbar { display: none; }
  .stage-tabs button { flex: none; }
  /* Одна колонка: сбрасываем размещение по сетке и порядком ставим подпись с
     переключателем между бесплатным тарифом и PRO (бесплатный остаётся с
     order:0 по умолчанию). Зазоры намеренно неравные — сверху 46px, снизу 24:
     при одинаковых переключатель по гештальту прилипал к карточке НАД ним,
     то есть к бесплатной, цену которой он не меняет. Снизу меньше 24 нельзя:
     бейдж «Всё включено» торчит на 12px выше карточки PRO. */
  .plan-switch-cap { display: block; order: 1; margin: 26px 0 -10px;
                     color: var(--ink-3); font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
  .plan-switch { grid-column: auto; grid-row: auto; order: 2; display: flex; width: 100%; margin-bottom: 4px; }
  .plan { grid-row: auto; }
  .plan-pro { order: 3; }
  .plan-switch button { flex: 1; justify-content: center; }
  .hero-cta .btn { flex: 1 1 100%; }
  /* Панель фичи в столбик: кадр (он первый в разметке) → текст. Всё ужато так,
     чтобы лента чипов и открытая панель помещались на один экран телефона без
     прокрутки: иначе выбранный чип остаётся вверху, а кадр — за нижним краем,
     и переключение выглядит как «ничего не произошло». Потолок кадра —
     в svh, а не в px: на 667px-экране 220px оставили бы текст за кадром. */
  .feat { margin-top: 16px; }
  .feat-lead { font-size: 15px; margin-bottom: 10px; }
  .feat-panels { margin-top: 12px; }
  .feat-panel { grid-template-columns: 1fr; gap: 12px; padding: 14px 14px; }
  .feat-panel-solo { min-height: 0; }
  .feat-panel p { font-size: 14.5px; }
  .feat-shot { min-height: 0; padding: 7px; }
  .feat-shot img { max-height: min(230px, 25svh); }
  /* Тач-цель: по чипам на телефоне целятся пальцем. */
  .chips { gap: 8px; }
  .chips button { padding: 11px 14px; font-size: 13.5px; }
  /* Доказательства в столбик: разнобойные строки по 1–2 пункта смотрятся рвано. */
  .proof { flex-direction: column; gap: 10px; }
  .hero { padding-bottom: 8px; }
}

/* Все восемь чипов должны быть видны сразу: горизонтальную ленту с прокруткой
   владелец забраковал — «листать не должно быть нужно». Поэтому на узком
   экране они переносятся по строкам, а размер подобран так, чтобы вместе с
   открытой панелью блок влезал в один экран телефона. */
@media (max-width: 560px) {
  /* Две ровные колонки вместо рваных строк: при flex-wrap хвост каждой строки
     оставался пустым, а чипы прыгали по ширине. */
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .chips button { width: 100%; justify-content: center; text-align: center; }
  /* Тач-цель 40px: меньше — уже неудобно пальцем, больше — восемь чипов
     перестают помещаться вместе с панелью на один экран. */
  .chips button { padding: 10px 11px; font-size: 12.5px; line-height: 1.35; }
  .chips .pro-tag { padding: 1px 5px; font-size: 10px; }
  /* Ужимаем ещё на десяток пикселей: на 360×640 (самый маленький живой
     телефон) блок иначе на столько же не влезал в экран. */
  .feat { margin-top: 12px; }
  .feat-panels { margin-top: 8px; }
  .feat-panel { padding: 12px; gap: 10px; }
}

/* Низкие экраны (SE, старые Android): кадр в панели ужимаем ещё, иначе восемь
   чипов и открытая панель перестают помещаться в один экран. */
@media (max-width: 560px) and (max-height: 700px) {
  .feat-shot img { max-height: 19svh; }
  .feat-panel p { font-size: 14px; }
  .feat-lead { font-size: 13.5px; margin-bottom: 8px; }
  .chips { gap: 6px; }
  .chips button { padding: 9px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  /* Точка «летящей записи» без анимации превращается в бирюзовое пятно
     между карточками, которое ничего не значит. */
  .sync-scene::after { display: none; }
  /* Остаток в сцене синхронизации собран из двух значений в одной ячейке —
     без анимации они накладывались друг на друга и читались как каша.
     Оставляем итоговое: оно совпадает со строками, видимыми на обоих телефонах. */
  .amt-old { display: none; }
}
