/* OSTRO AI — landing
   Layout: «лента Telegram как сцена» — в герое живая лента чатов, где совпадения подсвечиваются и становятся лидами;
   ниже — заголовки слева на сетке 1200px, таймлайн шагов, бенто модулей и тарифы, выровненные через subgrid. */

:root {
  color-scheme: dark;
  /* Цвет: тёмная тема — фирменная и включена по умолчанию */
  --bg: #070912;
  --surface: #0e1222;
  --surface-2: #141a30;
  --line: #1c2239;
  --line-strong: #2a3253;
  --ink: #eef1fb;
  --muted: #9098b1;
  --faint: #626a86;
  --brand: #2433c4;          /* цвет логотипа */
  --on-brand: #ffffff;
  --accent: #3b4ef0;         /* кобальт для заливок */
  --accent-hover: #4d60ff;
  --on-accent: #ffffff;
  --accent-text: #a0acff;    /* кобальт для текста на тёмном */
  --accent-soft: rgba(84, 104, 255, .13);
  --mark: rgba(112, 130, 255, .30);
  --signal: #4fd99a;         /* семантика: найден лид / экономия */
  --signal-soft: rgba(79, 217, 154, .12);
  --glow: rgba(59, 78, 240, .30);
  --shadow: 0 40px 90px -30px rgba(0, 0, 0, .7);
  --ava-0: #2c3460; --ava-1: #46304f; --ava-2: #1e4650; --ava-3: #4b3a22;

  /* Шрифты */
  --f-display: "Geologica", "Onest", system-ui, sans-serif;
  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5fa;
  --surface: #ffffff;
  --surface-2: #f6f7fc;
  --line: #e1e4ef;
  --line-strong: #cbd1e3;
  --ink: #0b1027;
  --muted: #535b76;
  --faint: #848ba3;
  --accent: #2433c4;
  --accent-hover: #1b28a8;
  --accent-text: #2433c4;
  --accent-soft: rgba(36, 51, 196, .07);
  --mark: rgba(36, 51, 196, .15);
  --signal: #0b8f57;
  --signal-soft: rgba(11, 143, 87, .10);
  --glow: rgba(36, 51, 196, .16);
  --shadow: 0 40px 80px -36px rgba(20, 30, 90, .28);
  --ava-0: #e1e5fb; --ava-1: #f1e3f0; --ava-2: #dcefef; --ava-3: #f5ead9;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100% }
a { color: inherit }
p { margin: 0 }
h1, h2, h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: "SHRP" 60;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}
h1 em, h2 em { font-style: normal; color: var(--accent-text) }
::selection { background: var(--accent); color: var(--on-accent) }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 10px;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px }

main { overflow-x: clip }

.section, .hero, .closing, .footer, .topbar-in {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.section-label {
  display: flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text);
}
.section-label::before { content: ""; width: 18px; height: 1px; background: currentColor }
.section-head h2 { margin-top: 20px }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: 600 15px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .arrow { transition: transform .25s var(--ease) }
.btn:hover .arrow { transform: translate(2px, -2px) }
.btn:active { transform: translateY(1px) }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px }
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 14px 34px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 18px 40px -14px var(--glow), inset 0 1px 0 rgba(255, 255, 255, .22) }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent }
.btn-ghost:hover { border-color: var(--accent-text); background: var(--accent-soft) }
.btn-link {
  --h: 44px; padding: 0 4px; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-strong);
  text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.btn-link:hover { text-decoration-color: var(--accent-text) }
.btn-light { background: var(--on-brand); color: var(--brand); box-shadow: 0 16px 36px -16px rgba(0, 0, 0, .45) }
.btn-light:hover { background: color-mix(in srgb, var(--on-brand) 90%, var(--brand)) }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line) }
.topbar-in { height: 68px; display: flex; align-items: center; gap: 32px }
.brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  text-decoration: none;
  font: 700 18px/1 var(--f-display); letter-spacing: -.03em;
  font-variation-settings: "SHRP" 60;
}
.brand img { width: 28px; height: 28px }
.nav { display: flex; gap: 28px; margin-left: auto }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s }
.nav a:hover { color: var(--ink) }
.topbar-actions { display: flex; align-items: center; gap: 10px }
.theme-toggle {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--accent-text) }
.theme-toggle .i-moon { display: none }
:root[data-theme="light"] .theme-toggle .i-sun { display: none }
:root[data-theme="light"] .theme-toggle .i-moon { display: block }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px 7px 10px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 2.4s ease-out infinite }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--signal) 55%, transparent) }
  70%, 100% { box-shadow: 0 0 0 8px transparent }
}
.hero h1 {
  margin-block: 26px 24px;
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 760;
  font-variation-settings: "SHRP" 80;
  letter-spacing: -.045em;
  line-height: .98;
}
.lead { max-width: 50ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.7 }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px }
.proof { display: flex; align-items: center; gap: 14px; margin-top: 56px; color: var(--muted); font-size: 13px; line-height: 1.45 }
.proof b { color: var(--ink); font-weight: 600 }
.avatars { display: flex }
.avatars i {
  width: 32px; height: 32px; margin-left: -8px;
  display: grid; place-items: center;
  border: 2px solid var(--bg); border-radius: 50%;
  font: 600 12px/1 var(--f-body); font-style: normal; color: var(--ink);
}
.avatars i:nth-child(1) { margin-left: 0; background: var(--ava-1) }
.avatars i:nth-child(2) { background: var(--ava-2) }
.avatars i:nth-child(3) { background: var(--ava-3) }
.avatars i:nth-child(4) { background: var(--accent); color: var(--on-accent) }

/* Живая лента */
.hero-demo { position: relative; isolation: isolate; min-width: 0 }
.hero-demo::before {
  /* «радар» мониторинга: кольца вокруг панели */
  content: ""; position: absolute; inset: -18% -22%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, var(--glow), transparent 72%),
    repeating-radial-gradient(circle at 50% 50%, transparent 0 58px, color-mix(in srgb, var(--accent-text) 14%, transparent) 58px 59px);
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.feed-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head, .panel-foot {
  display: flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--f-mono); color: var(--muted);
}
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line) }
.panel-time { margin-left: auto; color: var(--faint) }
.live-dot, .mini-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex-shrink: 0 }
.live-dot { animation: pulse 2.4s ease-out infinite }
.mini-dot { display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px }
.panel-foot { justify-content: space-between; padding: 14px 20px 16px; border-top: 1px solid var(--line); color: var(--faint) }
.panel-foot b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums }

.feed {
  list-style: none; margin: 0; padding: 0 0 6px;
  height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 30%);
}
.msg {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 10px 20px;
  max-height: 140px;
  transition: max-height .55s var(--ease), padding .55s var(--ease), opacity .55s var(--ease), transform .55s var(--ease);
}
.msg.entering { max-height: 0; padding-block: 0; opacity: 0; transform: translateY(10px) }
.ava {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ava-0);
  font: 600 13px/1 var(--f-body); color: var(--ink);
}
.ava[data-ava="1"] { background: var(--ava-1) }
.ava[data-ava="2"] { background: var(--ava-2) }
.ava[data-ava="3"] { background: var(--ava-3) }
.msg-body { min-width: 0 }
.msg-meta { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden }
.msg-meta b { color: var(--ink); font-size: 13px; font-weight: 600 }
.msg-meta span { overflow: hidden; text-overflow: ellipsis }
.msg-meta time { font-family: var(--f-mono); font-size: 11px }
.msg p { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--muted) }
.msg.is-lead p { color: var(--ink) }
.msg.is-skip { opacity: .55 }
.msg.is-skip.entering { opacity: 0 }
.msg mark {
  padding: 1px 3px; margin-inline: -1px;
  border-radius: 4px;
  color: inherit;
  background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 0 / 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.msg.is-rejected mark { background: none; text-decoration: underline dashed var(--faint); text-underline-offset: 3px }
.msg.is-new mark { animation: mark-sweep .7s .35s var(--ease) both }
@keyframes mark-sweep { from { background-size: 0 100% } to { background-size: 100% 100% } }
.tag {
  margin-top: 2px; padding: 6px 9px;
  border-radius: 999px; white-space: nowrap;
  font: 500 11px/1 var(--f-mono);
}
.tag-lead { color: var(--signal); background: var(--signal-soft) }
.tag-skip { color: var(--faint); border: 1px solid var(--line) }
.tag-rejected { color: var(--muted); border: 1px dashed var(--line-strong) }
.msg.is-new .tag { animation: tag-in .4s .8s var(--ease) both }
@keyframes tag-in { from { opacity: 0; transform: scale(.85) } to { opacity: 1; transform: none } }

.reply {
  margin: 0 12px 12px; padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent-text) 28%, transparent);
  border-radius: 16px;
  background: var(--accent-soft);
}
.reply-head { display: flex; align-items: center; gap: 10px; font: 500 12px/1.2 var(--f-mono); color: var(--accent-text) }
.reply-to { color: var(--muted) }
.reply-state { margin-left: auto; padding: 4px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px }
.reply.is-typing .reply-state { background: transparent; color: var(--muted); padding-inline: 0 }
.reply-text { margin-top: 10px; min-height: 3em; font-size: 14px; line-height: 1.5; color: var(--ink) }
.reply-meta { display: block; margin-top: 8px; font: 500 11px/1 var(--f-mono); color: var(--faint) }
.typing { display: inline-flex; gap: 4px; padding-top: 8px }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-text); animation: typing 1s infinite }
.typing i:nth-child(2) { animation-delay: .15s }
.typing i:nth-child(3) { animation-delay: .3s }
@keyframes typing { 0%, 60%, 100% { opacity: .25; transform: none } 30% { opacity: 1; transform: translateY(-3px) } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line) }
.section h2 { font-size: clamp(34px, 4.4vw, 58px) }

/* Как работает: таймлайн */
.how-grid { display: grid; gap: clamp(40px, 5vw, 64px) }
.steps {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
}
.steps::before {
  content: ""; position: absolute; left: 20px; right: 20px; top: 20px; height: 1px;
  background: linear-gradient(90deg, var(--accent-text), var(--line-strong) 70%);
}
.step { position: relative; display: grid; gap: 28px; align-content: start; min-width: 0 }
.step-n {
  position: relative; z-index: 1;
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: var(--bg); color: var(--accent-text);
  font: 500 14px/1 var(--f-mono);
}
.step:first-child .step-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent) }
.step h3 { font-size: 22px; letter-spacing: -.025em }
.step p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.65; max-width: 34ch }

/* Что внутри: бенто модулей */
.inside-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(24px, 6vw, 96px); align-items: end;
  margin-bottom: 48px;
}
.inside-intro > p { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 48ch }
.modules { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px }
.module {
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface);
}
.module-lead {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr;
  gap: 12px clamp(32px, 5vw, 64px);
}
.module-lead > h3, .module-lead > p { grid-column: 1 }
.module-lead > .module-ui { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; padding-top: 0 }
.module h3 { font-size: 26px; letter-spacing: -.03em }
.module > p { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 52ch }
.module-ui { margin-top: auto; padding-top: 24px; display: grid; gap: 16px }
.ui-note { font: 500 11px/1 var(--f-mono); color: var(--faint); letter-spacing: .02em }

.keywords { display: flex; flex-wrap: wrap; gap: 8px }
.keywords span {
  padding: 7px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font: 500 13px/1.2 var(--f-mono);
}
.funnel { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden }
.funnel li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; font-size: 14px; color: var(--muted);
}
.funnel li + li { border-top: 1px solid var(--line) }
.funnel b { font: 600 18px/1 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums }
.funnel .is-result { background: var(--signal-soft); color: var(--ink) }
.funnel .is-result b { color: var(--signal) }

.scenarios { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px }
.scenarios li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 13px; color: var(--faint);
}
.scenarios li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor }
.scenarios li.on { color: var(--ink); border-color: var(--line-strong) }
.scenarios li.on::before { background: var(--signal); border-color: var(--signal) }

.meters { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px }
.meters li { display: grid; grid-template-columns: 1fr auto; gap: 8px; font-size: 14px; color: var(--muted) }
.meters b { font: 500 13px/1.4 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums }
.meters i {
  grid-column: 1 / -1; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) var(--v), var(--line) var(--v));
}

/* ---------- Тарифы ---------- */
.plans-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 40px }
.billing { display: grid; gap: 10px; justify-items: end; min-width: 0; max-width: 100% }
.billing-label { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint) }
.billing-options {
  display: flex; gap: 4px; padding: 4px; max-width: 100%;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
  overflow-x: auto; scrollbar-width: none;
}
.billing-options::-webkit-scrollbar { display: none }
.billing-options button {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 16px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font: 600 13px/1 var(--f-body); white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.billing-options button:hover { color: var(--ink) }
.billing-options button.active { background: var(--accent); color: var(--on-accent) }
.billing-options small { font: 600 11px/1 var(--f-mono); color: var(--signal) }
.billing-options button.active small { color: inherit; opacity: .8 }
.billing-options [data-trial] { position: relative; margin-right: 9px }
.billing-options [data-trial]::after {
  content: ""; position: absolute; right: -7px; top: 9px; bottom: 9px; width: 1px; background: var(--line-strong);
}

.plans-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px }
.plan {
  position: relative;
  display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0;
  min-width: 0;
  padding: 26px 24px 24px;
  border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface);
  transition: border-color .2s, transform .25s var(--ease), opacity .2s;
}
.plan:hover { border-color: var(--line-strong) }
.plan.featured {
  border-color: color-mix(in srgb, var(--accent-text) 50%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 15%, var(--surface)), var(--surface) 55%);
  box-shadow: 0 34px 70px -40px var(--glow);
}
.plan.is-off { opacity: .55 }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px }
.plan-tag { font: 500 11px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint) }
.plan.featured .plan-tag { padding: 5px 9px; border-radius: 999px; background: var(--accent); color: var(--on-accent); letter-spacing: .04em }
.plan h3 { font-size: 22px; letter-spacing: -.025em; line-height: 1.15 }
.plan-desc { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.55 }
.plan-pricing { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line) }
.plan-savings { display: flex; align-items: center; gap: 8px; min-height: 22px }
.old-price { color: var(--faint); text-decoration: line-through; font: 500 13px/1 var(--f-mono) }
.save-badge { padding: 5px 8px; border-radius: 999px; background: var(--signal-soft); color: var(--signal); font: 600 11px/1 var(--f-mono) }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 6px }
.plan-price .amount {
  font: 700 44px/1 var(--f-display); font-variation-settings: "SHRP" 60;
  letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.plan-price .period { color: var(--muted); font-size: 13px }
.price-per-month { margin-top: 8px; min-height: 1.4em; color: var(--faint); font: 500 12px/1.4 var(--f-mono) }
.plan-features, .plan-limits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start }
.plan-features { margin-top: 22px }
.plan-features li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.4 }
.plan-features li::before {
  content: ""; width: 16px; height: 16px; margin-top: 1px;
  background: var(--accent-text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.plan-limits { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong) }
.plan-limits li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; color: var(--muted) }
.plan-limits b { font: 600 13px/1 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap }
.plan-cta { display: flex; align-items: flex-end; margin-top: 24px }
.plan-cta .btn { width: 100% }
.plan-disabled { color: var(--faint); font-size: 13px; line-height: 1.45 }

.plan-skeleton {
  min-height: 520px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0 } to { background-position: 0 0 } }
.plans-error {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; border: 1px solid var(--line-strong); border-radius: 18px;
  color: var(--muted);
}

@supports not (grid-template-rows: subgrid) {
  .plan { display: flex; flex-direction: column }
  .plan-cta { margin-top: auto; padding-top: 24px }
}

/* ---------- CTA ---------- */
.closing {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end;
  margin-block: 0 clamp(56px, 8vw, 96px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: 32px;
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 40px 90px -40px var(--glow);
}
.closing::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 760px; height: 760px; right: -280px; top: -380px;
  background: repeating-radial-gradient(circle, transparent 0 54px, color-mix(in srgb, var(--on-brand) 11%, transparent) 54px 55px);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
}
.closing .section-label { color: color-mix(in srgb, var(--on-brand) 72%, transparent) }
.closing h2 { margin-top: 20px; font-size: clamp(28px, 3.6vw, 48px) }
.closing-action { display: grid; justify-items: end; gap: 12px }
.handle { font: 500 13px/1 var(--f-mono); color: color-mix(in srgb, var(--on-brand) 70%, transparent) }
.closing .btn:focus-visible { outline-color: var(--on-brand) }

/* ---------- Footer ---------- */
.footer {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-block: 28px 40px;
  border-top: 1px solid var(--line);
  color: var(--faint); font: 500 12px/1 var(--f-mono);
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s var(--ease); transition-delay: var(--reveal-delay, 0ms) }
.reveal.is-visible { opacity: 1; transform: none }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
}
@media (max-width: 960px) {
  .nav { display: none }
  .topbar-actions { margin-left: auto }
  .hero { grid-template-columns: 1fr }
  .hero h1 { font-size: clamp(38px, 8.4vw, 66px) }
  .hero-demo { max-width: 560px }
  .inside-intro { grid-template-columns: 1fr }
  .modules { grid-template-columns: 1fr }
  .module-lead { display: flex }
  .module-lead > .module-ui { margin-top: auto; padding-top: 24px }
  .plans-head { align-items: flex-start; flex-direction: column }
  .billing { justify-items: start }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 28px }
  .steps::before { left: 20px; right: auto; top: 20px; bottom: 20px; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent-text), var(--line-strong) 70%) }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 18px }
  .step h3 { margin-top: 8px }
  .plans-grid { grid-template-columns: 1fr }
  .closing { grid-template-columns: 1fr; border-radius: 26px }
  .closing-action { justify-items: start }
}
@media (max-width: 480px) {
  .topbar-in { gap: 12px }
  .hero-actions .btn-primary { width: 100% }
  .feed { height: 280px }
  .msg { padding-inline: 14px; gap: 10px; grid-template-columns: 30px minmax(0, 1fr) }
  .msg .tag { grid-column: 2; justify-self: start; margin-top: -2px }
  .ava { width: 30px; height: 30px; font-size: 12px }
  .panel-head, .panel-foot { padding-inline: 14px }
  .reply { margin-inline: 8px }
  .proof { margin-top: 40px }
  .reply-head { flex-wrap: wrap; row-gap: 6px }
  .reply-to { order: 3; flex-basis: 100% }
}
@media (max-width: 560px) {
  .billing { width: 100% }
  .billing-options { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 20px; overflow: visible }
  .billing-options button { justify-content: center; border-radius: 15px }
  .billing-options [data-trial] { grid-column: 1 / -1; margin-right: 0 }
  .billing-options [data-trial]::after { display: none }
}

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