/* Efira - лендинг efira.live
 *
 * Токены значениями из DESIGN_SYSTEM.md §4-5 продукта (Ainan Launcher, v1.0 LOCKED).
 * Скопированы ЗНАЧЕНИЯМИ, а не импортом: у лендинга нет и не должно быть зависимости
 * от файла вне этого репозитория (прецедент A4-4). При правке палитры продукта -
 * править здесь руками и сверять с DESIGN_SYSTEM.md.
 *
 * Шрифт: Inter, если он есть в системе; иначе системный стек. Google Fonts НЕ
 * подключается сознательно - внешний шрифт-CDN отдаёт IP каждого посетителя третьей
 * стороне, а на этом же домене живёт /privacy, где мы перечисляем получателей данных.
 * Свой список получателей ломать ради начертания нельзя.
 */

:root {
  /* Лестница высот */
  --bg-base: #050706;
  --bg-elevated: #0D100E;
  --surface: #161917;
  --surface-2: #1F2421;
  --track: #2C302E;

  /* Текст */
  --text: #EAF3EC;
  --text-2: #8FA79C;
  --text-3: #5C7970;

  /* Тёплое - действие и награда */
  --cta-amber: #D98A2B;
  --cta-gradient: linear-gradient(120deg, #C4791E 0%, #D98A2B 55%, #E8A94D 100%);
  --cta-glow: 0 6px 26px rgba(217, 138, 43, 0.5);
  --cta-ink: #241300;
  --gold: #E7AC15;

  /* Холодное - интерактив */
  --accent: #0A7F65;
  --accent-glow: #12B58C;
  --accent-sel-bg: rgba(18, 181, 140, 0.10);
  --accent-selection: rgba(18, 181, 140, 0.22);

  /* Границы */
  --ainan-border: rgba(255, 255, 255, 0.05);
  --hairline: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.12);

  --radius-card: 18px;
  --radius-ctl: 12px;
  --maxw: 1080px;
}

/* ── База ──────────────────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

::selection { background: var(--accent-selection); }

a { color: var(--accent-glow); text-decoration: none; }
a:hover { text-decoration: underline; }

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 30px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 14px; }

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

.muted { color: var(--text-2); }
.micro { font-size: 13px; color: var(--text-3); }
.center { text-align: center; }

/* Скип-линк для клавиатуры и скринридеров */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-ctl);
  z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ── Шапка ─────────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 6, 0.92);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand img { height: 22px; width: auto; }
.brand:hover { text-decoration: none; }

.nav {
  display: none;
  gap: 20px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}
.nav a { color: var(--text-2); }
.nav a:hover { color: var(--text); text-decoration: none; }

.head-cta { margin-left: auto; }
.nav + .head-cta { margin-left: 0; }

@media (min-width: 760px) {
  .nav { display: flex; }
}

/* ── Кнопки ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-ctl);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
}
.btn:hover { text-decoration: none; }

/* Primary - янтарь. ЭКСКЛЮЗИВ: одно такое пятно на экран (DESIGN_SYSTEM §4). */
.btn-primary {
  background: var(--cta-gradient);
  color: var(--cta-ink);
  box-shadow: var(--cta-glow);
}
.btn-primary:hover { filter: brightness(1.06); }

.btn-secondary {
  background: var(--accent);
  color: var(--text);
  font-weight: 700;
}
.btn-secondary:hover { filter: brightness(1.12); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--ainan-border);
  font-weight: 700;
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ── Секции ────────────────────────────────────────────────────────────── */

section { padding: 44px 0; }
.section-head { margin-bottom: 22px; }
.section-head p { color: var(--text-2); margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-glow);
  background: var(--accent-sel-bg);
  border: 1px solid var(--ainan-border);
  border-radius: 999px;
  padding: 5px 11px;
  margin-bottom: 14px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero { padding: 40px 0 28px; }
.hero h1 { margin-bottom: 14px; }
.hero .lead { font-size: 17px; color: var(--text-2); max-width: 620px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 12px;
}
.hero-actions .btn { flex: 1 1 220px; }

/* Обычный абзац, НЕ flex: у flex-контейнера <b> и соседний текстовый узел становятся
 * двумя разными элементами и встают в две колонки - строка «3 пробных эфира» ломалась
 * пополам ровно так на узком экране. */
.hero-note {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
}
.hero-note b { color: var(--text); font-weight: 700; }

/* На телефоне кадр 9:16 во всю ширину занял бы весь экран пустой рамкой - держим его
 * заметно уже и по центру. На широком экране ширину задаёт колонка hero-shot. */
.hero-shot { max-width: 240px; margin: 26px auto 0; }

@media (min-width: 860px) {
  .hero .wrap { display: flex; align-items: center; gap: 44px; }
  .hero-copy { flex: 1 1 0; }
  .hero-shot { flex: 0 0 300px; max-width: 300px; margin: 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  section { padding: 60px 0; }
}

/* ── Плейсхолдеры скриншотов ───────────────────────────────────────────
 * Реальные снимки подставляются владельцем после полиша. Точки подстановки
 * помечены в HTML комментарием ЗАМЕНИТЬ. Кадр 9:16 - формат экрана эфира.
 */

.shot {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-card);
  border: 1px solid var(--ainan-border);
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg-elevated) 100%);
  overflow: hidden;
}

.shot img { width: 100%; height: 100%; object-fit: cover; }

.shot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 18px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.shot-empty svg { width: 34px; height: 34px; opacity: 0.55; }
.shot-empty b { color: var(--text-2); font-weight: 700; font-size: 14px; }

.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 760px) {
  .shot-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Шаги ──────────────────────────────────────────────────────────────── */

.steps { display: grid; gap: 14px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--surface);
  border: 1px solid var(--ainan-border);
  border-radius: var(--radius-card);
  padding: 20px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--accent-sel-bg);
  border: 1px solid var(--ainan-border);
  color: var(--accent-glow);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 12px;
}
.step p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ── Тарифы ────────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 14px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(3, 1fr); } }

.plan {
  background: var(--surface);
  border: 1px solid var(--ainan-border);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
}
.plan-featured { border-color: var(--accent); background: var(--bg-elevated); }

.plan-name { font-size: 13px; font-weight: 700; color: var(--text-2); margin-bottom: 10px; }

/* Цена за месяц - ОДНА размерность на всех карточках (решение С-9 / блок A5):
 * %-бейджей нет, потому что процент считался от базы $14.99, а фактическая
 * альтернатива первого покупателя - интро $9.99, и «скидка» читалась дороже
 * несниженного интро. */
.plan-price {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.plan-price span { font-size: 15px; font-weight: 700; color: var(--text-2); }
.plan-was {
  color: var(--text-3);
  text-decoration: line-through;
  font-size: 15px;
  font-weight: 600;
  margin-left: 8px;
}
.plan-sub { color: var(--text-2); font-size: 14px; margin: 10px 0 0; }
.plan-total { color: var(--text-3); font-size: 13px; margin: 6px 0 0; }
.plan-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--ainan-border);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}

/* ── Карточки / текстовые блоки ────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--ainan-border);
  border-radius: var(--radius-card);
  padding: 22px 20px;
}
.card + .card { margin-top: 14px; }

.info {
  background: var(--surface-2);
  border: 1px solid var(--ainan-border);
  border-radius: var(--radius-ctl);
  padding: 14px 16px;
  color: var(--text-2);
  font-size: 14px;
}
.info b { color: var(--text); }

/* ── /download ─────────────────────────────────────────────────────────── */

.dl-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 14px;
}
.dl-meta div { display: flex; justify-content: space-between; gap: 14px; }
.dl-meta dt, .dl-meta .k { color: var(--text-2); }
.dl-meta .v { font-weight: 700; text-align: right; }

.hash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: var(--surface-2);
  border: 1px solid var(--ainan-border);
  border-radius: var(--radius-ctl);
  padding: 10px 12px;
}
.hash-row code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--text-2);
  word-break: break-all;
  line-height: 1.45;
}
.copy-btn { flex: 0 0 auto; }
.copy-btn[data-state="ok"] { border-color: var(--accent); color: var(--accent-glow); }
.copy-btn[data-state="fail"] { border-color: rgba(255, 255, 255, 0.2); }

.install-steps { counter-reset: st; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.install-steps li {
  counter-increment: st;
  background: var(--surface);
  border: 1px solid var(--ainan-border);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}
.install-steps li::before {
  content: counter(st);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-sel-bg);
  color: var(--accent-glow);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 10px;
}
.install-steps .shot { aspect-ratio: 9 / 16; margin-top: 14px; }
@media (min-width: 760px) {
  .install-steps { grid-template-columns: repeat(3, 1fr); }
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
th { color: var(--text-2); font-weight: 700; font-size: 13px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

/* ── FAQ ───────────────────────────────────────────────────────────────── */

.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--ainan-border);
  border-radius: var(--radius-card);
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent-glow);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--text-2); font-size: 14px; margin: 0 0 16px; }

/* ── Юридические документы ─────────────────────────────────────────────── */

.doc { max-width: 760px; }
.doc h1 { margin-bottom: 6px; }
.doc .doc-date { color: var(--text-3); font-size: 13px; margin-bottom: 26px; }
.doc h2 { font-size: 20px; margin: 30px 0 10px; }
.doc h3 { font-size: 16px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--text-2); font-size: 15px; }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 8px; }

/* ── CTA-полоса ────────────────────────────────────────────────────────── */

.cta-band {
  background: var(--bg-elevated);
  border: 1px solid var(--ainan-border);
  border-radius: var(--radius-card);
  padding: 28px 22px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: var(--text-2); margin-bottom: 20px; }

/* ── Подвал ────────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--hairline);
  padding: 30px 0 40px;
  margin-top: 24px;
  color: var(--text-3);
  font-size: 13px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}
.foot-links a { color: var(--text-2); font-weight: 600; }
.site-foot .brand { margin-bottom: 16px; }
