/**
 * Siarem — публичная главная (production)
 * Канон: docs/PRODUCT.md · tokens: ../brand/siarem-tokens.css
 * Ledger: #0B3A6E · #C2410C · IBM Plex · radius 2px
 */

/* === inlined siarem-tokens.css (single request) === */
/**
 * Siarem brand tokens — канон (согласовано: A · Ledger, 2026-09-12)
 *
 * Wordmark: Siarem
 * UI: IBM Plex Sans (SIL OFL)
 * Mono: IBM Plex Mono (SIL OFL)
 * Brand: #0B3A6E · CTA/signal: #C2410C
 */

:root {
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --bg: #f3f4f6;
  --bg-elev: #ffffff;
  --ink: #12141a;
  --ink-muted: #5c6370;
  --line: #d8dce3;

  --brand: #0b3a6e;
  --brand-press: #082a52;
  --signal: #c2410c;
  --signal-press: #9a3412;
  --ok: #1b7f4e;
  --danger: #b42318;

  --radius: 2px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;

  --logo-weight: 600;
  --logo-tracking: -0.02em;

  /* Form tips / validation (RU layer — see ru-form-hints.js + siarem-tokens.css) */
  --tip-bg: #0a1628;
  --tip-ink: #f3f4f6;
  --tip-danger: #b42318;
  --tip-ok: #1b7f4e;
  --tip-radius: 2px;
  --tip-shadow: 0 8px 24px color-mix(in srgb, #0a1628 28%, transparent);
  --tip-font: var(--font-sans);
  --tip-size: 0.8125rem;
  --tip-pad-y: 0.5rem;
  --tip-pad-x: 0.7rem;
  --tip-max: 18rem;
  --tip-z: 70;
  --tip-gap: 0.5rem;
  --tip-arrow-x: 50%;
}

.field-hint {
  display: block;
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.35;
}
.field-error {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--tip-danger);
  line-height: 1.35;
}
.field-error.is-on { display: block; }
.form-row.is-invalid input,
.form-row.is-invalid textarea,
.form-row.is-invalid select,
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: var(--tip-danger) !important;
}
.siarem-tip {
  position: fixed;
  z-index: calc(var(--tip-z) + 10);
  box-sizing: border-box;
  width: max-content;
  max-width: min(var(--tip-max), calc(100vw - 1.25rem));
  padding: var(--tip-pad-y) var(--tip-pad-x);
  background: var(--tip-bg);
  color: var(--tip-ink);
  font: 500 var(--tip-size) / 1.4 var(--tip-font);
  border-radius: var(--tip-radius);
  box-shadow: var(--tip-shadow);
  pointer-events: none;
  letter-spacing: 0.01em;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.2rem);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
}
.siarem-tip.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.siarem-tip.is-ok {
  background: var(--tip-ok);
  color: #fff;
}
.siarem-tip::after {
  content: "";
  position: absolute;
  left: var(--tip-arrow-x);
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: inherit;
  transform: rotate(45deg);
}
.siarem-tip.is-above::after { bottom: -4px; top: auto; }
.siarem-tip.is-below::after { top: -4px; bottom: auto; }
[data-tip] { position: relative; }
html.js-tips [data-tip]:hover::after,
html.js-tips [data-tip]:focus-visible::after,
html.js-tips [data-tip].is-tip-on::after,
html.js-tips [data-tip].is-copied::after {
  content: none !important;
  display: none !important;
}

/* Google Fonts (подключать в HTML):
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap" rel="stylesheet" />
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  --pad-x: clamp(1.15rem, 4vw, 3rem);
  --wrap: min(70rem, calc(100% - 2 * var(--pad-x)));
  --hero-ink: #f4f5f7;
  --hero-muted: rgba(244, 245, 247, 0.72);
  --hero-dim: rgba(244, 245, 247, 0.48);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  padding: 0.55rem 0.9rem;
  background: var(--signal);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100svh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--hero-ink);
  background: #071f3c;
  overflow-x: hidden;
  overflow-y: visible;
}

.hero-plane {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 88% 8%, rgba(194, 65, 12, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 92%, rgba(11, 58, 110, 0.5), transparent 62%),
    linear-gradient(158deg, #0b3a6e 0%, #071f3c 46%, #040c16 100%);
}

.hero-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(12.5% - 1px),
      rgba(255, 255, 255, 0.05) calc(12.5% - 1px),
      rgba(255, 255, 255, 0.05) 12.5%
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(4, 12, 22, 0.45) 76%, #040c16 100%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 15px,
      rgba(255, 255, 255, 0.018) 15px,
      rgba(255, 255, 255, 0.018) 16px
    );
}

.hero > *:not(.hero-plane) {
  position: relative;
  z-index: 1;
}

.hero-chrome {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(0.85rem, 2.2vw, 2.35rem);
  row-gap: 0.75rem;
  padding:
    clamp(1.15rem, 2.8vh, 1.85rem)
    var(--pad-x)
    clamp(0.65rem, 1.4vh, 1rem);
  min-width: 0;
}

.wordmark {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: var(--logo-weight);
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  letter-spacing: var(--logo-tracking);
  line-height: 1;
  color: #fff;
  animation: rise 0.85s var(--ease) both;
}

.hero-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.55rem, 1.35vw, 1.45rem);
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.95vw, 0.78rem);
  letter-spacing: 0.03em;
  line-height: 1;
  animation: rise 0.85s var(--ease) 0.06s both;
  -webkit-overflow-scrolling: touch;
}

.hero-nav::-webkit-scrollbar {
  display: none;
}

.hero-nav a {
  flex: 0 0 auto;
  color: var(--hero-muted);
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: #fff;
  border-bottom-color: color-mix(in srgb, var(--signal) 70%, transparent);
  outline: none;
}

.hero-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.68rem, 0.9vw, 0.75rem);
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--hero-dim);
  text-align: right;
  white-space: nowrap;
  animation: rise 0.85s var(--ease) 0.08s both;
}

/* Returning customer — quiet chrome, not a second hero CTA */
.hero-signin {
  margin: 0;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: clamp(0.7rem, 0.95vw, 0.78rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  color: var(--hero-muted);
  text-decoration: none;
  padding: 0.45rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  animation: rise 0.85s var(--ease) 0.08s both;
  white-space: nowrap;
}

.hero-signin:hover,
.hero-signin:focus-visible {
  color: #fff;
  border-bottom-color: color-mix(in srgb, var(--signal) 70%, transparent);
  outline: none;
}

.top .nav a.nav-signin {
  font-weight: 600;
  color: var(--brand);
}

.top .nav a.nav-signin:hover,
.top .nav a.nav-signin:focus-visible {
  color: var(--brand-press);
}

.checkout-returning {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--brand) 5%, #fff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.checkout-returning a {
  color: var(--brand);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.checkout-form input.is-locked {
  background: color-mix(in srgb, var(--ink-muted) 8%, #fff);
  color: var(--ink);
  cursor: default;
}


.hero-body {
  position: relative;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
}

.hero-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.15rem, 2.6vh, 1.85rem);
  padding:
    clamp(1.75rem, 5.5vh, 4.25rem)
    var(--pad-x)
    clamp(1.75rem, 4.5vh, 3.25rem);
  box-sizing: border-box;
  width: 100%;
  max-width: min(42rem, 100%);
  min-width: 0;
  min-height: 0;
  height: 100%;
}

/* Desktop-only ambient: islands → neural net (Canvas 2D). Absolute — out of flow. */
.hero-install {
  display: none;
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: max(48%, calc(var(--pad-x) + 36rem));
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 100%);
}

.hero-install canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: auto;
  touch-action: none;
}

@media (min-width: 981px) {
  .hero-install {
    display: block;
  }
}

.hero h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.55rem, 3.8vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
  color: #fff;
  text-wrap: balance;
  overflow-wrap: break-word;
  animation: rise 0.95s var(--ease) 0.12s both;
}

.hero-lead {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.62;
  color: var(--hero-muted);
  text-wrap: pretty;
  overflow-wrap: break-word;
  animation: rise 0.95s var(--ease) 0.2s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  margin-top: 0.2rem;
  animation: rise 0.95s var(--ease) 0.28s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-signal {
  background: var(--signal);
  color: #fff;
}

.btn-signal:hover,
.btn-signal:focus-visible {
  background: var(--signal-press);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.05);
}

/* Ledger */
.ledger {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(4, 10, 18, 0.82);
  backdrop-filter: blur(12px);
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.15vw, 0.84rem);
  line-height: 1.4;
  color: var(--hero-muted);
  animation: ledger-in 1.05s var(--ease) 0.32s both;
}

.ledger-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.95rem var(--pad-x) 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ledger-toolbar-label {
  margin: 0;
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-dim);
}

.ledger-tabs-wrap {
  min-width: 0;
}

.ledger-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}

.ledger-tab {
  margin: 0;
  padding: 0.4rem 0.7rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--hero-dim);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    color 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.ledger-tab:hover,
.ledger-tab:focus-visible {
  color: #fff;
  outline: none;
}

.ledger-tab.is-active {
  color: #fff;
  border-bottom-color: var(--signal);
}

.ledger-head,
.ledger-row {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(0, 1.45fr)
    minmax(5.25rem, max-content)
    minmax(7.25rem, max-content);
  column-gap: 1.5rem;
  row-gap: 0.25rem;
  align-items: baseline;
  padding: 0.9rem var(--pad-x);
  min-width: 0;
}

.ledger-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--hero-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.64rem;
  padding-top: 0.85rem;
  padding-bottom: 0.7rem;
}

.ledger-body {
  min-height: 0;
}

.ledger-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    background 0.2s ease,
    opacity 0.25s ease;
}

.ledger-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.ledger-row:last-child {
  border-bottom: 0;
  padding-bottom: 1.1rem;
}

.ledger-head span,
.ledger-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Amount + status: header and values share right edge */
.ledger-head span:nth-child(3),
.ledger-head span:nth-child(4),
.ledger-row span:nth-child(3),
.ledger-row span:nth-child(4) {
  text-align: right;
  justify-self: end;
}

.ledger-row span:nth-child(3) {
  font-variant-numeric: tabular-nums;
  color: rgba(244, 245, 247, 0.88);
}

.st-ok {
  color: #7dcea0;
}

.st-wait {
  color: #e8a078;
}

.st-lead {
  color: #9eb6d4;
}

.st-due {
  color: #e6c35c;
}

.st-deny {
  color: #e08a84;
}

/* —— Sections —— */
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.section {
  padding: clamp(3.25rem, 8vw, 6.75rem) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-band {
  background: color-mix(in srgb, var(--brand) 4.5%, var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-band + .section {
  border-top: 0;
}

.kicker {
  margin: 0 0 0.95rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.section h2 {
  margin: 0 0 1.35rem;
  max-width: 22ch;
  font-size: clamp(1.6rem, 3.3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.14;
  text-wrap: balance;
}

.section .deck {
  margin: 0;
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1.55vw, 1.15rem);
  line-height: 1.65;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.section .deck strong {
  color: var(--ink);
  font-weight: 600;
}

#why h2 {
  max-width: min(28ch, 100%);
}

#why .deck {
  max-width: 40rem;
  padding-bottom: 0.15rem;
}

#why .deck-examples {
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.75rem;
  max-width: 42rem;
}

#why .deck-examples .deck-example {
  margin: 0;
}

#why .deck-example,
#ltv .deck-example {
  margin: 1.2rem 0 0;
  max-width: 40rem;
  padding: 0.9rem 1.05rem 0.95rem 1.1rem;
  border-left: 3px solid var(--signal);
  background: color-mix(in srgb, var(--signal) 8%, var(--bg));
  color: var(--ink);
  font-size: clamp(0.98rem, 1.4vw, 1.06rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

#why .deck-example-label,
#ltv .deck-example-label {
  display: inline-block;
  margin-right: 0.5rem;
  /* signal-press: AA contrast on tinted deck / section-band (≥4.5:1) */
  color: var(--signal-press);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: 0.08em;
}

#why .breaks {
  margin-top: clamp(2rem, 4vw, 2.75rem);
}

/* Contrast: chat vs Siarem */
.contrast {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.contrast-col {
  padding: 1.35rem 0 0.25rem;
  min-width: 0;
}

.contrast-col:first-child {
  padding-right: clamp(1rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line);
}

.contrast-col:last-child {
  padding-left: clamp(1rem, 3vw, 2.25rem);
}

.contrast-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contrast-col.is-weak .contrast-label {
  color: var(--ink-muted);
}

.contrast-col.is-strong .contrast-label {
  color: var(--brand);
}

.contrast-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contrast-flow li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.975rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.contrast-flow li::before {
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.contrast-flow li:nth-child(1)::before { content: "1"; }
.contrast-flow li:nth-child(2)::before { content: "2"; }
.contrast-flow li:nth-child(3)::before { content: "3"; }

.contrast-col.is-strong .contrast-flow li::before {
  color: var(--brand);
}

.contrast-col.is-strong .contrast-flow li {
  color: var(--ink);
}

/* CRM.md / table risks vs Siarem */
.file-bridge {
  margin-top: clamp(2.25rem, 4.5vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.file-bridge .kicker {
  margin-bottom: 0.75rem;
}

.file-bridge h3 {
  margin: 0 0 1rem;
  max-width: 42ch;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}

.file-bridge-win {
  display: block;
  margin-top: 0.35em;
  color: var(--signal);
}

.file-bridge-deck {
  margin: 0 0 1.5rem;
  max-width: 46rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.file-bridge-deck code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  font-weight: 500;
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  padding: 0.05em 0.3em;
  border-radius: var(--radius);
}

.bridge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.bridge-col {
  padding: 1.25rem 0 0.25rem;
  min-width: 0;
}

.bridge-col + .bridge-col {
  margin-left: clamp(0.85rem, 2vw, 1.35rem);
  padding-left: clamp(0.85rem, 2vw, 1.35rem);
  border-left: 1px solid var(--line);
}

.bridge-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.bridge-col.is-strong .bridge-label {
  color: var(--signal);
}

.bridge-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.bridge-list li {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.bridge-col.is-strong .bridge-list li {
  color: var(--ink);
  font-weight: 500;
}

.bridge-list .b-k {
  display: block;
  margin: 0 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.bridge-col.is-strong .b-k {
  color: var(--signal);
}

/* AI race / why now */
.race {
  margin-top: clamp(2.25rem, 4.5vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.race .kicker {
  margin-bottom: 0.75rem;
}

.race h3 {
  margin: 0 0 1rem;
  max-width: 28ch;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-wrap: balance;
}

.race-deck {
  margin: 0;
  max-width: 42rem;
  color: var(--ink-muted);
  font-size: clamp(1.02rem, 1.45vw, 1.1rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.race-deck strong {
  font-weight: 700;
  color: var(--brand);
}

.race-stats-label {
  margin: 1.55rem 0 0;
  padding-top: 1.05rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.2;
}

.race-stats {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 3.5%, var(--bg));
}

.race-stats li {
  padding: 1.15rem clamp(0.95rem, 2.2vw, 1.45rem) 1.25rem;
  min-width: 0;
}

.race-stats li + li {
  border-left: 1px solid var(--line);
}

.race-num {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--brand);
  white-space: nowrap;
}

.race-cap {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  max-width: 28rem;
}

.race-cap strong {
  color: var(--ink);
  font-weight: 600;
}

.race-source {
  margin: 0.95rem 0 0;
  max-width: 48rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}

.race-source a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

/* How-it-works schemes */
.scheme {
  margin: clamp(2.15rem, 4.5vw, 3rem) 0 0;
  padding: 0;
  max-width: 54rem;
  border: 0;
}

.scheme-cap {
  margin: 0 0 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
}

.scheme-rail {
  --mark: 2.35rem;
  position: relative;
  margin: 0;
  padding: 0 0 0.15rem;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  max-width: 36rem;
  isolation: isolate;
}

.scheme-rail::before {
  content: "";
  position: absolute;
  top: calc(var(--mark) / 2);
  bottom: calc(var(--mark) / 2);
  left: calc(var(--mark) / 2);
  width: 2px;
  background: linear-gradient(
    180deg,
    var(--line) 0%,
    color-mix(in srgb, var(--signal) 55%, var(--line)) 48%,
    var(--brand) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.scheme-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--mark) minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
  min-width: 0;
}

.scheme-mark {
  display: grid;
  place-items: center;
  width: var(--mark);
  height: var(--mark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 0 0 6px var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.scheme-step.is-core .scheme-mark {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 6px var(--bg);
}

.scheme-body {
  width: 100%;
  min-width: 0;
  padding-top: 0;
}

.scheme-who {
  margin: 0.35rem 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.scheme-step.is-core .scheme-who {
  color: var(--brand);
  font-size: 1.02rem;
}

.scheme-do {
  margin: 0 0 0.55rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  text-wrap: balance;
}

.scheme-ex {
  margin: 0;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.scheme-return {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
  margin: 1.35rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px dashed color-mix(in srgb, var(--brand) 28%, var(--line));
}

.scheme-return-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.scheme-return-flow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}

.scheme-return-core {
  color: var(--brand);
  font-weight: 600;
}

.scheme-note {
  margin: 0.95rem 0 0;
  max-width: 42rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.scheme-gate {
  margin-top: 2rem;
}

.gate-rows {
  border-top: 1px solid var(--line);
}

.gate-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) auto minmax(7.5rem, 0.85fr);
  gap: 0.75rem 1.15rem;
  align-items: center;
  padding: 1.05rem 0 1.05rem 0.85rem;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--line);
}

.gate-row.is-ok {
  border-left-color: var(--ok);
}

.gate-row.is-wait {
  border-left-color: var(--signal);
}

.gate-case {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  color: var(--ink);
  font-size: 0.99rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.gate-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.gate-row.is-ok .gate-tag {
  color: var(--ok);
}

.gate-row.is-wait .gate-tag {
  color: var(--signal);
}

.gate-arrow {
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.gate-result {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.gate-row.is-ok .gate-result {
  color: var(--ok);
}

.gate-row.is-wait .gate-result {
  color: var(--signal);
}

/* Mode mini flows */
.mini-flow {
  --mini-mark: 1.85rem;
  position: relative;
  margin: auto 0 0;
  padding: 1.25rem 0 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem clamp(0.55rem, 1.5vw, 0.9rem);
  border-top: 1px solid var(--line);
  width: 100%;
  isolation: isolate;
}

.mini-flow::before {
  content: "";
  position: absolute;
  top: calc(1.25rem + var(--mini-mark) / 2);
  left: calc(16.66% - 0.15rem);
  right: calc(16.66% - 0.15rem);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--line),
    color-mix(in srgb, var(--signal) 50%, var(--line)) 50%,
    var(--brand)
  );
  z-index: 0;
  pointer-events: none;
}

.mini-flow li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  padding: 0;
}

.mini-n {
  display: grid;
  place-items: center;
  width: var(--mini-mark);
  height: var(--mini-mark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 0 0 5px var(--bg);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}

.mini-flow li.is-gate .mini-n {
  border-color: color-mix(in srgb, var(--signal) 55%, var(--line));
  color: var(--signal);
}

.mini-flow li.is-end .mini-n {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.mini-t {
  display: block;
  width: 100%;
  padding-top: 0.55rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  min-height: calc(0.55rem + 2.7em);
  color: var(--ink);
  text-wrap: balance;
}

.mini-flow li.is-gate .mini-t {
  border-top-color: color-mix(in srgb, var(--signal) 40%, var(--line));
  color: var(--signal);
}

.mini-flow li.is-end .mini-t {
  border-top-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  color: var(--brand);
}

/* MCP start steps — variant B: vertical timeline */
.start-block {
  margin: 2.25rem 0 0;
  padding: 0;
  border: 0;
  max-width: 40rem;
}

.start-flow {
  --start-mark: 2.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.start-flow > li {
  position: relative;
  display: grid;
  grid-template-columns: var(--start-mark) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.start-flow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--start-mark) / 2 - 1px);
  top: calc(1.1rem + var(--start-mark));
  bottom: -1px;
  width: 2px;
  background: color-mix(in srgb, var(--signal) 35%, var(--line));
  z-index: 0;
}

.start-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--start-mark);
  height: var(--start-mark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.start-flow > li.is-end .start-mark {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.start-body {
  min-width: 0;
  padding-top: 0.1rem;
}

.start-flow h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.start-flow > li.is-end h3 {
  color: var(--brand);
}

.start-flow p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.section-band .start-mark {
  background: color-mix(in srgb, var(--brand) 4.5%, var(--bg));
}

.section-band .start-flow > li.is-end .start-mark {
  background: var(--brand);
}

/* MCP benefits strip — variant B */
.mcp-strip {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 56rem;
}

.mcp-strip > li {
  padding: 1rem 0 0.25rem;
  min-width: 0;
}

.mcp-strip > li + li {
  margin-left: clamp(1rem, 2.5vw, 1.5rem);
  padding-left: clamp(1rem, 2.5vw, 1.5rem);
  border-left: 1px solid var(--line);
}

.mcp-strip .mcp-k {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--signal-press);
}

.mcp-strip strong {
  display: block;
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.mcp-strip p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.mcp-strip a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* Dual surface: MCP · Telegram/Max */
.access-surfaces {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 56rem;
}

.access-surface {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.3rem 1.35rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  transition: border-color 0.2s ease, box-shadow 0.22s ease;
}

.access-surface:hover {
  border-color: color-mix(in srgb, var(--brand) 32%, var(--line));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--ink) 5%, transparent);
}

.access-surface-kicker {
  margin: 0;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--signal-press);
}

.access-surface h3 {
  margin: 0;
  flex: 0 0 auto;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.access-surface > p:not(.access-surface-kicker) {
  margin: 0;
  flex: 1 1 auto;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.access-surface > p:not(.access-surface-kicker) strong {
  color: var(--ink);
  font-weight: 600;
}

.access-surface-ctas {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
}
.access-surface-ctas .access-surface-cta {
  margin-top: 0;
}

.access-surfaces-note {
  margin: 1.15rem 0 0;
  max-width: 40rem;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.access-surfaces-note a {
  color: var(--brand);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

@media (max-width: 720px) {
  .access-surfaces {
    grid-template-columns: 1fr;
  }
}

/* Channel bridge: Siarem · YandexGPT · Telegram/Max */
.scheme-channel {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  max-width: 56rem;
}

.scheme-channel-lead {
  margin: 0 0 1.35rem;
  max-width: 42rem;
  font-size: clamp(1.02rem, 1.45vw, 1.1rem);
  letter-spacing: -0.012em;
  line-height: 1.55;
  color: var(--ink);
}

.scheme-chain {
  --mark: 2.35rem;
  --chain-gap-y: 0.5rem;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto;
  column-gap: 1rem;
  row-gap: var(--chain-gap-y);
  isolation: isolate;
}

.scheme-chain::before {
  content: "";
  position: absolute;
  top: calc(var(--mark) / 2);
  left: calc(var(--mark) / 2);
  right: calc(var(--mark) / 2);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--line) 0%,
    color-mix(in srgb, var(--signal) 50%, var(--line)) 40%,
    var(--brand) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.scheme-chain-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
  min-width: 0;
  align-items: start;
}

.scheme-chain-mark {
  display: grid;
  place-items: center;
  width: var(--mark);
  height: var(--mark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: 0 0 0 6px var(--bg-elev, var(--bg));
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.section-band .scheme-chain-mark {
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 4.5%, var(--bg));
}

.scheme-chain-step.is-agent .scheme-chain-mark {
  border-color: color-mix(in srgb, var(--signal) 55%, var(--line));
  color: var(--signal);
}

.scheme-chain-step.is-core .scheme-chain-mark {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.scheme-chain-body {
  display: contents;
}

.scheme-chain .scheme-who {
  margin: 0;
  align-self: end;
}

.scheme-chain .scheme-do {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--ink);
  text-wrap: balance;
}

.scheme-chain-step.is-core .scheme-do {
  color: var(--brand);
}

.scheme-chain .scheme-ex {
  margin: 0;
}

.scheme-channel .scheme-return {
  margin-top: 1.35rem;
}

.scheme-channel .scheme-note {
  margin-top: 0.85rem;
  max-width: 44rem;
}

@media (max-width: 900px) {
  .scheme-chain {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 1.2rem;
    max-width: 36rem;
  }

  .scheme-chain::before {
    top: calc(var(--mark) / 2);
    bottom: calc(var(--mark) / 2);
    left: calc(var(--mark) / 2);
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      var(--line) 0%,
      color-mix(in srgb, var(--signal) 55%, var(--line)) 48%,
      var(--brand) 100%
    );
  }

  .scheme-chain-step {
    display: grid;
    grid-template-columns: var(--mark) minmax(0, 1fr);
    grid-template-rows: none;
    grid-row: auto;
    gap: 0.85rem 1rem;
    align-items: start;
  }

  .scheme-chain-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
  }

  .scheme-chain .scheme-who {
    align-self: auto;
  }
}

.explain {
  margin-top: 1.75rem;
  max-width: 44rem;
}

.explain p {
  margin: 0 0 1.1rem;
  font-size: clamp(1.02rem, 1.5vw, 1.1rem);
  letter-spacing: -0.012em;
  line-height: 1.55;
  color: var(--ink);
}

.explain p:last-child {
  margin-bottom: 0;
}

.explain-split {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: clamp(1.75rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

.define,
.inventory {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.15rem 0 0.25rem;
}

.define {
  padding-right: clamp(1.25rem, 3.5vw, 2.75rem);
  border-right: 1px solid var(--line);
}

.inventory {
  padding-left: clamp(1.25rem, 3.5vw, 2.75rem);
}

.define-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1;
}

.inventory .define-label {
  color: var(--signal);
}

.define-lead {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(1.12rem, 1.85vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
  max-width: 28rem;
}

.define-lead strong {
  font-weight: 700;
  color: var(--brand);
}

.define-ways {
  margin: auto 0 0;
  padding: 1.15rem 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
}

.define-ways li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: baseline;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.define-ways li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.define-way-k {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
  line-height: 1.35;
}

.define-way-v {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.inventory-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.inventory-list li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: baseline;
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
  transition: background 0.18s ease;
}

.inventory-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.inventory-list li:first-child {
  padding-top: 0.85rem;
}

@media (hover: hover) and (pointer: fine) {
  .inventory-list li:hover {
    background: color-mix(in srgb, var(--brand) 4%, transparent);
  }
}

.inv-n {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--signal);
  line-height: 1.45;
}

.inv-t {
  font-size: 0.9375rem;
  letter-spacing: -0.012em;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}

.side-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.split-side {
  padding-top: 0.35rem;
}

.breaks {
  margin: 2.35rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
  max-width: 52rem;
}

.breaks li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.breaks li:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.breaks .n {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--signal);
  line-height: 1;
}

.breaks p {
  margin: 0;
  padding-top: 0.35rem;
  max-width: 42rem;
  font-size: clamp(1.02rem, 1.45vw, 1.1rem);
  letter-spacing: -0.01em;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}

.entity {
  margin: 2rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  max-width: 40rem;
}

.entity dt {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
}

.entity dd {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.entity .name-en {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(0.82rem, 1.35vw, 0.95rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}

.entity .name-ru {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Glossary under #how — ledger row of term definitions */
.glossary {
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 3.5%, var(--bg));
}

.glossary-item {
  margin: 0;
  min-width: 0;
  padding: 1.15rem clamp(0.95rem, 2.2vw, 1.45rem) 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-right: 1px solid var(--line);
}

.glossary-item:last-child {
  border-right: 0;
}

.glossary dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.2;
}

.glossary dd {
  margin: 0;
  font-size: 0.9375rem;
  letter-spacing: -0.012em;
  line-height: 1.45;
  color: var(--ink-muted);
  text-wrap: pretty;
  max-width: 28rem;
}

.loop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.25rem;
  font-family: var(--font-mono);
  font-size: clamp(0.8125rem, 1.5vw, 0.975rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.loop span {
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.loop .arrow {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  padding: 0 0.1rem;
}

.loop .core {
  border-color: var(--brand);
  color: var(--brand);
}

.proof-list {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.proof-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}

.proof-list li::before {
  content: "·";
  color: var(--signal);
  margin-right: 0.55rem;
}

/* Modes */
.modes {
  margin-top: 2.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--line);
}

.mode {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 1.85rem 0 1.5rem;
  min-width: 0;
  height: 100%;
}

.mode:first-child {
  padding-right: clamp(1.1rem, 3vw, 2.75rem);
  border-right: 1px solid var(--line);
}

.mode:last-child {
  padding-left: clamp(1.1rem, 3vw, 2.75rem);
}

.mode-copy {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.mode-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--signal);
}

.mode h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-wrap: balance;
  min-height: 2.55em;
}

.mode-copy > p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 34rem;
  font-size: 0.975rem;
  line-height: 1.55;
}

/* LTV — recurring clients */
#ltv h2 {
  max-width: 28ch;
}

.ltv-evidence {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  max-width: 56rem;
}

.ltv-evidence-label {
  margin: 0 0 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.ltv-stats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.ltv-stats li {
  padding: 1.2rem 0 0.35rem;
  min-width: 0;
}

.ltv-stats li + li {
  margin-left: clamp(0.85rem, 2vw, 1.5rem);
  padding-left: clamp(0.85rem, 2vw, 1.5rem);
  border-left: 1px solid var(--line);
}

.ltv-num {
  margin: 0 0 0.3rem;
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--brand);
  white-space: nowrap;
}

.ltv-num-sub {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

.ltv-cap {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.ltv-source {
  margin: 1.15rem 0 0;
  max-width: 48rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}

.ltv-source a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.ltv-source a:hover,
.ltv-source a:focus-visible {
  color: var(--brand-press);
}

.ltv-board {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 56rem;
}

.ltv-def {
  padding: 1.65rem clamp(1rem, 3vw, 2.25rem) 1.5rem 0;
  border-right: 1px solid var(--line);
}

.ltv-example {
  padding: 1.65rem 0 1.5rem clamp(1rem, 3vw, 2.25rem);
}

.ltv-def-label,
.ltv-col-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.ltv-loop {
  --ltv-mark: 1.65rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
  padding: 0;
  list-style: none;
}

.ltv-loop li {
  position: relative;
  display: grid;
  grid-template-columns: var(--ltv-mark) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  z-index: 1;
}

.ltv-loop-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ltv-mark);
  height: var(--ltv-mark);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.ltv-loop li.is-end .ltv-loop-n {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--bg-elev));
}

.ltv-loop-t {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.35;
}

.ltv-def-text {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.ltv-example h3 {
  margin: 0 0 1.05rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.ltv-timeline {
  --rail-x: 0.3rem;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ltv-timeline::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  bottom: 0.55rem;
  left: var(--rail-x);
  width: 1px;
  background: var(--line);
}

.ltv-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1.1rem 3.6rem minmax(0, 1fr) auto;
  gap: 0.55rem 0.65rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}

.ltv-timeline li:first-child {
  padding-top: 0.15rem;
}

.ltv-timeline li:last-child {
  border-bottom: 0;
  padding-bottom: 0.25rem;
}

.ltv-mark {
  position: relative;
  z-index: 1;
  display: block;
  width: 0.65rem;
  height: 0.65rem;
  margin-top: 0.35rem;
  border: 1.5px solid var(--brand);
  border-radius: 50%;
  background: var(--bg);
  box-sizing: border-box;
}

.ltv-timeline li.is-action .ltv-mark {
  background: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}

.ltv-when {
  margin-top: 0.28rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.2;
}

.ltv-timeline li.is-action .ltv-when {
  color: var(--brand);
}

.ltv-what {
  min-width: 0;
}

.ltv-what-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.3;
}

.ltv-what-meta {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
  line-height: 1.4;
  text-wrap: pretty;
}

.ltv-amt {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
}

.ltv-amt.is-plus {
  color: var(--brand);
}

.ltv-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label amt"
    "note amt";
  gap: 0.2rem 1rem;
  align-items: end;
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.ltv-total-label {
  grid-area: label;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.ltv-total-amt {
  grid-area: amt;
  font-family: var(--font-mono);
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--brand);
  line-height: 1;
}

.ltv-total-note {
  grid-area: note;
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.35;
  text-wrap: pretty;
}

.ltv-contrast {
  margin-top: clamp(1.75rem, 3.5vw, 2.35rem);
  display: grid;
  /* Same split as .ltv-board so the vertical rule shares one axis */
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  border-top: 1px solid var(--line);
  max-width: 56rem;
}

.ltv-col {
  padding: 1.35rem 0 0.25rem;
}

.ltv-col:first-child {
  padding-right: clamp(1rem, 3vw, 2.25rem);
  border-right: 1px solid var(--line);
}

.ltv-col:last-child {
  padding-left: clamp(1rem, 3vw, 2.25rem);
}

.ltv-col.is-weak .ltv-col-label {
  color: var(--ink-muted);
}

.ltv-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ltv-col li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.ltv-col.is-strong li {
  color: var(--ink);
}

.ltv-points {
  margin: clamp(1.75rem, 3.5vw, 2.35rem) 0 0;
  padding: 0;
  list-style: none;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

.ltv-points li {
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.975rem;
  line-height: 1.55;
  text-wrap: pretty;
}

.ltv-points strong {
  color: var(--ink);
  font-weight: 600;
}

/* Trust — security + PDN */
#trust h2 {
  max-width: 18ch;
}

.trust-pillars {
  margin-top: 2.35rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.trust-pillar {
  padding: 1.85rem 0 0.25rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.trust-pillar:first-child {
  padding-right: clamp(1.1rem, 3vw, 2.75rem);
  border-right: 1px solid var(--line);
}

.trust-pillar:last-child {
  padding-left: clamp(1.1rem, 3vw, 2.75rem);
}

.trust-pillar-intro {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* label + до 2 строк заголовка — списки в колонках стартуют на одной линии */
  min-height: 5.75rem;
  margin-bottom: 0;
}

.trust-pillar-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--signal-press);
}

.trust-pillar h3 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-wrap: balance;
}

.trust-points {
  margin: 1.1rem 0 0;
  padding: 0;
  padding-inline-start: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.trust-points li {
  margin: 0;
  padding: 0.78rem 0;
  padding-inline-start: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.975rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.trust-docs {
  margin: 1.15rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}

.trust-docs a {
  color: var(--brand);
  font-weight: 500;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}


/* Audience */
.audience {
  margin-top: 1.75rem;
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.7vw, 1.125rem);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.audience strong {
  font-weight: 600;
}

.fit {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
  border-top: 1px solid var(--line);
}

.fit li {
  position: relative;
  padding: 0.7rem 0 0.7rem 1.15rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.975rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.fit li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--signal);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Pricing — Ledger SaaS board */
.section-pricing {
  position: relative;
}

.section-pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 12% 0%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 40% at 88% 18%, color-mix(in srgb, var(--signal) 5%, transparent), transparent 50%);
  opacity: 0.9;
}

.section-pricing > .wrap {
  position: relative;
}

.price-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
}

.price-head-copy {
  min-width: min(100%, 28rem);
}

.price-head .deck {
  margin-bottom: 0;
  max-width: 34rem;
}

.price-period {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  gap: 0.15rem;
}

.price-period-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.price-period-btn:hover {
  color: var(--ink);
}

.price-period-btn.is-on {
  background: var(--brand);
  color: #fff;
}

.price-period-btn:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

.price-period-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.35rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--signal) 16%, transparent);
  color: var(--signal);
}

.price-period-btn.is-on .price-period-hint {
  background: color-mix(in srgb, #fff 22%, transparent);
  color: #fff;
}

.price-grid {
  margin-top: 2.15rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.price-grid-multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 46rem;
}

.price-head-multi {
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.price-head-multi h3 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-plan.is-request {
  border-color: color-mix(in srgb, var(--brand) 22%, var(--line));
}

.price-plan.is-request .price-ribbon {
  background: var(--ink-muted);
  color: #fff;
  padding: 0.2rem 0.45rem;
}

.price-plan.is-featured-multi {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 12%, transparent);
}

.price-plan.is-featured-multi .price-ribbon {
  background: var(--brand);
  color: #fff;
  padding: 0.2rem 0.45rem;
}

.fleet-access {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.fleet-access-title {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.fleet-access ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.fleet-access li::marker {
  color: var(--brand);
}

.fleet-access-foot {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.fleet-access-foot a {
  color: var(--brand);
  font-weight: 600;
}

.price-plan.is-soon {
  border-style: dashed;
}

.price-plan.is-soon .price-ribbon {
  background: var(--ink-muted);
  color: #fff;
  padding: 0.2rem 0.45rem;
}

.price-plan {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.4rem 1.35rem 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: border-color 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.price-plan:hover {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  transform: translateY(-2px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--ink) 6%, transparent);
}

.price-plan.is-featured {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, var(--bg-elev)), var(--bg-elev) 42%);
  box-shadow: 0 10px 32px color-mix(in srgb, var(--brand) 10%, transparent);
}

.price-plan.is-featured:hover {
  border-color: var(--brand);
}

.price-ribbon {
  margin: 0;
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--signal);
}

.price-plan-top {
  min-width: 0;
}

.price-plan-top h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.price-lead {
  margin: 0.55rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  max-width: 28rem;
}

.price-amount-block {
  min-height: 3.6rem;
}

.price-amount {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.price-amount .amt {
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 2.4vw, 1.85rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.price-plan.is-featured .price-amount .amt {
  color: var(--signal);
}

.price-amount .per {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.price-save {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ok);
  letter-spacing: 0.01em;
}

.price-cta-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.price-cta {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.price-cta-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--ink-muted);
  text-align: center;
}

.price-feats {
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 0.55rem;
  flex: 0 0 auto;
  align-content: start;
}

.price-feats li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.price-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 1px;
  background: var(--brand);
}

.price-plan.is-featured .price-feats li::before {
  background: var(--signal);
}

/* Desktop: one baseline for amount / CTA / feats across cards in a row */
@media (min-width: 961px) {
  .price-grid {
    grid-template-rows: auto auto auto auto;
    column-gap: 1rem;
    row-gap: 1.15rem;
  }

  .price-plan {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
    gap: 0;
  }
}

.price-after {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 54rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.price-facts li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 1rem 0 1.05rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: normal;
  color: inherit;
}

.price-facts li + li {
  margin-left: clamp(0.85rem, 2vw, 1.35rem);
  padding-left: clamp(0.85rem, 2vw, 1.35rem);
  border-left: 1px solid var(--line);
}

.price-fact-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--signal);
}

.price-fact-v {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: pretty;
}

.price-facts a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  text-underline-offset: 0.15em;
  border-bottom: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.price-facts a:hover,
.price-facts a:focus-visible {
  color: var(--brand-press);
  border-bottom-color: var(--brand);
  text-decoration: none;
  outline: none;
}

@media (max-width: 960px) {
  .price-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-facts li:nth-child(2n + 1) {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .price-facts li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    margin-top: 0.15rem;
  }
}

@media (max-width: 560px) {
  .price-facts {
    grid-template-columns: 1fr;
  }

  .price-facts li + li {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
    margin-top: 0.1rem;
  }

  .price-facts li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
    padding-top: 0.9rem;
    margin-top: 0.1rem;
  }
}

.price-returning {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1rem 1.15rem;
  background: color-mix(in srgb, var(--brand) 4%, var(--bg-elev));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: var(--radius);
}

.price-returning-copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.price-returning-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.price-returning-lead {
  margin: 0.25rem 0 0;
  max-width: 36rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.price-returning-cta {
  flex: 0 0 auto;
  min-width: 7.5rem;
}

.price-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  padding-top: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.price-legal-label {
  color: var(--ink-muted);
}

.price-legal a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 0.15em;
}

.price-legal a:hover,
.price-legal a:focus-visible {
  text-decoration: underline;
  outline: none;
}

@media (max-width: 640px) {
  .price-returning {
    align-items: stretch;
  }

  .price-returning-cta {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .price-grid,
  .price-grid-multi {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    max-width: none;
  }

  .price-plan.is-featured {
    order: -1;
  }

  .price-head {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-plan,
  .price-period-btn {
    transition: none;
  }

  .price-plan:hover {
    transform: none;
  }
}

/* FAQ */
.faq {
  margin-top: 2.15rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.15rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  display: block;
  position: relative;
  padding-right: 1.85rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0.1em;
  font-family: var(--font-mono);
  color: var(--signal);
  pointer-events: none;
}

.faq details[open] summary::after {
  content: "–";
}

.faq .faq-a {
  margin: 0.8rem 0 0;
  max-width: 42rem;
  color: var(--ink-muted);
  font-size: 0.975rem;
  line-height: 1.55;
}

.faq .faq-a a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* Close */
.close {
  background: var(--brand);
  color: var(--hero-ink);
  padding: clamp(3.25rem, 8vw, 6.25rem) 0;
}

.close-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.close h2 {
  margin: 0 0 0.9rem;
  max-width: 16ch;
  font-size: clamp(1.6rem, 3.3vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #fff;
  text-wrap: balance;
}

.close p {
  margin: 0 0 1.6rem;
  max-width: 34rem;
  color: rgba(244, 245, 247, 0.75);
  text-wrap: pretty;
}

.close .btn-ghost {
  border-color: rgba(255, 255, 255, 0.32);
}

.close-aside {
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.25rem 1.35rem;
  background: rgba(0, 0, 0, 0.12);
}

.close-aside-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(244, 245, 247, 0.5);
}

.close-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.close-aside li {
  padding: 0.45rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.975rem;
}

.close-aside li:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Footer */
.site-foot {
  padding: 2.25rem var(--pad-x) 2.5rem;
  display: grid;
  grid-template-columns: minmax(11rem, 0.95fr) minmax(0, 2.2fr);
  gap: 1.75rem 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink-muted);
}

.foot-brand .wm {
  display: block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--brand);
  letter-spacing: var(--logo-tracking);
  margin-bottom: 0.4rem;
}

.foot-brand-expand {
  margin: 0 0 0.55rem !important;
  max-width: 20rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.foot-brand p {
  margin: 0;
  max-width: 18rem;
  font-size: 0.875rem;
  line-height: 1.45;
  font-family: var(--font-sans);
}

.foot-brand-mail {
  margin: 0.75rem 0 0 !important;
  font-size: 0.875rem !important;
}

.foot-brand-mail a {
  color: var(--brand);
  font-weight: 500;
  text-decoration: none;
}

.foot-brand-mail a:hover,
.foot-brand-mail a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.25rem;
}

.foot-col {
  min-width: 0;
}

.foot-col h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.foot-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.foot-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  line-height: 1.35;
}

.foot-nav a:hover,
.foot-nav a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.foot-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.45;
}

.foot-seller {
  max-width: 40rem;
  text-wrap: pretty;
}

.foot-bar a {
  color: inherit;
  text-decoration: none;
}

.foot-bar a:hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Subpage chrome (offer / privacy / checkout) */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.top-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding-block: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
}

.top .brand {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: var(--logo-tracking);
  color: var(--brand);
  text-decoration: none;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--brand);
  cursor: pointer;
  flex: 0 0 auto;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}

.nav-toggle:hover {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  background: color-mix(in srgb, var(--brand) 6%, var(--bg-elev));
  outline: none;
}

.nav-toggle:active {
  background: color-mix(in srgb, var(--brand) 11%, var(--bg-elev));
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
}

.top.is-nav-open .nav-toggle,
.nav-toggle[aria-expanded="true"] {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--bg-elev));
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.125rem;
  height: 0.78rem;
  pointer-events: none;
}

.nav-toggle-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform-origin: center;
  transition:
    transform 0.18s ease,
    opacity 0.12s ease;
}

.top.is-nav-open .nav-toggle-bars span:nth-child(1) {
  transform: translateY(0.29rem) rotate(45deg);
}

.top.is-nav-open .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.top.is-nav-open .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-0.29rem) rotate(-45deg);
}

.top .nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
}

.top .nav a {
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
}

.top .nav a:hover,
.top .nav a:focus-visible,
.top .nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1.5px;
}

@media (max-width: 879px) {
  .top-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0;
    padding-block: 0.55rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .top .nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    margin: 0.55rem -0.15rem 0;
    padding: 0.35rem 0 0.15rem;
    border-top: 1px solid var(--line);
  }

  .top.is-nav-open .nav {
    display: flex;
  }

  .top .nav a {
    display: block;
    padding: 0.8rem 0.15rem;
    font-size: 0.95rem;
    line-height: 1.3;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
    text-decoration: none;
  }

  .top .nav a:last-child {
    border-bottom: 0;
  }

  .top .nav a.nav-signin {
    margin-top: 0.35rem;
    padding-top: 0.95rem;
    border-top: 1px solid var(--line);
    color: var(--brand);
    font-weight: 600;
  }

  .top .nav a[aria-current="page"] {
    color: var(--brand);
    font-weight: 500;
    text-decoration: none;
    box-shadow: inset 3px 0 0 var(--brand);
    padding-left: 0.65rem;
  }

  .checkout-shell {
    padding-top: 1.35rem;
  }

  .checkout-main h1 {
    font-size: clamp(1.4rem, 6.5vw, 1.75rem);
  }

  .checkout-lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .plan-card .plan-face {
    padding: 0.95rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars span {
    transition: none;
  }
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: var(--pad-x, 1.25rem);
  padding-right: var(--pad-x, 1.25rem);
}

/* Legal document pages */
.legal-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.75rem) var(--pad-x, 1.25rem) 3rem;
}

@media (min-width: 1100px) {
  .legal-shell {
    grid-template-columns: 14.5rem minmax(0, 42rem);
    gap: 2.5rem 3rem;
    justify-content: center;
    align-items: start;
  }
}

.legal-toc {
  display: none;
}

@media (min-width: 1100px) {
  .legal-toc {
    display: block;
    position: sticky;
    top: 1.25rem;
    max-height: calc(100vh - 2.5rem);
    overflow: auto;
    padding: 0.15rem 0;
  }
}

.legal-toc h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-toc a {
  display: block;
  padding: 0.28rem 0 0.28rem 0.65rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
  color: var(--brand);
  border-left-color: color-mix(in srgb, var(--brand) 45%, transparent);
}

.legal-page {
  max-width: 42rem;
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
}

.legal-page > header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.legal-page .legal-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.legal-page h1 {
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.legal-page .legal-lead {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
}

.legal-page .legal-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.legal-page .legal-meta time {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.legal-page section {
  scroll-margin-top: 1.25rem;
}

.legal-page h2 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.7rem;
  color: var(--ink);
}

.legal-page h2:first-of-type {
  margin-top: 0.35rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-muted);
  line-height: 1.68;
  margin: 0 0 0.8rem;
}

.legal-page strong {
  color: var(--ink);
  font-weight: 600;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
}

.legal-page li + li {
  margin-top: 0.25rem;
}

.legal-page a {
  color: var(--brand);
}

.legal-page code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.08em 0.28em;
  background: color-mix(in srgb, var(--brand) 6%, var(--bg));
  border-radius: var(--radius);
  color: var(--ink);
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0.5rem 0 1.15rem;
}

.legal-page th,
.legal-page td {
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.4rem;
  text-align: left;
  vertical-align: top;
  color: var(--ink-muted);
}

.legal-page th {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-page .term {
  margin: 0 0 0.95rem;
}

.legal-page .term dt {
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: var(--ink);
}

.legal-page .term dd {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.65;
}

.legal-page .req {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: pre-line;
  padding: 1rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  color: var(--ink);
  margin: 0.35rem 0 1rem;
}

.legal-page .legal-cta {
  margin: 2.25rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
}

.legal-page .legal-cta p {
  margin: 0 0 0.75rem;
  color: var(--ink-muted);
}

.legal-page .legal-cta .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.legal-page .legal-cta a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.legal-page .legal-cta a.btn-signal {
  background: var(--signal);
  color: #fff;
}

.legal-page .legal-cta a.btn-signal:hover {
  background: var(--signal-press);
}

.legal-page .legal-cta a.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}

.legal-page .legal-cta a.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.legal-mobile-toc {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
}

.legal-mobile-toc summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9rem;
}

.legal-mobile-toc ol {
  margin: 0.75rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.875rem;
}

.legal-mobile-toc a {
  color: var(--brand);
  text-decoration: none;
}

@media (min-width: 1100px) {
  .legal-mobile-toc {
    display: none;
  }
}

@media print {
  .top,
  .site-foot,
  .legal-toc,
  .legal-mobile-toc,
  .legal-cta,
  .skip-link {
    display: none !important;
  }

  .legal-shell {
    display: block;
    max-width: none;
    padding: 0;
  }

  .legal-page {
    max-width: none;
  }

  .legal-page a {
    color: #000;
    text-decoration: underline;
  }

  .legal-page .req {
    border: 1px solid #000;
  }
}

/* Checkout */
.checkout-shell {
  max-width: 64rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) var(--pad-x, 1.25rem) 3.5rem;
  display: grid;
  gap: 1.75rem 2.5rem;
  font-family: var(--font-sans);
}

@media (min-width: 960px) {
  .checkout-shell {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: start;
  }
}

.checkout-main > header {
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.checkout-kicker {
  margin: 0 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.checkout-main h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.checkout-lead {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.55;
  max-width: 36rem;
}

.checkout-lead a {
  color: var(--brand);
}

.checkout-flash {
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--ok);
  background: color-mix(in srgb, var(--ok) 8%, var(--bg-elev));
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkout-flash.is-err {
  border-left-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 8%, var(--bg-elev));
}

.checkout-plans {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.checkout-plans > .field {
  margin: 0 0 0.65rem;
  padding: 0;
}

.field-optional {
  font-weight: 500;
  color: var(--ink-muted);
}

.plan-grid {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
}

@media (min-width: 560px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.plan-card {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-card .plan-face {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.plan-card.is-featured .plan-face {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
}

.plan-card .plan-badge {
  align-self: flex-start;
  margin: 0 0 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--signal, #c2410c);
}

.plan-card:hover .plan-face {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.plan-card input:focus-visible + .plan-face {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.plan-card input:checked + .plan-face,
.plan-card.is-selected .plan-face {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, var(--bg-elev));
  border-left-width: 3px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}

.plan-card.is-wait {
  cursor: default;
}

.plan-card.is-wait .plan-face {
  opacity: 0.88;
  background: var(--bg);
  border-style: dashed;
}

.plan-card.is-wait:hover .plan-face {
  border-color: var(--line);
}

.plan-card .plan-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.plan-card .plan-price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brand);
}

.plan-card .plan-price span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.plan-card .plan-desc {
  margin: 0.15rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.checkout-form label.field {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.checkout-form .field-wrap {
  margin: 0 0 1rem;
}

.checkout-form input[type="text"],
.checkout-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg-elev);
  color: var(--ink);
}

.checkout-form input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.checkout-form .consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0.25rem 0 1.15rem;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.checkout-form .consent input {
  width: auto;
  margin: 0.25rem 0 0;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.checkout-form .consent a {
  color: var(--brand);
}

.checkout-form button[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: var(--signal);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.checkout-form button[type="submit"]:hover,
.checkout-form button[type="submit"]:focus-visible {
  background: var(--signal-press);
}

.checkout-form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.checkout-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 960px) {
  .checkout-aside {
    position: sticky;
    top: 1.25rem;
  }
}

.checkout-panel {
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.checkout-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.checkout-summary-row strong {
  color: var(--ink);
  font-weight: 600;
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
}

.checkout-summary-total .amt {
  font-family: var(--font-mono);
  color: var(--brand);
  font-size: 1.2rem;
}

.checkout-summary-note {
  margin: 0.65rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.checkout-includes {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-muted);
}

.checkout-includes li {
  position: relative;
  padding-left: 0.9rem;
}

.checkout-includes li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--brand);
}

.checkout-steps {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.checkout-steps li + li {
  margin-top: 0.4rem;
}

.checkout-seller {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 0;
}

.checkout-seller a {
  color: var(--brand);
}

.checkout-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.start-req-shell {
  display: grid;
  gap: 1.5rem;
  width: min(64rem, calc(100% - 2 * var(--pad-x)));
  margin: 2rem auto 3.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .start-req-shell {
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, 0.85fr);
    gap: 2rem;
  }
}

.start-req-head h1 {
  margin: 0.35rem 0 0.65rem;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.start-req-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--ink-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.start-req-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1.35rem 0 1.15rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.start-req-steps li {
  position: relative;
  padding-left: 1.35rem;
}

.start-req-steps li::before {
  content: attr(data-step-indicator);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 99px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  background: var(--bg-elev);
}

.start-req-steps li.is-on {
  color: var(--brand);
  font-weight: 600;
}

.start-req-steps li.is-on::before {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, #fff);
}

.start-req-steps li.is-done {
  color: var(--ok);
}

.start-req-steps li.is-done::before {
  content: "✓";
  border-color: var(--ok);
  color: var(--ok);
}

.start-req-panel {
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.start-req-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.start-req-form {
  margin-top: 0.85rem;
}

.start-req-consent {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.45;
}

.start-req-consent a {
  color: var(--brand);
}

.start-req-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.start-req-code {
  font-family: var(--font-mono) !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.28em !important;
  text-align: center;
}

.start-req-resend,
.start-req-back {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.start-req-linkbtn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--brand);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.start-req-linkbtn:disabled {
  color: var(--ink-muted);
  text-decoration: none;
  cursor: not-allowed;
}

.start-req-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 960px) {
  .start-req-aside {
    position: sticky;
    top: 1.25rem;
  }
}

.start-req-aside-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.start-req-aside-list li + li {
  margin-top: 0.4rem;
}

.start-req-aside-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.start-req-aside-note a {
  color: var(--brand);
  font-weight: 600;
}

.start-req-done .cta-row {
  margin-top: 1.25rem;
}

@keyframes rise {
  from {
    transform: translateY(0.95rem);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes ledger-in {
  from {
    transform: translateY(1.25rem);
  }
  to {
    transform: translateY(0);
  }
}

/* —— Breakpoints —— */
@media (max-height: 720px) {
  .hero-stage {
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.25rem;
    padding-bottom: 1.35rem;
  }
}

@media (max-height: 560px) {
  .hero {
    min-height: 0;
  }

  .ledger {
    display: none;
  }

  .hero-stage {
    padding-block: 1.5rem;
  }
}

@media (max-width: 980px) {
  .split,
  .close-grid,
  .mcp-strip,
  .contrast,
  .bridge,
  .explain-split,
  .race-stats,
  .ltv-board,
  .ltv-contrast,
  .ltv-stats {
    grid-template-columns: 1fr;
  }

  .bridge-col + .bridge-col {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .ltv-stats li + li {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.05rem;
    margin-top: 0.15rem;
  }

  .ltv-timeline {
    --rail-x: 0.28rem;
  }

  .ltv-timeline li {
    grid-template-columns: 1rem 3.25rem minmax(0, 1fr);
    grid-template-areas:
      "mark when amt"
      "mark what what";
    gap: 0.2rem 0.55rem;
  }

  .ltv-mark {
    grid-area: mark;
  }

  .ltv-when {
    grid-area: when;
  }

  .ltv-what {
    grid-area: what;
  }

  .ltv-amt {
    grid-area: amt;
    margin-top: 0.2rem;
    justify-self: end;
  }

  .ltv-def {
    padding-right: 0;
    padding-bottom: 1.35rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .ltv-example {
    padding-left: 0;
    padding-top: 1.35rem;
  }

  .ltv-col:first-child {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.15rem;
  }

  .ltv-col:last-child {
    padding-left: 0;
    padding-top: 1.15rem;
  }

  .inventory-list {
    grid-template-columns: 1fr;
  }

  .explain-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .define {
    padding-right: 0;
    padding-bottom: 1.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .inventory {
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .define-ways li {
    grid-template-columns: 6.5rem minmax(0, 1fr);
  }

  .mcp-strip > li + li {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }

  .race-stats {
    background: transparent;
    border-bottom: 0;
  }

  .race-stats li {
    padding: 1rem 0 0.15rem;
  }

  .race-stats li + li {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }

  .contrast-col:first-child {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.25rem;
  }

  .contrast-col:last-child {
    padding-left: 0;
    padding-top: 1.25rem;
  }

  .scheme-return {
    flex-direction: column;
    align-items: flex-start;
  }

  .gate-row {
    grid-template-columns: 1fr;
    gap: 0.45rem;
    padding-left: 0.75rem;
  }

  .gate-arrow {
    display: none;
  }

  .site-foot {
    grid-template-columns: 1fr;
  }

  .foot-cols {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .foot-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .modes,
  .trust-pillars,
  .glossary {
    grid-template-columns: 1fr;
  }

  .glossary {
    background: transparent;
    border-bottom: 0;
  }

  .glossary-item {
    padding: 0.95rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .glossary-item:last-child {
    border-bottom: 0;
    padding-bottom: 0.15rem;
  }

  .foot-cols {
    grid-template-columns: 1fr 1fr;
  }

  .mode:first-child {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .mode:last-child {
    padding-left: 0;
  }

  .mode h3 {
    min-height: 0;
  }

  .mini-flow {
    margin-top: 1.15rem;
  }

  .mini-t {
    min-height: 0;
  }

  .mini-flow::before {
    left: calc(var(--mini-mark) / 2);
    right: auto;
    top: calc(1.25rem + var(--mini-mark) / 2);
    bottom: calc(var(--mini-mark) / 2);
    width: 2px;
    height: auto;
    background: linear-gradient(
      180deg,
      var(--line),
      color-mix(in srgb, var(--signal) 50%, var(--line)) 50%,
      var(--brand)
    );
  }

  .mini-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mini-flow li {
    display: grid;
    grid-template-columns: var(--mini-mark) minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem 0.85rem;
  }

  .mini-t {
    padding-top: 0.25rem;
    border-top: 0;
  }

  .trust-pillar:first-child {
    padding-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 1.5rem;
  }

  .trust-pillar:last-child {
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .trust-pillar-intro {
    min-height: 0;
  }

  .section h2 {
    max-width: min(28ch, 100%);
  }
}

@media (max-width: 1100px) {
  .hero-nav {
    justify-content: flex-start;
    gap: 0.5rem 1.05rem;
  }
}

@media (max-width: 960px) {
  .hero-chrome {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "logo meta"
      "nav nav";
  }

  .wordmark {
    grid-area: logo;
  }

  .hero-meta {
    grid-area: meta;
    justify-self: end;
  }

  .hero-signin {
    grid-area: meta;
    justify-self: end;
  }

  .hero-nav {
    grid-area: nav;
    display: flex;
    justify-content: flex-start;
    gap: 0.45rem 1.15rem;
    padding: 0.15rem 0 0.55rem;
    border-bottom: 1px solid rgba(244, 245, 247, 0.1);
    font-size: 0.74rem;
  }
}

@media (max-width: 720px) {
  .cta-row {
    width: 100%;
  }

  .cta-row .btn {
    flex: 1 1 auto;
    min-width: min(100%, 10rem);
  }

  .hero-stage {
    width: 100%;
    max-width: 100%;
    padding-bottom: 1.75rem;
    gap: 1.25rem;
  }

  .hero-chrome {
    min-width: 0;
  }

  .hero-meta {
    white-space: nowrap;
    max-width: none;
  }

  .ledger-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
    padding: 0.85rem 0 0;
    border-bottom: 0;
    min-width: 0;
    max-width: 100%;
  }

  .ledger-toolbar-label {
    font-size: 0.625rem;
    padding-inline: var(--pad-x);
  }

  /* Contained horizontal strip — must not expand page width */
  .ledger-tabs-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  .ledger-tabs-wrap::before,
  .ledger-tabs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 1px;
    width: 1.35rem;
    z-index: 2;
    pointer-events: none;
  }

  .ledger-tabs-wrap::before {
    left: 0;
    background: linear-gradient(
      90deg,
      rgba(4, 10, 18, 0.98) 0%,
      rgba(4, 10, 18, 0) 100%
    );
  }

  .ledger-tabs-wrap::after {
    right: 0;
    background: linear-gradient(
      270deg,
      rgba(4, 10, 18, 0.98) 0%,
      rgba(4, 10, 18, 0) 100%
    );
  }

  .ledger-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--pad-x);
    padding: 0 var(--pad-x);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .ledger-tabs::-webkit-scrollbar {
    display: none;
  }

  .ledger-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 2.75rem;
    padding: 0.7rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-bottom-width: 2px;
    margin-bottom: -1px;
  }

  .ledger-tab.is-active {
    background: rgba(255, 255, 255, 0.04);
  }

  /* Mobile ledger: 2×2 — name/deal left, amount/status right */
  .ledger-head {
    display: none;
  }

  .ledger-body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .ledger-row,
  .ledger-row.ledger-row-opt {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "client amount"
      "deal status";
    column-gap: 0.85rem;
    row-gap: 0.3rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.05rem var(--pad-x);
  }

  .ledger-row span:nth-child(1) {
    grid-area: client;
    color: #fff;
    font-weight: 500;
  }

  .ledger-row span:nth-child(2) {
    grid-area: deal;
    color: var(--hero-dim);
    font-size: 0.8125em;
  }

  .ledger-row span:nth-child(3) {
    grid-area: amount;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
    text-align: right;
    justify-self: end;
    align-self: start;
    color: rgba(244, 245, 247, 0.92);
    font-variant-numeric: tabular-nums;
  }

  .ledger-row span:nth-child(4) {
    grid-area: status;
    display: block;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
    text-align: right;
    justify-self: end;
    align-self: start;
    font-size: 0.8125em;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 1rem;
  }

  .hero-chrome {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "logo meta"
      "nav nav";
    gap: 0.55rem 0.75rem;
    padding-bottom: 0.35rem;
  }

  .hero-meta {
    text-align: right;
    max-width: none;
    font-size: 0.68rem;
  }

  .hero-nav {
    gap: 0.35rem 1rem;
    font-size: 0.72rem;
  }

  .hero h1 {
    font-size: clamp(1.4rem, 6.8vw, 1.85rem);
    line-height: 1.16;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.58;
  }

  .cta-row {
    flex-direction: column;
  }

  .cta-row .btn {
    width: 100%;
  }

  .ledger {
    font-size: 0.8125rem;
  }

  .breaks li {
    grid-template-columns: 2.1rem minmax(0, 1fr);
  }
}


/* Start / onboarding guide */
.start-guide {
  max-width: 42rem;
  padding-bottom: clamp(2.5rem, 6vh, 3.5rem);
}
.start-guide > .kicker {
  margin: 0 0 0.45rem;
}
.start-guide > h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  letter-spacing: -0.035em;
  line-height: 1.18;
  text-wrap: balance;
}
.start-guide > .deck {
  margin: 0 0 0.25rem;
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.plan-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 1.35rem 0 0.65rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 3%, #fff);
}
.plan-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
}
.plan-pill:hover {
  color: var(--brand);
}
.plan-pill.is-on {
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  color: var(--brand);
  background: #fff;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}
.plan-pill:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.plan-note {
  margin: 0 0 1.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-muted);
  border-left: 3px solid color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 4%, #fff);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guide-steps > li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 0.85rem 1.1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}
.guide-steps > li:first-child {
  border-top: 0;
  padding-top: 0.25rem;
}
.guide-n {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 4%, #fff);
  color: var(--brand);
}
.guide-steps h2 {
  margin: 0.15rem 0 0.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}
.guide-steps p,
.guide-steps blockquote {
  margin: 0 0 0.7rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.guide-steps p:last-child,
.guide-steps .guide-note:last-child {
  margin-bottom: 0;
}
.guide-steps blockquote {
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--signal);
  background: color-mix(in srgb, var(--signal) 5%, #fff);
  color: var(--ink);
  font-style: normal;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.guide-code {
  margin: 0.55rem 0 0.8rem;
  padding: 1rem 1.05rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
  background: #0f1720;
  color: #e8eef5;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, #0f1720 80%, #fff);
  -webkit-overflow-scrolling: touch;
}
.guide-code[hidden] {
  display: none !important;
}
.mcp-vendor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.85rem 0 0.55rem;
}
.mcp-vendor-tab {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-muted);
  border-radius: var(--radius);
  cursor: pointer;
}
.mcp-vendor-tab:hover {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
}
.mcp-vendor-tab.is-on {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 6%, #fff);
}
.mcp-vendor-tab:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.guide-note {
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.guide-aside {
  margin-top: 2.25rem;
  padding: 1.35rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 3%, #fff);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}
.guide-aside h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.guide-aside ul {
  margin: 0 0 1.25rem;
  padding-left: 1.15rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.guide-aside li {
  margin: 0.25rem 0;
}
.guide-aside-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.guide-aside-actions .btn {
  margin: 0;
}

@media (max-width: 560px) {
  .guide-steps > li {
    grid-template-columns: 2.15rem minmax(0, 1fr);
    gap: 0.65rem 0.75rem;
    padding: 1.15rem 0;
  }
  .guide-n {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.68rem;
  }
  .plan-pills {
    display: flex;
    width: 100%;
  }
  .plan-pill {
    flex: 1 1 auto;
    text-align: center;
  }
  .guide-code {
    font-size: 0.72rem;
    padding: 0.85rem;
  }
}

/* —— 404 —— */
.page-404 {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  min-height: 100dvh;
}

.page-404 .site-foot {
  margin-top: auto;
}

.err-404 {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  align-items: center;
  padding: clamp(2.5rem, 8vh, 5rem) 0 clamp(2rem, 5vh, 3.5rem);
  overflow: hidden;
}

.err-404-plane {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 92% 0%, rgba(194, 65, 12, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(11, 58, 110, 0.1), transparent 60%);
}

.err-404-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
}

.err-404-code {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
  color: color-mix(in srgb, var(--brand) 55%, var(--line));
}

.err-404 h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.55rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--ink);
  text-wrap: balance;
}

.err-404-lead {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-muted);
  line-height: 1.55;
  font-size: 1.02rem;
}

.err-404-path {
  margin: 1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.45;
  word-break: break-all;
}

.err-404-path code {
  font: inherit;
  color: var(--ink);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.12rem 0.4rem;
}

.err-404-cta {
  margin-top: 1.6rem;
  animation: none;
}

.btn-ghost-ink {
  background: transparent;
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.btn-ghost-ink:hover,
.btn-ghost-ink:focus-visible {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--bg-elev));
}

.err-404-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.15rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.err-404-links a {
  color: var(--ink-muted);
  text-decoration: none;
}

.err-404-links a:hover,
.err-404-links a:focus-visible {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 560px) {
  .err-404-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .err-404-cta .btn {
    width: 100%;
  }
}

/* —— Cookie notice (marketing site) —— */
.cookie-banner {
  position: fixed;
  z-index: 90;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 40px color-mix(in srgb, var(--ink) 8%, transparent);
  animation: cookie-banner-in 0.28s ease-out;
}

@keyframes cookie-banner-in {
  from {
    opacity: 0;
    transform: translateY(0.6rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.75rem;
}

.cookie-banner-title {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cookie-banner-desc {
  margin: 0;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.cookie-banner-desc a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.cookie-banner-desc a:hover,
.cookie-banner-desc a:focus-visible {
  color: var(--brand-press);
}

.cookie-banner-actions {
  flex-shrink: 0;
}

.cookie-banner-accept {
  min-height: 2.75rem;
  padding-inline: 1.25rem;
}

@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner-accept {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    animation: none;
  }
}

/* ——— Blog ——— */
.blog-page {
  background: var(--bg);
  color: var(--ink);
}

.blog-main {
  padding: clamp(2rem, 4.5vw, 3.5rem) var(--pad-x, 1.15rem) clamp(3.25rem, 7vw, 5rem);
}

.blog-wrap {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

.blog-index .blog-wrap,
.blog-wrap-wide {
  max-width: 48rem;
}

.blog-hero {
  margin: 0 0 clamp(1.75rem, 3.5vw, 2.5rem);
  padding-bottom: clamp(1.35rem, 3vw, 1.85rem);
  border-bottom: 1px solid var(--line);
}

.blog-kicker {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.blog-title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 3.8vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--ink);
}

.blog-name-expand {
  margin: 0 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.blog-deck {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.02rem, 1.7vw, 1.125rem);
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.65rem;
  row-gap: 0.3rem;
  margin: 1rem 0 1.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--ink-muted);
}

.blog-meta > * {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}

.blog-meta-cluster {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 0.4rem;
  white-space: nowrap;
}

.blog-meta-cluster + .blog-meta-cluster::before {
  content: "·";
  color: color-mix(in srgb, var(--ink-muted) 55%, var(--line));
  margin-right: 0.05rem;
  user-select: none;
}

.blog-meta-author {
  color: var(--brand);
  font-weight: 600;
}

.blog-meta-sep {
  color: color-mix(in srgb, var(--ink-muted) 55%, var(--line));
  user-select: none;
}

.blog-meta time[itemprop="datePublished"] {
  color: var(--ink);
  font-weight: 500;
}

.blog-meta-updated {
  color: var(--ink-muted);
  font-weight: 400;
}

.blog-meta-updated time {
  color: inherit;
  font-weight: 400;
}

.blog-meta-read {
  color: var(--ink-muted);
}

.blog-answer {
  margin: 0 0 2.15rem;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  background: var(--bg-elev);
  border-radius: var(--radius);
}

.blog-answer-label {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
}

.blog-answer p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

.blog-answer p + p {
  margin-top: 0.75rem;
}

/* Editorial focus accent — one thesis per article (signal edge) */
.blog-focus {
  margin: 0 0 2.15rem;
  padding: 1.2rem 1.2rem 1.3rem 1.15rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--signal) 6%, #fff) 0%,
      color-mix(in srgb, var(--brand) 4%, #fff) 48%,
      #fff 100%
    );
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}

.blog-focus-kicker {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--signal);
}

.blog-focus-title {
  margin: 0 0 0.75rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.blog-focus > p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--ink);
}

.blog-focus > p + p {
  margin-top: 0.7rem;
}

.blog-focus-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  margin: 0.95rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-focus-points li {
  margin: 0;
  padding: 0.55rem 0.65rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, #fff 88%, var(--bg, #f3f4f6));
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--ink);
}

.blog-focus-points strong {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--brand);
}

@media (max-width: 640px) {
  .blog-focus-points {
    grid-template-columns: 1fr;
  }
}

/* SI gloss ↔ Siarem expansion: same accent marks the shared phrase */
.blog-si {
  color: var(--signal);
  font-weight: 600;
}

/* Tail of EN name expand — a step heavier than surrounding RU prose */
.blog-expand {
  font-weight: 600;
}

.blog-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.35rem;
}

.blog-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 2.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 160ms var(--ease, ease),
    background 160ms var(--ease, ease),
    color 160ms var(--ease, ease),
    box-shadow 160ms var(--ease, ease);
}

.blog-chip:hover,
.blog-chip:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  color: var(--brand);
  outline: none;
}

.blog-chip:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.blog-chip.is-on {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--brand);
}

.blog-featured {
  margin: 0 0 1.35rem;
}

.blog-featured[hidden] {
  display: none;
}

.blog-featured-link {
  display: grid;
  gap: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  transition:
    border-color 160ms var(--ease, ease),
    box-shadow 160ms var(--ease, ease);
}

@media (min-width: 800px) {
  .blog-featured-link {
    grid-template-columns: 1.05fr 1.2fr;
  }
}

.blog-featured-link:hover,
.blog-featured-link:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 8%, transparent);
  outline: none;
}

.blog-featured-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.blog-featured-art {
  position: relative;
  min-height: 10rem;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, #fff), #fff 55%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 7px,
      color-mix(in srgb, var(--line) 70%, transparent) 7px,
      color-mix(in srgb, var(--line) 70%, transparent) 8px
    );
  border-bottom: 1px solid var(--line);
}

@media (min-width: 800px) {
  .blog-featured-art {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    min-height: 100%;
  }
}

.blog-featured-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  object-fit: cover;
  object-position: center;
}

.blog-featured-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--brand);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.2rem 0.45rem;
}

.blog-featured-body {
  padding: 1.15rem 1.2rem 1.25rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.blog-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.blog-featured-meta em {
  font-style: normal;
  color: var(--brand);
  font-weight: 600;
}

.blog-featured-title {
  margin: 0;
  font-size: clamp(1.22rem, 2.4vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  transition: color 160ms var(--ease, ease);
}

.blog-featured-link:hover .blog-featured-title,
.blog-featured-link:focus-visible .blog-featured-title {
  color: var(--brand);
}

.blog-featured-deck {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.blog-featured-more {
  margin-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--signal);
}

.blog-featured-status {
  margin: 0 0 0.85rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.blog-featured-status[hidden] {
  display: none;
}

.blog-index-list > li[hidden] {
  display: none !important;
}

.blog-pager {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  margin: 1.15rem 0 0;
  padding: 1rem 0 0.15rem;
}

.blog-pager[hidden] {
  display: none !important;
}

.blog-pager-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.blog-pager-more {
  appearance: none;
  margin: 0;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease, ease),
    box-shadow 160ms var(--ease, ease),
    color 160ms var(--ease, ease);
}

.blog-pager-more:hover,
.blog-pager-more:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  color: var(--brand);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 8%, transparent);
  outline: none;
}

.blog-pager-more:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.blog-pager-more:disabled,
.blog-pager-more[hidden] {
  display: none;
}

.blog-index-empty {
  margin: 0 0 1.25rem;
  padding: 0.95rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.blog-index-empty[hidden] {
  display: none;
}

.blog-index .blog-hero {
  margin-bottom: 1.15rem;
  padding-bottom: 1.15rem;
}

.blog-prose h2 {
  margin: 2.35rem 0 0.85rem;
  font-size: clamp(1.22rem, 2.2vw, 1.42rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.blog-prose h3 {
  margin: 1.65rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.blog-prose p {
  margin: 0 0 1.05rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.blog-prose p.muted,
.blog-prose .muted {
  color: var(--ink-muted);
}

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}

.blog-prose li {
  margin: 0.35rem 0;
  line-height: 1.55;
}

.blog-prose a {
  color: var(--brand);
  text-underline-offset: 0.12em;
}

.blog-prose a:hover,
.blog-prose a:focus-visible {
  color: var(--brand-press);
}

.blog-prose strong {
  font-weight: 600;
}

.blog-table-wrap {
  margin: 1.25rem 0 1.65rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.blog-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.blog-rating .blog-table {
  min-width: 36rem;
}

.blog-ai-timeline {
  margin: 1.35rem 0 1.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
}

.blog-ai-timeline-bar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 4%, #fff);
}

.blog-ai-timeline-bar-label {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  line-height: 1.2;
}

.blog-ai-timeline-nav {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.3rem;
}

.blog-ai-timeline-nav button {
  appearance: none;
  box-sizing: border-box;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease, ease),
    background 160ms var(--ease, ease),
    color 160ms var(--ease, ease);
}

.blog-ai-timeline-nav button:hover:not(:disabled),
.blog-ai-timeline-nav button:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 6%, #fff);
  outline: none;
}

.blog-ai-timeline-nav button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.blog-ai-timeline-nav button:disabled {
  opacity: 0.32;
  cursor: default;
}

.blog-ai-timeline-track {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.85rem 0.85rem 0.95rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--brand) 28%, var(--line)) transparent;
}

.blog-ai-timeline-track::-webkit-scrollbar {
  height: 6px;
}

.blog-ai-timeline-track::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand) 28%, var(--line));
  border-radius: 2px;
}

.blog-ai-era {
  appearance: none;
  box-sizing: border-box;
  display: grid;
  /* Fixed year + 2-line title rows → year/title/who share one baseline across cards */
  grid-template-rows: 1.15em 2.5em auto;
  align-content: start;
  justify-items: stretch;
  gap: 0.28rem;
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 8.6rem;
  min-width: 8.6rem;
  max-width: 8.6rem;
  padding: 0.65rem 0.7rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms var(--ease, ease),
    background 160ms var(--ease, ease),
    box-shadow 160ms var(--ease, ease);
}

.blog-ai-era:hover,
.blog-ai-era:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  outline: none;
}

.blog-ai-era:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.blog-ai-era.is-on {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: color-mix(in srgb, var(--brand) 6%, #fff);
  box-shadow: inset 3px 0 0 var(--signal);
}

.blog-ai-era-year {
  display: block;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--brand);
  white-space: nowrap;
}

.blog-ai-era-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.blog-ai-era-who {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.3;
  color: var(--ink-muted);
}

.blog-ai-timeline-panel {
  padding: 1.1rem 1.15rem 1.25rem;
}

.blog-ai-timeline-panel[hidden] {
  display: none;
}

.blog-ai-timeline-panel.is-on {
  animation: blog-ai-panel-in 220ms var(--ease, ease);
}

@keyframes blog-ai-panel-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-ai-era,
  .blog-ai-timeline-panel.is-on {
    transition: none;
    animation: none;
  }
}

.blog-ai-panel-kicker {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--signal);
}

.blog-prose .blog-ai-panel-title {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}

.blog-prose .blog-ai-panel-body {
  margin: 0 0 0.75rem;
  color: var(--ink);
  line-height: 1.55;
}

.blog-ai-panel-meta {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 3%, #fff);
  font-size: 0.9rem;
  line-height: 1.45;
}

.blog-ai-panel-meta dt {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.blog-ai-panel-meta dd {
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.blog-ai-panel-meta dd:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .blog-ai-timeline {
    margin: 1.15rem 0 1.55rem;
  }

  /* Mobile: ← → left, label right (desktop keeps label left / nav right) */
  .blog-ai-timeline-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    min-height: 2.55rem;
    padding: 0.45rem 0.7rem;
  }

  .blog-ai-timeline-nav {
    order: -1;
    gap: 0.22rem;
  }

  .blog-ai-timeline-bar-label {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.62rem;
    letter-spacing: 0.045em;
    text-align: right;
  }

  .blog-ai-timeline-nav button {
    width: 1.9rem;
    height: 1.9rem;
    font-size: 0.85rem;
  }

  .blog-ai-timeline-track {
    gap: 0.4rem;
    padding: 0.7rem 0.7rem 0.65rem;
    /* System scrollbar with end-arrows looks cheap on mobile — swipe + nav buttons */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .blog-ai-timeline-track::-webkit-scrollbar {
    display: none;
    height: 0;
  }

  .blog-ai-era {
    width: min(9.1rem, 68vw);
    min-width: min(9.1rem, 68vw);
    max-width: min(9.1rem, 68vw);
    padding: 0.6rem 0.65rem 0.65rem;
  }

  .blog-ai-era-title {
    font-size: 0.8rem;
  }

  .blog-ai-timeline-panel {
    padding: 0.95rem 0.9rem 1.05rem;
  }

  .blog-prose .blog-ai-panel-title {
    font-size: 1.05rem;
  }
}

.blog-table caption {
  caption-side: top;
  padding: 0.75rem 1rem 0.55rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line);
}

.blog-table th,
.blog-table td {
  padding: 0.7rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.45;
}

.blog-table tr:last-child th,
.blog-table tr:last-child td {
  border-bottom: 0;
}

.blog-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--brand) 4%, #fff);
  white-space: nowrap;
}

.blog-table td {
  color: var(--ink);
}

.blog-table td:first-child {
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.blog-table .col-key {
  width: 22%;
}

.blog-rating {
  margin: 0 0 0.25rem;
}

.blog-rating-sort {
  margin: 0 0 0.65rem;
}

.blog-rating-note {
  margin: 0 0 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.blog-table .col-cost {
  white-space: nowrap;
}

.blog-cost {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--brand);
}

.blog-cost-tier {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-muted);
}

.blog-figure {
  margin: 1.35rem 0 1.85rem;
}

.blog-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.blog-figure .scheme-cap {
  margin: 0.65rem 0 0;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.4;
}

.blog-figure .scheme {
  margin: 0;
}

.blog-section {
  margin: 2.65rem 0 0;
}

.blog-section > .blog-section-kicker {
  margin: 0 0 0.4rem;
}

.blog-section > h2 {
  margin-top: 0;
}

.blog-section-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
}

.blog-prose .blog-section-deck {
  margin: 0.35rem 0 1.25rem;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.blog-prose .blog-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
}

.blog-prose .blog-steps > li {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 0.85rem 1rem;
  align-items: start;
  margin: 0;
  padding: 1rem 1.1rem 1.05rem;
  border-top: 1px solid var(--line);
  list-style: none;
}

.blog-prose .blog-steps > li:first-child {
  border-top: 0;
}

.blog-steps-n {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
  line-height: 1.4;
  padding-top: 0.1rem;
}

.blog-steps-body {
  min-width: 0;
}

.blog-prose .blog-steps-title {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.35;
}

.blog-prose .blog-steps-body > p:not(.blog-steps-title) {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.blog-faq {
  margin-top: 2.85rem;
  padding-top: 0.15rem;
}

.blog-faq-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.blog-faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}

.blog-faq-item > summary {
  cursor: pointer;
  list-style: none;
  /* block + absolute «+»: inner <span> must not become flex items
     (space-between would tear "Чем … Pro · Мульти … отличается") */
  display: block;
  position: relative;
  margin: 0;
  padding: 1.05rem 1.85rem 1.05rem 0;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.15s ease;
}

.blog-faq-item > summary::-webkit-details-marker,
.blog-faq-item > summary::marker {
  display: none;
  content: "";
}

.blog-faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 0.05rem;
  top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  color: var(--signal);
  transition: color 0.15s ease;
  pointer-events: none;
}

.blog-faq-item[open] > summary {
  color: var(--brand);
  padding-bottom: 0.55rem;
}

.blog-faq-item[open] > summary::after {
  content: "\2212";
  color: var(--brand);
}

.blog-faq-item > summary:hover {
  color: var(--brand);
}

.blog-faq-item > summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.blog-faq-a {
  padding: 0 1.75rem 1.1rem 0;
  max-width: 40rem;
}

.blog-prose .blog-faq-a p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.blog-prose .blog-faq-a a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.blog-offer {
  margin: 1.35rem 0 1.75rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--signal) 35%, var(--line));
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--signal) 7%, #fff);
}

.blog-offer-label {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--signal-press, var(--signal));
}

.blog-prose .blog-offer-text {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.45;
  color: var(--ink);
}

.blog-prose .blog-offer a.btn {
  text-decoration: none;
  text-underline-offset: unset;
}

.blog-prose .blog-offer a.btn-signal {
  background: var(--signal);
  color: #fff;
  border-color: transparent;
}

.blog-prose .blog-offer a.btn-signal:hover,
.blog-prose .blog-offer a.btn-signal:focus-visible {
  background: var(--signal-press);
  color: #fff;
}

.blog-cta {
  margin: 2.5rem 0 0;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-top: 3px solid var(--signal);
  background: var(--bg-elev);
  border-radius: var(--radius);
}

.blog-cta h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.blog-cta p {
  margin: 0 0 1.05rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.blog-cta .btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.65rem;
}

/* .blog-prose a { color: brand } иначе красит кнопки — перебиваем явно */
.blog-prose a.btn,
.blog-cta a.btn {
  text-decoration: none;
  text-underline-offset: unset;
}

.blog-cta a.btn-signal {
  background: var(--signal);
  color: #fff;
  border-color: transparent;
}

.blog-cta a.btn-signal:hover,
.blog-cta a.btn-signal:focus-visible {
  background: var(--signal-press);
  color: #fff;
}

.blog-cta a.btn-ghost,
.blog-cta a.btn-ghost-ink {
  background: transparent;
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
}

.blog-cta a.btn-ghost:hover,
.blog-cta a.btn-ghost:focus-visible,
.blog-cta a.btn-ghost-ink:hover,
.blog-cta a.btn-ghost-ink:focus-visible {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--bg-elev));
}

.blog-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.blog-index-list li {
  margin: 0;
}

.blog-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem 1.2rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--brand);
  transition:
    border-color 160ms var(--ease, ease),
    box-shadow 160ms var(--ease, ease);
}

.blog-card:hover,
.blog-card:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 8%, transparent);
  outline: none;
}

.blog-card:hover .blog-card-title,
.blog-card:focus-visible .blog-card-title {
  color: var(--brand);
}

.blog-card:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.blog-card-tag {
  display: inline-flex;
  padding: 0.12rem 0.4rem;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: var(--radius);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, #fff);
}

.blog-card-title {
  margin: 0;
  font-size: clamp(1.12rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
  transition: color 160ms var(--ease, ease);
}

.blog-card-deck {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.blog-card-more {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
}

.blog-roadmap {
  margin: clamp(2.25rem, 4vw, 3rem) 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elev);
}

.blog-roadmap > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  user-select: none;
}

.blog-roadmap > summary::-webkit-details-marker {
  display: none;
}

.blog-roadmap > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--brand);
  border-bottom: 1.5px solid var(--brand);
  transform: rotate(45deg);
  transition: transform 160ms var(--ease, ease);
}

.blog-roadmap[open] > summary::after {
  transform: rotate(-135deg);
  margin-top: 0.25rem;
}

.blog-roadmap > summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

.blog-roadmap-body {
  padding: 0 1.15rem 1.2rem;
  border-top: 1px solid var(--line);
}

.blog-roadmap-lead,
.blog-roadmap-note {
  margin: 0.95rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.blog-roadmap-note {
  font-size: 0.86rem;
  line-height: 1.45;
}

.blog-roadmap .blog-table-wrap {
  margin: 1rem 0 0;
}

.blog-roadmap-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
}

.blog-status {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  color: var(--ink-muted);
}

.blog-status.is-live {
  border-color: color-mix(in srgb, var(--ok) 35%, var(--line));
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 8%, #fff);
}

.blog-status.is-queue {
  border-color: color-mix(in srgb, var(--brand) 25%, var(--line));
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, #fff);
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
}

.blog-back:hover,
.blog-back:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* Prompt + UI mock demos (agent views from ledger) */
.blog-ui-demo {
  margin: 1.35rem 0 1.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.blog-ui-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 4%, #fff);
}

.blog-ui-demo-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.blog-ui-demo-source {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.blog-prompt {
  margin: 0;
  padding: 1rem 1.05rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg, #f3f4f6);
  overflow-x: auto;
}

.blog-prompt code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
}

.blog-ui-mock-label {
  margin: 0;
  padding: 0.65rem 1rem 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.blog-ui-mock {
  padding: 0.55rem 1rem 1.05rem;
}

.blog-ui-mock-cap {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

/* Cabinet replicas (/ui + /account + checkout) — scoped for blog walkthroughs */
.blog-cab {
  margin: 1.35rem 0 1.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
}

.blog-cab-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 4%, #fff);
}

.blog-cab-brand {
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: var(--brand);
  text-decoration: none;
}

.blog-cab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
  margin-left: auto;
}

.blog-cab-nav span {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.28rem 0.5rem;
  border-radius: var(--radius);
}

.blog-cab-nav span.is-on {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  font-weight: 600;
}

.blog-cab-body {
  padding: 0.95rem 1rem 1.1rem;
  background: linear-gradient(165deg, #e8edf4 0%, #f5f6f8 42%, #eef1f5 100%);
}

.blog-cab-kicker {
  margin: 0 0 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.blog-cab-title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.blog-prose .blog-cab-title {
  margin: 0 0 0.35rem;
}

.blog-cab-lead {
  margin: 0 0 0.95rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.blog-cab-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 3%, transparent);
}

.blog-cab-panel + .blog-cab-panel {
  margin-top: 0.75rem;
}

.blog-cab-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.blog-cab-note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.blog-cab-field {
  margin: 0 0 0.7rem;
}

.blog-cab-field label {
  display: block;
  margin: 0 0 0.28rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
}

.blog-cab-field .fake-input {
  display: block;
  width: 100%;
  padding: 0.55rem 0.7rem;
  font-size: 0.88rem;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.35;
}

.blog-cab-field .fake-input.is-filled {
  color: var(--ink);
}

.blog-cab-field .hint {
  display: block;
  margin: 0.28rem 0 0;
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.blog-cab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.blog-cab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: default;
  line-height: 1.2;
}

.blog-cab-btn.is-signal {
  background: var(--signal);
  color: #fff;
  border-color: var(--signal);
}

.blog-cab-btn.is-brand {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.blog-cab-btn.is-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.blog-cab-plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.blog-cab-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.blog-cab-plan.is-on {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent);
  background: color-mix(in srgb, var(--brand) 5%, #fff);
}

.blog-cab-plan.is-featured::before {
  content: "2 мес. в подарок";
  position: absolute;
  top: -0.45rem;
  right: 0.55rem;
  padding: 0.1rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--signal);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--signal) 35%, var(--line));
  border-radius: var(--radius);
}

.blog-cab-plan-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}

.blog-cab-plan-price {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.blog-cab-plan-desc {
  font-size: 0.76rem;
  line-height: 1.35;
  color: var(--ink-muted);
}

.blog-cab-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.65rem;
}

.blog-cab-count {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}

.blog-cab-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.blog-cab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.35;
}

.blog-cab-table th,
.blog-cab-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.blog-cab-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--bg, #f3f4f6) 70%, #fff);
  white-space: nowrap;
}

.blog-cab-table tr:last-child td {
  border-bottom: 0;
}

.blog-cab-table .code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.blog-cab-table .name {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.blog-cab-table .sub {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78em;
  font-weight: 400;
  color: var(--ink-muted);
}

.blog-cab-table .amt {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.blog-cab-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-muted) 8%, #fff);
  color: var(--ink-muted);
  white-space: nowrap;
}

.blog-cab-pill.is-lead {
  background: color-mix(in srgb, var(--ink-muted) 10%, #fff);
}

.blog-cab-pill.is-agreed {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand);
}

.blog-cab-pill.is-done {
  border-color: color-mix(in srgb, var(--ok, #1b7f4e) 35%, var(--line));
  background: color-mix(in srgb, var(--ok, #1b7f4e) 10%, #fff);
  color: var(--ok, #1b7f4e);
}

.blog-cab-pill.is-cap {
  border-color: color-mix(in srgb, var(--signal) 40%, var(--line));
  background: color-mix(in srgb, var(--signal) 10%, #fff);
  color: var(--signal);
}

.blog-cab-pay {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  min-width: 5.5rem;
}

.blog-cab-pay-text {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.blog-cab-pay-bar {
  width: 100%;
  height: 3px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--line) 80%, #fff);
  overflow: hidden;
}

.blog-cab-pay-bar > i {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  background: var(--brand);
}

.blog-cab-pay-bar.is-full > i {
  background: var(--ok, #1b7f4e);
}

.blog-cab-pay-bar.is-partial > i {
  background: var(--brand);
}

.blog-cab-catalog {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-cab-catalog li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg, #f3f4f6) 40%, #fff);
  font-size: 0.84rem;
}

.blog-cab-catalog .sku {
  font-weight: 600;
  color: var(--ink);
}

.blog-cab-catalog .price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.blog-cab-seal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--ok, #1b7f4e) 28%, var(--line));
  border-left: 3px solid var(--ok, #1b7f4e);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--ok, #1b7f4e) 7%, #fff);
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--ink);
}

.blog-cab-seal strong {
  font-weight: 600;
}

.blog-cab-approve {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--signal) 30%, var(--line));
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--signal) 6%, #fff);
}

.blog-cab-approve-body {
  flex: 1 1 12rem;
  min-width: 0;
}

.blog-cab-approve-body strong {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.88rem;
}

.blog-cab-approve-body p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

.blog-cab-otp {
  display: flex;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
}

.blog-cab-otp span {
  width: 2.1rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 640px) {
  .blog-cab-plans {
    grid-template-columns: 1fr;
  }

  .blog-cab-nav {
    width: 100%;
    margin-left: 0;
  }

  .blog-cab-table th:nth-child(n + 4),
  .blog-cab-table td:nth-child(n + 4) {
    /* keep scroll; do not hide payment column */
  }
}

.blog-funnel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.blog-funnel-col {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg, #f3f4f6) 65%, #fff);
  padding: 0.55rem 0.5rem 0.6rem;
}

.blog-funnel-col-h {
  margin: 0 0 0.45rem;
  padding: 0 0.15rem 0.4rem;
  border-bottom: 2px solid var(--brand);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--brand);
}

.blog-funnel-col.is-signal .blog-funnel-col-h {
  border-bottom-color: var(--signal);
  color: var(--signal-press, var(--signal));
}

.blog-funnel-card {
  margin: 0 0 0.4rem;
  padding: 0.45rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.blog-funnel-card:last-child {
  margin-bottom: 0;
}

.blog-funnel-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand);
}

.blog-funnel-name {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.blog-funnel-meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.blog-report {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.blog-report-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  padding: 0.7rem 0.85rem;
  background: var(--brand);
  color: #fff;
}

.blog-report-bar strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.blog-report-bar span {
  font-size: 0.78rem;
  opacity: 0.9;
}

.blog-report-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.35;
}

.blog-report-row:first-of-type {
  border-top: 0;
}

.blog-report-row code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
}

.blog-report-row .amt {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.blog-report-row.is-warn .amt {
  color: var(--signal-press, var(--signal));
}

.blog-touch {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.blog-touch-item {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.45rem 0.7rem;
  align-items: center;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.blog-touch-item code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
}

.blog-touch-item .who {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.blog-touch-item .due {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--signal-press, var(--signal));
  white-space: nowrap;
}

.blog-html {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.blog-html-chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-muted) 8%, #fff);
}

.blog-html-dots {
  flex: 0 0 auto;
  width: 2.1rem;
  height: 0.55rem;
  border-radius: 999px;
  background:
    radial-gradient(circle 3px at 4px 50%, #c4c9d2 98%, transparent 100%),
    radial-gradient(circle 3px at 14px 50%, #c4c9d2 98%, transparent 100%),
    radial-gradient(circle 3px at 24px 50%, #c4c9d2 98%, transparent 100%);
}

.blog-html-path {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-html-body {
  padding: 0.65rem 0.7rem 0.75rem;
}

.blog-html-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-bottom: 0.55rem;
}

.blog-html-bar strong {
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--ink);
}

.blog-html-bar span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.blog-html-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.blog-html-filters span {
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  background: #fff;
}

.blog-html-filters span.is-on {
  border-color: var(--brand);
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, #fff);
}

.blog-html-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto minmax(7.5rem, auto);
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.blog-html-row code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
}

.blog-html-row .amt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}

.blog-html-row .st {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: right;
}

.blog-html-row .st.is-warn {
  color: var(--signal-press, var(--signal));
}

@media (max-width: 640px) {
  /* Topic chips: one scrolling row — Ledger tabs pattern, not wrap clutter */
  .blog-chips {
    flex-wrap: nowrap;
    gap: 0.45rem;
    width: auto;
    max-width: none;
    margin-inline: calc(-1 * var(--pad-x, 1.15rem));
    margin-bottom: 1.45rem;
    padding: 0.1rem var(--pad-x, 1.15rem) 0.35rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--pad-x, 1.15rem);
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 0.85rem,
      #000 calc(100% - 1.35rem),
      transparent 100%
    );
  }

  .blog-chips::-webkit-scrollbar {
    display: none;
  }

  .blog-chip {
    scroll-snap-align: start;
    min-height: 2.75rem;
    padding: 0.65rem 0.95rem;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .blog-chip.is-on {
    background: color-mix(in srgb, var(--brand) 10%, #fff);
  }

  .blog-card {
    padding: 1.05rem 1rem 1.1rem;
  }

  .blog-table td:first-child {
    white-space: normal;
  }

  .blog-roadmap > summary {
    padding: 0.95rem 1rem;
  }

  .blog-roadmap-body {
    padding: 0 1rem 1.05rem;
  }

  .blog-prose .blog-steps > li {
    grid-template-columns: 2.4rem 1fr;
    gap: 0.65rem 0.75rem;
    padding: 0.9rem 0.85rem 0.95rem;
  }

  .blog-faq-item > summary {
    font-size: 0.98rem;
    padding-right: 1.7rem;
  }

  .blog-faq-a {
    padding-right: 0;
  }

  .blog-cta {
    padding: 1.15rem 1rem 1.2rem;
  }

  .blog-cta .btn-row {
    flex-direction: column;
    gap: 0.55rem;
  }

  .blog-cta .btn-row .btn {
    width: 100%;
    min-height: 2.85rem;
  }

  .blog-funnel {
    grid-template-columns: 1fr;
  }

  .blog-report-row,
  .blog-touch-item,
  .blog-html-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .blog-touch-item .due,
  .blog-html-row .st {
    justify-self: start;
    text-align: left;
  }
}

/* Seasonal HTML report — open button + dialog */
.blog-rpt-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-rpt-open:hover,
.blog-rpt-open:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent);
  outline: none;
}

.blog-rpt-open-chrome {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg, #f3f4f6) 70%, #fff);
}

.blog-rpt-open-dots {
  width: 2.4rem;
  height: 0.55rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 0.28rem 50%, #d5dae3 0.2rem, transparent 0.22rem),
    radial-gradient(circle at 0.95rem 50%, #d5dae3 0.2rem, transparent 0.22rem),
    radial-gradient(circle at 1.62rem 50%, #d5dae3 0.2rem, transparent 0.22rem);
}

.blog-rpt-open-path {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.blog-rpt-open-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.9rem 0.35rem;
}

.blog-rpt-open-body strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.blog-rpt-open-body span {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

.blog-rpt-open-cta {
  display: inline-flex;
  align-self: flex-start;
  margin: 0.55rem 0.9rem 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  background: var(--signal);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 600;
}

.blog-rpt-dialog {
  position: fixed;
  inset: 0;
  width: min(52rem, calc(100vw - 1.5rem));
  max-height: min(90dvh, 52rem);
  height: fit-content;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef1f5;
  box-shadow: 0 24px 64px color-mix(in srgb, #0a1628 28%, transparent);
  color: var(--ink);
  overflow: hidden;
  z-index: 200;
}

/* UA hides closed <dialog>; never force display or it leaks into page flow. */
.blog-rpt-dialog:not([open]) {
  display: none;
}

.blog-rpt-dialog[open] {
  display: flex;
  flex-direction: column;
}

.blog-rpt-dialog::backdrop {
  background: color-mix(in srgb, #0a1628 52%, transparent);
  backdrop-filter: blur(3px);
}

.blog-rpt {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(90dvh, 52rem);
  overflow: hidden;
}

.blog-rpt-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex: 0 0 auto;
  padding: 1rem 1.15rem 0.95rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 5%, #fff);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 4%, transparent);
  z-index: 2;
}

.blog-rpt-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.95rem 0 1.15rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.blog-rpt-brand {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: var(--brand);
}

.blog-rpt-title {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.blog-rpt-period {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.blog-rpt-close {
  min-height: 2.35rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: 600 0.84rem/1.2 var(--font-sans);
  cursor: pointer;
}

.blog-rpt-close:hover,
.blog-rpt-close:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  color: var(--brand);
  outline: none;
}

.blog-rpt-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0 1.15rem;
}

.blog-rpt-kpi {
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 3%, transparent);
}

.blog-rpt-kpi-label {
  display: block;
  margin: 0 0 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.blog-rpt-kpi-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.blog-rpt-kpi.is-brand .blog-rpt-kpi-value { color: var(--brand); }
.blog-rpt-kpi.is-ok .blog-rpt-kpi-value { color: var(--ok, #1b7f4e); }
.blog-rpt-kpi.is-signal .blog-rpt-kpi-value { color: var(--signal); }

.blog-rpt-kpi-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

.blog-rpt-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.75rem;
  padding: 0 1.15rem;
}

.blog-rpt-panel {
  margin: 0 1.15rem;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 3%, transparent);
}

.blog-rpt-grid .blog-rpt-panel {
  margin: 0;
}

.blog-rpt-panel-title {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.blog-rpt-bars {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.blog-rpt-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  color: var(--ink);
}

.blog-rpt-bar-meta span:last-child {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
}

.blog-rpt-bar {
  display: block;
  height: 0.45rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--line) 75%, #fff);
  overflow: hidden;
}

.blog-rpt-bar > i {
  display: block;
  height: 100%;
  border-radius: var(--radius);
  background: var(--brand);
}

.blog-rpt-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: end;
  min-height: 11rem;
}

.blog-rpt-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.blog-rpt-month-col {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 7.5rem;
  padding: 0 0.55rem;
}

.blog-rpt-month-col > i {
  display: block;
  width: 100%;
  height: var(--h, 50%);
  border-radius: var(--radius) var(--radius) 0 0;
  background: color-mix(in srgb, var(--brand) 72%, #fff);
}

.blog-rpt-month.is-peak .blog-rpt-month-col > i {
  background: var(--brand);
}

.blog-rpt-month-name {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.blog-rpt-month-amt {
  font-size: 0.84rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.blog-rpt-month-n {
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.blog-rpt-note {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.blog-rpt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.blog-rpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.35;
}

.blog-rpt-table th,
.blog-rpt-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.blog-rpt-table th {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: color-mix(in srgb, var(--bg, #f3f4f6) 70%, #fff);
  white-space: nowrap;
}

.blog-rpt-table tr:last-child td {
  border-bottom: 0;
}

.blog-rpt-table .code {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.blog-rpt-table .sub {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.78em;
  font-weight: 400;
  color: var(--ink-muted);
}

.blog-rpt-table .amt {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.blog-rpt-table .pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.42rem;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-muted) 8%, #fff);
  color: var(--ink-muted);
  white-space: nowrap;
}

.blog-rpt-table .pill.is-lead {
  background: color-mix(in srgb, var(--ink-muted) 10%, #fff);
}

.blog-rpt-table .pill.is-agreed {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand);
}

.blog-rpt-remind {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.blog-rpt-remind li {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.45rem 0.7rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg, #f3f4f6) 45%, #fff);
  font-size: 0.84rem;
}

.blog-rpt-remind code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand);
}

.blog-rpt-remind .when {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--signal);
  white-space: nowrap;
}

.blog-rpt-foot {
  margin: 0 1.15rem;
  padding: 0 0.15rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

@media (max-width: 820px) {
  .blog-rpt-kpis,
  .blog-rpt-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .blog-rpt-kpis,
  .blog-rpt-grid,
  .blog-rpt-months {
    grid-template-columns: 1fr;
  }

  .blog-rpt-remind li {
    grid-template-columns: 1fr;
  }

  .blog-rpt-month-col {
    height: 5.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-faq-item > summary,
  .blog-faq-item > summary::after {
    transition: none;
  }

  .blog-card,
  .blog-card-title,
  .blog-featured-link,
  .blog-featured-title,
  .blog-roadmap > summary::after,
  .blog-rpt-open {
    transition: none;
  }
}

