/* Vymova — дизайн-система.
   Свідомо темна й технічна: сайт має виглядати як сам застосунок,
   а не як черговий світлий SaaS-лендінг. Фірмовий елемент — хвиля
   (та сама, що в плашці запису). */

:root {
  --bg:        #0d0f13;
  --bg-2:      #12151b;
  --surface:   #171b23;
  --surface-2: #1e232d;
  --line:      #262c38;
  --text:      #e8ecf2;
  --muted:     #8b94a3;
  --dim:       #5c6472;

  /* М'ятний акцент — навмисно не синій, щоб не перегукуватись
     з конкурентами. Бурштиновий — другорядний, для чисел і акцентів. */
  --accent:    #3ddc97;
  --accent-dk: #23a870;
  --amber:     #ffb454;
  --danger:    #ff6b6b;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI",
          Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", monospace;

  --r:   14px;
  --r-s: 8px;
  --wrap: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ─── Шапка ─── */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 15, 19, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 62px; }
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; color: var(--text);
  letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.logo-mark i {
  width: 3px; background: var(--accent); border-radius: 2px;
  animation: pulse 1.4s ease-in-out infinite;
}
.logo-mark i:nth-child(1) { height: 7px;  animation-delay: 0s; }
.logo-mark i:nth-child(2) { height: 14px; animation-delay: .15s; }
.logo-mark i:nth-child(3) { height: 18px; animation-delay: .3s; }
.logo-mark i:nth-child(4) { height: 11px; animation-delay: .45s; }
.logo-mark i:nth-child(5) { height: 6px;  animation-delay: .6s; }
@keyframes pulse { 0%,100% { transform: scaleY(.5) } 50% { transform: scaleY(1) } }

.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ─── Кнопки ─── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: var(--r-s);
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #06140d; }
.btn-primary:hover { background: #55e8a8; transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--dim); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ─── Загальні блоки ─── */
section { padding: 92px 0; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
h1 {
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.08;
  letter-spacing: -.03em; font-weight: 800; margin-bottom: 22px;
}
h2 {
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.18;
  letter-spacing: -.02em; font-weight: 750; margin-bottom: 16px;
}
h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--muted); max-width: 620px; }
.section-head { margin-bottom: 44px; }

/* ─── Головний екран ─── */
.hero { padding: 88px 0 76px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center;
}
.hero h1 span { color: var(--accent); }
.hero-cta { display: flex; gap: 12px; margin: 32px 0 16px; flex-wrap: wrap; }
.hero-note { font-size: 14px; color: var(--dim); }
.hero-note b { color: var(--muted); font-weight: 600; }

/* Демо-плашка — точна копія того, що бачить користувач у застосунку */
.demo {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px;
}
.demo-bar {
  display: flex; align-items: center; gap: 14px;
  background: #12161d; border: 1px solid var(--line);
  border-radius: 10px; padding: 11px 14px;
}
.demo-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--danger);
  flex-shrink: 0; animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.demo-wave { display: flex; align-items: center; gap: 3px; height: 22px; flex: 1; }
.demo-wave i {
  width: 3px; background: var(--danger); border-radius: 2px;
  animation: wave 1.1s ease-in-out infinite;
}
@keyframes wave { 0%,100% { height: 3px } 50% { height: 18px } }
.demo-gear { color: var(--dim); font-size: 15px; }
.demo-out {
  margin-top: 16px; background: #12161d; border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px;
  font-size: 15px; line-height: 1.6; min-height: 84px;
}
.demo-out .cursor {
  display: inline-block; width: 2px; height: 17px; background: var(--accent);
  vertical-align: text-bottom; animation: blink 1s step-end infinite;
}
.demo-label {
  font-family: var(--mono); font-size: 11px; color: var(--dim);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}

/* ─── Картки ─── */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px;
  transition: .18s;
}
.card:hover { border-color: #35404f; transform: translateY(-2px); }
.card p { color: var(--muted); font-size: 15px; }
.card-icon {
  font-size: 22px; margin-bottom: 14px; display: block;
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--surface-2); display: grid; place-items: center;
}

/* Два стовпи — наша структурна відмінність: продукт із двох половин */
.pillar {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: 18px; padding: 34px;
}
.pillar-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
  background: rgba(61, 220, 151, .1); color: var(--accent);
  display: inline-block; margin-bottom: 16px;
}
.pillar-tag.amber { background: rgba(255, 180, 84, .1); color: var(--amber); }
.pillar ul { list-style: none; margin-top: 20px; }
.pillar li {
  padding: 9px 0 9px 26px; position: relative;
  color: var(--muted); font-size: 15px; border-top: 1px solid var(--line);
}
.pillar li:first-child { border-top: 0; }
.pillar li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent);
  font-size: 13px;
}

/* ─── Таблиці ─── */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); font-weight: 500;
}
td { color: var(--muted); }
td:first-child { color: var(--text); font-weight: 550; }
.yes { color: var(--accent); }
.no  { color: var(--dim); }
.table-wrap {
  overflow-x: auto; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r);
}

/* ─── Тарифи ─── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); position: relative; }
.plan.featured::before {
  content: "Рекомендуємо"; position: absolute; top: -11px; left: 30px;
  background: var(--accent); color: #06140d; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 20px;
  font-family: var(--mono); letter-spacing: .06em;
}
.plan-name { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.plan-price { font-size: 42px; font-weight: 800; letter-spacing: -.03em; }
.plan-price small { font-size: 15px; font-weight: 500; color: var(--dim); }
.plan-desc { color: var(--muted); font-size: 14px; margin: 10px 0 22px; min-height: 42px; }
.plan ul { list-style: none; margin-bottom: 26px; flex: 1; }
.plan li { padding: 7px 0 7px 24px; position: relative; font-size: 15px; color: var(--muted); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }
.plan li.off { color: var(--dim); }
.plan li.off::before { content: "—"; color: var(--dim); }

/* ─── FAQ ─── */
details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-s); margin-bottom: 10px; overflow: hidden;
}
summary {
  padding: 17px 20px; cursor: pointer; font-weight: 600; font-size: 16px;
  list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* ─── Смуга-заклик ─── */
.cta-band {
  background: linear-gradient(135deg, rgba(61,220,151,.07), rgba(255,180,84,.05));
  border: 1px solid var(--line); border-radius: 20px;
  padding: 52px 40px; text-align: center;
}

/* ─── Підвал ─── */
footer { border-top: 1px solid var(--line); padding: 52px 0 40px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.foot-col h4 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 14px; font-weight: 500;
}
.foot-col a { display: block; color: var(--muted); font-size: 15px; padding: 5px 0; }
.foot-col a:hover { color: var(--text); text-decoration: none; }
.foot-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--dim); font-size: 14px; flex-wrap: wrap;
}

/* ─── Текстові сторінки (юридичні, гайд) ─── */
.doc { padding: 56px 0 80px; }
.doc h1 { font-size: 38px; margin-bottom: 10px; }
.doc .updated {
  font-family: var(--mono); font-size: 13px; color: var(--dim); margin-bottom: 40px;
}
.doc h2 { font-size: 23px; margin: 40px 0 12px; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.doc ul, .doc ol { margin: 0 0 16px 22px; }
.doc li { margin-bottom: 7px; }
.doc strong { color: var(--text); }
.doc code {
  font-family: var(--mono); font-size: 14px; background: var(--surface);
  padding: 2px 7px; border-radius: 5px; color: var(--amber);
}
.doc .box {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-s); padding: 18px 22px; margin: 22px 0;
}
.doc .box p:last-child { margin-bottom: 0; }

/* ─── Кроки ─── */
.steps { counter-reset: s; }
.step {
  display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line);
}
.step:first-child { border-top: 0; }
.step-num {
  counter-increment: s; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--surface-2); color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
}
.step-num::before { content: counter(s); }

/* ─── Дрібниці ─── */
.kbd {
  font-family: var(--mono); font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px; padding: 3px 8px;
  color: var(--text); white-space: nowrap;
}
.stat-num {
  font-size: 32px; font-weight: 800; letter-spacing: -.02em;
  color: var(--accent); font-family: var(--mono);
}
.stat-label { font-size: 14px; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-l { margin-top: 40px; }

@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .grid-4, .plans, .foot-grid {
    grid-template-columns: 1fr;
  }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 60px 0; }
  body { font-size: 16px; }
}
