/* ============================================================
   WorkFlow AI — landing
   Design system: Stripe-inspired DESIGN.md (../DESIGN.md)
   ============================================================ */

/* ---- Design tokens ------------------------------------------------ */
:root {
  /* Brand & accent */
  --primary: #533afd;
  --primary-deep: #4434d4;
  --primary-press: #2e2b8c;
  --primary-soft: #665efd;
  --primary-subdued: #b9b9f9;
  --brand-dark-900: #1c1e54;
  --ruby: #ea2261;
  --magenta: #f96bee;
  --lemon: #9b6829;

  /* Surface */
  --canvas: #ffffff;
  --canvas-soft: #f6f9fc;
  --canvas-cream: #f5e9d4;
  --hairline: #e3e8ee;
  --hairline-input: #a8c3de;

  /* Text */
  --ink: #0d253d;
  --ink-secondary: #273951;
  --ink-mute: #64748d;
  --on-primary: #ffffff;

  /* Radius */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 9999px;

  /* Spacing base 8px */
  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 12px;
  --s-lg: 16px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-huge: 64px;

  /* Elevation */
  --shadow-1: 0 1px 3px rgba(0, 55, 112, 0.08);
  --shadow-2: 0 8px 24px rgba(0, 55, 112, 0.08), 0 2px 6px rgba(0, 55, 112, 0.04);
  --shadow-3: 0 24px 60px rgba(0, 55, 112, 0.14);

  --container: 1200px;
}

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

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: "Inter", "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  font-feature-settings: "ss01";
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* numeric / money cells */
.tnum { font-feature-settings: "ss01", "tnum"; letter-spacing: -0.42px; }

/* ---- Language visibility -----------------------------------------
   Only the inactive language is hidden; the visible element keeps its
   own natural display (inline span, block div, inline-block pill...). */
html[data-lang="ru"] [data-lang="en"] { display: none !important; }
html[data-lang="en"] [data-lang="ru"] { display: none !important; }

/* ---- Layout primitives ------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--s-xl);
}

.section { padding-block: 96px; }
.section--soft { background: var(--canvas-soft); }
.section--tight { padding-block: 64px; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--primary-subdued);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-lg);
}

h1, h2, h3, h4 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; }

.h-display {
  font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1.03;
}
.h-section {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}
/* Воздух между заголовком и подзаголовком — единый для всех секций.
   В em: масштабируется вместе с размером заголовка, выглядит естественно */
.h-section { margin-bottom: 0.45em; }
.section-head .lead { margin-top: 0; }
.h-card { font-size: 1.35rem; letter-spacing: -0.02em; }

.lead {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-secondary);
}
.muted { color: var(--ink-mute); }

/* ---- Buttons ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-sm);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  transition: transform .12s ease, background-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-deep); box-shadow: 0 6px 18px rgba(83, 58, 253, 0.32); }
.btn--primary:active { background: var(--primary-press); }

.btn--secondary {
  background: var(--canvas);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.btn--secondary:hover { background: #f4f2ff; }

.btn--on-dark { background: var(--primary); color: var(--on-primary); }
.btn--on-dark:hover { background: var(--primary-soft); }

.btn--ghost-dark {
  color: var(--on-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}
.btn--ghost-dark:hover { background: rgba(255, 255, 255, 0.08); }

.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 17px; }
.btn--block { display: flex; justify-content: center; width: 100%; }

.tg-glyph { width: 18px; height: 18px; flex: none; }

/* ---- Navigation --------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--hairline);
  box-shadow: var(--shadow-1);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-xl);
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.brand__mark {
  height: 32px;
  width: auto;
  display: block;
}
.brand__name { font-weight: 400; letter-spacing: -0.01em; }
.brand__name b { font-weight: 500; }

.nav__links {
  display: flex;
  gap: var(--s-xl);
  margin-left: auto;
}
.nav__links a {
  font-size: 15px;
  color: var(--ink-secondary);
  transition: color .15s ease;
}
.nav__links a:hover { color: var(--primary); }

.nav__actions { display: flex; align-items: center; gap: var(--s-md); }

/* language toggle */
.lang {
  display: inline-flex;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--canvas);
}
.lang button {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 6px 11px;
  color: var(--ink-mute);
  transition: background-color .15s ease, color .15s ease;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}
.nav__burger span {
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---- Hero --------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero__mesh {
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 720px;
  z-index: 0;
  background:
    radial-gradient(46% 58% at 6% -6%, rgba(245, 233, 212, 0.95), transparent 72%),
    radial-gradient(42% 54% at 26% -14%, rgba(155, 104, 41, 0.34), transparent 72%),
    radial-gradient(54% 70% at 50% -10%, rgba(185, 185, 249, 0.9), transparent 74%),
    radial-gradient(48% 64% at 74% -12%, rgba(83, 58, 253, 0.5), transparent 73%),
    radial-gradient(40% 56% at 92% 2%, rgba(249, 107, 238, 0.42), transparent 71%),
    radial-gradient(44% 60% at 104% -4%, rgba(234, 34, 97, 0.42), transparent 71%);
}
.hero__mesh::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, var(--canvas) 96%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: 80px 96px;
}
.hero__title { margin-bottom: var(--s-xl); }
.hero__title b { font-weight: 500; }
.hero__lead { max-width: 30em; margin-bottom: var(--s-xl); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-md); margin-bottom: var(--s-lg); }
.hero__note { font-size: 13px; color: var(--ink-mute); }
.hero__note b { font-weight: 500; color: var(--ink-secondary); }

/* trust stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}
.stat__num {
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.stat__label { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }

/* ---- Telegram mockup --------------------------------------------- */
.mock {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-3);
  overflow: hidden;
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--brand-dark-900);
  color: #fff;
}
.mock__avatar {
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--brand-dark-900);
  display: grid; place-items: center;
}
.mock__avatar img { width: 22px; height: auto; display: block; }
.mock__title { font-size: 14px; font-weight: 400; }
.mock__sub { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.mock__online { margin-left: auto; font-size: 11px; color: #6ee7a8; }

.mock__body {
  padding: 16px;
  background: #eef2f7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bubble {
  background: var(--canvas);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 14px;
  box-shadow: var(--shadow-1);
  max-width: 92%;
}
.bubble__tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 6px;
}
.bubble__title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 5px; }
.bubble__text { font-size: 13px; line-height: 1.5; color: var(--ink-secondary); }
.bubble__src {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed var(--hairline);
  font-size: 11px;
  color: var(--ink-mute);
}
.bubble__src b { color: var(--primary); font-weight: 500; }

.mock__keys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mock__key {
  background: var(--canvas);
  border-radius: var(--r-md);
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-secondary);
  text-align: center;
  box-shadow: var(--shadow-1);
}
.mock__key--accent { background: var(--primary); color: #fff; }

/* ---- Logo / niche strip ------------------------------------------ */
.niches { padding-block: 40px; }
.niches__label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
}
.niches__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.chip {
  font-size: 14px;
  color: var(--ink-secondary);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 8px 16px;
}

/* ---- Problem ------------------------------------------------------ */
.problem__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.problem__big {
  font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--primary);
}
.problem__big small {
  display: block;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--ink-secondary);
  margin-top: 8px;
}
.problem__list { display: grid; gap: 14px; margin-top: 24px; }
.problem__list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-secondary);
}
.problem__list .x {
  flex: none;
  width: 22px; height: 22px;
  border-radius: var(--r-pill);
  background: #fde8ee;
  color: var(--ruby);
  display: grid; place-items: center;
  font-size: 13px;
}

/* failure cards */
.fail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-lg);
}
.fail {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
}
.fail__q { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.fail__a { font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; }

/* ---- Pillars ------------------------------------------------------ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-xl);
}
.pillar {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-1);
}
.pillar__icon {
  width: 46px; height: 46px;
  border-radius: var(--r-md);
  display: grid; place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
  background: var(--primary-subdued);
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { font-size: 14.5px; color: var(--ink-secondary); line-height: 1.55; }

/* ---- Pipeline ----------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.step__n {
  counter-increment: step;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.04em;
}
.step__n::before { content: "0" counter(step) " — "; }
.step h3 { font-size: 1.1rem; margin: 8px 0 6px; }
.step p { font-size: 13.5px; color: var(--ink-mute); line-height: 1.5; }

/* ---- Features ----------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-xl);
}
.feature {
  display: flex;
  gap: 18px;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--canvas);
  border: 1px solid var(--hairline);
}
.feature--cream { background: var(--canvas-cream); border-color: #ead9b6; }
.feature__icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-dark-900);
  color: #fff;
  display: grid; place-items: center;
  font-size: 20px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 7px; }
.feature p { font-size: 14px; color: var(--ink-secondary); line-height: 1.55; }

/* ---- Sources section --------------------------------------------- */
.sources-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.sources-text h3 { margin-bottom: 8px; color: var(--ink); }
.sources-text > p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 36em;
}
.sources-list { display: grid; gap: 14px; }
.sources-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sources-list li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--primary-subdued);
}
.sources-list li:hover .sources-list__icon { transform: scale(1.12) rotate(-5deg); }
.sources-list__icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--primary-subdued);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform .25s ease;
}
/* На тач-устройствах hover нет — иконка «подпрыгивает» при появлении карточки */
@media (hover: none) {
  .sources-list li.is-in .sources-list__icon { animation: wfaiIconPop .55s ease .25s; }
}
@keyframes wfaiIconPop {
  0%, 100% { transform: none; }
  50% { transform: scale(1.18) rotate(-7deg); }
}
.sources-list strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 3px;
}
.sources-list .desc {
  display: block;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* sources mockup — dashboard-style card */
.sources-mock {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  max-width: 460px;
  margin-inline: auto;
}
.sources-mock__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--canvas-soft);
  border-bottom: 1px solid var(--hairline);
}
.sources-mock__ava {
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: var(--brand-dark-900);
  display: grid; place-items: center;
}
.sources-mock__ava img { width: 22px; height: auto; display: block; }
.sources-mock__title { font-size: 14px; font-weight: 500; color: var(--ink); }
.sources-mock__sub { font-size: 11.5px; color: var(--ink-mute); }
.sources-mock__live {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: #1f9d6b;
  display: inline-flex; align-items: center; gap: 5px;
}
.sources-mock__live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #1f9d6b;
  box-shadow: 0 0 6px rgba(31, 157, 107, 0.6);
}
.sources-mock__body { padding: 10px; }
.src-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 13.5px;
}
.src-row + .src-row { border-top: 1px dashed var(--hairline); }
/* Живая лента: новый источник подъезжает сверху с фиолетовой вспышкой */
.src-row--new { animation: wfaiRowIn .5s cubic-bezier(.2, .7, .2, 1), wfaiRowFlash 1.8s ease .1s; }
@keyframes wfaiRowIn {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}
@keyframes wfaiRowFlash {
  0% { background: rgba(83, 58, 253, 0.10); }
  100% { background: transparent; }
}
.src-row__type {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--primary-deep);
  background: var(--primary-subdued);
  text-align: center;
  padding: 4px 0;
  border-radius: var(--r-xs);
}
.src-row__type--rss { color: #b85a0a; background: #fef0e0; }
.src-row__type--web { color: var(--ink-secondary); background: var(--canvas-soft); border: 1px solid var(--hairline); padding: 3px 0; }
.src-row__name { color: var(--ink); }
.src-row__time { color: var(--ink-mute); font-size: 12px; white-space: nowrap; }
.sources-mock__foot {
  padding: 12px 18px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  background: var(--canvas-soft);
}

@media (max-width: 1023px) {
  .sources-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- Comparison table -------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); }
.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cmp th, .cmp td {
  padding: 15px 16px;
  text-align: center;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
}
.cmp thead th {
  font-weight: 500;
  color: var(--ink);
  background: var(--canvas-soft);
}
.cmp tbody th {
  text-align: left;
  font-weight: 400;
  color: var(--ink-secondary);
}
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: none; }
.cmp .col-us { background: rgba(83, 58, 253, 0.05); }
.cmp thead .col-us { background: var(--primary); color: #fff; font-weight: 500; }
.cmp .yes { color: #1f9d6b; font-weight: 500; }
.cmp .no { color: var(--ink-mute); }
.cmp .part { color: var(--lemon); }

/* ---- Economy / efficiency section -------------------------------- */
.economy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xl);
  margin-bottom: 32px;
}
.time-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 32px;
}
.time-card--accent {
  border-color: var(--primary-subdued);
  box-shadow: 0 0 0 4px rgba(83, 58, 253, 0.06);
}
.time-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: var(--primary-subdued);
  padding: 5px 11px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.time-card__tag--mute {
  color: var(--ink-mute);
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
}
.time-card__big {
  font-size: clamp(2.4rem, 1.6rem + 2vw, 3.2rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 14px;
}
.time-card--accent .time-card__big { color: var(--primary); }
.time-card__unit {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--ink-mute);
  margin-left: 8px;
}
.time-card__lead {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}
.time-card__list { display: grid; gap: 0; font-size: 13.5px; }
.time-card__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-secondary);
  padding: 9px 0;
  border-bottom: 1px dashed var(--hairline);
}
.time-card__list li:last-child { border-bottom: none; }
.time-card__list li small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-mute);
  margin-top: 3px;
  line-height: 1.4;
}
.time-card__list li > span:last-child {
  color: var(--ink-mute);
  white-space: nowrap;
  font-size: 13px;
}

/* big savings callout */
.economy-callout {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px 32px;
  margin-bottom: 56px;
  overflow: hidden;
}
.economy-callout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(83, 58, 253, 0.05), rgba(255, 79, 139, 0.05));
  pointer-events: none;
}
.economy-callout > * { position: relative; z-index: 1; }
.economy-callout__num {
  font-size: clamp(2.4rem, 1.6rem + 2vw, 3.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--ruby));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  flex-shrink: 0;
}
.economy-callout__text strong {
  display: block;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}
.economy-callout__sub {
  display: block;
  font-size: 14px;
  color: var(--ink-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

/* redirect block */
.redirect { margin-bottom: 56px; }
.redirect__title {
  text-align: center;
  margin-bottom: 28px;
  color: var(--ink);
}
.redirect__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-xl);
}
.redirect__card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 26px;
}
.redirect__card .icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: var(--primary-subdued);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 14px;
}
.redirect__card h4 {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.redirect__card p {
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.5;
}

/* coming soon */
.coming-soon {
  background: var(--canvas);
  border: 1px dashed var(--primary-subdued);
  border-radius: var(--r-lg);
  padding: 32px;
  text-align: center;
}
.coming-soon__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-subdued);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.coming-soon h3 {
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 14px;
}
.coming-soon p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
  max-width: 60ch;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .economy-grid { grid-template-columns: 1fr; }
  .redirect__grid { grid-template-columns: 1fr; }
  .economy-callout { flex-direction: column; text-align: center; gap: 14px; padding: 22px; }
}

/* ---- Pricing ------------------------------------------------------ */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-lg);
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.plan--featured {
  background: var(--brand-dark-900);
  color: var(--on-primary);
  border-color: var(--brand-dark-900);
  box-shadow: var(--shadow-2);
}
.plan__badge {
  align-self: flex-start;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  margin-bottom: 12px;
}
.plan__name { font-size: 1.3rem; }
.plan--featured .plan__name { color: #fff; }
.plan__price {
  margin: 14px 0 4px;
  font-size: 2.1rem;
  letter-spacing: -0.03em;
}
.plan__price span { font-size: 0.95rem; color: var(--ink-mute); letter-spacing: 0; }
.plan--featured .plan__price span { color: rgba(255, 255, 255, 0.6); }
.plan__desc {
  font-size: 13px;
  color: var(--ink-mute);
  min-height: 38px;
  margin-bottom: 18px;
}
.plan--featured .plan__desc { color: rgba(255, 255, 255, 0.68); }
.plan__features {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
  flex: 1;
}
.plan__features li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.45;
}
.plan--featured .plan__features li { color: rgba(255, 255, 255, 0.82); }
.plan__features .tick { color: var(--primary); flex: none; }
.plan--featured .plan__features .tick { color: var(--primary-soft); }
.plan__features .dash { color: var(--ink-mute); flex: none; }


/* «Всё из…, плюс» — инкрементальная метка тарифа */
.plan__plus {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 10px;
}
.plan--featured .plan__plus { color: var(--primary-subdued); }

/* Мокапы — это иллюстрации: выделение текста и клики отключены */
.mock, .sources-mock {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  cursor: default;
}

/* ---- FAQ ---------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 4px 20px;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 20px; transition: transform .2s ease; }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 0 18px; font-size: 14.5px; color: var(--ink-secondary); line-height: 1.6; }

/* Плавное раскрытие ответа: где браузер это умеет — анимируем высоту
   через нативный ::details-content, иначе остаётся обычный мгновенный toggle. */
@supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height .25s ease, opacity .2s ease, content-visibility .25s allow-discrete;
  }
  .faq details[open]::details-content {
    height: auto;
    opacity: 1;
  }
}

/* ---- CTA band — прозрачная карточка в стиле остального лендинга ---- */
.cta-band { position: relative; padding-block: 72px; }
.cta-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.cta-card h2 { color: var(--ink); }
.cta-card p {
  color: var(--ink-secondary);
  font-size: 1rem;
  max-width: 30em;
  margin: 0 auto 22px;
}
.cta-card .btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ---- CTA: animated live-demo strip — компактный комплимент к CTA --- */
.cta-demo {
  margin: 28px auto 0;
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr auto 1.3fr;
  align-items: center;
  gap: 16px;
  text-align: left;
}
.cta-demo__step { min-width: 0; }
.cta-demo__label {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.cta-demo__bubble {
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-secondary);
}
.typing::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  color: var(--primary);
  animation: wfaiBlink 1s steps(1) infinite;
}
@keyframes wfaiBlink { 50% { opacity: 0; } }

.cta-demo__bubble--post {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(0, 55, 112, 0.06);
  animation: wfaiPulse 3.6s ease-in-out infinite;
}
@keyframes wfaiPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 55, 112, 0.06); }
  50%      { box-shadow: 0 6px 22px rgba(255, 79, 139, 0.22),
                         0 0 0 1px rgba(255, 79, 139, 0.18); }
}
.cta-demo__bubble--post .post-tag {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-deep);
  margin-bottom: 4px;
}
.cta-demo__bubble--post .post-title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
.cta-demo__bubble--post .post-meta {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--ink-mute);
}

.cta-demo__flow {
  position: relative;
  width: 60px;
  height: 18px;
}
.cta-demo__flow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(83, 58, 253, 0) 0%,
    rgba(83, 58, 253, 0.32) 50%,
    rgba(83, 58, 253, 0) 100%);
  transform: translateY(-50%);
}
.cta-demo__flow .dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7b6bff, #ff4f8b);
  box-shadow: 0 0 10px rgba(255, 79, 139, 0.45);
  animation: wfaiFlow 2.1s linear infinite;
}
.cta-demo__flow .dot:nth-child(2) { animation-delay: 0.7s; }
.cta-demo__flow .dot:nth-child(3) { animation-delay: 1.4s; }
@keyframes wfaiFlow {
  0%   { transform: translateX(0)   scale(0.5); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; transform: translateX(52px) scale(1); }
  100% { transform: translateX(60px) scale(0.5); opacity: 0; }
}

.cta-demo__hint {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-mute);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
}
.cta-demo__hint .up {
  font-size: 15px;
  color: var(--primary);
  animation: wfaiNudge 2s ease-in-out infinite;
}
@keyframes wfaiNudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

@media (max-width: 720px) {
  .cta-card { padding: 40px 24px; }
  .cta-demo {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
    max-width: 320px;
  }
  .cta-demo__flow { display: none; }
}

/* ---- Footer ------------------------------------------------------- */
.footer {
  background: var(--canvas);
  border-top: 1px solid var(--hairline);
  padding-block: 56px 32px;
  color: var(--ink-mute);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer__col h4 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin-bottom: 14px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 9px;
  transition: color .15s ease;
}
.footer__col a:hover { color: var(--primary); }
.footer__about { font-size: 14px; line-height: 1.55; max-width: 30ch; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
}

/* ---- Reveal animation -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1),
              transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* Мягкий «подъём вбок» для карточек в сетках — чуть живее прямого fade-up. */
.pillar.reveal,
.feature.reveal,
.step.reveal,
.plan.reveal { transform: translateY(26px) scale(.98); }
.pillar.reveal.is-in,
.feature.reveal.is-in,
.step.reveal.is-in,
.plan.reveal.is-in { transform: none; }

/* ---- Micro-interactions: hover lift ------------------------------ */
.pillar, .feature, .step, .source-card, .fail, .time-card, .niche-pill {
  transition: transform .28s cubic-bezier(.2, .7, .2, 1),
              box-shadow .28s ease, border-color .28s ease;
}
.pillar:hover, .feature:hover, .step:hover, .source-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2, 0 18px 40px -18px rgba(28, 30, 84, .28));
}
.plan { transition: transform .28s cubic-bezier(.2, .7, .2, 1), box-shadow .28s ease; }
.plan:hover { transform: translateY(-8px); }

/* Иконки в карточках — лёгкий «pop» при наведении. */
.pillar__icon, .feature__icon {
  transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.pillar:hover .pillar__icon,
.feature:hover .feature__icon { transform: scale(1.14) rotate(-4deg); }

/* ---- Button shine sweep ------------------------------------------ */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .35) 50%,
    rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn--primary:hover::after { left: 140%; }

/* ---- Animated gradient in hero headline -------------------------- */
.hero__title b {
  background: linear-gradient(100deg,
    var(--primary) 0%, var(--magenta) 45%, var(--primary-soft) 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: wfaiShimmer 6s ease-in-out infinite;
}
@keyframes wfaiShimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* ---- Hero mockup float+tilt ведёт JS (см. блок 3D tilt ниже) ------ */

/* Живой пульс индикатора «черновик готов» в мокапе. */
.mock__online::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #22c55e;
  vertical-align: middle;
  animation: wfaiLivePulse 2.2s ease-in-out infinite;
}
@keyframes wfaiLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); }
  70% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ---- Animated hero mesh (усиление уже существующего фона) --------- */
.hero__mesh { animation: wfaiMeshDrift 18s ease-in-out infinite alternate; }
@keyframes wfaiMeshDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.06); }
}

/* ---- Count-up numbers (stats): плавное появление ----------------- */
.stat__num { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in .stat__num { animation: wfaiPopNum .7s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes wfaiPopNum {
  0% { transform: translateY(8px) scale(.9); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* ---- Niche marquee (бегущая лента ниш) --------------------------- */
.marquee {
  margin-top: 22px;
  padding-block: 6px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: inline-block;
  white-space: nowrap;
  animation: wfaiMarquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee .chip {
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  margin-right: 12px;
}
@keyframes wfaiMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---- Strengthened reveal: лёгкий blur-in -------------------------- */
.reveal { filter: blur(6px); }
.reveal.is-in { filter: none; }

/* ---- Hero mockup 3D tilt (управляется из JS через CSS-переменные) - */
.mock {
  transform: perspective(900px)
             rotateX(var(--tiltX, 0deg))
             rotateY(var(--tiltY, 0deg))
             translateY(var(--floatY, 0px));
  transform-style: preserve-3d;
  transition: transform .18s ease-out;
}
.mock.is-tilting { animation: none; }

/* ---- Scroll progress bar сверху ---------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--magenta));
  z-index: 100;
  transition: width .1s linear;
}

/* Акцентный цвет меняется по секциям (JS задаёт --cursor-color) и питает
   спотлайт карточек ниже. Визуального кружка-курсора нет — только «тихие»
   реакции на движение мыши. Всё под pointer:fine. */

/* ---- Card spotlight: свет следует за курсором внутри карточки ----- */
.spotlight { position: relative; }
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--cursor-color, #533afd) 14%, transparent), transparent 72%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
  z-index: 0;
}
.spotlight:hover::after { opacity: 1; }
/* содержимое карточек должно быть над подсветкой */
.spotlight > * { position: relative; z-index: 1; }

/* Магнитные элементы плавно тянутся к курсору (transform из JS). */
.magnetic { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }

/* ---- Nav link underline grow ------------------------------------- */
.nav__links a { position: relative; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav__links a:hover::after { transform: scaleX(1); }

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 1023px) {
  .section { padding-block: 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 72px; }
  .hero__lead { margin-inline: 0; }
  .problem__grid { grid-template-columns: 1fr; gap: 36px; }
  .pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding-inline: 18px; }
  .section { padding-block: 60px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { gap: 12px; }
  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-2);
    padding: 8px 20px 16px;
  }
  .nav__links.is-open a { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .stats { grid-template-columns: 1fr; gap: 18px; }
  .stat { display: flex; align-items: baseline; gap: 12px; }
  .stat__label { margin-top: 0; }
  .fail-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .cta-card { padding: 52px 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; }
  .h-display { font-size: 2.25rem; }
  .btn--lg { padding: 14px 22px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; transition-delay: 0ms !important; }
  .pillar.reveal, .feature.reveal, .step.reveal, .plan.reveal { transform: none; }
  .cta-demo__flow .dot,
  .cta-demo__bubble--post,
  .cta-demo__hint .up,
  .typing::after,
  .hero__title b,
  .mock,
  .mock__online::before,
  .hero__mesh,
  .stat__num,
  .marquee__track,
  .reveal.is-in .stat__num,
  .hl,
  .wink,
  .wink__eye,
  .src-row--new,
  .sources-list li.is-in .sources-list__icon,
  .gap-card::after { animation: none !important; }
  .hl { -webkit-text-fill-color: var(--primary); color: var(--primary); }
  .hero__title b { color: var(--primary); -webkit-text-fill-color: var(--primary); }
  .mock { transform: none; }
  .pillar:hover, .feature:hover, .step:hover, .source-card:hover,
  .plan:hover, .mock:hover { transform: none; }
  .faq summary::after { transition: none; }
  .faq details::details-content { transition: none; }
}

/* ============================================================
   ENGINE (under the hood) — light, typographic
   ============================================================ */
.section--engine { background: rgba(83, 58, 253, 0.045); }
.grad-text {
  background: linear-gradient(90deg, var(--primary), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.engine-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
  max-width: 720px;
  margin: 8px auto 40px;
  text-align: center;
}
.engine-stats .stat__num {
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--primary), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.engine-stats .stat__label { color: var(--ink-mute); }

.engine-panel {
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 28px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  text-align: center;
  box-shadow: var(--shadow-1);
}
.engine-panel__label {
  font-size: 10.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.engine-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.engine-chip {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-secondary);
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.engine-chip:hover { transform: translateY(-2px); border-color: var(--primary-subdued); background: var(--canvas); }
.engine-panel__foot {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-mute);
}

@media (max-width: 1023px) {
  .engine-stats { max-width: 520px; }
}
@media (max-width: 620px) {
  .engine-stats { grid-template-columns: 1fr; gap: 18px; }
}

/* ============================================================
   GAP cards — merged «problem + why not others»
   ============================================================ */
.gap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.gap-card {
  position: relative;
  overflow: hidden;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--primary-subdued);
}
/* Блик-свайп по карточке при наведении — новая анимация */
.gap-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(102, 94, 253, 0.16), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
}
.gap-card:hover::after { animation: wfaiSheen 0.85s ease; }
@keyframes wfaiSheen {
  0% { left: -70%; opacity: 0; }
  15% { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}
.gap-card__gap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.gap-card__mark {
  flex: none;
  width: 22px; height: 22px;
  border-radius: var(--r-pill);
  background: rgba(234, 34, 97, 0.10);
  color: var(--ruby);
  display: grid; place-items: center;
  font-size: 11px;
}
.gap-card__desc {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}
.hl {
  font-weight: 500;
  background: linear-gradient(100deg,
    var(--primary) 0%, var(--magenta) 45%, var(--primary-soft) 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: wfaiShimmer 6s ease-in-out infinite;
}
.gap-card__fix {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  border-top: 1px dashed var(--hairline);
  padding-top: 12px;
}
.gap-card__check {
  flex: none;
  width: 20px; height: 20px;
  border-radius: var(--r-pill);
  background: #e7f7f0;
  color: #1f9d6b;
  display: grid; place-items: center;
  font-size: 11px;
}
@media (max-width: 620px) {
  .gap-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Мобильная полировка — ближе к ПК, без потери анимаций
   ============================================================ */
@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .section { padding-block: 52px; }
  .h-display { font-size: 2rem; }
  .h-section { letter-spacing: -0.02em; }

  /* Шапка: убираем CTA-кнопку (в hero своя), оставляем язык + бургер */
  .nav__actions .btn--sm { display: none; }

  /* Кнопки во всю ширину — как заметный акцент на тапе */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .cta-card .btn-row { flex-direction: column; align-items: stretch; }
  .cta-card .btn-row .btn { width: 100%; justify-content: center; }

  /* Компактнее карточки и панели */
  .gap-card { padding: 18px 18px 16px; }
  .engine-panel { padding: 20px 18px; }
  .engine-stats .stat__num { font-size: 2.2rem; }
  .cta-card { padding: 40px 20px; }
  .sources-mock, .mock { max-width: 100%; }
}

/* На тач-устройствах нет hover — проигрываем блик один раз при появлении
   карточки, чтобы анимация-«свайп» не терялась на мобильных */
@media (hover: none) {
  .gap-card.is-in::after { animation: wfaiSheen 0.9s ease 0.15s; }
}

/* Анимированное эмодзи-подмигивание в конце подзаголовка hero */
.wink {
  display: inline-block;
  width: 1.12em;
  height: 1.12em;
  vertical-align: -0.2em;
  margin-left: 6px;
  animation: wfaiNod 3.2s ease-in-out infinite;
}
.wink svg { width: 100%; height: 100%; display: block; }
.wink__eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: wfaiWink 3.2s ease-in-out infinite;
}
@keyframes wfaiWink {
  0%, 86%, 100% { transform: scaleY(1); }
  90%, 95% { transform: scaleY(0.14); }
}
@keyframes wfaiNod {
  0%, 82%, 100% { transform: rotate(0); }
  90% { transform: rotate(-8deg); }
}
