/* GeekVoice AI — лендинг.
   Значения — только из системы скилла landing-page-design: размеры шрифта по шкале
   Tailwind, отступы из таблицы Spacing, радиусы Tailwind, без градиентов на фоне. */

:root {
  --bg: #FFFFFF;
  --surface: #F3F4F6;
  --surface-2: #E8EBEF;
  --ink: #000000;
  --muted: #5A6170;
  --line: #DFE2E7;
  --accent: #005BFE;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EDFF;
  --chat-bg: #D9E3EC;
  --bubble-out: #E1F7D2;
  --bubble-in: #FFFFFF;

  --s-25: 2px; --s-50: 4px; --s-75: 8px; --s-100: 12px; --s-200: 16px; --s-300: 24px;
  --s-400: 32px; --s-500: 40px; --s-600: 48px; --s-700: 64px; --s-800: 80px; --s-900: 96px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--s-900); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
.ico { width: 1em; height: 1em; fill: currentColor; flex: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

/* ---------- Текстовые стили (имена из скилла) ---------- */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -0.02em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -0.02em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.muted { color: var(--muted); }

@media (max-width: 720px) {
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2 { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .button-lg { font-size: 16px; line-height: 24px; }
}

/* ---------- Каркас ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s-300); }
@media (max-width: 720px) { .wrap { padding: 0 var(--s-200); } }
section { padding: var(--s-900) 0; }
@media (max-width: 720px) { section { padding: var(--s-700) 0; } }
.section-head { max-width: 680px; margin-bottom: var(--s-600); }
.section-head p { margin-top: var(--s-200); }

.skip {
  position: absolute; left: var(--s-200); top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: var(--s-75) var(--s-100); border-radius: 8px;
}
.skip:focus { top: var(--s-200); }

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-75);
  padding: var(--s-75) var(--s-100);
  border-radius: 12px; border: 0; cursor: pointer; text-decoration: none;
  transition: transform 300ms var(--ease), background-color 300ms var(--ease), opacity 300ms var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #004AD1; }
.btn-ghost { background: var(--surface); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-big { padding: var(--s-100) var(--s-300); border-radius: 16px; }
.btn .ico { font-size: 20px; }

/* ---------- Навигация ---------- */
.nav {
  position: fixed; top: var(--s-200); left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 16px;
  width: max-content; max-width: calc(100% - 2 * var(--s-200));
}
.brand { display: flex; align-items: center; gap: var(--s-75); text-decoration: none; }
.brand img { height: 24px; width: auto; }
.nav-links { display: flex; gap: var(--s-200); list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 300ms var(--ease); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Первый экран ---------- */
.hero { padding-top: 160px; padding-bottom: var(--s-900); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-700); align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s-600); } }
@media (max-width: 720px) { .hero { padding-top: 120px; padding-bottom: var(--s-700); } }
.hero h1 {
  max-width: 680px;
  background: linear-gradient(90deg, #000000, #666666);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* Градиент обрезается по коробке текста: без отступа теряются хвосты «у», «р», «g» */
  padding-bottom: var(--s-75);
}
.hero-sub { max-width: 680px; margin-top: var(--s-300); color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-200); margin-top: var(--s-500); }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--s-75) var(--s-300); margin-top: var(--s-300); list-style: none; padding: 0; }
.hero-proof li { display: flex; align-items: center; gap: var(--s-75); color: var(--muted); }
.hero-proof .ico { font-size: 18px; color: var(--accent); }

/* Макет чата Telegram — настоящий интерфейс продукта, а не иллюстрация */
.chat {
  background: var(--chat-bg); border-radius: 24px; padding: var(--s-300) var(--s-200);
  display: flex; flex-direction: column; gap: var(--s-100);
}
.chat-head { display: flex; align-items: center; gap: var(--s-100); padding: 0 var(--s-75) var(--s-75); }
/* Аватар бота: иконка в круге, как её обрежет Telegram */
.chat-ava { width: 40px; height: 40px; border-radius: 9999px; flex: none; }
.bubble { max-width: 88%; padding: var(--s-75) var(--s-100); border-radius: 16px; }
.bubble-out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; }
.bubble-in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 4px; width: 88%; }
.tag { color: var(--accent); font-weight: 600; }
.voice-msg { display: flex; align-items: center; gap: var(--s-100); }
.play {
  width: 40px; height: 40px; flex: none; border-radius: 9999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  transition: transform 300ms var(--ease), opacity 300ms var(--ease);
}
.play:hover { transform: scale(1.05); }
.play:active { transform: scale(0.96); }
.play:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; transform: none; }
.play .ico { font-size: 18px; }
.wave { flex: 1; height: 32px; display: flex; align-items: center; gap: 2px; }
.wave span {
  flex: 1; min-width: 2px; border-radius: 2px; background: #B9C7DA;
  transform-origin: center; transition: background-color 200ms linear;
}
.wave span.on { background: var(--accent); }
.voice-meta { display: flex; justify-content: space-between; margin-top: var(--s-50); }
.chat-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-50); width: 88%; }
.chat-buttons span {
  background: rgba(255, 255, 255, 0.55); border-radius: 8px; text-align: center;
  padding: var(--s-75) var(--s-50);
}


/* ---------- Сравнение голосов ---------- */
.listen { background: var(--surface); }
.listen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-400); align-items: start; }
@media (max-width: 900px) { .listen-grid { grid-template-columns: 1fr; } }
.script {
  background: var(--bg); border-radius: 24px; padding: var(--s-400);
  border: 1px solid var(--line);
}
.script-text { margin-top: var(--s-200); }
.script-text .tag { transition: opacity 300ms var(--ease); }
.script[data-tags="off"] .script-text .tag { opacity: 0.35; }
.voices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-100); }
.voice {
  display: flex; align-items: center; gap: var(--s-200);
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: var(--s-200);
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.voice:hover { transform: translateY(-2px); }
.voice.is-playing { border-color: var(--accent); }
.voice-info { flex: 1; min-width: 0; }
.voice .wave { height: 24px; max-width: 120px; }
@media (max-width: 520px) { .voice .wave { display: none; } }
.price-tag { display: inline-block; margin-top: var(--s-50); padding: var(--s-25) var(--s-75); border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.price-tag.free { background: #E4F6E6; color: #1C7A33; }
.voice.is-missing .voice-info::after { content: 'Пример скоро появится'; display: block; margin-top: var(--s-50); font-size: 12px; line-height: 16px; color: var(--muted); }

/* ---------- Слоган с проявлением слов ---------- */
.tagline { padding: var(--s-900) 0; }
.tagline p { max-width: 900px; }
.tagline .w { color: rgba(0, 0, 0, 0.28); transition: color 700ms var(--ease); }
.tagline .w.lit { color: var(--ink); }

/* ---------- Возможности ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-600) var(--s-700); }
@media (max-width: 800px) { .features { grid-template-columns: 1fr; gap: var(--s-500); } }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: var(--s-200); }
.feature-ico {
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.feature-ico .ico { font-size: 24px; }
.feature p { margin-top: var(--s-75); }
.feature code, .faq code, .script code {
  font-family: inherit; font-weight: 600; color: var(--accent);
}

/* ---------- Как это работает ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-300); counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border-radius: 24px; padding: var(--s-400); counter-increment: step; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 9999px; background: var(--ink); color: var(--bg);
  font-size: 16px; line-height: 24px; font-weight: 600; margin-bottom: var(--s-300);
}
.step p { margin-top: var(--s-75); }

/* ---------- Цены ---------- */
.pricing { background: var(--surface); }
.price-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-400); align-items: start; }
@media (max-width: 900px) { .price-grid { grid-template-columns: 1fr; } }
.tariffs { background: var(--bg); border-radius: 24px; border: 1px solid var(--line); overflow: hidden; }
.tariffs table { width: 100%; border-collapse: collapse; }
.tariffs th, .tariffs td { text-align: left; padding: var(--s-200) var(--s-300); }
.tariffs thead th { background: var(--bg); color: var(--muted); font-size: 14px; line-height: 20px; font-weight: 500; }
.tariffs tbody tr { border-top: 1px solid var(--line); }
.tariffs td:nth-child(2) { font-weight: 600; }
.tariffs td { white-space: nowrap; }
@media (max-width: 520px) {
  .tariffs th, .tariffs td { padding: var(--s-100) var(--s-200); }
  .tariffs tbody { font-size: 14px; line-height: 20px; }
}
.tariffs-note { padding: var(--s-200) var(--s-300); border-top: 1px solid var(--line); }
.example-card { background: var(--ink); color: var(--bg); border-radius: 24px; padding: var(--s-400); }
.example-card .big { font-size: 48px; line-height: 48px; font-weight: 600; margin: var(--s-200) 0 var(--s-75); }
.example-card .muted { color: #A8AEB9; }
.guarantees { list-style: none; padding: 0; margin: var(--s-300) 0 0; display: flex; flex-direction: column; gap: var(--s-100); }
.guarantees li { display: flex; gap: var(--s-75); align-items: flex-start; }
.guarantees .ico { font-size: 20px; color: #3D80FF; flex: none; }

/* ---------- Вопросы ---------- */
.faq { max-width: 800px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s-300) 0;
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-200);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { font-size: 20px; transition: transform 500ms var(--ease); flex: none; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq dd, .faq .answer { margin: 0; padding: 0 0 var(--s-300); color: var(--muted); max-width: 680px; }

/* ---------- Финальный призыв ---------- */
.final { text-align: center; }
.final .heading-2 { max-width: 680px; margin: 0 auto; }
.final p { max-width: 560px; margin: var(--s-200) auto 0; }
.final .btn { margin-top: var(--s-500); }

/* ---------- Подвал ---------- */
footer { border-top: 1px solid var(--line); padding: var(--s-500) 0; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-300); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--s-300); list-style: none; padding: 0; margin: 0; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.enter { opacity: 0; transform: translateY(24px); animation: enter 800ms var(--ease) forwards; }
.enter-2 { animation-delay: 120ms; }
.enter-3 { animation-delay: 240ms; }
@keyframes enter { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .enter { transform: none; transition: opacity 300ms linear; animation: none; opacity: 1; }
  .tagline .w { color: var(--ink); transition: none; }
  .btn, .play, .voice { transition: none; }
}
