/* JobShturman — лендинг и оферта.
   Шрифты: Onest и JetBrains Mono (SIL OFL 1.1, лицензии в fonts/).
   Цвет по ролям: синий — вы, зелёный — агент, янтарный — люди. */

@font-face {
  font-family: "Onest";
  src: url("fonts/onest-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
  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";
  src: url("fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
  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;
}

:root {
  color-scheme: light dark;
  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --bg: light-dark(#f4f6f5, #0b0f0d);
  --surface: light-dark(#ffffff, #121815);
  --surface-2: light-dark(#e9eeeb, #18201c);
  --ink: light-dark(#0d1411, #edf2ef);
  --muted: light-dark(#4b5751, #a5b1ab);
  --line: light-dark(rgb(13 20 17 / 11%), rgb(237 242 239 / 12%));
  --line-strong: light-dark(rgb(13 20 17 / 20%), rgb(237 242 239 / 22%));

  --agent: light-dark(#077544, #3ed693);
  --agent-solid: #0a7d49;
  --agent-soft: light-dark(#dff2e8, #10291d);
  --you: light-dark(#1f4fd1, #8cb0ff);
  --you-solid: #2459e0;
  --you-soft: light-dark(#e3eafc, #142040);
  --people: light-dark(#9a5300, #f5b453);
  --people-solid: #d9890f;
  --people-soft: light-dark(#fbeedb, #2e2110);

  --hero-bg: #0b1712;
  --hero-ink: #eef5f1;
  --hero-muted: #a9bbb2;
  --hero-line: rgb(238 245 241 / 12%);

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: 16px;
  --wrap: min(1200px, 100% - 2 * var(--gutter));
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h, 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  font-size-adjust: from-font;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--you); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
code, .mono { font-family: var(--mono); font-size: .88em; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* Dots and tags — the role colour code */
.dot { display: inline-block; inline-size: .6em; block-size: .6em; border-radius: 50%; vertical-align: .08em; margin-inline-end: .45em; flex: none; }
.dot-agent { background: var(--agent-solid); }
.dot-you { background: var(--you-solid); }
.dot-people { background: var(--people-solid); }
/* Цветная точка не отрывается от своей строки: каждый помощник с новой строки, точка склеена с первым словом */
.who-line { display: block; }
.nowrap { white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: .4em; font-size: .8125rem; font-weight: 600; padding: .3em .7em; border-radius: 999px; }
.tag::before { content: ""; inline-size: .5em; block-size: .5em; border-radius: 50%; background: currentColor; }
.tag-agent { color: var(--agent); background: var(--agent-soft); }
.tag-you { color: var(--you); background: var(--you-soft); }
.tag-people { color: var(--people); background: var(--people-soft); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-block-size: 44px; padding: .6em 1.15em;
  font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), translate .2s var(--ease);
}
.button:hover { border-color: var(--ink); text-decoration: none; }
.button:active { translate: 0 1px; }
.button.primary { color: #fff; background: var(--agent-solid); border-color: var(--agent-solid); }
.button.primary:hover { background: #086b3e; border-color: #086b3e; }
.button.small { min-block-size: 38px; padding: .45em .9em; font-size: .9375rem; }
.button.large { min-block-size: 54px; padding: .8em 1.5em; font-size: 1.0625rem; border-radius: 14px; }
.button.ghost { background: transparent; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(var(--gutter), (100% - 1200px) / 2);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-cta { display: inline-flex; align-items: center; gap: 8px; }
.tg-icon { display: none; inline-size: 20px; block-size: 20px; fill: currentColor; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; }
/* Компас на зелёном, тот же файл стоит фавиконом */
.wordmark-mark { inline-size: 26px; block-size: 26px; flex: none; background: url("favicon.svg") center / contain no-repeat; }
.site-header nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: .9375rem; }
.site-header nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
/* На страницах без меню (оферта, политика, «Что нового») кнопка прижата вправо */
.site-header > .wordmark + .button { margin-inline-start: auto; }
/* Гамбургер и кнопка «Написать нам» в меню видны только на узком экране */
.menu-toggle { display: none; flex: none; flex-direction: column; justify-content: center; gap: 5px; inline-size: 40px; block-size: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle span { display: block; block-size: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.site-header nav .nav-cta { display: none; }

/* Layout */
.wrap { inline-size: var(--wrap); margin-inline: auto; }
.band { padding-block: clamp(64px, 9vw, 120px); }
.band + .band { border-top: 1px solid var(--line); }
.section-head { max-inline-size: 760px; margin-block-end: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); font-weight: 750; }
.section-head p { margin-block-start: 16px; font-size: 1.1875rem; color: var(--muted); }
.note { margin-block-start: 28px; max-inline-size: 760px; color: var(--muted); font-size: .9875rem; }
.note code { font-size: .85em; padding: .1em .35em; border-radius: 6px; background: var(--surface-2); overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); overflow: clip; position: relative; isolation: isolate; color-scheme: dark; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; inline-size: 70vw; block-size: 70vw; z-index: -1;
  background: radial-gradient(closest-side, rgb(35 196 120 / 22%), transparent 70%);
}
.hero-inner { inline-size: var(--wrap); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 112px); }
.hero-kicker { display: inline-flex; align-items: center; font-family: var(--mono); font-size: .8125rem; letter-spacing: .02em; color: var(--hero-muted); padding: .45em .9em; border: 1px solid var(--hero-line); border-radius: 999px; }
.hero h1 { margin-block: 22px 22px; font-size: clamp(2.375rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
.hero .lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); color: var(--hero-muted); max-inline-size: 60ch; }
.hero .actions { margin-block: 32px 36px; }
.hero .button.ghost { color: var(--hero-ink); border-color: rgb(238 245 241 / 30%); }
.hero .button.ghost:hover { border-color: var(--hero-ink); }
.hero .button.primary { background: #19b26e; border-color: #19b26e; color: #04140c; }
.hero .button.primary:hover { background: #2fcb84; border-color: #2fcb84; }
.facts { list-style: none; padding: 0; display: grid; gap: 10px; font-size: .9375rem; color: var(--hero-muted); }
.facts li { padding-inline-start: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .5em; inline-size: 10px; block-size: 10px; border-radius: 3px; background: #19b26e; }
.facts li:nth-child(3)::before { background: var(--you-solid); }
.facts strong { color: var(--hero-ink); font-weight: 650; }

/* Hero scene — the looping product demo */
.hero-demo { min-inline-size: 0; }
/* Окно — нейтральный графит, как обычное окно приложения на компьютере */
.scene {
  --a: #33d18b; --y: #6f9bff; --p: #f5b453;
  --hero-ink: #f2f2f4; --hero-muted: #a1a1a8; --hero-line: rgb(255 255 255 / 10%);
  background: linear-gradient(180deg, #232326 0%, #18181b 55%, #141416 100%);
  border: 1px solid rgb(255 255 255 / 14%); border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%), 0 0 0 1px rgb(0 0 0 / 55%), 0 40px 80px -30px rgb(0 0 0 / 70%);
  overflow: hidden; font-size: .9375rem;
}
.scene-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgb(0 0 0 / 60%); background: linear-gradient(180deg, #343438, #2a2a2e); box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 1px 0 rgb(255 255 255 / 4%); font-size: .8125rem; color: var(--hero-muted); }
.dots { display: flex; gap: 8px; }
.dots i { inline-size: 12px; block-size: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgb(0 0 0 / 25%); }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.scene-title { font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-inline-size: 0; }
.scene-step { margin-inline-start: auto; font-family: var(--mono); color: var(--hero-muted); white-space: nowrap; }
.scene-bar .scene-pause { flex: none; }
.scene-bar .scene-pause { min-block-size: 28px; padding: .4em .75em; }
.scene-body { display: grid; padding: 18px; min-block-size: 340px; }
.pane { grid-area: 1 / 1; opacity: 0; translate: 0 12px; transition: opacity .5s var(--ease), translate .5s var(--ease); pointer-events: none; }
.scene[data-scene="1"] .pane-pick, .scene[data-scene="2"] .pane-chat,
.scene[data-scene="3"] .pane-resume, .scene[data-scene="4"] .pane-resume,
.scene[data-scene="5"] .pane-list, .scene[data-scene="6"] .pane-list,
.scene[data-scene="7"] .pane-sent { opacity: 1; translate: 0 0; }

/* Заголовок окна показывает выбранного агента */
.scene-title { display: inline-flex; align-items: center; gap: 8px; }
.scene-title .logo { inline-size: 16px; block-size: 16px; }
.ag { display: none; align-items: center; gap: 8px; color: var(--hero-ink); }
.scene[data-agent="claude"] .ag-claude, .scene[data-agent="codex"] .ag-codex { display: inline-flex; }
.scene[data-scene="1"] .ag, .scene[data-scene="1"] .ag-sep { display: none; }

/* Кадр 1: выбор агента */
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick-card {
  position: relative; display: grid; justify-items: start; gap: 4px; padding: 18px 16px; border-radius: 14px;
  background: rgb(255 255 255 / 5%); border: 1.5px solid rgb(255 255 255 / 12%); color: var(--hero-ink);
  transition: border-color .35s var(--ease) 1.2s, background-color .35s var(--ease) 1.2s, scale .35s var(--ease) 1.2s;
}
.pick-card .logo { inline-size: 36px; block-size: 36px; margin-block-end: 8px; }
.pick-card b { font-size: 1.0625rem; }
.pick-card small { color: var(--hero-muted); font-size: .8125rem; }
.pick-card .tick { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; }
.scene[data-scene="1"] .pick-card { animation: rise .5s var(--ease) both; }
.scene[data-scene="1"] .pick-codex { animation-delay: .15s; }
.scene[data-scene="1"][data-agent="claude"] .pick-claude,
.scene[data-scene="1"][data-agent="codex"] .pick-codex { border-color: var(--y); background: rgb(111 155 255 / 12%); scale: 1.02; }
.scene[data-scene="1"][data-agent="claude"] .pick-claude .tick,
.scene[data-scene="1"][data-agent="codex"] .pick-codex .tick,
.scene[data-scene="4"] .stamp .tick { background: var(--y); border-color: var(--y); transition-delay: 1.2s; }
.scene[data-scene="1"][data-agent="claude"] .pick-claude .tick::after,
.scene[data-scene="1"][data-agent="codex"] .pick-codex .tick::after,
.scene[data-scene="4"] .stamp .tick::after { content: ""; position: absolute; inset: 3px 6px 6px 5px; border: solid #0b1712; border-width: 0 2px 2px 0; rotate: 40deg; }
.pick-note { margin-block-start: 16px; color: var(--hero-muted); font-size: .8125rem; }

/* Кадр 2: человек рассказывает, агент записывает факты */
.bubble { padding: 12px 14px; border-radius: 14px; line-height: 1.45; opacity: 0; translate: 0 8px; transition: opacity .45s var(--ease), translate .45s var(--ease); }
.bubble-you { justify-self: end; max-inline-size: 90%; margin-inline-start: auto; background: rgb(111 155 255 / 16%); border: 1px solid rgb(111 155 255 / 40%); border-end-end-radius: 4px; color: var(--hero-ink); }
.bubble-agent { margin-block-start: 12px; max-inline-size: 94%; background: rgb(51 209 139 / 10%); border: 1px solid rgb(51 209 139 / 35%); border-end-start-radius: 4px; color: var(--hero-ink); transition-delay: 1s; }
.scene[data-scene="2"] .bubble { opacity: 1; translate: 0 0; }
.chips { list-style: none; padding: 0; margin-block-start: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-family: var(--mono); font-size: .75rem; padding: .35em .6em; border-radius: 6px; background: rgb(51 209 139 / 18%); color: var(--a); opacity: 0; scale: .9; transition: opacity .3s var(--ease), scale .3s var(--ease); }
.scene[data-scene="2"] .chips li { opacity: 1; scale: 1; transition-delay: calc(var(--i) * 250ms + 1.5s); }

/* Кадр 4: вы согласуете резюме */
.resume { position: relative; }
.stamp { display: inline-flex; align-items: center; gap: 8px; justify-self: start; margin-block-start: 4px; padding: .45em .8em; border-radius: 8px; font-weight: 700; font-size: .8125rem; color: #1f4fd1; background: #e3eafc; opacity: 0; scale: .9; transition: opacity .35s var(--ease) .6s, scale .35s var(--ease) .6s; }
.stamp .tick { border-color: rgb(31 79 209 / 40%); }
.scene[data-scene="4"] .stamp { opacity: 1; scale: 1; }

.sending { display: flex; align-items: center; gap: 8px; margin-block-end: 16px; color: var(--hero-muted); font-size: .8125rem; }
.pane-head { display: flex; justify-content: space-between; gap: 12px; color: var(--hero-muted); font-size: .8125rem; margin-block-end: 14px; }
.count b { color: var(--hero-ink); font-weight: 700; }

.vac { list-style: none; padding: 0; display: grid; gap: 8px; }
.vac li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / 5%); border: 1px solid rgb(255 255 255 / 4%);
  transition: border-color .35s var(--ease), background-color .35s var(--ease), opacity .35s var(--ease);
}
.scene[data-scene="5"] .vac li { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 140ms + 150ms); }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }
.vac-name { display: grid; font-weight: 600; color: var(--hero-ink); }
.vac-name small { font-weight: 400; font-size: .8125rem; color: var(--hero-muted); }
.tick { inline-size: 20px; block-size: 20px; border-radius: 6px; border: 1.5px solid rgb(255 255 255 / 30%); transition: background-color .25s var(--ease), border-color .25s var(--ease); position: relative; }
.score { font-family: var(--mono); font-weight: 700; font-size: .8125rem; inline-size: 30px; block-size: 26px; display: grid; place-items: center; border-radius: 8px; }
.s5 { background: var(--a); color: #04140c; }
.s4 { background: rgb(51 209 139 / 22%); color: var(--a); }
.s3 { background: rgb(255 255 255 / 8%); color: var(--hero-muted); }
.scene[data-scene="6"] .vac li:not(.skip) { border-color: rgb(111 155 255 / 55%); background: rgb(111 155 255 / 10%); }
.scene[data-scene="6"] .vac li:not(.skip) .tick { background: var(--y); border-color: var(--y); }
.scene[data-scene="6"] .vac li:not(.skip) .tick::after { content: ""; position: absolute; inset: 3px 6px 6px 5px; border: solid #0b1712; border-width: 0 2px 2px 0; rotate: 40deg; }
.scene[data-scene="6"] .vac li.skip { opacity: .4; }
.scene[data-scene="6"] .vac li:nth-child(1) { transition-delay: .1s; }
.scene[data-scene="6"] .vac li:nth-child(2) { transition-delay: .5s; }
.scene[data-scene="6"] .vac li:nth-child(4) { transition-delay: .9s; }

.resume { background: #f5f5f7; color: #1d1d1f; border-radius: 12px; padding: 20px 22px; display: grid; gap: 10px; }
.r-title { font-weight: 750; font-size: 1.0625rem; padding-block-end: 8px; border-bottom: 1px solid rgb(13 20 17 / 12%); }
.r-line { font-size: .9375rem; }
.r-line.muted { font-size: .8125rem; color: #6e6e73; }
.resume mark { color: inherit; background: linear-gradient(transparent 55%, rgb(25 178 110 / 35%) 0) no-repeat; background-size: 0% 100%; transition: background-size .7s var(--ease); }
.scene:is([data-scene="3"], [data-scene="4"]) .resume mark { background-size: 100% 100%; }
.scene[data-scene="3"] .r-line:nth-child(3) mark { transition-delay: .5s; }
.scene[data-scene="3"] .r-line:nth-child(4) mark { transition-delay: 1s; }

.funnel { display: grid; gap: 14px; }
.f-row { display: grid; grid-template-columns: 110px 40px 1fr; align-items: center; gap: 12px; color: var(--hero-muted); }
.f-row b { color: var(--hero-ink); font-family: var(--mono); font-size: 1.125rem; text-align: end; }
.f-row i { block-size: 12px; inline-size: max(calc(var(--w) * 100%), 12px); border-radius: 6px; background: var(--a); clip-path: inset(0 100% 0 0 round 6px); transition: clip-path .8s var(--ease); }
.scene[data-scene="7"] .f-row i { clip-path: inset(0 0 0 0 round 6px); }
.scene[data-scene="7"] .f-row:nth-child(2) i { transition-delay: .25s; }
.scene[data-scene="7"] .f-row:nth-child(3) i { transition-delay: .5s; }
.toast { margin-block-start: 24px; display: flex; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgb(245 180 83 / 12%); color: var(--hero-ink); border: 1px solid rgb(245 180 83 / 35%); font-weight: 600; opacity: 0; translate: 0 8px; transition: opacity .5s var(--ease) 1.1s, translate .5s var(--ease) 1.1s; }
.toast .dot { background: var(--p); }
.scene[data-scene="7"] .toast { opacity: 1; translate: 0 0; }

.scene-legend { margin-block-start: 14px; }
.scene-steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.scene-steps button { padding-inline: .7em; }
.scene-steps button, .scene-pause {
  font: 500 .8125rem/1 var(--font); color: var(--hero-muted); background: transparent; cursor: pointer;
  border: 1px solid var(--hero-line); border-radius: 999px; padding: .55em .85em; min-block-size: 32px;
  display: inline-flex; align-items: center; transition: color .25s, border-color .25s, background-color .25s;
}
.scene-steps .dot { margin-inline-end: .5em; }
.scene-steps li.is-active button { color: var(--hero-ink); border-color: rgb(238 245 241 / 40%); background: rgb(238 245 241 / 7%); }
.scene-steps button:hover, .scene-pause:hover { color: var(--hero-ink); }
.scene-pause { flex: none; }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.numbers > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.numbers dd { font-size: clamp(2.5rem, 1.6rem + 2.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers dt { color: var(--muted); font-size: .9375rem; }
.numbers .n-agent { background: var(--agent-solid); border-color: var(--agent-solid); color: #fff; }
.numbers .n-agent dt { color: rgb(255 255 255 / 82%); }
.numbers .n-you dd { color: var(--you); }

/* Path */
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-block-end: 24px; font-size: .9375rem; font-weight: 600; }
.legend li { display: inline-flex; align-items: center; }
.phases { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.phase { border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); }
.phase-setup { background: var(--surface); border: 1px solid var(--line); }
.phase-daily { border: 1px solid var(--hero-line); background: var(--hero-bg); color: var(--hero-ink); position: sticky; top: 88px; color-scheme: dark; }
.phase-label { font-weight: 700; font-size: 1.0625rem; margin-block-end: 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.phase-label .mono { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; padding: .35em .65em; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.phase-daily .phase-label .mono { background: #19b26e; color: #04140c; }

.path-steps { list-style: none; padding: 0; display: grid; position: relative; isolation: isolate; }
.path-steps::before, .path-steps::after { content: ""; position: absolute; z-index: -1; inset-block: 38px var(--tail, 38px); inset-inline-start: 21px; inline-size: 2px; background: var(--line-strong); }
.path-steps::after { background: var(--agent-solid); transform-origin: top; scale: 1 var(--progress, 0); }
.path-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-block: 16px; position: relative; }
.path-steps li + li { border-top: 1px dashed var(--line); }
.step-n {
  inline-size: 44px; block-size: 44px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 1.0625rem;
  background: var(--surface); border: 2px solid var(--line-strong);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.path-steps li.is-done .step-n { background: var(--agent-solid); border-color: var(--agent-solid); color: #fff; }
.path-steps h3 { font-size: 1.375rem; font-weight: 700; margin-block: 8px 6px; }
.path-steps p { color: var(--muted); }
.who { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 12px 8px; }
.time { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.time::before { content: "⏱ "; }

.daily-head { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.daily-head .step-n { background: #19b26e; border-color: #19b26e; color: #04140c; }
.daily-head h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 750; margin-block: 6px 8px; }
.daily-head p { color: var(--hero-muted); }
.daily-head .time { color: #7fe0b2; margin-block-start: 10px; }
.loop { list-style: none; padding: 0; margin-block-start: 26px; display: grid; gap: 8px; counter-reset: loop; }
.loop li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 14px 16px; border-radius: 14px; background: rgb(238 245 241 / 6%); border-inline-start: 0; position: relative; }
.loop li::before { content: ""; grid-row: span 2; inline-size: 10px; block-size: 10px; margin-block-start: .45em; border-radius: 50%; background: #33d18b; }
.loop li.l-you::before { background: #6f9bff; }
.loop b { font-weight: 650; }
.loop span { color: var(--hero-muted); font-size: .9375rem; }
.loop li:last-child::after { content: "↻ и снова завтра"; position: absolute; inset-inline-end: 14px; inset-block-start: 14px; font-family: var(--mono); font-size: .75rem; color: #7fe0b2; }

/* Agent + people */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.duo .section-head h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }
/* Карточки двух колонок стоят на общих строках: одна линия и одна высота */
@media (min-width: 901px) {
  .duo { grid-template-rows: repeat(8, auto); row-gap: 10px; }
  .duo-col { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; align-content: start; }
  .duo-col .cards { grid-row: 2 / span 6; grid-template-rows: subgrid; }
  .col-people .cards { grid-row: 2 / span 4; }
  .duo-col .note { grid-row: 8; }
  .duo-col .cards li { align-content: start; }
}
.cards { list-style: none; padding: 0; display: grid; gap: 10px; }
.cards li { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: 12px 1fr; gap: 4px 14px; }
.cards li::before { content: ""; grid-row: span 2; inline-size: 12px; block-size: 12px; border-radius: 4px; margin-block-start: .4em; }
.col-agent .cards li::before { background: var(--agent-solid); }
.col-people .cards li::before { background: var(--people-solid); }
.cards h3 { font-size: 1.125rem; font-weight: 700; }
.cards p { color: var(--muted); }
.col-people .section-head h2 { color: var(--people); }
.col-agent .section-head h2 span { color: var(--agent); }

/* How to start */
.need { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); margin-block-end: 20px; }
.need h3 { font-size: 1.25rem; font-weight: 700; margin-block-end: 18px; }
.need-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: need; }
.need-list li { display: grid; gap: 6px; align-content: start; padding: 18px; border-radius: var(--radius); background: var(--bg); counter-increment: need; }
.need-list li::before { content: "✓"; inline-size: 28px; block-size: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--you-soft); color: var(--you); font-weight: 800; margin-block-end: 4px; }
.need-list li:nth-child(3) { background: var(--people-soft); }
.need-list li:nth-child(3)::before { content: "$"; background: var(--people-solid); color: #fff; font-family: var(--mono); }
.need-list b { font-size: 1.0625rem; }
.need-list span { color: var(--muted); font-size: .9375rem; }

.install { border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); }
.tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-block-end: 24px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.vh { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Бета: кружок «β» на вкладке агента, подсказка при наведении */
.beta { position: relative; display: inline-grid; place-items: center; inline-size: 18px; block-size: 18px; margin-inline-start: -2px; border-radius: 50%; background: var(--people-soft); color: var(--people); font: 700 .75rem/1 var(--font); }
.beta::after { content: attr(data-tip); position: absolute; inset-inline-end: -8px; inset-block-end: calc(100% + 10px); inline-size: max-content; max-inline-size: 220px; padding: 8px 10px; border-radius: 8px; background: #111614; color: #fff; font: 500 .8125rem/1.35 var(--font); white-space: normal; text-align: start; box-shadow: 0 6px 18px rgb(0 0 0 / 18%); opacity: 0; visibility: hidden; transition: opacity .15s var(--ease); pointer-events: none; z-index: 5; }
[role="tab"]:hover .beta::after, [role="tab"]:focus-visible .beta::after { opacity: 1; visibility: visible; }
.soon { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.soon li { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px dashed var(--line-strong); color: var(--muted); font-weight: 600; cursor: default; }
.soon .logo { filter: grayscale(1); opacity: .7; }
.soon span { font: 600 .6875rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: .35em .5em; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.tabs [role="tab"] { display: inline-flex; align-items: center; gap: 10px; font: 650 1rem/1 var(--font); color: var(--muted); background: transparent; border: 0; border-radius: 10px; padding: 10px 16px; min-block-size: 44px; cursor: pointer; }
.tabs [aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 12%); }
/* Настоящие знаки Claude и Codex из спрайта в index.html; Codex берёт цвет текста */
.logo { inline-size: 22px; block-size: 22px; flex: none; fill: currentColor; }
.panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.install-steps { list-style: none; padding: 0; display: grid; gap: 22px; counter-reset: inst; }
.install-steps li { counter-increment: inst; display: grid; grid-template-columns: 40px 1fr; gap: 6px 16px; }
.install-steps li::before { content: counter(inst); grid-row: span 3; inline-size: 40px; block-size: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--mono); background: var(--you-soft); color: var(--you); }
.install-steps h3 { font-size: 1.1875rem; font-weight: 700; padding-block-start: 8px; }
.install-steps p { color: var(--muted); }
.install-steps .mode-tip { margin-block-start: 6px; padding: 10px 14px; border-radius: 10px; border-inline-start: 3px solid var(--people-solid); background: var(--people-soft); color: var(--ink); }
.copy { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: 10px; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--bg); border: 1.5px dashed var(--line-strong); }
.copy code { flex: 1 1 220px; font-size: .8125rem; overflow-wrap: anywhere; }
.copy-btn.is-done { color: var(--agent); border-color: var(--agent); }

/* Установка одной командой: окно терминала с кнопкой «Скопировать» */
.terminal-block { margin-block-start: 32px; max-inline-size: 960px; }
.terminal-lead { color: var(--muted); margin-block-end: 12px; }
.terminal.copy + .terminal.copy { margin-block-start: 12px; }
.terminal.copy { display: block; margin: 0; padding: 0; border: 1px solid rgb(255 255 255 / 10%); border-radius: 14px; background: var(--hero-bg); color: #e8f2ec; overflow: hidden; box-shadow: 0 24px 50px -30px rgb(0 0 0 / 45%); color-scheme: dark; }
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid rgb(255 255 255 / 8%); font-size: .75rem; color: rgb(232 242 236 / 55%); }
.terminal-bar i { inline-size: 11px; block-size: 11px; border-radius: 50%; background: rgb(255 255 255 / 16%); }
.terminal-bar span { margin-inline-start: 8px; font-family: var(--mono); }
.terminal-body { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 16px; }
.terminal-prompt { font-family: var(--mono); color: #33d18b; font-weight: 700; }
.terminal-body code { flex: 1 1 0; min-inline-size: 0; font-family: var(--mono); font-size: .8125rem; color: #e8f2ec; white-space: nowrap; overflow-x: auto; scrollbar-width: thin; padding-block: 4px; }
.terminal .copy-btn { flex: none; color: #e8f2ec; background: rgb(255 255 255 / 6%); border-color: rgb(255 255 255 / 22%); }
.terminal .copy-btn.is-done { color: #33d18b; border-color: #33d18b; }
.win-check { margin-block-start: 14px; color: var(--muted); }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--agent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }
.modal { margin: auto; inline-size: min(640px, calc(100% - 32px)); max-block-size: calc(100% - 32px); padding: 28px; border: 0; border-radius: var(--radius); background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 45%); }
.modal::backdrop { background: rgb(10 20 15 / 45%); backdrop-filter: blur(4px); }
.modal h2 { margin: 0 32px 12px 0; font-size: 1.375rem; }
.modal > p { color: var(--muted); }
.modal-steps { margin-block: 16px; padding-inline-start: 1.25em; display: grid; gap: 8px; }
.modal .terminal.copy { margin-block: 18px; }
.modal .terminal-body { align-items: flex-start; }
.modal .terminal-body code { flex-basis: calc(100% - 30px); white-space: normal; overflow-wrap: anywhere; overflow: visible; line-height: 1.6; }
.modal .terminal .copy-btn { margin-inline-start: 22px; }
.modal-close { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; inline-size: 36px; block-size: 36px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: var(--ink); }
@media (max-width: 600px) { .modal { padding: 22px 18px; } }

/* «Что-то пошло не так?»: помогают люди, поэтому янтарный */
.help-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-block-start: 20px; max-inline-size: 960px; padding: 18px 20px; border-radius: var(--radius); background: var(--people-soft); border: 1px solid color-mix(in srgb, var(--people-solid) 35%, transparent); }
.help-icon { inline-size: 52px; block-size: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--people-solid); color: #fff; }
.help-icon svg { inline-size: 28px; block-size: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.help-icon circle { fill: currentColor; stroke: none; }
.time-note { display: flex; align-items: center; gap: 16px; max-inline-size: 960px; margin-block-end: 20px; padding: 16px 20px; border-radius: var(--radius); background: var(--people-soft); border: 1px solid color-mix(in srgb, var(--people-solid) 35%, transparent); }
.time-note p { margin: 0; }
.time-icon { inline-size: 52px; block-size: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--people-solid); color: #fff; }
.time-icon svg { inline-size: 28px; block-size: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .time-note { align-items: flex-start; padding: 14px 16px; } .time-icon { inline-size: 44px; block-size: 44px; } }
.help-text { flex: 1 1 200px; }
.help-title { font-weight: 700; font-size: 1.0625rem; color: var(--people); }

.app { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong); background: #fbfbfa; color: #111; color-scheme: light; box-shadow: 0 30px 60px -30px rgb(0 0 0 / 35%); }
.app-claude { background: #faf9f5; }
/* Окно агента — только демонстрация: при наведении размывается и подписывается */
.app { position: relative; cursor: default; }
.app > :not(.app-note, .app-tag) { transition: filter .3s var(--ease); }
.app-note { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.app-note > div { display: grid; gap: 6px; max-inline-size: 340px; padding: 16px 20px; border-radius: 14px; text-align: center; background: rgb(17 17 17 / 88%); color: #f2f2f2; box-shadow: 0 16px 40px -12px rgb(0 0 0 / 45%); font-size: .9375rem; line-height: 1.45; }
.app-note b { font-size: 1rem; }
.app-note span { color: #c9c9c9; font-size: .875rem; }
.app.is-noted > :not(.app-note, .app-tag) { filter: blur(6px); }
.app.is-noted .app-note { opacity: 1; }
@media (hover: hover) {
  .app:hover > :not(.app-note, .app-tag) { filter: blur(6px); }
  .app:hover .app-note { opacity: 1; }
}
.app-tag { display: none; }
@media (hover: none) {
  .app .app-sub { display: none; }
  .app-tag { display: block; position: absolute; inset-block-start: 11px; inset-inline-end: 12px; padding: .3em .7em; border-radius: 999px; font: 600 .75rem/1.2 var(--font); background: rgb(17 17 17 / 80%); color: #f2f2f2; }
}
.app-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgb(0 0 0 / 8%); font-size: .9375rem; }
.app-sub { margin-inline-start: auto; font-family: var(--mono); font-size: .75rem; color: #6b6b6b; }
.app-body { display: grid; gap: 10px; padding: 18px 16px; min-block-size: 360px; align-content: start; font-size: .9375rem; }
.msg { max-inline-size: 88%; padding: 10px 14px; border-radius: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.msg.you { justify-self: end; background: #e8eefc; color: #12306f; border-end-end-radius: 4px; }
.app-claude .msg.you { background: #efe9df; color: #3d2a17; }
.msg.agent { background: transparent; padding-inline: 0; }
.msg.run { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; background: #111; color: #e8e8e8; font-size: .8125rem; max-inline-size: 100%; }
.allow { font: 600 .8125rem/1 var(--font); background: var(--you-solid); color: #fff; padding: .55em .85em; border-radius: 8px; }
.msg.ok { color: #07633a; background: #e2f4ea; font-size: .8125rem; }
.app-input { margin: 0 16px 16px; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: 14px; border: 1px solid rgb(0 0 0 / 12%); color: #8a8a8a; font-size: .9375rem; background: #fff; }
/* Кнопка отправки как в приложениях: у Codex стрелка вверх в круге, у Claude стрелка ввода на оранжевом */
.send { inline-size: 32px; block-size: 32px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #111; color: #fff; }
.send svg { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.send-claude { border-radius: 10px; background: #d97757; }
/* Остальные агенты: чат Grok Bot, терминал Hermes, чат в мессенджере (OpenClaw), приложение DeepSeek (DSH) */
.app-term { background: #0c0c0c; color: #e6e6e6; color-scheme: dark; border-color: #2a2a2a; }
.app-term .app-bar { border-color: #262626; }
.app-term .app-sub { color: #8a8a8a; }
.app-term .app-body { font: .8125rem/1.6 var(--mono); gap: 6px; }
.app-term .msg { max-inline-size: 100%; padding: 0; border-radius: 0; background: none; }
.app-term .msg.you { justify-self: start; color: #fff; font-weight: 600; }
.app-term .msg.you::before { content: "› "; color: var(--term-accent); }
.app-term .msg.agent { color: #c9c9c9; }
.app-term .msg.run { padding: 8px 10px; border: 1px solid #333; border-radius: 6px; background: #161616; }
.app-term .msg.ok { color: #4ade80; }
.app-term .app-input { background: #141414; border-color: #333; border-radius: 8px; color: #7a7a7a; font-family: var(--mono); font-size: .8125rem; }
.app-term .allow { background: var(--term-accent); color: #0c0c0c; }
.app-grokbot { background: #fff; }
.app-grokbot .msg.you { background: #f1f0ee; color: #0a0a0a; }
.app-grokbot .send { background: #0a0a0a; }
.app-hermes { --term-accent: #e6b450; background: #15131f; border-color: #2f2b45; }
.app-hermes .app-bar { border-color: #2f2b45; color: #e6b450; }
.app-hermes .app-input { background: #1d1a2b; border-color: #2f2b45; }
.app-hermes .send { background: #e6b450; color: #15131f; border-radius: 8px; }
.app-chat { background: #fff; }
.app-chat .app-body { background: #dfe7ec; }
.app-chat .msg { box-shadow: 0 1px 1px rgb(0 0 0 / 10%); }
.app-chat .msg.you { background: #e3f7cf; color: #18330c; }
.app-chat .msg.agent { justify-self: start; background: #fff; padding-inline: 14px; border-end-start-radius: 4px; }
.app-chat .app-input { margin: 0; border-radius: 0; border-width: 1px 0 0; }
.app-chat .send { background: #2aabee; }
.app-dsh { background: #fff; }
.app-dsh .msg.you { background: #edf1ff; color: #1d2f8f; }
.app-dsh .send { background: #4d6bfe; }
.js .app .msg { opacity: 0; translate: 0 8px; }
.app.is-playing .msg { animation: msg-in .45s var(--ease) forwards; animation-delay: calc(var(--i) * 900ms + 200ms); }
@keyframes msg-in { to { opacity: 1; translate: 0 0; } }

/* Pains */
.pains { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.pains li { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; align-content: start; gap: 14px; }
.pains h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.25; }
.pains dl { display: grid; gap: 2px; font-size: .9375rem; }
.pains dt { font-family: var(--mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-block-start: 8px; }
.pains dd { color: var(--ink); }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rules > div { padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.rules .rules-you { background: var(--you-soft); border-color: transparent; }
.rules h3 { font-size: 1.25rem; font-weight: 700; margin-block-end: 14px; }
.rules ul { padding-inline-start: 1.1em; display: grid; gap: 10px; }
.rules li::marker { color: var(--muted); }
.rules .rules-you li::marker { color: var(--you); }
.rules p { margin-block-start: 14px; }

/* Story */
.team-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .team-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team-cards li { align-content: start; }
.team-cards li::before { background: var(--people-solid); }

/* Tariffs */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); position: relative; }
.plan h3 { font-size: 1.375rem; font-weight: 750; }
.plan-sub { color: var(--muted); }
.price { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.plan ul { padding-inline-start: 1.1em; display: grid; gap: 8px; flex: 1; }
.plan .button { margin-block-start: 6px; }
.plan.featured { border: 2px solid var(--agent-solid); box-shadow: 0 24px 50px -30px rgb(10 125 73 / 55%); }
.badge { position: absolute; inset-block-start: -13px; inset-inline-start: 26px; font: 700 .75rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--agent-solid); padding: .55em .8em; border-radius: 999px; }
.offer-note { font-size: .8125rem; color: var(--muted); }
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-block-start: 24px; }
.terms > div { padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.terms dt { font-weight: 700; margin-block-end: 6px; }
.terms dd { color: var(--muted); font-size: .9375rem; }
.choose { margin-block-start: 24px; padding: 26px; border-radius: var(--radius-lg); background: var(--agent-soft); }
.choose h3 { font-size: 1.25rem; font-weight: 700; margin-block-end: 12px; }
.choose ol { padding-inline-start: 1.3em; display: grid; gap: 6px; }
.choose li::marker { color: var(--agent); font-weight: 700; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .45fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.faq-list { display: grid; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-weight: 650; font-size: 1.0625rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 500 1.375rem/1 var(--mono); color: var(--agent); transition: rotate .25s var(--ease); }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { padding-block-end: 18px; color: var(--muted); max-inline-size: 70ch; }

/* Contact */
.contact { background: var(--hero-bg); color: var(--hero-ink); padding-block: clamp(64px, 9vw, 120px); color-scheme: dark; }
.contact .section-head p { color: var(--hero-muted); }
.contact .button.primary { background: #19b26e; border-color: #19b26e; color: #04140c; }
.contact .button.ghost { color: var(--hero-ink); border-color: rgb(238 245 241 / 30%); }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px max(var(--gutter), (100% - 1200px) / 2); font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }

/* Offer page */
.doc { inline-size: var(--wrap); margin-inline: auto; padding-block: 56px 80px; }
.doc-body { max-inline-size: 720px; line-height: 1.7; }
.doc-body h1 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.2; font-weight: 750; }
.doc-body h2 { font-size: 1.25rem; font-weight: 700; margin: 48px 0 16px; }
.doc-body p + p, .doc-body p + ul, .doc-body ul + p { margin-top: 12px; }
.doc-body ul { padding-left: 24px; display: grid; gap: 6px; }
.doc-body .edition { margin-top: 12px; color: var(--muted); }
.doc-body code { font-size: .9em; }
.doc-body a { overflow-wrap: anywhere; }
.release h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.release-date { font-size: .9375rem; font-weight: 400; color: var(--muted); }
.doc-toc { margin: 32px 0; padding: 20px 24px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.doc-toc > p { font-weight: 600; margin-bottom: 12px; }
.doc-toc ol { list-style: none; padding: 0; columns: 2; column-gap: 32px; font-size: .875rem; }
.doc-toc li { padding-block: 4px; break-inside: avoid; }
.doc-toc a { color: var(--muted); }
.doc-toc a:hover { color: var(--ink); }

/* Scroll reveal: decorative, progressive enhancement only */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes reveal { from { opacity: 0; translate: 0 28px; } }
    .numbers > div, .path-steps li, .cards li, .pains li, .plan, .rules > div, .need-list li, .loop li {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
  }
}

/* Responsive */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-demo { max-inline-size: 640px; }
  .need-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .site-header { gap: 12px; }
  .site-header > .button { margin-inline-start: auto; }
  .menu-toggle { display: flex; margin-inline-start: auto; }
  /* Где есть гамбургер, «Написать нам» живёт только в меню */
  .site-header:has(.menu-toggle) > .header-cta { display: none; }
  .site-header nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(0 0 0 / 12%); font-size: 1.0625rem; }
  .menu-open nav { display: flex; }
  .site-header nav a { padding: 12px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
  .site-header nav .nav-cta { display: flex; justify-content: center; margin-block-start: 16px; padding: .8em 1.5em; border-bottom: 0; color: #fff; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phases, .duo, .panel, .rules, .plans, .team-cards, .faq-wrap { grid-template-columns: 1fr; }
  .phase-daily { position: static; }
  .plan.featured { order: -1; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  /* Шапка на телефоне: плотный фон и круглая кнопка Telegram вместо «Написать нам» */
  .site-header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  /* .button.small иначе оставляет боковые отступы и сжимает иконку */
  .button.header-cta { inline-size: 40px; block-size: 40px; padding: 0; justify-content: center; border-radius: 50%; background: #27a7e7; border-color: #27a7e7; color: #fff; }
  .header-cta .tg-icon { display: block; flex: none; max-width: none; inline-size: 24px; block-size: 24px; margin-inline-start: -2px; }
  .header-cta-label { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .need-list, .terms { grid-template-columns: 1fr; }
  .numbers > div { padding: 20px 18px; }
  .scene-body { padding: 14px; min-block-size: 330px; }
  .scene-step { display: none; }
  .scene:not([data-scene="1"]) .scene-title > :is(.ag-sep, [data-brand]) { display: none; }
  .scene-bar .scene-pause { margin-inline-start: auto; }
  .f-row { grid-template-columns: 92px 34px 1fr; }
  .path-steps li, .daily-head { grid-template-columns: 36px 1fr; gap: 14px; }
  .step-n { inline-size: 36px; block-size: 36px; font-size: .9375rem; }
  .path-steps::before, .path-steps::after { inset-inline-start: 17px; inset-block-start: 34px; }
  .loop li:last-child::after { position: static; grid-column: 2; margin-block-start: 6px; }
  .doc-toc ol { columns: 1; }
  .tabs { display: flex; flex: 1 1 100%; }
  .soon li { padding-inline: 10px; }
  .tabs { flex-wrap: wrap; }
  .tabs [role="tab"] { flex: 1 1 30%; justify-content: center; padding-inline: 8px; gap: 8px; white-space: nowrap; }
  /* Подсказка беты по центру вкладки, чтобы не уходила за край экрана */
  .tabs [role="tab"]:has(.beta) { position: relative; }
  .beta { position: static; }
  .beta::after { inset-inline-end: auto; left: 50%; transform: translateX(-50%); max-inline-size: 180px; inset-block-end: calc(100% + 6px); }
}
