/* AuraOverlay — публичная страница. Без сборки и библиотек: один файл стилей. */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/onest-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/onest-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Радиус «линзы» анимируется плавно, если браузер умеет регистрировать свойства. */
@property --r {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

:root {
  color-scheme: dark;
  --bg: #07080b;
  --bg-2: #0b0d12;
  --surface: #0f1218;
  --raised: #151922;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eceff5;
  --muted: #9097a6;
  --faint: #5d6576;
  --accent: #6ea8fe;
  --accent-ink: #06080c;
  --good: #4ade80;
  --bad: #f87171;
  --radius: 14px;
  --wrap: 1120px;
  --sans: 'Onest', 'SF Pro Text', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Зерно поверх всего: без него тёмный фон выглядит пластиковым. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a {
  color: inherit;
}

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

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

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
}

/* --- шапка ------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.top.scrolled {
  background: rgba(7, 8, 11, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.top nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
.top nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.top nav a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.button:active {
  transform: translateY(1px);
}
.button.primary {
  background: var(--text);
  color: var(--accent-ink);
}
.button.primary:hover {
  background: #ffffff;
}
.button.ghost {
  border-color: var(--line-strong);
  color: var(--text);
}
.button.ghost:hover {
  background: rgba(255, 255, 255, 0.05);
}
.button.small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.button svg {
  width: 17px;
  height: 17px;
}

/* --- первый экран ------------------------------------------------------ */

.hero {
  position: relative;
  padding: 36px 0 40px;
}
/*
  Текст первого экрана — в две строки: заголовок, под ним описание и кнопки
  рядом. Так демонстрация видна сразу, без прокрутки.
*/
.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: 18px;
}
.hero-row .actions {
  margin-top: 0;
}
/* Свет из-под сцены: один источник, без радуги. */
.hero::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 220px;
  width: 1100px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(110, 168, 254, 0.16), transparent);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--muted);
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.12);
}
h1 {
  margin: 0;
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
h1 em {
  font-style: normal;
  color: var(--muted);
}
.lede {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.requirements {
  margin: 8px 0 0;
  color: var(--faint);
  font-size: 13px;
}

/* --- сцена: звонок и подсказка ------------------------------------------ */

.stage-block {
  position: relative;
  margin-top: 32px;
}
.stage-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--faint);
  font: 400 13px/1.4 var(--mono);
}
.stage-caption svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
}

/*
  Всё внутри макетов меряется в cqw — долях ширины сцены. Так макет
  уменьшается целиком, как картинка, но остаётся резким.
*/
.screen {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 4px);
  background: #0a0b0f;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 40px 120px -40px rgba(0, 0, 0, 0.9);
  isolation: isolate;
}

/* Окно звонка */
.call {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 4.2cqw 1fr 6cqw;
  background: #111317;
}
.call-bar {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  padding: 0 1.6cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #c9ced8;
  font-size: 1.15cqw;
}
.dots {
  display: flex;
  gap: 0.6cqw;
}
.dots i {
  width: 0.9cqw;
  height: 0.9cqw;
  border-radius: 50%;
  background: #3a3f4a;
}
.call-bar .rec {
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  margin-left: auto;
  color: #8f96a3;
}
.call-bar .rec::before {
  content: '';
  width: 0.7cqw;
  height: 0.7cqw;
  border-radius: 50%;
  background: var(--bad);
}
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1cqw;
  padding: 1.2cqw;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: 1cqw;
  background: var(--room, #1b1e25);
}
.tile .name {
  position: absolute;
  left: 1cqw;
  bottom: 1cqw;
  padding: 0.35cqw 0.8cqw;
  border-radius: 0.5cqw;
  background: rgba(0, 0, 0, 0.5);
  color: #e5e8ee;
  font-size: 1.05cqw;
}
.tile.speaking {
  box-shadow: inset 0 0 0 0.22cqw rgba(110, 168, 254, 0.9);
}
/* Схематичный человек: плечи, лицо, волосы. */
.person {
  position: absolute;
  left: 50%;
  bottom: -3%;
  width: 50%;
  aspect-ratio: 1 / 1.05;
  transform: translateX(-50%);
}
.person::before {
  content: '';
  position: absolute;
  left: 30%;
  top: 6%;
  width: 40%;
  aspect-ratio: 1 / 1.18;
  border-radius: 50%;
  background:
    radial-gradient(ellipse 60% 34% at 50% 8%, var(--hair, #2b2118) 98%, transparent 100%),
    radial-gradient(circle at 50% 42%, var(--skin, #c89a7c) 58%, var(--hair, #2b2118) 59%);
  box-shadow: inset -0.4cqw -0.3cqw 0 rgba(0, 0, 0, 0.12);
}
.person::after {
  content: '';
  position: absolute;
  left: 4%;
  bottom: 0;
  width: 92%;
  height: 46%;
  border-radius: 48% 48% 0 0;
  background: linear-gradient(180deg, var(--shirt, #3d4a63), color-mix(in srgb, var(--shirt, #3d4a63) 70%, #000));
}
.self {
  position: absolute;
  right: 2.4cqw;
  bottom: 8cqw;
  width: 15cqw;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.9cqw;
  background: #20242d;
  box-shadow: 0 1cqw 3cqw rgba(0, 0, 0, 0.5);
}
.self .person {
  width: 58%;
}
.call-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1cqw;
}
.call-controls i {
  width: 3.4cqw;
  height: 3.4cqw;
  border-radius: 50%;
  background: #262a33;
}
.call-controls i.end {
  width: 5.2cqw;
  border-radius: 1.7cqw;
  background: #d94848;
}

/* Подсказка поверх звонка */
.overlay {
  position: absolute;
  z-index: 3;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.1cqw;
  box-shadow: 0 2cqw 6cqw -1cqw rgba(0, 0, 0, 0.75);
}
.overlay img {
  width: 100%;
  height: auto;
}
.stage .overlay {
  top: 6.4cqw;
  right: 3cqw;
  width: 52cqw;
  opacity: 0.96;
}

/*
  Линза: подсказку видно только внутри круга под курсором. Снаружи —
  ровно то, что получает собеседник на демонстрации.
*/
.stage {
  --x: 70%;
  --y: 30%;
  --r: 0px;
  cursor: none;
  transition: --r 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stage .reveal {
  position: absolute;
  inset: 0;
  z-index: 3;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 97%, transparent 100%);
  mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 97%, transparent 100%);
}
.lens {
  position: absolute;
  z-index: 4;
  left: var(--x);
  top: var(--y);
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(110, 168, 254, 0.85);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(110, 168, 254, 0.25) inset;
  pointer-events: none;
}
.lens span {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-top: 10px;
  transform: translateX(-50%);
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(7, 8, 11, 0.85);
  color: #cfe0ff;
  font: 400 12px/1 var(--mono);
  white-space: nowrap;
}

/* --- разделы ----------------------------------------------------------- */

section {
  position: relative;
}
.section {
  padding: 120px 0 0;
}
.kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.02em;
}
h2 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.section-lede {
  max-width: 32rem;
  margin: 18px 0 0;
  color: var(--muted);
}

/* Как работает */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.step {
  padding: 28px 28px 0 0;
}
.step + .step {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}
.step h3 {
  margin: 22px 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.visual {
  display: flex;
  align-items: center;
  height: 92px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-2);
  overflow: hidden;
}

/* 01 — звук */
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}
.wave i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: center;
  animation: wave 1.2s ease-in-out infinite;
}
.wave i:nth-child(2n) {
  animation-delay: -0.3s;
}
.wave i:nth-child(3n) {
  animation-delay: -0.7s;
}
.wave i:nth-child(5n) {
  animation-delay: -0.5s;
}
@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.15);
  }
  50% {
    transform: scaleY(1);
  }
}
.apps {
  margin-left: auto;
  color: var(--faint);
  font: 400 12px/1.6 var(--mono);
  text-align: right;
}

/* 02 — решение */
.decisions {
  display: grid;
  gap: 8px;
  width: 100%;
  font-size: 13.5px;
}
.decision {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.decision q {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  quotes: '«' '»';
}
.decision b {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font: 400 11.5px/1 var(--mono);
}
.decision .skip {
  background: rgba(255, 255, 255, 0.05);
  color: var(--faint);
}
.decision .help {
  background: rgba(110, 168, 254, 0.14);
  color: var(--accent);
}

/* 03 — подсказка */
.mini-hint {
  display: grid;
  gap: 7px;
  width: 100%;
}
.mini-hint i {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}
.mini-hint i:first-child {
  width: 40%;
  background: rgba(255, 255, 255, 0.07);
}
.mini-hint i:nth-child(2) {
  width: 92%;
}
.mini-hint i:nth-child(3) {
  width: 74%;
}
.mini-hint i:nth-child(4) {
  width: 84%;
}
.reveal-on .mini-hint i:not(:first-child) {
  animation: type 2.8s steps(18) infinite;
  transform-origin: left;
}
.reveal-on .mini-hint i:nth-child(3) {
  animation-delay: 0.25s;
}
.reveal-on .mini-hint i:nth-child(4) {
  animation-delay: 0.5s;
}
@keyframes type {
  0% {
    transform: scaleX(0);
  }
  45%,
  100% {
    transform: scaleX(1);
  }
}

/* Сравнение: собеседник и вы */
.split-block {
  margin-top: 48px;
}
.split {
  --split: 50%;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.split .layer {
  position: absolute;
  inset: 0;
}
.split .mine {
  z-index: 2;
  clip-path: inset(0 0 0 var(--split));
}
.split .theirs::after,
.split .mine::after {
  position: absolute;
  bottom: 1.6cqw;
  z-index: 5;
  padding: 0.5cqw 1cqw;
  border-radius: 99px;
  background: rgba(7, 8, 11, 0.8);
  color: #d6dbe4;
  font: 400 1.15cqw/1 var(--mono);
  white-space: nowrap;
}
.split .theirs::after {
  content: 'видит собеседник';
  left: 1.6cqw;
}
.split .mine::after {
  content: 'видите вы';
  right: 1.6cqw;
  color: #cfe0ff;
}
.handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  z-index: 6;
  width: 44px;
  transform: translateX(-50%);
  cursor: ew-resize;
  outline: none;
}
.handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--text);
  box-shadow: 0 0 24px rgba(110, 168, 254, 0.6);
}
.handle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--text)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306080c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M9 7l-5 5 5 5M15 7l5 5-5 5'/></svg>")
    center / 20px no-repeat;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s;
}
.handle:hover::after,
.handle:focus-visible::after,
.split.dragging .handle::after {
  transform: translate(-50%, -50%) scale(1.08);
}
.handle:focus-visible::after {
  box-shadow:
    0 0 0 3px var(--bg),
    0 0 0 5px var(--accent);
}
.split-note {
  max-width: 42rem;
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 14px;
}

/* Экран с задачей */
.ide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 4.2cqw 1fr;
  background: #0e1015;
}
.share-bar {
  display: flex;
  align-items: center;
  gap: 1cqw;
  padding: 0 1.6cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #9aa1ad;
  font-size: 1.15cqw;
}
.share-bar b {
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  margin-left: auto;
  padding: 0.35cqw 0.9cqw;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.14);
  color: #7ee2a1;
  font-weight: 500;
}
.panes {
  display: grid;
  grid-template-columns: 38fr 62fr;
  min-height: 0;
}
.task {
  padding: 2.4cqw;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  color: #aeb4bf;
  font-size: 1.25cqw;
  line-height: 1.6;
}
.task h4 {
  margin: 0 0 1.2cqw;
  color: #eceff5;
  font-size: 1.8cqw;
  font-weight: 600;
}
.task .level {
  display: inline-block;
  margin-bottom: 1.4cqw;
  padding: 0.2cqw 0.8cqw;
  border-radius: 99px;
  background: rgba(74, 222, 128, 0.12);
  color: #7ee2a1;
  font-size: 1.05cqw;
}
.task p {
  margin: 0 0 1.2cqw;
}
.task pre {
  margin: 0;
  padding: 1.2cqw;
  border-radius: 0.8cqw;
  background: rgba(255, 255, 255, 0.04);
  color: #c8cdd6;
  font: 400 1.1cqw/1.6 var(--mono);
  white-space: pre-wrap;
}
.code {
  margin: 0;
  padding: 2.4cqw 2cqw;
  color: #c9d1dc;
  font: 400 1.35cqw/1.9 var(--mono);
  counter-reset: line;
}
.code span {
  display: block;
  white-space: pre;
}
.code span::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 3cqw;
  color: #414856;
}
.code b {
  font-weight: 400;
}
.code .k {
  color: #c792ea;
}
.code .f {
  color: #82aaff;
}
.code .c {
  color: #5c6573;
}
.code .caret::after {
  content: '';
  display: inline-block;
  width: 0.15cqw;
  height: 1.7cqw;
  margin-left: 0.1cqw;
  vertical-align: -0.35cqw;
  background: #eceff5;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.split .overlay {
  top: 6.4cqw;
  right: 2.4cqw;
  width: 44cqw;
}

/* Возможности */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 56px;
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.feature:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--line);
}
.feature:nth-child(even) {
  padding-left: 32px;
}
.feature h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}
.tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--faint);
  font: 400 11px/1.3 var(--mono);
  vertical-align: 3px;
}
.keys {
  display: flex;
  gap: 5px;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--raised);
  color: #d8dde6;
  font: 500 13px/1 var(--sans);
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg-2);
  font-size: 13px;
}
.segmented span {
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--faint);
}
.segmented span.on {
  background: var(--raised);
  color: var(--text);
  animation: flip 4s infinite;
}
.segmented span:not(.on) {
  animation: flip 4s infinite 2s;
}
@keyframes flip {
  0%,
  45% {
    background: var(--raised);
    color: var(--text);
  }
  50%,
  95% {
    background: transparent;
    color: var(--faint);
  }
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg-2);
  color: #cdd3dd;
  font: 400 12.5px/1 var(--mono);
}
.file-chip::before {
  content: 'PDF';
  padding: 3px 4px;
  border-radius: 4px;
  background: rgba(248, 113, 113, 0.16);
  color: #fca5a5;
  font-size: 9.5px;
}
.pointer-demo {
  position: relative;
  width: 64px;
  height: 36px;
}
.pointer-demo svg {
  position: absolute;
  width: 20px;
  height: 20px;
}
.pointer-demo .real {
  left: 2px;
  top: 8px;
}
.pointer-demo .ghost {
  left: 34px;
  top: 4px;
  opacity: 0.7;
  animation: ghost 3.2s ease-in-out infinite;
}
@keyframes ghost {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, 10px);
  }
}

/* Вопросы */
.faq {
  max-width: 760px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}
.faq details p {
  max-width: 40rem;
  margin: -6px 0 22px;
  color: var(--muted);
}

/* Финал */
.final {
  margin-top: 140px;
  padding: 96px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  background: radial-gradient(60% 80% at 50% 0%, rgba(110, 168, 254, 0.1), transparent 70%);
}
.final h2 {
  max-width: none;
  margin-inline: auto;
}
.final .actions {
  justify-content: center;
}

footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
}
footer nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--text);
}

/* Появление при прокрутке */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rise.reveal-on {
  opacity: 1;
  transform: none;
}

/* --- узкие экраны ------------------------------------------------------ */

@media (max-width: 860px) {
  .hero-row {
    align-items: flex-start;
  }
  .top nav {
    display: none;
  }
  .top .button {
    margin-left: auto;
  }
  .hero {
    padding-top: 56px;
  }
  .steps,
  .features {
    grid-template-columns: 1fr;
  }
  .step,
  .step + .step {
    padding: 28px 0 0;
    border-left: 0;
  }
  .feature:nth-child(odd),
  .feature:nth-child(even) {
    padding: 26px 0;
    border-right: 0;
  }
  .section {
    padding-top: 88px;
  }
  .stage {
    cursor: auto;
  }
  .lens span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .rise {
    opacity: 1;
    transform: none;
  }
}
