/* CopyTrace landing — «редакційний» стиль: теплий папір, заголовки із засічками,
   іржаво-помаранчевий акцент, темні смуги для доказів. Шрифти локальні (fonts.css):
   Source Serif 4, IBM Plex Sans, IBM Plex Mono (SIL OFL). Жодних запитів до Google. */

:root {
  --paper: #f5f2eb;
  --paper-2: #ece7dc;
  --paper-3: #fbf9f4;
  --ink: #14202e;
  --ink-2: #44505e;
  --ink-3: #5e6773;
  --line: #ddd6c8;
  --line-2: #c9c2b4;
  --rust: #b4410c;
  --rust-dark: #8a3009;
  --rust-ink: #fbf6ef;
  --amber: #f59a5c;
  --mark: #f6d3bc;
  --night: #14202e;
  --night-2: #1e2d3f;
  --night-line: #2e3e52;
  --night-field: #4a5a6e;
  --night-text: #f5f2eb;
  --night-muted: #b8c2ce;
  --night-dim: #8c98a6;
  --ok: #15803d;
  --err: #b91c1c;

  --font-sans: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --r: 12px;
  --r-lg: 16px;
  --wrap: 1200px;
  --gutter: 24px;
  --topbar-h: 68px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

/* ── Основа ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rust); text-underline-offset: 3px; }
a:hover { color: var(--rust-dark); }
h1, h2, h3 { margin: 0; color: inherit; text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); line-height: 1.12; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
mark { background: var(--mark); color: var(--ink); border-radius: 3px; padding: 0 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
main:focus { outline: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--rust); color: var(--rust-ink); }
.skip:focus { top: 12px; }
.kicker { font: 500 0.8rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust); }
.kicker a { color: inherit; text-decoration: none; }
.muted { color: var(--ink-2); }
.chip {
  font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 6px; border: 1px solid var(--night-field); color: var(--night-muted); white-space: nowrap;
}

/* ── Кнопки ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.06rem; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 0.94rem; white-space: nowrap; }
.btn-primary { background: var(--rust); color: var(--rust-ink); }
.btn-ghost, .btn-secondary { border-color: var(--line-2); color: var(--ink-2); background: transparent; font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--rust-dark); color: var(--rust-ink); }
  .btn-ghost:hover, .btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
}
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ── Шапка ──────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(245, 242, 235, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 16px 28px; min-height: var(--topbar-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-mark {
  width: 36px; height: 36px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--ink); color: var(--paper); font: 500 14px/1 var(--font-mono);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-word { font-weight: 600; font-size: 1.2rem; line-height: 1.1; color: var(--ink); }
.brand-word span { color: var(--rust); }
.brand-sub { font: 0.68rem/1.2 var(--font-mono); color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mainnav { display: flex; gap: 4px 22px; }
.mainnav a { padding: 10px 0; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.mainnav a:hover { color: var(--ink); }
.langs { display: flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; flex: none; }
.langs a { padding: 9px 12px; font: 500 0.78rem/1.2 var(--font-mono); color: var(--ink); text-decoration: none; }
.langs a:hover { background: var(--paper-2); }
.langs a[aria-current="true"] { background: var(--ink); color: var(--paper); }

/* ── Анімації першого екрана ─────────────────────────────────── */
.rise { opacity: 0; animation: rise 600ms var(--ease) forwards; }
.d1 { animation-delay: 60ms; } .d2 { animation-delay: 120ms; } .d3 { animation-delay: 180ms; } .d4 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Перший екран ───────────────────────────────────────────── */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-copy .lead { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); color: var(--ink-2); max-width: 35em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.micro { font-size: 0.88rem; color: var(--ink-3); }

.demo-card {
  margin: 0; min-width: 0; background: var(--night); color: var(--night-text);
  border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 24px 48px rgba(20, 32, 46, 0.18);
}
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.demo-title { font-weight: 600; font-size: 0.95rem; }
.graph { width: 100%; height: auto; display: block; font-family: var(--font-sans); }
.graph .node { fill: none; stroke: var(--night-field); stroke-width: 1.5; }
.graph .node.hot { stroke: var(--amber); }
.graph .node-label { fill: var(--night-muted); font-size: 15px; }
.graph .node-label.hot { fill: var(--night-text); }
.graph .link { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 900ms cubic-bezier(0.77, 0, 0.175, 1) forwards; }
.graph .l1 { animation-delay: 500ms; } .graph .l2 { animation-delay: 620ms; } .graph .l3 { animation-delay: 740ms; }
.graph .l4 { animation-delay: 860ms; } .graph .l5 { animation-delay: 980ms; }
.graph .link-dim { stroke: var(--night-field); stroke-width: 1.5; stroke-dasharray: 4 6; }
.graph .dot { fill: var(--amber); transform-box: fill-box; transform-origin: center; opacity: 0; animation: pop 400ms var(--ease) 1350ms forwards; }
.graph .dot-label { font: 14px var(--font-mono); }
.graph .ring { fill: none; stroke: var(--amber); stroke-width: 2; transform-box: fill-box; transform-origin: center; opacity: 0; animation: ring 2400ms var(--ease) 1750ms 3; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes ring { from { opacity: 0.5; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.pairs { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.pairs li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--night-line); }
.pair-score { color: var(--amber); white-space: nowrap; }
.demo-note { font-size: 0.78rem; color: var(--night-dim); }

/* ── Смуга з цифрами ────────────────────────────────────────── */
.stats { background: var(--night); color: var(--night-text); }
.stats-grid { padding-block: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-value { font: 600 3.4rem/1 var(--font-serif); color: var(--amber); }
.stat-label { color: #d5dce4; }
.stat-source { font-size: 0.8rem; color: var(--night-dim); }

/* ── Секції ─────────────────────────────────────────────────── */
.section { padding-block: clamp(64px, 9vw, 96px); }
.section.tint { background: var(--paper-2); }
.section.dark { background: var(--night); color: var(--night-text); }
.section.dark .kicker { color: var(--amber); }
.section.dark .muted { color: var(--night-muted); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
.split-top { align-items: start; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.split-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.compare { display: flex; flex-direction: column; }
.compare-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.compare-row span:first-child { font-weight: 600; }
.compare-row span:last-child { color: var(--ink-3); text-align: right; }
.compare-us { border-bottom: 2px solid var(--rust); }
.compare-us span, .compare-us span:last-child { color: var(--rust); font-weight: 600; }


.ticks { margin: 0; padding: 0 0 0 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }
.evidence { margin: 0; min-width: 0; background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.evidence figcaption { font-weight: 600; font-size: 0.95rem; }
.evidence-texts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; font-size: 0.94rem; line-height: 1.65; }
.evidence-text { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.evidence-name { font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.evidence-meta { font-size: 0.84rem; color: var(--ink-3); }
.evidence-verdict { background: var(--night); color: var(--night-text); border-radius: var(--r); padding: 16px 20px; font-size: 0.95rem; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.case { border-top: 2px solid var(--amber); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.case-tag { font: 0.8rem/1.3 var(--font-mono); color: var(--amber); }
.case h3 { font: 600 1.6rem/1.2 var(--font-serif); }
.case p { color: var(--night-muted); }
.sources-note { margin-top: 32px; font-size: 0.8rem; color: var(--night-dim); }


.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.trust-item { border-top: 2px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.trust-item svg { width: 32px; height: 32px; fill: none; stroke: var(--rust); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust-item p { color: var(--ink-2); }

/* ── Ціни ───────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.plan-price { font: 600 2.8rem/1 var(--font-serif); }
.plan-price .per { font: 400 1.05rem var(--font-sans); color: inherit; opacity: 0.75; }
.plan-alt { font-size: 0.94rem; color: var(--ink-3); }
.plan-features { margin: 0; padding: 0 0 0 20px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.plan .btn { width: 100%; }
.plan-pro { background: var(--night); color: var(--night-text); border-color: var(--night); box-shadow: 0 24px 48px rgba(20, 32, 46, 0.18); }
.plan-pro .plan-alt { color: var(--night-muted); }
.plan-pro .plan-features { color: #d5dce4; }
.badge { font: 500 0.75rem/1 var(--font-mono); padding: 5px 10px; background: var(--amber); color: var(--ink); border-radius: 6px; }

/* ── Форма раннього доступу ─────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.94rem; font-weight: 500; }
.field input, .field select {
  min-height: 48px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--night-field);
  background: var(--night); color: var(--night-text); font: inherit; width: 100%;
}
.field input::placeholder { color: var(--night-dim); }
.field input[aria-invalid="true"] { border-color: #ff8a8a; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--night-muted); }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--amber); }
.consent a { color: var(--amber); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.94rem; min-height: 1.2em; }
.form-status.is-ok { color: var(--amber); }
.form-status.is-error { color: #ff8a8a; }

/* ── Запитання ──────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 0 0 20px; color: var(--ink-2); max-width: 44em; }

/* ── Документи: новини, конфіденційність, оферта, 404 ───────── */
.doc { padding-block: clamp(48px, 7vw, 80px); }
.doc-wrap { max-width: calc(760px + 2 * var(--gutter)); display: flex; flex-direction: column; gap: 14px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.doc h2 { font-family: var(--font-sans); font-size: 1.25rem; margin-top: 18px; }
.doc-updated { font: 0.84rem/1.4 var(--font-mono); color: var(--ink-3); }
.doc-contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc section { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 90px; }
.doc-draft { padding: 12px 14px; border-radius: 8px; border: 1px solid var(--rust); background: var(--mark); font-weight: 600; }
.doc-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc-table thead th { font: 600 0.74rem/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); background: var(--paper-2); }
.doc-table tbody tr:last-child > * { border-bottom: 0; }
.doc-table tbody th { font-weight: 600; white-space: nowrap; }
.news-lead { font-size: 1.08rem; color: var(--ink-2); }
.news-list { list-style: none; margin: 8px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.news-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-3); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.news-item h2 { margin: 0; font-family: var(--font-serif); font-size: 1.45rem; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 500 0.78rem/1.3 var(--font-mono); color: var(--ink-3); }
.news-status { padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ok); background: #e3efe6; }
.news-planned .news-status { color: var(--rust); background: var(--mark); }

/* ── Підвал ─────────────────────────────────────────────────── */
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-copy { font: 0.78rem var(--font-mono); }
.footer-note { max-width: 38em; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }

/* ── Перший екран: темний, рублений заголовок ───────────────── */
.hero {
  background: var(--night); color: var(--night-text); padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 96px);
  background-image: linear-gradient(rgba(245, 154, 92, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 154, 92, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero .kicker { color: var(--amber); display: inline-flex; align-items: center; gap: 10px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 154, 92, 0.25); flex: none; }
.display { font-family: var(--font-sans); font-weight: 700; font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.5rem); line-height: 1.0; letter-spacing: -0.035em; }
.display span { display: block; }
.display .accent { color: var(--amber); }
.display-2 { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.3rem); }
.display-2 span { display: block; }
.hero .lead { color: var(--night-muted); }
.hero .micro { color: var(--night-dim); }
.btn-ghost.btn-on-dark, .hero .btn-ghost { border-color: var(--night-field); color: var(--night-text); }
@media (hover: hover) and (pointer: fine) { .hero .btn-ghost:hover, .btn-on-dark:hover { border-color: var(--night-text); color: var(--night-text); } }
.hero .demo-card { background: var(--night-2); border: 1px solid var(--night-line); }

/* ── Біжучий рядок і смуга переваг ──────────────────────────── */
.ticker { background: var(--ink); color: var(--night-text); overflow: hidden; border-top: 1px solid var(--night-line); }
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; white-space: nowrap; font-size: 0.92rem; }
.ticker-item i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
@keyframes ticker { to { transform: translateX(-50%); } }
.strip { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; padding-block: 20px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 0.94rem; }
.strip li::before { content: "✓"; color: var(--rust); font-weight: 700; margin-right: 8px; }

/* ── Кроки кружечками ───────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; padding-right: 12px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 31px; left: 76px; right: 0; border-top: 2px dashed var(--line-2); }
.step-num { width: 62px; height: 62px; border-radius: 50%; border: 2px solid var(--rust); display: inline-flex; align-items: center; justify-content: center; font: 500 1.1rem/1 var(--font-mono); color: var(--rust); background: var(--paper); }
.step-last .step-num { background: var(--rust); color: var(--rust-ink); }
.step h3 { margin-top: 8px; }
.shot { margin: 8px 0 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 14px 30px -18px rgba(20, 32, 46, .45); }
.shot img { display: block; width: 100%; height: auto; }
.step p { color: var(--ink-2); }

/* ── Для кого: рядки ────────────────────────────────────────── */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper-3); color: var(--ink); text-decoration: none; transition: border-color 200ms ease, transform 160ms var(--ease); }
.row:hover { border-color: var(--rust); color: var(--ink); }
.row-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mark); color: var(--rust-dark); display: inline-flex; align-items: center; justify-content: center; font: 500 0.95rem var(--font-mono); }
.row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-text b { font-size: 1.08rem; }
.row-text span { color: var(--ink-2); }
.row-plan { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.row-price { font: 0.84rem var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.row-arrow { font-size: 1.6rem; color: var(--ink-3); }
.plan-chip { display: inline-block; font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.plan-chip-free { background: var(--paper-2); color: var(--ink); }
.plan-chip-pro { background: var(--mark); color: var(--rust-dark); }
.plan-chip-team { background: var(--ink); color: var(--amber); }

/* ── Панелі (заокруглені темні й акцентні блоки) ────────────── */
.panel { margin: 8px; border-radius: 32px; padding-block: clamp(64px, 9vw, 104px); }
.panel-dark { background: var(--night); color: var(--night-text); background-image: linear-gradient(rgba(245, 154, 92, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(245, 154, 92, 0.05) 1px, transparent 1px); background-size: 56px 56px; }
.panel-dark .kicker { color: var(--amber); }
.panel-dark .muted { color: var(--night-muted); }
.panel-accent { background: var(--rust); color: var(--rust-ink); }
.panel-accent .kicker { color: #ffd9bd; }
.panel-accent .muted { color: #fde6d6; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--rust); font-weight: 700; flex: none; }
.panel-dark .checks li::before { color: var(--amber); }
.checks-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--night-line); }
.numbers div { display: flex; flex-direction: column; gap: 8px; }
.numbers b { font: 500 3.2rem/1 var(--font-mono); color: var(--night-text); }
.numbers span { color: var(--night-muted); font-size: 0.94rem; }
.numbered { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.numbered li { display: flex; align-items: center; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.25); font-weight: 600; }
.numbered span { font: 500 1.7rem/1 var(--font-mono); color: #ffd9bd; min-width: 2.2em; }

/* ── Калькулятор цін і таблиця порівняння ───────────────────── */
.included { margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.calc { background: var(--paper-3); border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: 0 24px 48px rgba(20, 32, 46, 0.08); }
.calc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.period { display: inline-flex; background: var(--paper-2); border-radius: 999px; padding: 4px; }
.period-btn { border: 0; background: transparent; font: 500 0.95rem var(--font-sans); color: var(--ink-2); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.period-btn[aria-pressed="true"] { background: var(--paper-3); color: var(--ink); box-shadow: 0 2px 8px rgba(20, 32, 46, 0.12); }
.save { font: 500 0.72rem var(--font-mono); color: var(--ok); background: #e3efe6; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.calc-q { font-weight: 600; font-size: 0.95rem; margin-top: 10px; }
.calc-n { display: flex; align-items: baseline; gap: 10px; }
.calc-n b { font: 600 4.2rem/1 var(--font-sans); letter-spacing: -0.03em; }
.calc-n span { color: var(--ink-2); }
.range { width: 100%; accent-color: var(--rust); height: 28px; }
.scale { display: flex; justify-content: space-between; gap: 8px; font: 0.78rem var(--font-mono); color: var(--ink-3); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.calc-price { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.calc-price b { font: 700 3.2rem/1.05 var(--font-sans); letter-spacing: -0.03em; }
.calc-price span { color: var(--ink-2); font-size: 0.94rem; }
.calc-price .early { color: var(--rust); font-weight: 600; margin-top: 6px; }
.calc-cta { width: 100%; margin-top: 6px; }
.calc-note { font-size: 0.82rem; color: var(--ink-3); }
[hidden] { display: none !important; }

.compare-table { margin-top: 56px; border: 1px solid var(--line); border-radius: 28px; background: var(--paper-3); padding: 10px; overflow-x: auto; }
.compare-table table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; }
.compare-table th, .compare-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table tbody th { font-weight: 400; color: var(--ink-2); width: 30%; }
.compare-table td { font-weight: 600; }
.ct-title { font-size: 1.15rem; vertical-align: top !important; }
.ct-plan { vertical-align: top; }
.ct-plan > * { display: block; }
.ct-plan .plan-chip { display: inline-block; margin-bottom: 14px; }
.ct-price { font-size: 1.15rem; margin-bottom: 10px; }
.ct-plan a { font-weight: 600; text-decoration: none; }
.compare-table [data-col].sel { background: var(--mark); }
.compare-table thead [data-col].sel { border-radius: 18px 18px 0 0; }
.compare-table tbody tr:last-child [data-col].sel { border-radius: 0 0 18px 18px; }
.yes { color: var(--ink); } .no { color: var(--ink-3); font-weight: 400; } .soon { font: 500 0.82rem var(--font-mono); color: var(--rust); }

/* ── Форма в акцентній панелі ───────────────────────────────── */
.form { background: var(--paper-3); color: var(--ink); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 18px; min-width: 0; box-shadow: 0 24px 48px rgba(20, 32, 46, 0.2); }
.form .field input { background: var(--paper-3); color: var(--ink); border-color: var(--line-2); }
.form .field input::placeholder { color: var(--ink-3); }
.form .consent { color: var(--ink-2); }
.form .consent a { color: var(--rust); }
.form .consent input { accent-color: var(--rust); }
.form .btn-primary { background: var(--ink); color: var(--amber); }
@media (hover: hover) and (pointer: fine) { .form .btn-primary:hover { background: #000; color: var(--amber); } }
.form .form-status.is-ok { color: var(--ok); } .form .form-status.is-error { color: var(--err); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-direction: row !important; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 0.94rem; font-weight: 500; margin-bottom: 8px; padding: 0; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-opt span { display: inline-block; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.9rem; }
.chip-opt input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip-opt input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ── Запитання з номерами ───────────────────────────────────── */
.faq-list summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: baseline; padding: 22px 0; font-weight: 600; font-size: 1.08rem; }
.faq-n { font: 0.85rem var(--font-mono); color: var(--ink-3); }
.faq-list .plus { width: 16px; height: 16px; position: relative; align-self: center; }
.faq-list .plus::before, .faq-list .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--ink); transition: transform 200ms var(--ease); }
.faq-list .plus::after { transform: rotate(90deg); }
.faq-list details[open] .plus::after { transform: rotate(0deg); }
.faq-list details p { padding-left: calc(0.85rem * 2.4 + 20px); }

/* ── Темний підвал з колонками ──────────────────────────────── */
.footer { margin: 8px; border-radius: 32px 32px 0 0; background: var(--night); color: var(--night-muted); padding-block: 56px; font-size: 0.92rem; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; align-items: start; }
.footer .brand-word { color: var(--night-text); font-size: 1.3rem; }
.footer .brand-word span { color: var(--amber); }
.footer-note { margin: 12px 0; max-width: 30em; }
.footer-h { font: 500 0.75rem/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-dim); margin-bottom: 14px; }
.footer-links a { color: var(--night-text); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }
.footer-small { font-size: 0.82rem; color: var(--night-dim); margin-top: 8px; }

/* ── Адаптивність ───────────────────────────────────────────── */
@media (max-width: 1239px) { .mainnav { display: none; } }
@media (max-width: 1000px) {
}
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:not(:last-child)::after { display: none; }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .hero-grid, .split, .split-top { grid-template-columns: minmax(0, 1fr); }
  .cases, .trust, .plans { grid-template-columns: minmax(0, 1fr); }
  .plans { max-width: 520px; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; gap: 12px; }
  .row-icon, .row-arrow { display: none; }
  .checks-2 { grid-template-columns: minmax(0, 1fr); }
  .panel { margin: 4px; border-radius: 22px; }
  .numbers b { font-size: 2.4rem; }
  .calc-n b { font-size: 3.2rem; }
  .calc-price b { font-size: 2.6rem; }
  .ticker-item { padding: 12px 20px; }
  :root { --gutter: 16px; --topbar-h: 60px; }
  body { font-size: 16px; }
  .brand-sub, .topbar-cta { display: none; }
  .topbar-inner { gap: 12px; }
  .langs a { padding: 8px 9px; }
  .evidence-texts { grid-template-columns: minmax(0, 1fr); }
  .demo-card, .form, .plan, .calc { padding: 22px; }
  .actions .btn { flex: 1 1 auto; }
  .stat-value { font-size: 2.8rem; }
  .doc-table thead { display: none; }
  .doc-table tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .doc-table th, .doc-table td { display: block; padding: 2px 0; border: 0; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .graph .dot { opacity: 1; animation: none; }
  .graph .link { animation: none; stroke-dashoffset: 0; }
  .graph .ring { animation: none; }
  .ticker-track { animation: none; }
  .btn { transition: none; }
}
