/* ─────────────────────────────────────────────────────────────────────────
   site.css — the public pages: landing, docs, checkout.

   Same Volametric palette as the product, and the same light-theme block. A
   visitor who buys should not feel handed to a different company at the door.
   ───────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-2: #161b22;
  --border: #282828;
  --text: #e6edf3;
  --text-strong: #ffffff;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-soft: rgba(88, 166, 255, .13);
  --success: #3fb950;
  --danger: #f85149;
  --gold: #e3b341;
  --orange: #ff7722;
  --hover: rgba(255, 255, 255, .05);
  --shadow: 0 0 #0000;
  --attention: #58a6ff;
  --price: #e3b341;
}

:root[data-theme="light"] {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --border: #d0d7de;
  --text: #1f2328;
  --text-strong: #0b0f14;
  --muted: #57606a;
  --accent: #0969da;
  --accent-soft: rgba(9, 105, 218, .10);
  --success: #1a7f37;
  --danger: #cf222e;
  --gold: #9a6700;
  --orange: #bc4c00;
  --hover: rgba(9, 105, 218, .07);
  --shadow: 0 1px 3px rgba(31, 35, 40, .08), 0 1px 2px rgba(31, 35, 40, .04);
  --attention: #0969da;
  --price: #9a6700;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter,
        system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* ─── Shared header ─────────────────────────────────────────────────────── */
/*
 * One size knob. The mark was 34px and read as decoration next to the
 * wordmark; --logo-size is the only place to change it, and it applies to
 * every page at once because they all include the same header.
 */
:root { --logo-size: 68px; }

.site-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface); position: sticky; top: 0; z-index: 5;
}
.site-brand {
  display: flex; align-items: center; gap: 12px;
  color: inherit; text-decoration: none;
}
.site-brand:hover { text-decoration: none; }
.site-brand:hover span { color: var(--accent); }
.site-brand img {
  width: var(--logo-size); height: auto; border-radius: 14px;
  display: block; transition: transform .12s ease;
}
.site-brand:hover img { transform: scale(1.03); }
.site-brand span {
  font-weight: 650; letter-spacing: -.014em; font-size: 16px;
  transition: color .12s ease;
}
.site-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.plan-chip {
  font: 600 10.5px/1 inherit; text-transform: uppercase; letter-spacing: .09em;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
}
.plan-chip.plan-premium { color: var(--gold); border-color: var(--gold); }
.plan-chip.plan-trial { color: var(--orange); border-color: var(--orange); }

@media (max-width: 700px) {
  :root { --logo-size: 48px; }
  .site-brand span { display: none; }
  .site-nav .btn { padding: 6px 10px; font-size: 12px; }
}

/* Атрибут `hidden` обязан прятать.
 *
 * Браузер задаёт `[hidden] { display: none }` своей таблицей, и ЛЮБОЕ авторское
 * `display` её перебивает — специфичность тут ни при чём, авторская таблица
 * сильнее браузерной всегда. `.btn { display: inline-block }` ниже отменял
 * `hidden` на каждой кнопке сайта: «Send a test» стояла на экране у того, кто
 * уведомления не включал, и нажатие на неё ничего не делало.
 *
 * Правило стоит ДО остальных и с `!important`, потому что перебить его должно
 * быть нельзя: элемент, помеченный `hidden`, спрятан, и это не предмет
 * оформления. */
[hidden] { display: none !important; }

.btn {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 7px 13px; font: 500 13px/1 inherit; cursor: pointer;
  display: inline-block;
}
.btn:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.btn.icon { padding: 7px 11px; font-size: 14px; }
.btn.primary {
  background: var(--success); color: #06210c; border-color: transparent;
  font-weight: 650;
}
:root[data-theme="light"] .btn.primary { color: #fff; }
.btn.primary:hover { filter: brightness(1.08); background: var(--success); color: #06210c; }
:root[data-theme="light"] .btn.primary:hover { color: #fff; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */

.hero-block { padding: 54px 0 34px; text-align: center; }

h1 {
  font-size: 40px; line-height: 1.14; letter-spacing: -.03em;
  margin: 0 0 16px; color: var(--text-strong); font-weight: 700;
}
.lede { font-size: 18px; color: var(--muted); margin: 0 auto 28px; max-width: 30em; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Sections ──────────────────────────────────────────────────────────── */

section { padding: 44px 0; border-top: 1px solid var(--border); }
h2 {
  font-size: 22px; letter-spacing: -.022em; margin: 0 0 14px;
  color: var(--text-strong); font-weight: 650;
}
h3 { font-size: 15px; margin: 26px 0 8px; font-weight: 650; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

.stat-row { display: flex; gap: 34px; flex-wrap: wrap; margin: 26px 0 6px; }
.stat-v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.stat-k {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-top: 6px;
}

/* ─── Plans ─────────────────────────────────────────────────────────────── */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.plan {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 20px; background: var(--surface);
}
.plan.pro { border-color: var(--gold); }
.plan-name {
  font-size: 11px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--muted); margin-bottom: 10px;
}
.plan.pro .plan-name { color: var(--gold); }
.plan-price { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.plan-price span { font-size: 13px; font-weight: 400; color: var(--muted); }
.plan-what { font-size: 14px; margin: 14px 0 16px; }
.plan ul { margin: 0 0 18px; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.plan li { margin-bottom: 5px; }

/* ─── Checkout ──────────────────────────────────────────────────────────── */

.co-step { margin-bottom: 22px; }
.co-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); margin-bottom: 9px;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 14px; font-size: 13.5px; cursor: pointer;
  background: transparent; color: var(--text);
}
.chip:hover { background: var(--hover); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

input[type="email"] {
  width: 100%; background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font: 15px/1 inherit;
}
input[type="email"]:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

.pay-box {
  border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; background: var(--surface); margin-top: 20px;
}
.pay-addr {
  font: 500 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all; background: var(--bg); border: 1px solid var(--border);
  border-radius: 9px; padding: 12px; margin: 10px 0 14px;
}
.pay-amt { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.pay-note { font-size: 12.5px; color: var(--muted); }
.key-out {
  font: 600 17px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .06em; color: var(--success);
  background: var(--bg); border: 1px solid var(--success);
  border-radius: 10px; padding: 14px; text-align: center; margin: 12px 0;
}
.err { color: var(--danger); font-size: 13.5px; min-height: 18px; }

/* ─── Docs ──────────────────────────────────────────────────────────────── */

.doc-body { padding-bottom: 60px; }
.doc-body h2 { margin-top: 38px; }
.doc-body ul { padding-left: 20px; }
.doc-body li { margin-bottom: 7px; }
.callout {
  border-left: 2px solid var(--border); padding: 2px 0 2px 14px;
  color: var(--muted); font-size: 14px; margin: 18px 0;
}
.legend-row { display: flex; gap: 22px; font-size: 13.5px; margin: 14px 0 4px; }
.legend-key {
  display: inline-block; width: 16px; height: 3px; border-radius: 2px;
  vertical-align: middle; margin-right: 7px;
}

/* ─── Footer ────────────────────────────────────────────────────────────── */

.site-foot {
  border-top: 1px solid var(--border); padding: 24px 22px 46px;
  font-size: 12.5px; color: var(--muted);
}
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  .plans { grid-template-columns: 1fr; }
  .stat-row { gap: 22px; }
}

/* The console keeps its own second line of badges under the shared header. */
.console-sub {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 22px; border-bottom: 1px solid var(--border);
  background: var(--surface-2); font-size: 12.5px;
}
.console-sub h1 { font-size: 15px; margin: 0; font-weight: 650; }

/* ─── The shape of a signal ─────────────────────────────────────────────── */
/*
 * Drawn, and said to be drawn. A chart on a sales page that looks like today's
 * data without being it is a promise the page cannot keep.
 */
.shape { margin: 0 0 8px; }
.shape svg { display: block; width: 100%; height: auto; }
.shape figcaption {
  display: flex; gap: 20px; align-items: baseline; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted); margin-top: 12px;
}
.shape .lg i {
  display: inline-block; width: 16px; height: 3px; border-radius: 2px;
  vertical-align: middle; margin-right: 7px;
}
.shape .cap-note { margin-left: auto; font-size: 11.5px; opacity: .8; }

@media (max-width: 640px) {
  .shape .cap-note { margin-left: 0; }
}

/* ─── Taxonomy reference ────────────────────────────────────────────────── */
/*
 * Generated from the tree, so a renamed node cannot leave a live link in the
 * product pointing at an anchor that no longer exists.
 */
.tax { margin-top: 20px; }
.tax-root {
  padding: 20px 0 6px; border-top: 1px solid var(--border);
  scroll-margin-top: 96px;
}
.tax-root h3 { font-size: 17px; margin: 0 0 6px; font-weight: 650; color: var(--text-strong); }
.tax-kw { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.tax-kids { list-style: none; padding: 0; margin: 12px 0 0; }
.tax-kids > li {
  padding: 9px 0 9px 14px; border-left: 2px solid var(--border);
  margin-bottom: 4px; scroll-margin-top: 96px;
}
.tax-kids > li:target, .tax-root:target { border-left-color: var(--accent); }
.tax-kids strong { font-size: 14px; font-weight: 650; }
.tax-kids ul { list-style: none; padding: 0 0 0 14px; margin: 8px 0 0; }
.tax-kids ul li { padding: 5px 0; scroll-margin-top: 96px; }
.tax-kids ul strong { font-size: 13px; font-weight: 600; }
.tax-kids .tax-kw { display: block; margin-top: 2px; }
.tax-tech {
  font-size: 9px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); border: 1px solid var(--accent); border-radius: 4px;
  padding: 1px 5px; margin-left: 7px; vertical-align: middle;
}

/* Номер версии в подвале. Стоит на КАЖДОЙ странице, а не только на
   внутренней консоли: покупатель, сообщающий о поломке, называет
   версию, и без неё разговор начинается с выяснения, что у него
   вообще открыто. */
.site-foot .ver, .appfoot .ver {
  opacity: .55;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
