/* AI Reply — лендинг стилі. Сыртқы CDN жоқ: бәрі осы файлда. */
:root {
  --ink: #0b1020;
  --ink-2: #1c2438;
  --muted: #5b6577;
  --muted-2: #8b93a5;
  --line: #e7e9f0;
  --line-2: #f1f2f7;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --brand: #3b5bfd;
  --brand-2: #00b8d9;
  --brand-ink: #24379e;
  --brand-soft: #eef2ff;
  --ok: #0ca678;
  --warn: #e8590c;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, .06), 0 1px 3px rgba(11, 16, 32, .04);
  --shadow: 0 10px 30px rgba(11, 16, 32, .07), 0 2px 8px rgba(11, 16, 32, .04);
  --shadow-lg: 0 30px 60px rgba(11, 16, 32, .10), 0 8px 20px rgba(11, 16, 32, .05);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Noto Sans Kazakh", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 640; letter-spacing: -.02em; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(59, 91, 253, .32);
}
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .15s ease; }
.nav a:hover { color: var(--ink); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.lang { display: flex; gap: 2px; padding: 3px; background: var(--bg-soft); border-radius: 999px; border: 1px solid var(--line-2); }
.lang a {
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; color: var(--muted-2);
}
.lang a.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #d7dbe6; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 84px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -280px 0 auto 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 91, 253, .13), rgba(0, 184, 217, .06) 55%, transparent 72%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px;
  border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 13.5px; font-weight: 600; border: 1px solid rgba(59, 91, 253, .14);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
h1 {
  margin: 20px 0 16px; font-size: clamp(38px, 5vw, 58px); line-height: 1.06;
  letter-spacing: -.035em; font-weight: 700;
}
.lede { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--muted-2); }

/* телефон макеті */
.phone {
  position: relative; width: 320px; margin: 0 auto; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 36px; box-shadow: var(--shadow-lg);
}
.phone::before {
  content: ""; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 22px; border-radius: 999px; background: #0b1020;
}
.phone-screen { border-radius: 24px; background: var(--bg-soft); padding: 42px 14px 14px; }
.chat-row { margin-bottom: 12px; }
.chat-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); margin-bottom: 6px; font-weight: 600; }
.bubble {
  padding: 11px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.bubble-in { border-bottom-left-radius: 4px; }
.bubble-instruction { background: #fff; border-style: dashed; color: var(--muted); }
.bubble-out {
  border-bottom-right-radius: 4px; color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--brand), #4f6bff);
  box-shadow: 0 10px 24px rgba(59, 91, 253, .28);
}
.kbd-hint {
  margin-top: 12px; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
}
.kbd-keys { display: flex; gap: 4px; }
.kbd-keys span { width: 16px; height: 20px; border-radius: 4px; background: var(--line-2); }

/* ---------------------------------------------------------------- sections */
section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section-head { max-width: 660px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.028em; margin: 0 0 14px; font-weight: 680; }
.section-sub { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 18.5px; letter-spacing: -.015em; font-weight: 640; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 16px;
}
.icon svg { width: 21px; height: 21px; }

.step-num {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 650; margin-bottom: 16px;
}

/* privacy */
.privacy-list { display: grid; gap: 14px; }
.privacy-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.privacy-item .check { flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgba(12, 166, 120, .1); color: var(--ok); display: grid; place-items: center; margin-top: 2px; }
.privacy-item h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 640; }
.privacy-item p { margin: 0; color: var(--muted); font-size: 15px; }
.note {
  margin-top: 22px; padding: 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1px dashed var(--line); color: var(--muted); font-size: 15px;
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.plan.is-featured { border-color: rgba(59, 91, 253, .35); box-shadow: 0 20px 50px rgba(59, 91, 253, .12); position: relative; }
.plan.is-featured::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-lg); pointer-events: none;
  background: linear-gradient(135deg, rgba(59, 91, 253, .1), transparent 40%);
}
.plan-name { font-size: 17px; font-weight: 640; }
.plan-price { font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin: 12px 0 2px; }
.plan-period { color: var(--muted-2); font-size: 14px; }
.plan-desc { color: var(--muted); font-size: 15px; margin: 16px 0 18px; }
.plan-limit { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; background: var(--bg-soft); border-radius: 12px; margin-bottom: 18px; }
.plan-limit b { font-size: 22px; letter-spacing: -.02em; }
.plan-limit span { color: var(--muted); font-size: 14px; }
.plan .btn { margin-top: auto; width: 100%; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
details.qa { border-bottom: 1px solid var(--line); padding: 20px 4px; }
details.qa summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: "+"; color: var(--muted-2); font-weight: 400; font-size: 22px; line-height: 1; }
details.qa[open] summary::after { content: "–"; }
details.qa p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }

/* cta + footer */
.cta-box {
  
  border-radius: 28px; padding: 56px 40px; text-align: center; color: #fff;
}
.cta-box { background: linear-gradient(135deg, #0b1020 0%, #1b2450 60%, #23306b 100%); }
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255, 255, 255, .72); font-size: 17px; max-width: 46em; margin: 0 auto 26px; }
.store-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff;
}
.store small { display: block; font-size: 11px; opacity: .7; line-height: 1.2; }
.store b { font-size: 15px; font-weight: 600; }

.site-footer { padding: 46px 0; border-top: 1px solid var(--line-2); color: var(--muted); font-size: 14.5px; }
.site-footer .wrap { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-footer nav { margin-left: auto; display: flex; gap: 20px; }
.site-footer a:hover { color: var(--ink); }

.legal { max-width: 760px; margin: 0 auto; padding: 64px 0; }
.legal h1 { font-size: 34px; }
.legal h2 { font-size: 21px; margin-top: 34px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phone { margin-top: 12px; }
  .grid-3, .grid-4, .grid-2, .plans { grid-template-columns: 1fr; }
  .nav { display: none; }
  section { padding: 60px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .cta-box { padding: 40px 22px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer nav { margin-left: 0; flex-wrap: wrap; }
}

/* ---------------------------------------------------------------- interactive */
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; padding: 10px 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin: 3px 0; }

.hero-demo { display: grid; place-items: center; }
.phone-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.phone-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer; transition: .2s ease; }
.phone-dots button.is-active { background: var(--brand); width: 20px; border-radius: 999px; }

.chat-row { opacity: 0; transform: translateY(6px); transition: opacity .28s ease, transform .28s ease; min-height: 0; }
/* Без JS (или до его загрузки) диалог виден целиком. */
.no-js .chat-row, html:not(.js) .chat-row { opacity: 1; transform: none; }
.chat-row.is-on { opacity: 1; transform: none; }
.bubble { min-height: 20px; }
.bubble.is-typing::after { content: ""; display: inline-block; width: 2px; height: 15px;
  background: currentColor; margin-left: 3px; vertical-align: -2px; animation: blink .9s step-end infinite; }
.bubble-out.is-typing::after { background: #fff; }
@keyframes blink { 50% { opacity: 0; } }
.typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.85);
  animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .55; } 30% { transform: translateY(-4px); opacity: 1; } }
.kbd-keys i { width: 16px; height: 20px; border-radius: 4px; background: var(--line-2); display: inline-block; }

.stats-section { padding: 0; margin-top: -18px; }
.stats-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 26px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.stats-strip .stat { text-align: center; padding: 6px 10px; }
.stats-strip .stat b { display: block; font-size: 32px; letter-spacing: -.035em; line-height: 1.1;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-strip .stat span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.35; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px; gap: 14px; margin: 0;
  }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .stats-strip { grid-template-columns: 1fr; } }
