body.content-body {
  min-height: 100%;
  overflow: auto;
}

.content-header .brand { color: var(--text); text-decoration: none; }

.content-page {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 120px;
}

.content-hero {
  max-width: 820px;
  padding-bottom: 72px;
}

.content-hero h1 {
  max-width: 800px;
  margin-bottom: 26px;
  font-size: clamp(56px, 9vw, 112px);
  line-height: .88;
  letter-spacing: -.07em;
}

.content-hero .lead {
  max-width: 670px;
  margin-bottom: 0;
  color: var(--copy-muted);
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.45;
  letter-spacing: -.02em;
}

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

.content-block {
  min-height: 260px;
  padding: 34px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-faint);
}

.content-block > svg { width: 24px; height: 24px; margin-bottom: 34px; }
.content-block h2 { margin-bottom: 14px; font-size: 28px; }
.content-block h3 { margin-bottom: 12px; font-size: 20px; }
.content-block p, .content-block li { color: var(--copy-soft); font-size: 14px; line-height: 1.7; }
.content-block ul, .content-block ol { margin: 0; padding-left: 19px; }
.content-block a:not(.button) { color: var(--text); text-underline-offset: 4px; }

.content-section {
  padding: 70px 0 0;
}
.content-section-head { max-width: 680px; margin-bottom: 32px; }
.content-section-head h2 { margin-bottom: 14px; font-size: clamp(36px, 5vw, 58px); }
.content-section-head p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.steps { counter-reset: step; border-top: 1px solid var(--border); }
.step { counter-increment: step; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 18px; padding: 30px 0; border-bottom: 1px solid var(--border); }
.step::before { content: counter(step, decimal-leading-zero); color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.step h2, .step h3 { margin-bottom: 9px; }
.step p { max-width: 680px; margin-bottom: 0; color: var(--copy-soft); font-size: 14px; line-height: 1.7; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 760px;
  padding: 18px;
  margin: 30px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-faint);
}
.notice svg { flex: 0 0 auto; width: 20px; height: 20px; }
.notice p { margin: 0; color: var(--copy-soft); font-size: 13px; line-height: 1.6; }

.code-wrap { position: relative; margin-top: 22px; }
pre {
  max-height: 500px;
  overflow: auto;
  padding: 24px;
  border: 1px solid #282b2d;
  border-radius: 16px;
  color: #e9ecee;
  background: #17191a;
  font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
}

.page-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.page-actions .button { text-decoration: none; }

.content-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}
.content-footer a { color: var(--text); }

.demo-loading { display: grid; place-items: center; align-content: center; min-height: 100vh; text-align: center; }
.demo-loading h1 { font-size: clamp(44px, 8vw, 82px); }
.demo-loading a { color: var(--text); text-underline-offset: 5px; }

@media (max-width: 720px) {
  .content-page { width: min(100% - 32px, 1040px); padding: 64px 0 90px; }
  .content-hero { padding-bottom: 48px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-block { min-height: 0; padding: 28px; }
  .step { grid-template-columns: 42px minmax(0, 1fr); }
  .content-footer { flex-direction: column; }
}
