@font-face {
  font-family: Onest;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/onest-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Onest;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/onest-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2122;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/assets/fonts/unbounded-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2122;
}

:root {
  --bg: #f5eee2;
  --card: #fffaf2;
  --ink: #221b16;
  --muted: #6b5d51;
  --accent: #b0451a;
  --line: #e2d5c1;
  --on-accent: #fff;
  --band: color-mix(in srgb, var(--bg) 92%, var(--ink));
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161f;
    --card: #1e2130;
    --ink: #efe9de;
    --muted: #9ea1b3;
    --accent: #f2b56b;
    --line: #323650;
    --on-accent: #221b16;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 Onest, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: Unbounded, Onest, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.15;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: Onest, system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.97);
}

.btn-main {
  padding: 14px 28px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(34, 27, 22, 0.08), 0 12px 24px -8px color-mix(in srgb, var(--accent) 45%, transparent); /* taste-skill-ignore */
}

.btn-main:hover {
  box-shadow: 0 1px 2px rgba(34, 27, 22, 0.1), 0 16px 28px -8px color-mix(in srgb, var(--accent) 65%, transparent); /* taste-skill-ignore */
}

.btn-ink {
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  font-size: 14px;
}

/* Шапка */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; /* taste-skill-ignore */
  transition: border-color 0.2s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}

.wordmark {
  justify-self: start;
  font: 700 22px/1 Unbounded, sans-serif;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.wordmark .dot {
  color: var(--accent);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a,
.lang-link {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover,
.lang-link:hover {
  color: var(--ink);
}

.bar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

/* Появление при прокрутке */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 88px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 500;
}

.badge-icon {
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url(/assets/nose.svg) center / contain no-repeat;
  mask: url(/assets/nose.svg) center / contain no-repeat;
}

.hero h1 {
  margin-top: 28px;
  font-size: clamp(34px, 6.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: 560px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 18px;
}

.hero-cta {
  margin-top: 32px;
}

.fine {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* Сцена с корги */

.stage {
  position: relative;
  width: min(640px, 100%);
  height: 320px;
  margin-top: 44px;
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 32px;
  background: var(--card);
  --snout-w: min(440px, 86vw);
}

.tap-hint {
  position: absolute;
  top: 78px;
  left: 50%;
  width: max-content;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 13px;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(-6px) rotate(var(--r));
  }

  50% {
    transform: translateY(6px) rotate(var(--r));
  }
}

/* Что умеет */

.features {
  padding-top: 40px;
  padding-bottom: 104px;
}

.head {
  text-align: center;
}

.label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.head h2 {
  max-width: 640px;
  margin-inline: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
}

.card > h3 {
  margin-top: 24px;
}

.card > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.demo {
  height: 200px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  transition: box-shadow 0.25s var(--ease-out);
}

.card:hover .demo {
  box-shadow: 0 18px 32px -16px rgba(34, 27, 22, 0.3); /* taste-skill-ignore */
}

.demo-say {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
}

.phrases {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.phrase {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font: 500 13px/1.3 Onest, sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s var(--ease);
}

.phrase:hover {
  transform: translateY(-1px);
}

.phrase:active {
  transform: scale(0.97);
}

.phrase[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.parsed {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 10px;
  color: var(--muted);
  font-size: 13px;
}

.parsed b {
  color: var(--ink);
  font-weight: 600;
}

.parsed b + b::before {
  content: "·";
  margin-right: 10px;
  color: var(--accent);
}

.demo-repeat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.demo-repeat p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 500;
}

.demo-repeat em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  font-weight: 400;
}

/* Как это работает */

.how {
  padding-block: 88px;
  background: var(--band);
}

.how h2 {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font: 600 14px Unbounded, sans-serif;
  letter-spacing: 0;
}

.steps p {
  max-width: 300px;
  font-size: 17px;
}

/* Boop Plus */

.plus {
  padding-block: 104px 0;
}

.plus-card {
  max-width: 880px;
  margin-inline: auto;
  padding: 56px 48px;
  border-radius: 32px;
  background: var(--card);
  text-align: center;
}

.plus-card h2 {
  max-width: 560px;
  margin-inline: auto;
}

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
  text-align: left;
}

.plan {
  padding: 28px;
  border-radius: 24px;
  background: var(--bg);
}

.plan h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.soon {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 600 13px/1.4 Onest, sans-serif;
  letter-spacing: 0;
}

.plan ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan li {
  position: relative;
  padding-left: 18px;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* FAQ */

.faq {
  padding-block: 104px 0;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 48px auto 0;
}

.faq-item {
  border-radius: 20px;
  background: var(--card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.js .faq-item:not(.is-open) summary::after {
  transform: none;
}

.js .faq-item.is-open summary::after {
  transform: rotate(45deg);
}

.faq-a p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 16px;
}

.faq-a a {
  color: var(--ink);
}

.js .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s var(--ease);
}

.js .faq-a > p {
  min-height: 0;
  overflow: hidden;
  padding-block: 0;
  transition: padding 0.25s var(--ease);
}

.js .faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.js .faq-item.is-open .faq-a > p {
  padding-bottom: 22px;
}

/* Финальный призыв */

.cta {
  padding-block: 120px 104px;
  text-align: center;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
}

.qr {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  color: var(--muted);
  font-size: 13px;
}

.qr img {
  display: block;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
}

.qr p {
  max-width: 120px;
}

/* Подвал */

.site-footer {
  padding-block: 56px 36px;
  background: var(--band);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.foot-brand p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.foot-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.foot-col:last-child {
  align-items: flex-end;
  text-align: right;
}

.foot-col h3 {
  margin-bottom: 6px;
  color: var(--muted);
  font: 500 14px Onest, sans-serif;
  letter-spacing: 0;
}

.foot-col a {
  font-size: 15px;
  text-decoration: none;
  transition: color 0.15s;
}

.foot-col a:hover {
  color: var(--accent);
}

.copy {
  margin-top: 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

/* Планшет и телефон */

@media (max-width: 900px) {
  .site-nav {
    display: none;
  }

  /* Нос как в мини-приложении: на 390 — 236 px. Поля сцены шире карточки уходят за срез. */
  .scene {
    --snout-w: min(440px, calc(123vw - 65px));
  }

  .bar {
    grid-template-columns: 1fr auto;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 420px;
    margin-inline: auto;
  }

  .plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-inline: 20px;
  }

  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .bar-end {
    gap: 14px;
  }

  .bar-end .btn {
    padding: 9px 14px;
    font-size: 14px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .stage {
    height: 372px;
    margin-top: 44px;
  }

  .tap-hint {
    top: 170px;
  }

  .features {
    padding-bottom: 72px;
  }

  .how {
    padding-block: 64px;
  }

  .plus {
    padding-top: 72px;
  }

  .plus-card {
    padding: 40px 20px;
  }

  .plan {
    padding: 22px;
  }

  .faq {
    padding-top: 72px;
  }

  .cta {
    padding-block: 80px 72px;
  }

  .qr {
    display: none;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .card:hover {
    transform: none;
  }

  .btn,
  .btn:hover,
  .btn:active,
  .js .faq-a,
  .js .faq-a > p,
  .faq-item summary::after {
    transition: none;
    transform: none;
  }

  .faq-item[open] summary::after,
  .js .faq-item.is-open summary::after {
    transform: rotate(45deg);
  }
}

/* ===== Проход 2 ===== */

/* бейдж-ссылка со значком Telegram */
a.badge {
  text-decoration: none;
  transition: transform 0.15s var(--ease);
}

a.badge:hover {
  transform: translateY(-1px);
}

.badge-icon {
  display: block;
  background: none;
  -webkit-mask: none;
  mask: none;
}

.badge-icon svg {
  display: block;
  overflow: visible;
}

.plane {
  transition: transform 0.15s var(--ease);
}

a.badge:hover .plane {
  transform: translate(2px, -2px);
}

/* плашка «Boop!» в заголовке */
.boop-chip {
  display: inline-block;
  padding: 0 0.18em;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 1px 0 var(--line), 0 6px 14px -10px rgba(80, 50, 20, 0.25); /* taste-skill-ignore */
  color: var(--accent);
  font-weight: 700;
  transform: rotate(-3deg);
  animation: chip-boop 0.45s var(--ease-out) 0.5s 1 both;
}

@keyframes chip-boop {
  0% {
    transform: rotate(-3deg) scale(1);
  }

  50% {
    transform: rotate(-3deg) scale(1.08);
  }

  100% {
    transform: rotate(-3deg) scale(1);
  }
}

@media (prefers-color-scheme: dark) {
  .boop-chip {
    box-shadow: 0 1px 0 var(--line), 0 6px 14px -10px rgba(0, 0, 0, 0.5); /* taste-skill-ignore */
  }
}

/* карточка мини-аппа: значения .reminder-row 1:1 */
.mini {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 1px 0 0 var(--line), 0 6px 14px -10px rgba(80, 50, 20, 0.25); /* taste-skill-ignore */
  color: var(--ink);
  font: 400 15px/1.5 Onest, system-ui, sans-serif;
  text-align: left;
}

@media (prefers-color-scheme: dark) {
  .mini {
    box-shadow: 0 1px 0 0 var(--line), 0 6px 14px -10px rgba(0, 0, 0, 0.5); /* taste-skill-ignore */
  }
}

.mini-time {
  color: var(--accent);
  font-size: 17px;
  font-weight: 600;
  line-height: 25.5px;
}

.mini-info {
  display: block;
  min-width: 0;
}

.mini-title {
  display: block;
  overflow: hidden;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-meta {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-chev {
  position: absolute;
  right: 14px;
  top: 50%;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
}

.mini.is-done .mini-title {
  color: var(--muted);
  text-decoration: line-through;
}

.mini.is-done .mini-time {
  color: var(--muted);
}

.mini.is-done .mini-chev {
  color: #2e9b5f;
  font-size: 18px;
}

/* сообщение бота в стиле Telegram */
.tg {
  --tg-bg: #fff;
  --tg-btn: rgba(42, 171, 238, 0.12);
  position: relative;
  text-align: left;
}

@media (prefers-color-scheme: dark) {
  .tg {
    --tg-bg: #1e2130;
    --tg-btn: rgba(42, 171, 238, 0.16);
  }
}

.tg-bubble {
  position: relative;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--tg-bg);
  font-size: 14px;
  line-height: 1.5;
}

.tg-bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  bottom: 0;
  width: 10px;
  height: 12px;
  background: var(--tg-bg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.tg-kb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}

.tg-kb3 {
  grid-template-columns: repeat(3, 1fr);
}

.tg-kb span,
.m-kb span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 7px;
  background: var(--tg-btn);
  color: #0e6590;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* переворачивалки в hero */
.flip {
  position: absolute;
  z-index: 3;
  width: 250px;
  perspective: 900px;
  cursor: pointer;
  animation: bob 6s ease-in-out infinite;
  will-change: transform;
}

.flip-a {
  --r: -4deg;
  left: max(-56px, calc((100% - 100vw) / 2 + 14px));
  top: 2px;
}

.flip-b {
  --r: 5deg;
  right: max(-56px, calc((100% - 100vw) / 2 + 14px));
  top: 16px;
  animation-delay: -3s;
}

.flip-inner {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out);
}

.flip.is-flipped .flip-inner {
  transform: rotateY(180deg);
}

.face {
  grid-area: 1 / 1;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.face-back {
  transform: rotateY(180deg);
}

.cap {
  display: block;
  margin: 0 0 3px 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

/* секция «телефон» */
.phone-sec {
  padding-block: 24px 104px;
}

.phone-grid {
  display: grid;
  grid-template-columns: minmax(0, 480px) auto;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 960px;
  margin-inline: auto;
}

.phone-copy {
  padding-bottom: 76px;
}

.app-list .mini {
  grid-template-columns: 56px 1fr;
  padding: 12px 24px 12px 12px;
}

.flip .mini-meta {
  font-size: 13px;
}

.app-list .mini-title {
  font-size: 15px;
}

.app-foot {
  padding: 14px 16px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.boop-chip {
  white-space: nowrap;
}

.phone-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
}

.phone-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.phone {
  position: relative;
  width: 300px;
  height: 620px;
  overflow: hidden;
  border: 10px solid var(--ink);
  border-radius: 46px;
  background: var(--bg);
}

.notch {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 5;
  width: 96px;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: var(--ink);
  transform: translateX(-50%);
}

.track {
  display: flex;
  width: 200%;
  height: 100%;
  transition: transform 0.6s var(--ease-out);
}

.track.on-app {
  transform: translateX(-50%);
}

.pscreen {
  display: flex;
  flex-direction: column;
  width: 50%;
  height: 100%;
  padding-top: 26px;
  text-align: left;
  visibility: visible;
  transition: visibility 0s linear 0s;
}

/* неактивный экран не должен считаться содержимым страницы */
.track:not(.on-app) .papp,
.track.on-app .pchat {
  visibility: hidden;
  transition: visibility 0s linear 0.6s;
}

.tg-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
}

.tg-av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 14px Unbounded, sans-serif;
}

.tg-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.tg-name small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.tg-log {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 12px 20px;
  --tg-bg: #fff;
  --tg-btn: rgba(42, 171, 238, 0.12);
}

@media (prefers-color-scheme: dark) {
  .tg-log {
    --tg-bg: #1e2130;
    --tg-btn: rgba(42, 171, 238, 0.16);
  }
}

.msg {
  display: block;
  max-width: 86%;
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  background: var(--tg-bg);
  font-size: 14px;
  line-height: 1.5;
}

.msg.on {
  display: block;
  animation: msg-in 0.3s var(--ease-out) both;
}

.msg.out {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: #e2f7cb;
  color: #221b16;
}

@media (prefers-color-scheme: dark) {
  .msg.out {
    background: #2b5b43;
    color: #efe9de;
  }
}

.msg.in .m-kb {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 8px -7px -3px;
}

.msg .k-done.is-press {
  background: #2aabee;
  color: #fff;
}

.typing {
  display: none;
  align-self: flex-start;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--tg-bg);
}

.typing.on {
  display: flex;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: dot 0.9s ease-in-out infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.app-head {
  padding: 14px 16px 6px;
}

.app-label {
  padding: 8px 16px;
  color: var(--muted);
  font-size: 13px;
}

.app-list {
  display: grid;
  gap: 10px;
  padding: 0 12px;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
}

.seg button {
  padding: 8px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 500 14px Onest, sans-serif;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* карточка «Не сейчас? Одно касание» */
.demo-tap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
}

.demo-tap .tg {
  width: 100%;
  --tg-bg: var(--bg);
}

.demo-tap .tg-kb span {
  padding: 6px 2px;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.card:hover .k-snooze {
  background: #2aabee;
  color: #fff;
}

@media (max-width: 900px) {
  .phone-copy {
    padding-bottom: 0;
  }

  .phone-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .stage {
    height: 464px;
  }

  .tap-hint {
    top: 264px;
  }

  .flip {
    width: 216px;
  }

  .flip-a {
    left: max(-10px, calc((100% - 100vw) / 2 + 14px));
    top: 0;
  }

  .flip-b {
    right: 0;
    top: 136px;
  }

  .flip .mini {
    grid-template-columns: 54px 1fr;
    padding: 12px 14px;
  }

  .flip .mini-title {
    font-size: 15px;
  }

  .phone-sec {
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .boop-chip {
    animation: none;
  }

  .flip {
    animation: none;
    transform: rotate(var(--r));
  }

  .flip-inner,
  .track {
    transition: none;
  }

  .msg.on {
    animation: none;
  }

  a.badge,
  a.badge:hover,
  a.badge:hover .plane {
    transform: none;
  }
}

/* ===== Проход 3 ===== */

/* цвет основного текста: контраст не ниже 7 */
:root {
  --lead: #3f352d;
}

@media (prefers-color-scheme: dark) {
  :root {
    --lead: #c9cbd8;
  }
}

.hero-lead,
.card > p,
.faq-a p {
  color: var(--lead);
}

/* зоны нажатия 44 px */
.btn-ink {
  min-height: 44px;
}

.bar .wordmark,
.site-footer .wordmark,
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

.seg button {
  min-height: 44px;
}

.foot-col {
  gap: 0;
}

.foot-col a {
  display: flex;
  align-items: center;
  min-height: 44px;
}

/* клавиши бота: контраст не ниже 4.5 в обеих темах */
@media (prefers-color-scheme: dark) {
  .tg-kb span,
  .m-kb span {
    color: #8fd6ff;
  }
}

.msg .k-done.is-press,
.card:hover .k-snooze {
  background: #14709e;
  color: #fff;
}

/* без JS в телефоне видны все 3 сообщения */
.js .msg:not(.on) {
  display: none;
}

html:not(.js) .seg {
  display: none;
}

/* название в карточке hero переносится */
.flip .mini-title {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* телефон: строка статуса и полоса home */
.statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 26px;
  padding: 0 18px;
  color: var(--ink);
  font: 600 13px/1 Onest, sans-serif;
  pointer-events: none;
}

.statusbar svg {
  display: block;
}

.homebar {
  position: absolute;
  bottom: 6px;
  left: 50%;
  z-index: 4;
  width: 104px;
  height: 4px;
  border-radius: 2px;
  background: var(--ink);
  opacity: 0.85;
  transform: translateX(-50%);
}

/* значок Telegram в главных кнопках */
.btn-ic {
  flex: none;
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.qr img {
  box-sizing: content-box;
}

@media (max-width: 420px) {
  :lang(ru) .hero h1 {
    font-size: 32px;
  }

  :lang(ru) .hero h1 br {
    display: none;
  }

  :lang(ru) .hero h1 .boop-chip {
    margin-left: 0.12em;
  }

  #features-title {
    font-size: 22px;
  }
}

/* ===== Проход 4 ===== */
.fine-qr {
  display: none;
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
  .fine-qr {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
  }

  .fine-qr:hover {
    color: var(--ink);
  }
}

#get {
  scroll-margin-top: 40vh;
}

.mini.is-done .mini-chev {
  color: #1f7a45;
}

@media (prefers-color-scheme: dark) {
  .mini.is-done .mini-chev {
    color: #5fd08e;
  }
}
