/* ─── Case study (Editorial Light) ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* ─── Kit: Obsidian Pulse (dark tech) ─── */
[data-kit="obsidian"] {
  --bg: #06070c;
  --bg-alt: #0c0e16;
  --surface: rgba(255,255,255,0.035);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.09);
  --text: #eef1f8;
  --muted: #8d95ab;
  --accent: #00e5ff;
  --accent-dim: rgba(0,229,255,0.12);
  --accent-2: #ffb020;
  --accent-2-dim: rgba(255,176,32,0.12);
  --success: #34d399;
  --gradient: linear-gradient(135deg, #00e5ff 0%, #6366f1 45%, #ffb020 100%);
  --hero-glow: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,229,255,0.18), transparent),
               radial-gradient(ellipse 50% 40% at 90% 20%, rgba(99,102,241,0.12), transparent);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 32px 80px rgba(0,0,0,0.55);
  --nav-bg: rgba(6,7,12,0.85);
  --card-style: glass;
}

/* ─── Kit: Editorial Light (premium consultancy) ─── */
[data-kit="editorial"] {
  --bg: #faf8f5;
  --bg-alt: #f0ebe3;
  --surface: #ffffff;
  --surface-hover: #fdfcfa;
  --border: #e4dcd0;
  --text: #1a1612;
  --muted: #6b6358;
  --accent: #c45c3e;
  --accent-dim: rgba(196,92,62,0.1);
  --accent-2: #1e3a5f;
  --accent-2-dim: rgba(30,58,95,0.08);
  --success: #2d6a4f;
  --gradient: linear-gradient(135deg, #c45c3e 0%, #1e3a5f 100%);
  --hero-glow: radial-gradient(ellipse 70% 50% at 20% 0%, rgba(196,92,62,0.08), transparent);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 20px 60px rgba(26,22,18,0.08);
  --nav-bg: rgba(250,248,245,0.92);
  --card-style: paper;
}

/* ─── Kit: Blueprint (Avito continuity) ─── */
[data-kit="blueprint"] {
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --surface: #ffffff;
  --surface-hover: #f0f6ff;
  --border: #e5e9ef;
  --text: #1a1a1a;
  --muted: #767676;
  --accent: #00aaff;
  --accent-dim: #e8f6ff;
  --accent-2: #00c853;
  --accent-2-dim: #e8fff0;
  --success: #00a843;
  --gradient: linear-gradient(135deg, #00aaff 0%, #0082cc 100%);
  --hero-glow: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0,170,255,0.1), transparent);
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --nav-bg: rgba(255,255,255,0.92);
  --card-style: clean;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  transition: background 0.4s, color 0.3s;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }

/* ─── Typography ─── */
.label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 20px;
}
[data-kit="editorial"] .label { border-radius: 0; letter-spacing: 0.18em; }

.h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 58px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em;
}
[data-kit="editorial"] .h1 { font-weight: 600; letter-spacing: -0.02em; }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em;
}
.h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; line-height: 1.3; }
.subtitle { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); line-height: 1.75; margin-top: 18px; max-width: 640px; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; max-width: 1140px; margin: 0 auto; gap: 16px; flex-wrap: wrap;
}
.nav-brand { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--text); }
.nav-links { display: flex; gap: 24px; flex-wrap: wrap; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px; font-weight: 700; font-size: 14px;
  cursor: pointer; text-decoration: none; border: none; transition: all 0.22s;
}
[data-kit="editorial"] .btn { border-radius: 0; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.btn--primary { background: var(--accent); color: #fff; }
[data-kit="obsidian"] .btn--primary { color: #06070c; }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.btn--outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn--ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.25s, transform 0.25s;
}
[data-kit="obsidian"] .card {
  backdrop-filter: blur(12px);
}
[data-kit="editorial"] .card { box-shadow: var(--shadow); }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.stat {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ─── Hero ─── */
.hero {
  padding: 100px 0 80px;
  background: var(--hero-glow);
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-visual {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-flow-wrap {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px;
  overflow: hidden;
  line-height: 0;
}
.hero-flow-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-sm) - 2px);
}
.flow-diagram {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13px;
}
.flow-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.flow-node {
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--accent-dim); border: 1px solid var(--border);
  font-weight: 600; white-space: nowrap;
}
.flow-arrow { color: var(--muted); font-size: 18px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.badge {
  font-size: 12px; font-weight: 600; padding: 6px 14px;
  border-radius: 100px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted);
}
[data-kit="editorial"] .badge { border-radius: 0; }

/* ─── Timeline ─── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -32px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.timeline-num {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 6px;
}

/* ─── Metrics table ─── */
.metrics-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.metrics {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
table.metrics th, table.metrics td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border);
}
table.metrics th {
  background: var(--bg-alt); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
}
table.metrics tr:last-child td { border-bottom: none; }
table.metrics td:first-child { font-weight: 600; }

/* ─── Limitations ─── */
.limit-box {
  border-left: 4px solid var(--accent-2);
  padding: 20px 24px;
  background: var(--accent-2-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.limit-box li { margin: 8px 0 8px 20px; color: var(--muted); }

/* ─── Stack tags ─── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12px; font-weight: 600; padding: 6px 12px;
  border-radius: var(--radius-sm); background: var(--accent-dim);
  color: var(--accent); border: 1px solid var(--border);
}

/* ─── CTA ─── */
.cta {
  text-align: center; padding: 72px 24px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface);
  position: relative; overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: var(--hero-glow); pointer-events: none;
}
.cta > * { position: relative; }

/* ─── Footer ─── */
.footer {
  padding: 32px 0; border-top: 1px solid var(--border);
  text-align: center; font-size: 13px; color: var(--muted);
}
.footer a { color: var(--accent); }

/* ─── Owner pains ─── */
.pain-grid { display: flex; flex-direction: column; gap: 16px; margin-top: 36px; }
.pain-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 16px; align-items: center;
  padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
@media (max-width: 768px) {
  .pain-row { grid-template-columns: 1fr; text-align: left; }
  .pain-arrow { transform: rotate(90deg); justify-self: center; }
}
.pain-row__q {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 15px;
}
.pain-row__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.pain-row__q em { font-style: normal; color: var(--accent-2); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.pain-arrow { color: var(--accent); font-size: 22px; font-weight: 700; }
.pain-row__a { font-size: 14px; color: var(--muted); }
.pain-row__a strong { color: var(--text); }

/* ─── Dual funnels ─── */
.funnel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
@media (max-width: 768px) { .funnel-grid { grid-template-columns: 1fr; } }
.funnel-card { padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.funnel-card--rent { border-top: 4px solid var(--accent); }
.funnel-card--buyout { border-top: 4px solid var(--accent-2); }
.funnel-card__tag { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.funnel-card--rent .funnel-card__tag { color: var(--accent); }
.funnel-card--buyout .funnel-card__tag { color: var(--accent-2); }
.funnel-steps { display: flex; flex-direction: column; gap: 8px; margin: 20px 0; }
.funnel-step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--bg-alt); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500;
}
.funnel-step__n {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dim); color: var(--accent);
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.funnel-card--buyout .funnel-step__n { background: var(--accent-2-dim); color: var(--accent-2); }
.funnel-metric { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.funnel-metric div { flex: 1; min-width: 100px; }
.funnel-metric .stat { font-size: 26px; }

/* ─── Screenshot / UI mockups ─── */
.screenshot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.screenshot-grid--with-dialog { grid-template-columns: 1fr; }
.screenshot-grid__row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 900px) {
  .screenshot-grid { grid-template-columns: 1fr; }
  .screenshot-grid__row { grid-template-columns: 1fr; }
}
.shot--dialog { grid-column: 1 / -1; }
.shot {
  border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; background: var(--surface);
  box-shadow: var(--shadow);
}
.shot__cap { padding: 14px 18px; font-size: 13px; font-weight: 600; border-top: 1px solid var(--border); }
.shot__cap span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.shot__frame { padding: 16px; background: var(--bg-alt); min-height: 220px; }
.shot__frame--chat { min-height: auto; padding: 12px; }
.shot__frame--img { padding: 0; min-height: 0; background: var(--surface); line-height: 0; }
.shot__img { display: block; width: 100%; height: auto; }

/* Chat mock — приглушённые тона, без яркого accent */
.mock-chat { display: flex; flex-direction: column; gap: 6px; }
.mock-chat--real { max-height: none; padding: 4px 2px; }
.mock-chat__meta-bar {
  position: sticky; top: 0; z-index: 1;
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); padding: 6px 10px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 4px;
}
.shot__frame--chat { background: var(--bg); }
.mock-bubble__time {
  display: block; font-size: 9px; font-weight: 500; letter-spacing: 0.02em;
  color: var(--muted); margin-bottom: 4px; opacity: 0.7;
}
.mock-bubble {
  max-width: 88%; padding: 9px 11px; border-radius: 10px;
  font-size: 11px; line-height: 1.5; border: 1px solid var(--border);
}
.mock-bubble--client {
  align-self: flex-start;
  background: var(--surface);
  color: var(--muted);
  border-bottom-left-radius: 3px;
}
.mock-bubble--bot {
  align-self: flex-end;
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-alt));
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  border-bottom-right-radius: 3px;
}
[data-kit="obsidian"] .mock-bubble--client {
  background: rgba(255,255,255,0.03);
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
}
[data-kit="obsidian"] .mock-bubble--bot {
  background: rgba(255,255,255,0.05);
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
}
.mock-bubble--close {
  border-color: color-mix(in srgb, var(--accent) 18%, var(--border));
}
.mock-bubble__meta {
  font-size: 9px; color: var(--muted); opacity: 0.75; margin-top: 6px;
}

/* ─── Trust / compliance ─── */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
@media (max-width: 768px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-box {
  padding: 28px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.trust-box__icon { font-size: 28px; margin-bottom: 12px; }
.trust-box ul { margin-top: 14px; padding-left: 18px; }
.trust-box li { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.trust-box li strong { color: var(--text); }

/* ─── Economics / CR stage ─── */
.econ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
@media (max-width: 768px) { .econ-grid { grid-template-columns: 1fr; } }
.econ-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.econ-card--goal { border: 2px dashed var(--accent); background: var(--accent-dim); }
.stage-badge {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
  background: var(--accent-2-dim); color: var(--accent-2); margin-bottom: 12px;
}
.econ-list { list-style: none; margin-top: 16px; }
.econ-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.econ-list li:last-child { border-bottom: none; }
.econ-list li span:last-child { font-weight: 700; color: var(--accent); text-align: right; }
.econ-list li span.econ-savings { color: #16a34a; font-weight: 700; text-align: right; }
html[data-kit="obsidian"] .econ-list li span.econ-savings { color: #34d399; }

/* ─── Visit results (A/B analytics) ─── */
.results-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 768px) { .results-hero { grid-template-columns: 1fr; } }
.results-stat {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.results-stat .stat { font-size: clamp(28px, 4vw, 40px); }
.results-stat__note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.45;
}
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 768px) { .results-grid { grid-template-columns: 1fr; } }
.results-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.results-card--mgr {
  border-color: var(--accent-2);
  background: var(--accent-2-dim);
}

.micro-cta {
  margin-top: 32px;
  padding-top: 8px;
}
.micro-cta .btn { font-size: 14px; }

.honesty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 36px;
}
@media (max-width: 768px) { .honesty-grid { grid-template-columns: 1fr; } }
.honesty-col {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.honesty-col--no { border-left: 3px solid var(--muted); }
.honesty-col--yes { border-left: 3px solid var(--success, var(--accent)); }
.honesty-col .h3 { margin-bottom: 16px; font-size: 18px; }
.honesty-list { list-style: none; }
.honesty-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.honesty-list li:last-child { margin-bottom: 0; }
.honesty-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
}
.honesty-col--no .honesty-mark {
  background: rgba(255,100,100,0.12);
  color: #f87171;
}
.honesty-col--yes .honesty-mark {
  background: var(--accent-dim);
  color: var(--accent);
}

/* ─── Story + layered results ─── */
.story-text {
  max-width: 720px;
  margin-top: 28px;
}
.story-text p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.story-text p:last-child { margin-bottom: 0; }
.story-text strong { color: var(--text); }

.results-verdict {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  background: var(--accent-dim);
  max-width: 820px;
}
.results-verdict p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.results-verdict strong { color: var(--text); }

.results-snap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 768px) { .results-snap { grid-template-columns: 1fr; } }
.results-snap__item {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.results-snap__number {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.results-snap__label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

.case-details {
  margin-top: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.case-details summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  list-style: none;
  user-select: none;
}
.case-details summary::-webkit-details-marker { display: none; }
.case-details summary::after {
  content: '↓';
  float: right;
  color: var(--muted);
  font-size: 12px;
  transition: transform 0.2s;
}
.case-details[open] summary::after { transform: rotate(180deg); }
.case-details summary:hover { background: var(--surface-hover); }
.case-details__body {
  padding: 0 20px 24px;
  border-top: 1px solid var(--border);
}

/* ─── Implementation roadmap ─── */
.roadmap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 36px; }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .roadmap { grid-template-columns: 1fr; } }
.roadmap-phase {
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); position: relative;
}
.roadmap-phase__time {
  font-size: 11px; font-weight: 800; color: var(--accent);
  letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px;
}
.roadmap-phase__title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.roadmap-phase__items { font-size: 13px; color: var(--muted); line-height: 1.5; }

.timeline-duration {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: var(--muted); background: var(--bg-alt);
  border: 1px solid var(--border); padding: 3px 10px;
  border-radius: 100px; margin-left: 8px; vertical-align: middle;
}

/* ─── Technical appendix ─── */
.tech-hero { padding: 80px 0 48px; }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
@media (max-width: 768px) { .tech-grid { grid-template-columns: 1fr; } }

.status-badge {
  display: inline-block; font-size: 10px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px; margin-bottom: 12px;
}
.status-badge--prod { background: rgba(52,211,153,0.15); color: var(--success); border: 1px solid rgba(52,211,153,0.3); }
.status-badge--proto { background: var(--accent-2-dim); color: var(--accent-2); border: 1px solid var(--border); }
.status-badge--no { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }

.tech-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); height: 100%; }
.tech-card h3 { margin-bottom: 12px; }
.tech-card p, .tech-card li { font-size: 14px; color: var(--muted); line-height: 1.65; }
.tech-card ul { margin-top: 12px; padding-left: 18px; }
.tech-card li { margin-bottom: 6px; }

code, .code-inline {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 12px; padding: 2px 6px; border-radius: 4px;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--accent);
}
pre.code-block {
  margin-top: 16px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--bg-alt); border: 1px solid var(--border);
  font-family: ui-monospace, monospace; font-size: 12px; line-height: 1.55;
  overflow-x: auto; color: var(--text);
}

.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 20px; }
.compare-table th, .compare-table td {
  padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare-table th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); background: var(--bg-alt);
}
.compare-table td:first-child { font-weight: 600; width: 28%; }

.arch-flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 20px; font-size: 13px;
}
.arch-node {
  padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface); font-weight: 600;
}
.arch-arrow { color: var(--muted); }

.tech-cta-bar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  margin-top: 24px; padding: 20px 24px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
