/* Лендинг VarChat. Токены — в theme.css. */

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

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 18px; border-radius: var(--r);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .14s ease-out, border-color .14s ease-out, color .14s ease-out;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--border-strong); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; }

/* ── Шапка ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-text);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand-mark svg { width: 15px; height: 15px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link {
  padding: 7px 12px; border-radius: var(--r-sm);
  font-size: 14px; color: var(--text-muted);
  transition: color .14s ease-out, background-color .14s ease-out;
}
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }

/* ── Первый экран ── */
.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 8px; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: var(--r-full);
  font-size: 12px; font-weight: 500; color: var(--text-muted); background: var(--bg-subtle);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.hero h1 { font-size: 48px; line-height: 1.1; letter-spacing: -.035em; margin-bottom: 20px; }
.hero-lead { font-size: 17px; line-height: 1.6; color: var(--text-muted); max-width: 46ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.hero-note { font-size: 13px; color: var(--text-faint); }

/* ── Схема продукта ── */
.showcase { display: grid; gap: 14px; }
.pane { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-raised); overflow: hidden; box-shadow: var(--shadow-sm); }
.pane-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--bg-subtle);
  font-size: 12px; color: var(--text-muted);
}
.pane-bar .dots { display: flex; gap: 5px; }
.pane-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.pane-body { padding: 14px; display: grid; gap: 9px; }

.bubble { max-width: 82%; padding: 9px 12px; border-radius: var(--r-lg); font-size: 13px; line-height: 1.5; }
.bubble-in { background: var(--bg-hover); border-bottom-left-radius: var(--r-sm); }
.bubble-out { background: var(--accent); color: var(--accent-text); margin-left: auto; border-bottom-right-radius: var(--r-sm); }
.bubble-meta { font-size: 11px; color: var(--text-faint); margin-bottom: 3px; }

.link-row { display: flex; align-items: center; gap: 9px; padding: 0 4px; font-size: 12px; color: var(--text-faint); }
.link-row::before, .link-row::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.topic { display: flex; align-items: flex-start; gap: 10px; }
.topic-avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-hover); display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
}
.topic-body { min-width: 0; flex: 1; }
.topic-name { font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.topic-text { font-size: 13px; color: var(--text-muted); }

/* ── Секции ── */
.section { padding: 80px 0; border-top: 1px solid var(--border); }
.section-subtle { background: var(--bg-subtle); }
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-label { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 12px; }
.section-head h2 { font-size: 32px; letter-spacing: -.03em; margin-bottom: 12px; }
.section-head p { font-size: 16px; color: var(--text-muted); }

/* ── Возможности ── */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: var(--bg); padding: 26px 24px; }
.feature-icon { width: 20px; height: 20px; color: var(--text-muted); margin-bottom: 14px; }
.feature h3 { font-size: 15px; margin-bottom: 7px; }
.feature p { font-size: 14px; color: var(--text-muted); }

/* ── Шаги ── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 26px; height: 26px; margin-bottom: 14px;
  border: 1px solid var(--border); border-radius: 50%;
  font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.step h3 { font-size: 15px; margin-bottom: 7px; }
.step p { font-size: 14px; color: var(--text-muted); }

/* ── Тарифы ── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.plan { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-raised); padding: 26px 24px; display: flex; flex-direction: column; gap: 18px; }
.plan-featured { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan-name { font-size: 15px; font-weight: 600; }
.plan-tag { font-size: 11px; font-weight: 500; padding: 3px 8px; border-radius: var(--r-full); background: var(--bg-hover); color: var(--text-muted); }
.plan-price { display: flex; align-items: baseline; gap: 5px; }
.plan-price b { font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.plan-price span { font-size: 14px; color: var(--text-muted); }
.plan-desc { font-size: 13px; color: var(--text-muted); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.plan li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text-muted); }
.plan li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--text-faint); }
.plan .btn { width: 100%; margin-top: auto; }

/* ── Установка ── */
.install { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.code {
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-raised); overflow: hidden;
}
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); }
.code-bar span { font-size: 12px; color: var(--text-muted); font-family: var(--mono); }
.copy-btn { background: none; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 4px 10px; font-size: 12px; color: var(--text-muted); cursor: pointer; transition: color .14s, border-color .14s; }
.copy-btn:hover { color: var(--text); border-color: var(--border-strong); }
.code pre { margin: 0; padding: 16px; overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre; }
.code .tag { color: var(--text-muted); }
.code .str { color: var(--success); }

/* ── Вопросы ── */
.faq { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.faq details { background: var(--bg); }
.faq summary {
  padding: 18px 22px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; width: 9px; height: 9px; flex-shrink: 0; border-right: 1.5px solid var(--text-faint); border-bottom: 1.5px solid var(--text-faint); transform: rotate(45deg) translate(-2px, -2px); transition: transform .14s ease-out; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq p { padding: 0 22px 20px; font-size: 14px; color: var(--text-muted); max-width: 72ch; }

/* ── Призыв ── */
.cta { text-align: center; padding: 88px 0; border-top: 1px solid var(--border); }
.cta h2 { font-size: 32px; letter-spacing: -.03em; margin-bottom: 12px; }
.cta p { font-size: 16px; color: var(--text-muted); margin-bottom: 26px; }

/* ── Подвал ── */
.footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer-links a, .footer-copy { font-size: 13px; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ── Адаптив ── */
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .hero h1 { font-size: 36px; }
  .features, .steps, .plans { grid-template-columns: minmax(0, 1fr); }
  .features { gap: 1px; }
  .install { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .section { padding: 56px 0; }
  .section-head h2, .cta h2 { font-size: 26px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 60px; left: 0; right: 0;
    padding: 10px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 34px; height: 34px; background: none;
    border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer;
  }
  .nav-actions .btn-secondary { display: none; }
}
