/* ============================================================
   Fonts — self-hosted
   ============================================================ */

/* Inter Tight */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/inter-tight/inter-tight-300.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-tight/inter-tight-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-tight/inter-tight-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-tight/inter-tight-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-tight/inter-tight-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-tight/inter-tight-800.woff2') format('woff2');
}

/* JetBrains Mono */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/jetbrains-mono/jetbrains-mono-400.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jetbrains-mono/jetbrains-mono-500.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/jetbrains-mono/jetbrains-mono-600.woff2') format('woff2');
}


/* ============================================================
   Variables
   ============================================================ */

:root {
  --bg: #08090b;
  --bg-2: #0d0f12;
  --surface: #101216;
  --surface-2: #16191f;
  --surface-glass: rgba(16, 18, 22, 0.72);
  --surface-glass-2: rgba(16, 18, 22, 0.5);

  --ink: #f0f2f5;
  --ink-2: #9aa1ad;
  --ink-3: #6b7280;
  --ink-4: #444a54;

  --line: #1c1f26;
  --line-2: #2a2e37;

  --accent: #00E5A0;
  --accent-hover: #00c88c;
  --accent-2: #22d3ee;
  --accent-dim: rgba(0, 229, 160, 0.1);
  --accent-border: rgba(0, 229, 160, 0.28);

  --success: #00E5A0;
  --success-dim: rgba(0, 229, 160, 0.12);

  --font-sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --fs-h1: clamp(34px, 23.4px + 3.5vw, 72px);
  --fs-h2: clamp(28px, 25.8px + 2.1vw, 56px);
  --fs-h3: clamp(20px, 18px + 0.8vw, 28px);
  --fs-body: 17px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 32px 64px rgba(0, 0, 0, 0.5);
}


/* ============================================================
   Reset & base
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11', 'calt';
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}


/* ============================================================
   Typography
   ============================================================ */

h1 {
  font-size: var(--fs-h1);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h4 {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

p {
  color: var(--ink-2);
}


/* ============================================================
   Container & section
   ============================================================ */

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  margin-bottom: 64px;
  max-width: 780px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 20px;
}

.section-head p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
}

.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}


/* ============================================================
   Eyebrow
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
  line-height: 1;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

.eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}

.eyebrow a:hover {
  border-bottom-color: var(--accent);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.92);
  }
}


/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #052e16;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--ink-3);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}


/* ============================================================
   Header
   ============================================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: padding 0.25s;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  z-index: -1;
}

.header.scrolled::before {
  background: rgba(13, 15, 18, 0.92);
  border-bottom-color: var(--line);
}

.header.scrolled {
  padding: 10px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--bg);
  font-size: 13px;
  font-weight: 800;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 3px;
  border: 1.5px solid var(--bg);
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav a {
  font-size: 15px;
  font-weight: 450;
  color: var(--ink-3);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
  letter-spacing: -0.005em;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.active {
  color: var(--accent);
}

.header-cta {
  padding: 11px 20px;
  font-size: 14.5px;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}


/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 28px;
  max-width: 640px;
}

.hero h1 .accent {
  background: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 60%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 100%;
  animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}


/* ============================================================
   Aurora, grain, grid-overlay
   ============================================================ */

.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
  mix-blend-mode: screen;
}

.aurora-orb.o1 {
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, #00E5A0 0%, transparent 70%);
  top: -320px;
  left: -100px;
  animation: float1 24s ease-in-out infinite;
}

.aurora-orb.o2 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  top: -200px;
  right: -120px;
  animation: float2 28s ease-in-out infinite;
}

.aurora-orb.o3 {
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
  top: 300px;
  left: 30%;
  opacity: 0.24;
  animation: float3 32s ease-in-out infinite;
}

.aurora-orb.o4 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #00E5A0 0%, transparent 70%);
  top: 200px;
  right: 6%;
  opacity: 0.22;
  animation: float4 26s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(60px, 40px) scale(1.08);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-50px, 60px) scale(1.1);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(40px, -50px) scale(0.95);
  }
}

@keyframes float4 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, -40px) scale(1.05);
  }
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}


/* ============================================================
   Hero stack (index)
   ============================================================ */

.hero-stack {
  display: flex;
  flex-direction: column;
  position: relative;
}

.stack-layer {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: transparent;
  transition: border-color 0.25s;
}

.stack-layer:hover {
  border-color: var(--line-2);
}

.stack-layer-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.stack-layer-body {
  flex: 1;
  min-width: 0;
}

.stack-layer-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.stack-layer-desc {
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  line-height: 1.4;
  margin-top: 3px;
}

.stack-layer.security {
  border-color: var(--accent-border);
  background: rgba(0, 229, 160, 0.04);
}

.stack-layer.security .stack-layer-num,
.stack-layer.security .stack-layer-title {
  color: var(--accent);
}

.stack-connector {
  display: flex;
  justify-content: center;
  height: 22px;
  color: var(--ink-4);
  flex-shrink: 0;
}

.stack-connector svg {
  height: 100%;
  width: auto;
}


/* ============================================================
   Doc-section & doc-head (universal)
   ============================================================ */

.doc-section {
  padding: 120px 0;
  position: relative;
}

.doc-section+.doc-section {
  border-top: 1px solid var(--line);
}

.doc-head {
  margin-bottom: 72px;
  max-width: 780px;
}

.doc-head h2 {
  margin-bottom: 24px;
  max-width: 720px;
}

.doc-head p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 640px;
  letter-spacing: -0.005em;
}


/* ============================================================
   Doc-blocks (index)
   ============================================================ */

.doc-blocks {
  display: flex;
  flex-direction: column;
}

.doc-block {
  display: grid;
  grid-template-columns: 80px 1fr 340px;
  gap: 64px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}

.doc-block:last-child {
  border-bottom: 1px solid var(--line);
}

.doc-block-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 10px;
}

.doc-block-body h3 {
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--ink);
}

.doc-block-body>p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  max-width: 560px;
}

.doc-block-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.doc-block-side li {
  list-style: none;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
  letter-spacing: -0.005em;
}

.doc-block-side li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}


/* ============================================================
   Doc-list (universal numbered list)
   ============================================================ */

.doc-list {
  list-style: none;
  counter-reset: docitem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.doc-list li {
  counter-increment: docitem;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.doc-list li::before {
  content: counter(docitem, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  padding-top: 8px;
}

.doc-list-body h4 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  line-height: 1.25;
  color: var(--ink);
}

.doc-list-body p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  max-width: 720px;
}


/* ============================================================
   Doc-steps (universal 4-column, plus .three modifier for 3)
   ============================================================ */

.doc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doc-steps.three {
  grid-template-columns: repeat(3, 1fr);
}

.doc-step {
  padding: 48px 36px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.doc-step:first-child {
  padding-left: 0;
}

.doc-step:last-child {
  padding-right: 0;
  border-right: none;
}

.doc-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.doc-step h4 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}

.doc-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}


/* ============================================================
   Doc-meta (universal metrics row)
   ============================================================ */

.doc-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 48px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
  max-width: 900px;
}

.doc-meta.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.doc-meta-item {
  padding: 0 32px;
  border-right: 1px solid var(--line);
}

.doc-meta-item:first-child {
  padding-left: 0;
}

.doc-meta-item:last-child {
  padding-right: 0;
  border-right: none;
}

.doc-meta-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}

.doc-meta-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  line-height: 1.4;
  letter-spacing: 0.04em;
}


/* ============================================================
   Doc-cta (universal closing section)
   ============================================================ */

.doc-cta {
  padding: 140px 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.doc-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(0, 229, 160, 0.1), transparent 65%),
    radial-gradient(ellipse 45% 50% at 85% 75%, rgba(0, 229, 160, 0.05), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.doc-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 50%, #000 25%, transparent 78%);
  z-index: 0;
}

.doc-cta .container {
  position: relative;
  z-index: 1;
}

.doc-cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.doc-cta h2 {
  margin-bottom: 20px;
  max-width: 640px;
}

.doc-cta p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 560px;
  letter-spacing: -0.005em;
}

.doc-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.doc-cta-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-cta-action .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.doc-cta-action a {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.1;
}

.doc-cta-action a:hover {
  color: var(--accent);
}


/* ============================================================
   Doc-service-list (services.html)
   ============================================================ */

.doc-service-list {
  list-style: none;
  counter-reset: serviceitem;
  display: flex;
  flex-direction: column;
}

.doc-service-list li {
  counter-increment: serviceitem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 40px;
  padding: 28px 0;
  align-items: baseline;
  transition: padding 0.3s;
}

.doc-service-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.doc-service-list li::before {
  content: counter(serviceitem, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.doc-service-list a {
  display: contents;
  color: inherit;
  text-decoration: none;
}

.doc-service-list a:hover .doc-service-name {
  color: var(--accent);
}

.doc-service-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
  transition: color 0.2s;
  grid-column: 2;
}

.doc-service-name small {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  line-height: 1.5;
  margin-top: 8px;
  max-width: 640px;
}

.doc-service-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-top: 4px;
}

.doc-service-time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.doc-service-arrow {
  color: var(--ink-4);
  transition: color 0.15s, transform 0.15s;
}

.doc-service-list a:hover .doc-service-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

.doc-service-list li.soon {
  opacity: 0.6;
}

.doc-service-list li.soon .doc-service-name::after {
  content: 'скоро';
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 100px;
  margin-left: 14px;
  vertical-align: middle;
}

.doc-service-list li.soon a:hover .doc-service-name {
  color: var(--ink);
}

.doc-service-list li.soon .doc-service-arrow {
  opacity: 0.3;
}


/* ============================================================
   Service-callout (services.html — outsourcing block)
   ============================================================ */

.service-callout {
  margin-top: 64px;
  padding: 52px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  position: relative;
}

.service-callout-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}

.service-callout-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  animation: pulse 2.5s ease-in-out infinite;
}

.service-callout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.service-callout h3 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 22px;
}

.service-callout-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  margin-bottom: 20px;
  max-width: 620px;
}

.service-callout-lead:last-of-type {
  margin-bottom: 0;
}

.service-callout-side {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.service-callout-block h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}

.service-callout-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-callout-list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  letter-spacing: -0.005em;
}

.service-callout-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 12px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}

.service-callout-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}


/* ============================================================
   Doc-formats (services.html, about.html — two-column layout)
   ============================================================ */

.doc-formats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doc-format {
  padding: 48px 48px 48px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-format:last-child {
  padding: 48px 0 48px 48px;
  border-right: none;
}

.doc-format-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.doc-format h3 {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.doc-format-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  max-width: 520px;
}


/* ============================================================
   Doc-partner (services.html — partners block)
   ============================================================ */

.doc-partner {
  padding: 120px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doc-partner-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}

.doc-partner h2 {
  margin-bottom: 24px;
  max-width: 560px;
}

.doc-partner-content p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 20px;
  letter-spacing: -0.005em;
  max-width: 620px;
}

.doc-partner-steps {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.doc-partner-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.doc-partner-step:last-child {
  border-bottom: none;
}

.doc-partner-step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.doc-partner-step-body h5 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.35;
}

.doc-partner-step-body p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  margin: 0;
}


/* ============================================================
   Doc-price-* (pricing.html)
   ============================================================ */

.doc-price-intro {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  max-width: 800px;
  margin-bottom: 56px;
  padding: 24px 28px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
}

.doc-price-group {
  margin-bottom: 56px;
}

.doc-price-group:last-child {
  margin-bottom: 0;
}

.doc-price-group-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-2);
  margin-bottom: 0;
}

.doc-price-items {
  list-style: none;
  counter-reset: priceitem;
  display: flex;
  flex-direction: column;
}

.doc-price-item {
  counter-increment: priceitem;
  display: grid;
  grid-template-columns: 60px 1fr 200px 160px;
  gap: 40px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.doc-price-item::before {
  content: counter(priceitem, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.doc-price-item-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-price-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.2;
}

.doc-price-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  max-width: 560px;
}

.doc-price-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.doc-price-value small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

.doc-price-time {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-align: right;
  white-space: nowrap;
}

.doc-price-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  line-height: 1.6;
  max-width: 720px;
}


/* ============================================================
   Doc-compare (about.html)
   ============================================================ */

.doc-compare {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-2);
}

.doc-compare-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1.4fr;
  border-bottom: 1px solid var(--line);
}

.doc-compare-row:last-child {
  border-bottom: 1px solid var(--line-2);
}

.doc-compare-row>div {
  padding: 26px 28px 26px 0;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}

.doc-compare-row>div:nth-child(2) {
  padding-left: 28px;
  padding-right: 28px;
  border-left: 1px solid var(--line);
  color: var(--ink-3);
}

.doc-compare-row>div:nth-child(3) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
  color: var(--ink);
}

.doc-compare-head {
  background: transparent;
}

.doc-compare-head>div {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 22px;
  padding-bottom: 22px;
}

.doc-compare-head>div:last-child {
  color: var(--accent);
}

.doc-compare-row>div:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.doc-compare-note {
  margin-top: 28px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  max-width: 760px;
  font-style: italic;
}


/* ============================================================
   Doc-requirements (government.html — regulation)
   ============================================================ */

.doc-requirements {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.doc-requirement {
  display: grid;
  grid-template-columns: 80px 1fr 220px;
  gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.doc-requirement:last-child {
  border-bottom: 1px solid var(--line-2);
}

.doc-requirement-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 10px;
}

.doc-requirement-body h3 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}

.doc-requirement-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  max-width: 640px;
}

.doc-requirement-body p:last-of-type {
  margin-bottom: 0;
}

.doc-requirement-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  margin-top: 18px;
  transition: gap 0.15s;
}

.doc-requirement-action:hover {
  gap: 12px;
}

.doc-requirement-meta {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 6px;
}

.doc-requirement-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-requirement-meta-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.doc-requirement-meta-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
}

.doc-requirement-meta-value.warning {
  color: var(--accent);
}


/* ============================================================
   Doc-divider (government.html)
   ============================================================ */

.doc-divider {
  padding: 100px 0 0;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 44px;
  padding-right: 44px;
}

.doc-divider::before,
.doc-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.doc-divider span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex-shrink: 0;
  text-align: center;
}


/* ============================================================
   Doc-trends (government.html — market)
   ============================================================ */

.doc-trends {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.doc-trend {
  display: grid;
  grid-template-columns: 80px 1fr 340px;
  gap: 56px;
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.doc-trend:last-child {
  border-bottom: 1px solid var(--line-2);
}

.doc-trend-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 10px;
}

.doc-trend-body h3 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--ink);
}

.doc-trend-body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  max-width: 620px;
}

.doc-trend-side {
  padding-top: 8px;
}

.doc-trend-side-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.doc-trend-side p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
}


/* ============================================================
   Doc-insights (government.html — industry insights)
   ============================================================ */

.doc-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.doc-insight-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.doc-insight h3 {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--ink);
}

.doc-insight p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  margin-bottom: 16px;
}

.doc-insight p:last-child {
  margin-bottom: 0;
}


/* ============================================================
   Research block (government.html)
   ============================================================ */

.research-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.research-header-left {
  max-width: 640px;
}

.research-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  margin-top: 12px;
}

.research-nav {
  display: flex;
  gap: 8px;
}

.research-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.research-nav-btn:hover:not(:disabled) {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.research-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.research-track-wrap {
  position: relative;
  margin: 0 -44px;
  padding: 0 44px;
}

.research-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 20px;
  width: 120px;
  background: linear-gradient(270deg, var(--bg) 20%, transparent);
  pointer-events: none;
  z-index: 1;
}

.research-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 20px;
  padding-right: 80px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.research-track::-webkit-scrollbar {
  display: none;
}

.research-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.research-card:hover {
  border-color: var(--accent-border);
  background: var(--bg-2);
  box-shadow: none;
}

.research-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.research-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 0;
  color: var(--ink-3);
  white-space: nowrap;
}

.research-source {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.research-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.25;
}

.research-figure {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 300;
  letter-spacing: -0.045em;
  color: var(--ink);
  line-height: 1;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.research-figure-note {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  margin-top: 6px;
}

.research-link {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s, gap 0.15s;
}

.research-card:hover .research-link {
  color: var(--accent);
  gap: 10px;
}


/* ============================================================
   Doc-narrative (why-automation.html)
   ============================================================ */

.doc-narrative {
  max-width: 780px;
}

.doc-narrative>p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  margin-bottom: 24px;
}

.doc-narrative>p:last-child {
  margin-bottom: 0;
}


/* ============================================================
   Doc-example (callout with accent left border)
   ============================================================ */

.doc-example {
  margin: 40px 0;
  padding: 32px 36px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
}

.doc-example-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.doc-example p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin: 0;
}


/* ============================================================
   Doc-fork (why-automation.html, coming-soon.html)
   ============================================================ */

.doc-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.doc-fork-item {
  padding: 48px 48px 48px 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: padding 0.3s;
}

.doc-fork-item:last-child {
  padding: 48px 0 48px 48px;
  border-right: none;
}

.doc-fork-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.doc-fork-item h3 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

.doc-fork-item p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  margin: 0;
  flex: 1;
}

.doc-fork-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: gap 0.2s;
  align-self: flex-start;
}

.doc-fork-item:hover .doc-fork-link {
  gap: 12px;
}


/* ============================================================
   Legal (legal/*.html, 404.html, legal hub)
   ============================================================ */

.legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 44px;
}

.legal-toc {
  position: sticky;
  top: 120px;
  padding-top: 8px;
}

.legal-toc h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
}

.legal-toc li {
  counter-increment: toc;
  margin-bottom: 12px;
}

.legal-toc a {
  color: var(--ink-3);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.45;
  transition: color 0.15s;
  display: block;
  letter-spacing: -0.005em;
}

.legal-toc a::before {
  content: counter(toc, decimal-leading-zero) ' ';
  font-family: var(--font-mono);
  color: var(--ink-4);
  margin-right: 8px;
  font-size: 10.5px;
}

.legal-toc a:hover,
.legal-toc a.active {
  color: var(--accent);
}

.legal-content {
  max-width: 800px;
}

.legal-header {
  padding-bottom: 40px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}

.legal-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.legal-section {
  margin-bottom: 56px;
  scroll-margin-top: 130px;
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--ink);
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.legal-section h2 .section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.legal-section p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}

.legal-section ul {
  list-style: none;
  margin-bottom: 18px;
}

.legal-section ul li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 10px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}

.legal-section a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color 0.15s, color 0.15s;
}

.legal-section a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.legal-section strong {
  color: var(--ink);
  font-weight: 500;
}

.legal-note {
  padding: 24px 28px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 28px 0;
  letter-spacing: -0.005em;
}

.legal-note strong {
  color: var(--ink);
  font-weight: 500;
}

.legal-hub {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.legal-hub-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 40px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: padding 0.3s;
}

.legal-hub-item::before {
  content: attr(data-num);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.legal-hub-item h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.legal-hub-item p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 560px;
}

.legal-hub-arrow {
  color: var(--ink-4);
  transition: color 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.legal-hub-item:hover h3 {
  color: var(--accent);
}

.legal-hub-item:hover .legal-hub-arrow {
  color: var(--accent);
  transform: translateX(4px);
}


/* ============================================================
   FAQ
   ============================================================ */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 30px 0;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  transition: color 0.15s;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-3);
  flex-shrink: 0;
  transition: transform 0.25s, background 0.2s, border-color 0.2s, color 0.2s;
  background: var(--surface);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-a-inner {
  padding: 0 0 30px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 640px;
  letter-spacing: -0.005em;
}


/* ============================================================
   Context-line (navigation hint under sections)
   ============================================================ */

.context-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-top: 40px;
  margin-bottom: 80px;
  line-height: 1.5;
  flex-wrap: wrap;
}

.context-line::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.context-line a {
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: color 0.15s, border-color 0.15s;
}

.context-line a:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* ============================================================
   Problems layout (index.html — sticky left + list right)
   ============================================================ */

.problems-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 96px;
  align-items: start;
}

.problems-sticky {
  position: sticky;
  top: 120px;
  padding-top: 6px;
}

.problems-sticky .eyebrow {
  margin-bottom: 22px;
}

.problems-sticky h2 {
  font-size: 30px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: var(--ink);
}

.problems-sticky p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}


/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 60px 0 40px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.00em;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 14px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav a:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: 13px;
  color: var(--ink-4);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}


/* ============================================================
   Reveal animation
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}



/* ============================================================
   why-automation.html — page-specific
   ============================================================ */

.was-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 40px 0;
}

.was-now-col {
  padding: 36px 40px 36px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.was-now-col.now {
  padding: 36px 0 36px 40px;
  border-left: 1px solid var(--line);
}

.was-now-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.was-now-col.now .was-now-label {
  color: var(--accent);
}

.was-now-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.was-now-list li {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
  letter-spacing: -0.005em;
}

.was-now-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 1.5px;
  background: var(--ink-4);
  border-radius: 1px;
}

.was-now-col.now .was-now-list li::before {
  background: var(--accent);
}

.was-now-result {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.was-now-col.now .was-now-result {
  color: var(--accent);
}

.ai-compare {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 40px 0;
}

.ai-compare-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.ai-compare-row:last-child {
  border-bottom: none;
}

.ai-compare-row>div {
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  border-right: 1px solid var(--line);
  letter-spacing: -0.005em;
}

.ai-compare-row>div:last-child {
  border-right: none;
}

.ai-compare-row>div:first-child {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-left: 0;
}

.ai-compare-head>div {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 18px;
  padding-bottom: 18px;
}

.ai-compare-head>div:nth-child(3) {
  color: var(--accent);
}

.ai-compare-row>div:nth-child(3) {
  color: var(--ink);
}

.flow-risk {
  margin: 40px 0;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-2);
}

.flow-risk-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flow-risk-node {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  text-align: center;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  letter-spacing: -0.005em;
}

.flow-risk-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  flex-shrink: 0;
}

.flow-risk-caption {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-align: center;
}

.what-gives {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.what-gives-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.what-gives-list {
  list-style: none;
  counter-reset: give;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.what-gives-list li {
  counter-increment: give;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.what-gives-list li::before {
  content: counter(give, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 3px;
}

/* ============================================================
   contact.html — page-specific
   ============================================================ */

.contact-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 96px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-left {
  display: flex;
  flex-direction: column;
  padding-top: 20px;
}

.contact-left h1 {
  margin-bottom: 26px;
}

.contact-left .hero-sub {
  margin-bottom: 48px;
}

.contact-channels {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.contact-channels li {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-channels .label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-channels a {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.05;
  display: inline-block;
}

.contact-channels a:hover {
  color: var(--accent);
}

.contact-meta {
  margin-top: 48px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  max-width: 360px;
}

.contact-prompt {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-prompt-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-prompt h2 {
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
}

.contact-prompt-list {
  list-style: none;
  counter-reset: prompt;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-prompt-list li {
  counter-increment: prompt;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.contact-prompt-list li::before {
  content: counter(prompt, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 3px;
}

.contact-prompt-example {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.contact-prompt-example-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.contact-prompt-example blockquote {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  font-style: italic;
}


/* ============================================================
   government.html / pricing.html — freshness line
   ============================================================ */

.doc-freshness {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  line-height: 1.6;
  max-width: 900px;
}


/* ============================================================
   pricing.html — page-specific
   ============================================================ */

.doc-section .context-line {
  margin-bottom: 0;
}

.packages-block {
  margin-bottom: 56px;
}

.packages-block:last-child {
  margin-bottom: 0;
}

.packages-block-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0;
}

.packages-block .doc-price-group-label {
  display: none;
}

.packages-block .doc-price-items {
  margin-top: 0;
}

.packages-block .doc-price-value {
  color: var(--accent);
}


/* ============================================================
   contact.html — responsive
   ============================================================ */

@media (max-width: 1000px) {
  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .contact-left {
    padding-top: 0;
  }

  .contact-channels a {
    font-size: 26px;
  }

  .contact-prompt {
    padding: 32px;
  }
}

@media (max-width: 720px) {
  .contact-channels {
    gap: 26px;
    padding-top: 32px;
  }

  .contact-channels a {
    font-size: 22px;
  }

  .contact-meta {
    margin-top: 32px;
  }

  .contact-prompt {
    padding: 26px 24px;
  }

  .contact-prompt h2 {
    font-size: 22px;
  }
}


/* ============================================================
   pricing.html — mobile separation between price groups
   ============================================================ */

@media (max-width: 1000px) {
  .doc-price-group {
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 40px;
  }

  .doc-price-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

/* ============================================================
   Responsive — 1000px
   ============================================================ */

@media (max-width: 1000px) {
  .container {
    padding: 0 24px;
  }

  .section {
    padding: 88px 0;
  }

  .section-head {
    margin-bottom: 48px;
  }

  .hero {
    padding: 130px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero h1 {
    font-size: clamp(38px, 8vw, 56px);
  }

  .hero-stack {
    max-width: 480px;
    margin: 0 auto;
  }

  .doc-section {
    padding: 88px 0;
  }

  .doc-head {
    margin-bottom: 48px;
  }

  .doc-head p {
    font-size: 16px;
  }

  .doc-block {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0;
  }

  .doc-block-num {
    padding-top: 0;
  }

  .doc-block-body h3 {
    font-size: 26px;
  }

  .doc-list li {
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 26px 0;
  }

  .doc-list-body h4 {
    font-size: 19px;
  }

  .doc-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-steps.three {
    grid-template-columns: 1fr;
  }

  .doc-step {
    padding: 36px 28px;
    border-bottom: 1px solid var(--line);
  }

  .doc-step:nth-child(2n) {
    border-right: none;
  }

  .doc-steps.three .doc-step {
    padding: 32px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .doc-steps.three .doc-step:first-child {
    padding-top: 32px;
  }

  .doc-steps.three .doc-step:last-child {
    padding-bottom: 32px;
    border-bottom: none;
  }

  .doc-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 0;
  }

  .doc-meta.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .doc-meta-item:nth-child(2n) {
    border-right: none;
  }

  .doc-cta {
    padding: 100px 0;
  }

  .doc-cta::after {
    background-size: 48px 48px;
  }

  .doc-cta-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .doc-service-list li {
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 22px 0;
  }

  .doc-service-name {
    font-size: 20px;
  }

  .doc-service-name small {
    font-size: 14px;
    margin-top: 6px;
  }

  .doc-service-meta {
    grid-column: 2;
    padding-top: 12px;
  }

  .service-callout {
    padding: 40px 36px;
    margin-top: 48px;
  }

  .service-callout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .service-callout h3 {
    font-size: 32px;
  }

  .doc-formats {
    grid-template-columns: 1fr;
  }

  .doc-format {
    padding: 36px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .doc-format:last-child {
    padding: 36px 0;
    border-bottom: none;
  }

  .doc-partner-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .doc-partner h2 {
    font-size: 32px;
  }

  .doc-price-item {
    grid-template-columns: 44px 1fr 160px;
    gap: 20px;
    padding: 22px 0;
  }

  .doc-price-time {
    display: none;
  }

  .doc-price-name {
    font-size: 20px;
  }

  .doc-price-value {
    font-size: 20px;
  }

  .doc-compare-row {
    grid-template-columns: 1fr;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    gap: 8px;
  }

  .doc-compare-row>div {
    padding: 0;
    border: none !important;
  }

  .doc-compare-row>div:first-child {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .doc-compare-row>div:nth-child(2) {
    position: relative;
    padding-left: 20px;
  }

  .doc-compare-row>div:nth-child(2)::before {
    content: '— ';
    position: absolute;
    left: 0;
    color: var(--ink-4);
  }

  .doc-compare-row>div:nth-child(3) {
    position: relative;
    padding-left: 20px;
    color: var(--ink);
    font-weight: 500;
  }

  .doc-compare-row>div:nth-child(3)::before {
    content: '— ';
    position: absolute;
    left: 0;
    color: var(--accent);
  }

  .doc-compare-head {
    display: none;
  }

  .doc-requirement {
    grid-template-columns: 60px 1fr;
    gap: 28px;
    padding: 36px 0;
  }

  .doc-requirement-meta {
    grid-column: 2;
    flex-direction: row;
    gap: 40px;
    padding-top: 20px;
    flex-wrap: wrap;
  }

  .doc-requirement-body h3 {
    font-size: 22px;
  }

  .doc-requirement-body p {
    font-size: 15px;
  }

  .doc-trend {
    grid-template-columns: 60px 1fr;
    gap: 28px;
    padding: 36px 0;
  }

  .doc-trend-side {
    grid-column: 2;
    padding-top: 20px;
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .doc-trend-body h3 {
    font-size: 22px;
  }

  .doc-trend-body p {
    font-size: 15px;
  }

  .doc-insights {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .doc-divider {
    padding: 64px 24px 0;
  }

  .doc-narrative>p {
    font-size: 17px;
  }

  .doc-example {
    padding: 26px 30px;
    margin: 32px 0;
  }

  .doc-example p {
    font-size: 16px;
  }

  .doc-fork {
    grid-template-columns: 1fr;
  }

  .doc-fork-item {
    padding: 36px 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .doc-fork-item:last-child {
    padding: 36px 0;
    border-bottom: none;
  }

  .doc-fork-item h3 {
    font-size: 22px;
  }

  .research-track-wrap {
    margin: 0 -24px;
    padding: 0 24px;
  }

  .research-track {
    padding-right: 40px;
  }

  .research-card {
    flex: 0 0 320px;
    padding: 28px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }

  .legal-toc {
    position: static;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
  }

  .legal-toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 24px;
  }

  .legal-toc li {
    margin-bottom: 0;
  }

  .legal-section h2 {
    font-size: 22px;
  }

  .legal-section p,
  .legal-section ul li {
    font-size: 15px;
  }

  .legal-hub-item {
    grid-template-columns: 44px 1fr auto;
    gap: 24px;
    padding: 26px 0;
  }

  .legal-hub-item h3 {
    font-size: 22px;
  }

  .problems-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .problems-sticky {
    position: static;
    padding-top: 0;
  }

  .problems-sticky h2 {
    font-size: 26px;
  }

  .was-now {
    grid-template-columns: 1fr;
  }

  .was-now-col {
    padding: 28px 0;
  }

  .was-now-col.now {
    padding: 28px 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .ai-compare-head {
    display: none;
  }

  .ai-compare-row {
    grid-template-columns: 1fr;
  }

  .ai-compare-row>div {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }

  .ai-compare-row>div:last-child {
    border-bottom: none;
  }

  .ai-compare-row>div:first-child {
    padding-top: 16px;
    padding-bottom: 4px;
  }

  .ai-compare-row>div:nth-child(2)::before {
    content: 'Обычная автоматизация';
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-4);
    margin-bottom: 6px;
  }

  .ai-compare-row>div:nth-child(3)::before {
    content: 'ИИ';
    display: block;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
  }
}


/* ============================================================
   Responsive — 720px
   ============================================================ */

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 12px 16px 0;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    flex-direction: column;
    padding: 12px;
    gap: 0;
    align-items: stretch;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 16px;
    font-size: 15.5px;
    font-weight: 450;
    color: var(--ink-2);
    border-bottom: 1px solid var(--line-2);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav a:hover,
  .nav a.active {
    color: var(--accent);
    background: transparent;
  }

  .burger {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .stack-layer {
    padding: 16px 18px;
    gap: 16px;
  }

  .stack-layer-title {
    font-size: 15px;
  }

  .stack-layer-desc {
    font-size: 12.5px;
  }

  .doc-steps {
    grid-template-columns: 1fr;
  }

  .doc-step {
    padding: 28px 0;
    border-right: none;
  }

  .doc-step:first-child {
    padding-top: 32px;
  }

  .doc-step:last-child {
    padding-bottom: 32px;
    border-bottom: none;
  }

  .doc-meta {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .doc-meta.cols-3 {
    grid-template-columns: 1fr;
  }

  .doc-meta-item {
    padding: 0;
    border-right: none;
  }

  .doc-meta-value {
    font-size: 26px;
  }

  .doc-cta {
    padding: 80px 0;
  }

  .doc-cta-action a {
    font-size: 22px;
  }

  .doc-service-list li {
    grid-template-columns: 36px 1fr;
    gap: 16px;
  }

  .doc-service-name {
    font-size: 18px;
  }

  .doc-service-name small {
    font-size: 13.5px;
  }

  .service-callout {
    padding: 32px 24px;
    border-radius: 0 var(--r) var(--r) 0;
  }

  .service-callout h3 {
    font-size: 26px;
  }

  .service-callout-lead {
    font-size: 15.5px;
  }

  .service-callout-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .service-callout-footer .btn {
    justify-content: center;
    width: 100%;
  }

  .doc-format h3 {
    font-size: 22px;
  }

  .doc-partner h2 {
    font-size: 26px;
  }

  .doc-partner-grid {
    gap: 40px;
  }

  .doc-price-item {
    grid-template-columns: 36px 1fr;
    gap: 16px;
  }

  .doc-price-value {
    grid-column: 2;
    text-align: left;
    margin-top: 8px;
    font-size: 22px;
  }

  .doc-price-name {
    font-size: 18px;
  }

  .doc-price-desc {
    font-size: 13.5px;
  }

  .doc-price-intro {
    padding: 20px 22px;
    font-size: 15px;
    margin-bottom: 40px;
  }

  .doc-requirement {
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .doc-requirement-body h3 {
    font-size: 19px;
  }

  .doc-requirement-body p {
    font-size: 14.5px;
  }

  .doc-requirement-meta {
    gap: 24px;
  }

  .doc-requirement-meta-value {
    font-size: 16px;
  }

  .doc-trend {
    grid-template-columns: 44px 1fr;
    gap: 20px;
    padding: 28px 0;
  }

  .doc-trend-body h3 {
    font-size: 19px;
  }

  .doc-trend-body p {
    font-size: 14.5px;
  }

  .doc-insight h3 {
    font-size: 22px;
  }

  .doc-divider span {
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }

  .doc-narrative>p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .doc-example {
    padding: 22px 24px;
    margin: 28px 0;
  }

  .doc-example p {
    font-size: 15px;
  }

  .doc-fork-item h3 {
    font-size: 20px;
  }

  .research-section,
  .doc-section {
    /* combined for .research-section if it appears */
  }

  .research-header {
    margin-bottom: 32px;
  }

  .research-nav {
    display: none;
  }

  .research-card {
    flex: 0 0 280px;
    padding: 24px;
  }

  .research-figure {
    font-size: 36px;
  }

  .research-title {
    font-size: 17px;
  }

  .research-track-wrap::after {
    width: 60px;
  }

  .legal-toc ol {
    grid-template-columns: 1fr;
  }

  .legal-section h2 {
    font-size: 19px;
    gap: 12px;
  }

  .legal-section p,
  .legal-section ul li {
    font-size: 14.5px;
  }

  .legal-note {
    padding: 20px 22px;
  }

  .legal-hub-item {
    grid-template-columns: 36px 1fr;
    gap: 16px;
    padding: 22px 0;
  }

  .legal-hub-item h3 {
    font-size: 19px;
  }

  .legal-hub-arrow {
    display: none;
  }

  .problems-sticky h2 {
    font-size: 22px;
  }

  .context-line {
    margin-top: 32px;
    font-size: 11.5px;
  }

  .flow-risk {
    padding: 24px;
  }

  .flow-risk-track {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-risk-dot {
    align-self: center;
  }

  .flow-risk-node {
    min-width: 0;
  }

}


/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}