:root {
  --deepdoc-hero-width: 920px;
  --deepdoc-code-width: 100%;
  --deepdoc-rule-size: 1px;
}

.deepdoc-hero {
  position: relative;
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: clamp(58px, 8vw, 96px);
  overflow-x: clip;
  border-bottom: var(--deepdoc-rule-size) solid var(--color-edge-soft);
  text-align: center;
}

.deepdoc-hero::before {
  position: absolute;
  inset: auto 8% 0;
  height: 58%;
  content: "";
  pointer-events: none;
  background: radial-gradient(ellipse at bottom, var(--color-glow), var(--color-transparent) 68%);
}

.deepdoc-hero .reading-wrap {
  position: relative;
}

.deepdoc-hero h1 {
  max-width: var(--deepdoc-hero-width);
  margin: 24px auto 0;
  font-weight: 440;
}

.deepdoc-hero__lead {
  max-width: var(--deepdoc-hero-width);
  margin: 22px auto 0;
  color: var(--color-text-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.8;
}

.deepdoc-hero__actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.deepdoc-hero__note {
  max-width: var(--deepdoc-hero-width);
  margin: 32px auto 0;
  padding: 22px 26px;
  border: var(--deepdoc-rule-size) solid var(--color-edge);
  border-radius: var(--radius-lg);
  background: var(--color-panel-glass);
  box-shadow: var(--shadow-card);
  text-align: left;
}

.deepdoc-hero__note strong {
  display: block;
  margin-bottom: 6px;
}

.deepdoc-hero__note p {
  font-size: 14px;
}

.deepdoc-hero__note a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-color: var(--color-accent-strong);
  text-underline-offset: 3px;
}

.deepdoc-body {
  padding-top: clamp(42px, 7vw, 76px);
  padding-bottom: clamp(32px, 5vw, 64px);
}

.deepdoc-section {
  padding-top: clamp(46px, 7vw, 82px);
  padding-bottom: clamp(18px, 4vw, 38px);
  border-bottom: var(--deepdoc-rule-size) solid var(--color-edge-soft);
}

.deepdoc-section:last-child {
  border-bottom: 0;
}

.deepdoc-section__mark {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--color-accent);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.deepdoc-section h2 {
  margin-bottom: 34px;
}

.deepdoc-section h3 {
  margin-top: 38px;
  font-size: clamp(21px, 3vw, 27px);
}

.deepdoc-section p,
.deepdoc-section li {
  line-height: 1.95;
}

.deepdoc-section .callout,
.deepdoc-section .table-scroll,
.deepdoc-section pre,
.deepdoc-checklist {
  margin-top: 32px;
  margin-bottom: 32px;
}

.deepdoc-section pre {
  width: var(--deepdoc-code-width);
  white-space: pre;
}

.deepdoc-section code {
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.75;
}

.deepdoc-section .table-scroll {
  box-shadow: var(--shadow-card);
}

.deepdoc-section .compare-table td,
.deepdoc-section .route-table td {
  font-size: 14px;
  line-height: 1.65;
}

.deepdoc-checklist {
  display: grid;
  gap: 1px;
  overflow: clip;
  border: var(--deepdoc-rule-size) solid var(--color-edge);
  border-radius: var(--radius-lg);
  background: var(--color-border);
  box-shadow: var(--shadow-card);
}

.deepdoc-checklist > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  background: var(--color-panel);
}

.deepdoc-checklist strong {
  color: var(--color-accent);
}

.deepdoc-checklist span {
  min-width: 0;
  color: var(--color-text-muted);
}

.deepdoc-promo__title {
  display: block;
  margin-bottom: 8px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 520;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .deepdoc-hero {
    padding-top: 52px;
    padding-bottom: 60px;
  }

  .deepdoc-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .deepdoc-hero__actions .btn-primary,
  .deepdoc-hero__actions .btn-secondary {
    width: 100%;
  }

  .deepdoc-hero__note {
    padding: 20px;
  }

  .deepdoc-section {
    padding-top: 58px;
  }

  .deepdoc-section h2 {
    margin-bottom: 28px;
  }

  .deepdoc-section h3 {
    margin-top: 32px;
  }

  .deepdoc-checklist > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 390px) {
  .deepdoc-hero__note {
    padding: 18px;
  }

  .deepdoc-section p,
  .deepdoc-section li {
    font-size: 16px;
  }

  .deepdoc-checklist > div {
    padding: 16px;
  }
}