/* WalletCounter — сайт. Цвета и форма — из самого приложения: фиолетовый, лавандовый фон, мягкие скругления. */
:root {
  --paper: #f4f2fb;
  --surface: #ffffff;
  --ink: #17133a;
  --hint: #625e80;
  --line: #e3e0f2;
  --violet: #5b4cf0;
  --violet-text: #4a39d6;
  --violet-soft: #e6e2ff;
  --mint: #12a150;
  --bubble-me: #dcd6ff;
  --bubble-bot: #ffffff;
  --band: #17133a;
  --band-text: #f1efff;
  --band-hint: #aaa5d3;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f0d1f; --surface: #1a1730; --ink: #f1efff; --hint: #a29fc0; --line: #2b2748;
    --violet: #6a5cf5; --violet-text: #ada2ff; --violet-soft: #29235a; --mint: #3ccf7f;
    --bubble-me: #3a3080; --bubble-bot: #1f1c38; --band: #1d1940; --band-text: #f1efff; --band-hint: #aaa5d3;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; display: block; }
a { color: var(--violet-text); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--violet-text); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Шапка */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; flex: none; }
.top-link { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 16px; border-radius: 999px; background: var(--surface); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--violet); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; padding: 17px 26px; border-radius: 18px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.note { color: var(--hint); font-size: 15px; margin-top: 14px; }

/* Первый экран */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-block: 28px 72px; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 22px; text-wrap: balance; }
.hero .quote { white-space: nowrap; color: var(--violet-text); }
.hero p.lead { font-size: 19px; color: var(--hint); max-width: 30em; margin: 0 0 32px; }

/* Телефон */
.phone { position: relative; width: 100%; max-width: 330px; aspect-ratio: 390 / 844; margin-inline: auto; border-radius: 48px; padding: 11px; background: #17133a;
  box-shadow: 0 30px 60px -28px rgba(12, 10, 30, 0.45), inset 0 0 0 2px #2c2760; }
.phone > .screen { width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: var(--paper); position: relative; }
/* Экран приложения — под полоской статус-бара, чтобы вырез камеры не закрывал верх. */
.phone > .screen > img { width: 100%; height: calc(100% - 44px); margin-top: 44px; object-fit: cover; object-position: top; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); background: #17133a; border-radius: 20px; z-index: 2; }

/* Чат с ботом (первый экран) */
.chat { display: flex; flex-direction: column; height: 100%; background: linear-gradient(180deg, #e9e5ff 0%, #f4f2fb 60%); padding: 64px 14px 18px; gap: 10px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .chat { background: linear-gradient(180deg, #221d4a 0%, #13112a 60%); } }
.chat-head { position: absolute; top: 52px; left: 0; right: 0; text-align: center; font-weight: 700; font-size: 15px; }
.chat-head small { display: block; font-weight: 400; color: var(--hint); font-size: 12px; }
.chat-body { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 9px 13px; border-radius: 18px; line-height: 1.35; box-shadow: 0 1px 1px rgba(23, 19, 58, 0.06); }
.msg.me { align-self: flex-end; background: var(--bubble-me); border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--bubble-bot); border-bottom-left-radius: 6px; width: 86%; }
.msg time { display: block; text-align: right; font-size: 11px; color: var(--hint); margin-top: 2px; }
.rec { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.rec + .rec { border-top: 1px solid var(--line); }
.rec .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 16px; flex: none; }
.rec b { font-weight: 600; }
.rec .what { flex: 1; min-width: 0; }
.rec .what small { display: block; color: var(--hint); font-size: 12px; }
.rec .sum { font-weight: 700; white-space: nowrap; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chip-row span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-text); }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--hint); opacity: 0.5; }

/* Одна анимация на странице: сообщение → бот печатает → записи. */
@media (prefers-reduced-motion: no-preference) {
  .chat .m1 { animation: pop 0.45s 0.4s both cubic-bezier(.2,.9,.3,1.2); }
  .chat .typing { animation: pop 0.3s 1.1s both, gone 0.2s 2.3s forwards; }
  .chat .typing i { animation: blink 0.9s infinite; }
  .chat .typing i:nth-child(2) { animation-delay: 0.15s; }
  .chat .typing i:nth-child(3) { animation-delay: 0.3s; }
  .chat .m2 { animation: pop 0.5s 2.4s both cubic-bezier(.2,.9,.3,1.2); }
  .chat .m3 { animation: pop 0.45s 3.6s both cubic-bezier(.2,.9,.3,1.2); }
  .chat .m4 { animation: pop 0.5s 4.6s both cubic-bezier(.2,.9,.3,1.2); }
}
@media (prefers-reduced-motion: reduce) { .chat .typing { display: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes gone { to { opacity: 0; height: 0; padding: 0; margin: -10px 0 0; } }
@keyframes blink { 50% { opacity: 1; } }

/* Что умеет: полоса с текстом и экраном */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding-block: 56px; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; font-weight: 800; text-wrap: balance; }
.feature p { color: var(--hint); margin: 0 0 14px; max-width: 30em; }
.feature ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.feature li { display: flex; gap: 10px; align-items: baseline; }
.feature li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; transform: translateY(-2px); }
.say { display: inline-block; background: var(--bubble-me); color: var(--ink); padding: 3px 10px; border-radius: 10px 10px 4px 10px; font-weight: 500; white-space: nowrap; }

/* Тёмная полоса: тарифы */
.band { background: var(--band); color: var(--band-text); padding-block: 72px; margin-top: 24px; }
.band h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; margin: 0 0 10px; font-weight: 800; }
.band .sub { color: var(--band-hint); margin: 0 0 36px; }
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; align-items: stretch; }
.plan { border-radius: 26px; padding: 28px; background: rgba(255, 255, 255, 0.06); }
.plan.pro { background: var(--violet); color: #fff; }
.plan h3 { margin: 0; font-size: 20px; font-weight: 700; }
.plan .price { font-size: 48px; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 2px; }
.plan .price small { font-size: 17px; font-weight: 500; letter-spacing: 0; opacity: 0.92; }
.plan .per { opacity: 0.92; font-size: 15px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.plan .trial { margin-top: 22px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.16); font-size: 15px; }
.plan .btn { margin-top: 22px; background: #fff; color: var(--violet); }

/* Как оплатить — по шагам */
.steps { padding-block: 64px 24px; }
.steps h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.02em; margin: 0 0 28px; font-weight: 800; }
.steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--surface); border-radius: 22px; padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--violet-soft); color: var(--violet-text); font-weight: 800; margin-bottom: 14px; }
.steps .fine { color: var(--hint); font-size: 15px; margin-top: 22px; max-width: 46em; }

/* Подвал (общий для всех страниц) */
footer { margin-top: 48px; padding-block: 28px 40px; border-top: 1px solid var(--line); color: var(--hint); font-size: 14px; }
footer p { margin: 0 0 6px; }

/* Документы: оферта, политика */
.doc { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -0.02em; margin: 12px 0 10px; }
.doc h2 { font-size: 20px; margin: 30px 0 10px; }
.doc p, .doc li { line-height: 1.6; }
.doc .muted { color: var(--hint); font-size: 15px; }

@media (max-width: 860px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-text { order: 0; }
  .hero { padding-block: 8px 48px; }
  .phone { max-width: 290px; }
  .plans { grid-template-columns: 1fr; }
  .steps ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .steps ol { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
  .top-link { display: none; }
}
