/* The home page's own parts; the shared look is site.css. */

/* ---- hero ---- */
.hero-in { display: grid; gap: 44px; padding-top: 28px; }
.hero h1::after { /* the text cursor: the product writes where it stands */
  content: ""; display: inline-block; width: .085em; height: .88em; margin-left: .1em;
  background: var(--cobalt); vertical-align: -0.06em; border-radius: 2px;
  animation: blink 1.1s steps(1) 5;
}
@keyframes blink { 50% { opacity: 0; } }
.lead { margin-top: 20px; font-size: 1.12rem; line-height: 1.6; color: var(--muted); max-width: 50ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.actions .key { flex: 1 1 auto; }
@media (min-width: 480px) { .actions .key { flex: 0 0 auto; } }
.trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 9px; height: 5px; margin-top: -3px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
@media (min-width: 940px) {
  .hero-in { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; padding-top: 80px; }
  .lead { margin-top: 22px; font-size: 1.2rem; }
}

/* the demo: a chat, the reply field, the keyboard */
.demo {
  margin: 0; position: relative;
  width: 100%; max-width: 440px; justify-self: center;
  background: var(--cap); border: 1px solid var(--line); border-radius: 30px;
  padding: 46px 14px 14px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 940px) { .demo { justify-self: end; transform: rotate(1.2deg); } }
.demo::before { /* the phone's speaker: the frame reads as a phone at a glance */
  content: ""; position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 54px; height: 6px; border-radius: 6px; background: var(--line);
}
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 124px; justify-content: flex-end; }
@media (min-width: 940px) { .chat { min-height: 150px; } }
.bubble { max-width: 84%; padding: 9px 13px; border-radius: 18px; font-size: .92rem; line-height: 1.4; }
.bubble.in { align-self: flex-start; background: var(--paper); border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--cobalt); color: var(--on-cobalt); border-bottom-right-radius: 5px; }
.field {
  position: relative; margin-top: 12px; min-height: 76px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 15px; font-size: .92rem; line-height: 1.4;
}
.field-full { visibility: hidden; display: block; }       /* holds the height of the whole reply */
.field-text { position: absolute; inset: 10px 12px; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--cobalt); vertical-align: -0.15em; margin-left: 1px; }
.strip { display: flex; gap: 6px; margin-top: 10px; }
.chip {
  padding: 5px 11px; border-radius: 999px; font-size: .8rem;
  background: var(--paper); border: 1px solid var(--line); transition: background .2s, color .2s, border-color .2s;
}
.board { position: relative; margin-top: 10px; padding: 8px 4px 4px; background: var(--paper); border-radius: 15px; }
.row { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.row:first-of-type { margin-top: 0; }
.row b {
  flex: 1 1 0; max-width: 34px; height: 36px; display: grid; place-items: center;
  background: var(--cap); border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 2px 0 var(--edge);
  font: 500 .9rem var(--body);
}
.row b.wide { max-width: 44px; }
.row b.space { flex: 4 1 0; max-width: none; color: var(--muted); font-size: .72rem; }
.row b.mic { max-width: 44px; transition: transform .08s, box-shadow .08s, background .2s; }
.row b.mic.held { background: var(--rec); transform: translateY(2px); box-shadow: 0 0 0 var(--edge); }
.wave {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  background: var(--paper); border-radius: 15px; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.wave.on { opacity: .96; }
.wave i { width: 5px; height: 14px; border-radius: 3px; background: var(--rec); }
.wave.on i { animation: talk .7s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-delay: -.3s; }
.wave i:nth-child(3n+1) { animation-delay: -.55s; }
.wave i:nth-child(4n) { animation-duration: .5s; }
@keyframes talk { from { height: 8px; } to { height: 44px; } }
.demo-hint { margin-top: 10px; text-align: center; font-size: .82rem; color: var(--muted); }
.replay {
  position: absolute; right: 14px; top: 9px; font: 500 .74rem var(--body); color: var(--muted);
  background: var(--cap); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; cursor: pointer;
}

/* ---- benefits ---- */
.benefits { display: grid; gap: 16px; margin-top: 36px; }
.benefit { padding: 26px 22px 24px; border-radius: var(--radius); background: var(--cap); border: 1px solid var(--line); box-shadow: var(--shadow); }
.benefit h3 { font-size: 1.04rem; }
.benefit p { margin-top: 8px; color: var(--muted); font-size: .96rem; }
@media (max-width: 639px) { /* phones: the icon beside the text, not above it */
  .benefit { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 22px 20px; }
  .benefit .cap { grid-row: span 2; }
}
@media (min-width: 640px) { .benefits { grid-template-columns: 1fr 1fr; } .benefit h3 { margin-top: 22px; } }
@media (min-width: 1040px) { /* four across: titles a notch smaller, so "будь-яке" does not break at its hyphen */
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .benefit { padding: 26px 20px 24px; }
  .benefit h3 { font-size: .97rem; letter-spacing: -0.02em; }
}

/* three across from 900px (the ✨ block), never four */
@media (min-width: 900px) { .benefits.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .benefits.three .benefit h3 { font-size: 1.04rem; letter-spacing: 0; } }

/* a line under a grid: what else there is, in one breath */
.note { margin-top: 24px; color: var(--muted); font-size: .95rem; max-width: 72ch; }
.note a { font-weight: 600; white-space: nowrap; }

/* ---- illustrations (site/copy/art): pure SVG with the page's colours and their own dark scheme,
   decorative - the text beside them says the same, so alt="" ---- */
.art { margin: 0; width: 100%; max-width: 480px; justify-self: center; }
.art img { display: block; width: 100%; height: auto; }
.art-head { display: grid; gap: 28px; align-items: center; }
.art-head .art { max-width: 420px; }
@media (min-width: 900px) {
  .art-head { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .art-head .art { justify-self: end; }
  .art-head.flip { grid-template-columns: 1fr 1.15fr; }
  .art-head.flip .art { order: -1; justify-self: start; }
}
.art-note { display: grid; gap: 18px; align-items: center; margin-top: 8px; }
.art-note .art-small { max-width: 340px; }
@media (min-width: 900px) { .art-note { grid-template-columns: 1fr auto; gap: 40px; } .art-note .art-small { width: 340px; } }
.art-pair { display: grid; gap: 18px; margin-top: 36px; justify-items: center; }
@media (min-width: 720px) { .art-pair { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 719px) { .art-pair .art { max-width: 400px; } }

/* ---- platforms ---- */
.plats { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.plat {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  padding: 20px 16px 18px; border-radius: var(--radius); background: var(--cap); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.plat .cap { margin-bottom: 14px; }
.plat-name { font: 650 1rem var(--display); }
.plat-text { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.plat-status { margin-top: 10px; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted);
  padding: 4px 10px; border-radius: 999px; background: var(--paper-2); }
.plat.ready .plat-status { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.plat.ready .plat-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.plat.early .plat-status { color: var(--cobalt); background: var(--cobalt-soft); }
.plat.early .plat-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.plat.soon { background: transparent; border-style: dashed; box-shadow: none; }
.plat.soon .cap { color: var(--muted); box-shadow: 0 2px 0 var(--edge); }
@media (min-width: 900px) { .plats { grid-template-columns: repeat(4, 1fr); gap: 16px; } .plat { padding: 24px 22px 22px; } }

/* ---- how: a real sequence, so the steps are numbered ---- */
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 30px; counter-reset: step; }
.step { position: relative; padding-left: 68px; counter-increment: step; }
.step .cap { position: absolute; left: 0; top: 0; }
.step h3::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 6px; color: var(--cobalt); font: 600 .8rem var(--display); letter-spacing: .1em; }
.step p { margin-top: 8px; color: var(--muted); max-width: 42ch; font-size: .96rem; }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .step { padding-left: 0; padding-top: 74px; }
}

/* ---- prices teaser ---- */
.teaser { display: grid; gap: 14px; margin-top: 36px; }
.tease {
  display: flex; flex-direction: column; gap: 4px; padding: 24px 22px; border-radius: var(--radius);
  background: var(--cap); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.tease:hover { transform: translateY(-2px); }
.tease-name { font: 600 .92rem var(--display); color: var(--muted); }
.tease-price { margin-top: 10px; font: 700 2.3rem/1.05 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tease-when { color: var(--muted); font-size: .92rem; }
.tease-for { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; line-height: 1.4; }
.tease-main { border: 2px solid var(--cobalt); box-shadow: 0 6px 0 var(--cobalt-edge); }
.tease-main .tease-name { color: var(--cobalt); }
@media (min-width: 760px) { .teaser { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

@media (prefers-reduced-motion: reduce) {
  .hero h1::after, .wave.on i { animation: none; }
  .row b.mic, .tease { transition: none; }
}

/* the home h1 is two sentences (copy-ru.md 2.1): a notch smaller than a one-line title, so it stays in 3-4 lines */
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.15rem); }
