/* Stellia — лендинг раннего доступа. Бодрый потребительский стиль: жирный Onest (один шрифт на всё),
   у каждой секции свой фон — солнечно-жёлтый первый экран, чёрная лента сегментов, пастельные карточки,
   «ночное небо» под формой. Жёлтый — цвет звёзд и бренда. Курсива нет: у кириллического курсива
   рукописные «т» и «д». Шрифт лежит в fonts/ (SIL OFL). */

@font-face { font-family: "Onest"; src: url(fonts/onest-cyrillic-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url(fonts/onest-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2212; }

:root {
  --ink: #14191b;
  --muted: #4f5a5e;
  --paper: #ffffff;
  --soft: #f3f4ef;
  --card: #ffffff;
  --line: #e2e5df;
  --sun: #ffc83d;
  --star: #f0a500;
  --on-sun: #14191b;
  --mine: #fff0b8;
  --bot: #ffffff;
  --mint: #c8f0d5; --pink: #ffd6dc; --sky: #d3e7ff; --lemon: #fff1b0; --lilac: #e4dcff; --peach: #ffdcc4;
  --night: #0e1a36; --night-2: #1d3566; --on-night: #f4f6fb; --on-night-muted: #b7c1d9;
  --focus: #1f5fd1;
  --danger: #b3261e;
  --success: #1f7a3e;
  --btn: #14191b; --on-btn: #ffffff; --btn-hover: #000000; --btn-star: #ffc83d;
  --font: "Onest", system-ui, sans-serif;
  --display: var(--font);
  --body: var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef1ec; --muted: #a9b3b0; --paper: #111618; --soft: #181f21; --card: #1e2629; --line: #2c3639;
    --sun: #3a2f0c; --star: #ffc83d; --on-sun: #fff6dc; --mine: #4a3d12; --bot: #263033;
    --mint: #17382a; --pink: #3f2329; --sky: #1b2e47; --lemon: #3a3414; --lilac: #2c2648; --peach: #3f2a1c;
    --night: #070d1c; --night-2: #12224a;
    --focus: #8fb4ff; --danger: #f2b8b5; --success: #8fd19e;
    --btn: #ffc83d; --on-btn: #14191b; --btn-hover: #ffd666; --btn-star: #14191b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eef1ec; --muted: #a9b3b0; --paper: #111618; --soft: #181f21; --card: #1e2629; --line: #2c3639;
  --sun: #3a2f0c; --star: #ffc83d; --on-sun: #fff6dc; --mine: #4a3d12; --bot: #263033;
  --mint: #17382a; --pink: #3f2329; --sky: #1b2e47; --lemon: #3a3414; --lilac: #2c2648; --peach: #3f2a1c;
  --night: #070d1c; --night-2: #12224a;
  --focus: #8fb4ff; --danger: #f2b8b5; --success: #8fd19e;
  --btn: #ffc83d; --on-btn: #14191b; --btn-hover: #ffd666; --btn-star: #14191b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Полосы во всю ширину: у каждой секции свой фон */
.band-sun { background: var(--sun); color: var(--on-sun); }
.band-ink { background: #14191b; color: #fff; }
.band-soft { background: var(--soft); }

/* Шапка */
.top { padding: 20px 0; background: var(--sun); color: var(--on-sun); }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wordmark { font: 800 26px/1 var(--font); letter-spacing: -.03em; color: inherit; text-decoration: none; }
.wordmark i { color: var(--ink); font-style: normal; }
.top-note { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgb(20 25 27 / .08); }

/* Первый экран */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; padding: 40px 0 96px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; margin: 0 0 20px; padding: 7px 14px; border-radius: 16px; background: var(--paper); color: var(--ink); }
h1 { font: 800 clamp(36px, 4.4vw, 60px)/1.03 var(--font); letter-spacing: -.035em; margin: 0 0 24px; text-wrap: balance; }
.lead { font-size: 20px; line-height: 1.5; max-width: 32em; margin: 0 0 34px; font-weight: 500; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; background: var(--btn); color: var(--on-btn); border: 0; border-radius: 999px; padding: 0 32px; font: 700 18px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.button:hover { transform: translateY(-2px); background: var(--btn-hover); }
.button:active { transform: none; }
.button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.button[aria-busy="true"] { opacity: .6; cursor: progress; }
.button .star { color: var(--btn-star); }
.sub-cta { font-size: 15px; font-weight: 500; margin: 16px 0 0; }

/* Главная сцена: переписка с ботом → карточка отзыва на сайте */
.scene { margin: 0; position: relative; }
.chat { background: var(--soft); border-radius: 32px; padding: 18px 16px 70px; max-width: 410px; margin-left: auto; box-shadow: 0 30px 60px -24px rgb(60 40 0 / .45); border: 8px solid #14191b; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 2px 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font: 800 17px/1 var(--font); flex: none; }
.chat-head small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; margin: 8px 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
/* Анимация: app.js ставит .anim (сообщения скрыты) и .play, когда сцена видна на экране.
   Без скрипта и при «меньше движения» всё показано сразу. */
.anim .msg { opacity: 0; transform: translateY(8px); }
.anim.play .msg { animation: pop .35s ease-out forwards; }
.msg.bot { background: var(--bot); border-bottom-left-radius: 6px; }
.msg.me { background: var(--mine); margin-left: auto; border-bottom-right-radius: 6px; }
.rate { display: flex; gap: 6px; margin-top: 8px; }
.rate span { flex: 1; text-align: center; border-radius: 10px; padding: 6px 0; background: var(--soft); color: var(--star); font-size: 18px; }
.msg.stars-msg { color: var(--star); font-size: 20px; letter-spacing: 2px; }
.m1 { animation-delay: .2s; } .m2 { animation-delay: .9s; } .m3 { animation-delay: 1.7s; }
.m4 { animation-delay: 2.4s; } .m5 { animation-delay: 3.3s; } .m6 { animation-delay: 4.1s; }

.review { position: relative; margin: -52px 0 0 -24px; width: min(340px, 90%); background: var(--card); color: var(--ink); border-radius: 22px; padding: 20px 22px 18px; box-shadow: 0 24px 50px -20px rgb(20 25 27 / .45); transform: rotate(-3deg); }
.anim .review { opacity: 0; transform: translateY(24px) rotate(-3deg); }
.anim.play .review { animation: land .6s cubic-bezier(.2, .8, .2, 1) 4.8s forwards; }
.review-tag { font-size: 12px; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.stars { color: var(--star); letter-spacing: 2px; }
.stars .off { opacity: .3; }
.review .stars { font-size: 20px; }
.review blockquote { margin: 6px 0 12px; font: 600 17px/1.4 var(--font); }
.review cite { font-style: normal; font-size: 13px; color: var(--muted); }

@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes land { to { opacity: 1; transform: rotate(-3deg); } }

/* Лента «для кого» */
.strip-row { list-style: none; margin: 0 auto; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-weight: 700; font-size: 16px; }
.strip-row li::before { content: "★"; color: #ffc83d; margin-right: 10px; }

/* Разделы */
.block { padding: 96px 0; }
h2 { font: 800 clamp(30px, 3.8vw, 48px)/1.05 var(--font); letter-spacing: -.03em; margin: 0 0 40px; text-wrap: balance; }

/* Как это работает: три шага по порядку — номер несёт смысл */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; border-radius: 28px; padding: 32px 28px 36px; background: var(--mint); }
.steps li:nth-child(2) { background: var(--pink); }
.steps li:nth-child(3) { background: var(--sky); }
.steps li::before { content: counter(s); display: block; font: 800 72px/1 var(--font); letter-spacing: -.04em; margin-bottom: 28px; }
.steps h3 { font: 800 22px/1.2 var(--font); letter-spacing: -.01em; margin: 0 0 10px; }
.steps p { margin: 0; color: var(--ink); opacity: .82; }

/* Стена отзывов */
.wall-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.wall-intro h2 { margin: 0; max-width: 12em; }
.wall-intro p { margin: 0; color: var(--muted); max-width: 26em; font-weight: 500; }
.browser { border-radius: 24px; background: var(--card); box-shadow: 0 30px 60px -36px rgb(20 25 27 / .35); padding: 0 22px 6px; }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.address { flex: 1; max-width: 360px; background: var(--soft); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); }
.wall { columns: 3 280px; column-gap: 18px; }
.card { break-inside: avoid; background: var(--soft); border-radius: 20px; padding: 20px 22px; margin: 0 0 18px; }
.t-mint { background: var(--mint); } .t-pink { background: var(--pink); } .t-sky { background: var(--sky); }
.t-lemon { background: var(--lemon); } .t-lilac { background: var(--lilac); } .t-peach { background: var(--peach); }
.card .stars { color: var(--ink); }
.card blockquote { margin: 8px 0 14px; font: 600 17px/1.45 var(--font); }
.card cite { font-style: normal; font-size: 13px; color: var(--ink); opacity: .75; display: flex; justify-content: space-between; gap: 12px; }
.card .src { white-space: nowrap; font-weight: 700; }
.wall-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* Цена — крупная тёмная карточка */
.price { background: #14191b; color: #fff; border-radius: 32px; padding: clamp(32px, 5vw, 64px); }
.price-line { font: 600 clamp(22px, 2.8vw, 34px)/1.3 var(--font); letter-spacing: -.015em; margin: 0 0 22px; max-width: 28em; }
.price-line b { font-weight: 800; color: #ffc83d; }
.offer { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; color: #fff; }
.offer::before { content: "★"; color: #ffc83d; }
.price-cta { margin: 32px 0 0; }
.price .button { background: #ffc83d; color: #14191b; }
.price .button:hover { background: #ffd666; }
.price .button .star { color: #14191b; }

/* Частые вопросы */
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.faq > div { background: var(--soft); border-radius: 24px; padding: 26px 28px; }
.faq h3 { font: 800 20px/1.25 var(--font); letter-spacing: -.01em; margin: 0 0 8px; }
.faq p { margin: 0; color: var(--muted); }

/* Форма — на ночном небе */
.band-night {
  color: var(--on-night);
  background:
    radial-gradient(1.5px 1.5px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 62%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 35% 28%, #ffe7a3 50%, transparent 51%),
    radial-gradient(1px 1px at 46% 80%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 14% 88%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 8%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 6%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 96% 70%, #ffe7a3 50%, transparent 51%),
    radial-gradient(1px 1px at 5% 45%, #fff 50%, transparent 51%),
    radial-gradient(ellipse 80% 60% at 20% 110%, var(--night-2), transparent 70%),
    var(--night);
}
.band-night h2 { color: #fff; }
.signup { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.signup-intro p { color: var(--on-night-muted); margin: 0; font-size: 18px; font-weight: 500; }
.signup-intro h2::after { content: "★"; display: block; color: #ffc83d; font-size: 36px; margin-top: 18px; }
.form, .done { background: var(--card); color: var(--ink); border-radius: 28px; padding: 34px; display: grid; gap: 24px; box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); }
.field { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.label { font-weight: 700; font-size: 15px; padding: 0; }
input[type="email"] { font: inherit; font-size: 17px; padding: 15px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--soft); color: var(--ink); width: 100%; }
input[type="email"]:focus { border-color: var(--ink); outline: none; }
input[type="email"][aria-invalid="true"] { border-color: var(--danger); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--soft); border: 2px solid transparent; font-size: 15px; font-weight: 600; }
.choices label:hover span { border-color: var(--line); }
.choices input:checked + span { background: var(--sun); color: var(--on-sun); border-color: var(--ink); }
.choices input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--btn); flex: none; }
.field-error, .form-error { color: var(--danger); font-size: 14px; line-height: 20px; margin: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .submit { justify-self: start; }
.done h3 { font: 800 26px/1.2 var(--font); margin: 0; color: var(--success); }
.done p { margin: 0; color: var(--muted); }

/* Документы: политика и согласие */
.doc { max-width: 720px; padding-top: 40px; padding-bottom: 72px; display: grid; gap: 16px; }
.doc h1 { font-size: clamp(30px, 4vw, 44px); margin: 0; }
.doc h2 { font-size: 24px; margin: 20px 0 0; }
.doc-h3 { margin: 8px 0 0; font-size: 16px; line-height: 24px; font-weight: 700; }
.doc-meta { font-size: 14px; color: var(--muted); }
.doc p, .doc li { text-wrap: pretty; margin: 0; }
.doc ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }

/* Подвал */
.foot { background: #14191b; color: #b9c0c2; font-size: 13px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px 0; }
.foot-legal { padding-top: 0; }
.foot a { display: inline-block; padding: 12px 0; margin: -12px 0; color: #fff; }

/* Плашка о cookie: прилипает к низу экрана, в конце страницы встаёт под подвалом */
.cookie { position: sticky; bottom: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgb(0 0 0 / .08); }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 12px 0; }
.cookie-row p { margin: 0; flex: 1 1 0; min-width: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.cookie-ok { flex: none; min-height: 40px; padding: 0 18px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:hover { transform: none; }
}

@media (max-width: 860px) {
  .hero, .signup { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 16px; padding-bottom: 64px; }
  .chat { max-width: none; margin-left: 0; }
  .review { margin-left: auto; margin-right: 8px; }
  .steps, .faq { grid-template-columns: 1fr; gap: 14px; }
  .steps li::before { font-size: 56px; margin-bottom: 18px; }
  .strip-row { justify-content: flex-start; gap: 8px 20px; font-size: 15px; }
  .eyebrow { font-size: 13px; }
  .browser { padding: 0 12px 4px; }
  .form, .done { padding: 24px; }
  .block { padding: 64px 0; }
  .price { border-radius: 24px; }
}
