/* ==========================================================================
   Remotera WP — setup guide
   A reading surface inside the landing's paper-and-ink system.
   ========================================================================== */

.doc-hero {
  position: relative;
  padding: 152px 0 clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.doc-hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -120px;
  width: 460px;
  height: 460px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.doc-hero .kicker {
  margin-bottom: 24px;
}

.doc-title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3rem, 6.4vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.doc-lede {
  max-width: 58ch;
  margin-top: 24px;
  color: var(--ink-70);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.6;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.doc-meta span + span::before {
  content: "·";
  color: var(--rule-strong);
  margin-right: 11px;
}

.doc-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(34px, 4vw, 48px);
  border: 1px solid var(--rule);
  background: var(--rule);
}

.doc-fact {
  padding: 18px 20px;
  background: var(--paper);
}

.doc-fact span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-fact strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.doc-main {
  padding: clamp(40px, 5vw, 64px) 0 clamp(64px, 8vw, 104px);
}

.doc-intro {
  display: block;
  max-width: 900px;
  padding: 20px 0 8px;
  border-top: 1px solid var(--ink);
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.6;
}

.doc-intro strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-step {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(40px, 5.5vw, 64px) 0;
  border-bottom: 1px solid var(--rule);
}

.doc-step--last {
  border-bottom: 0;
  padding-bottom: 24px;
}

.doc-step-num {
  padding-top: 6px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  line-height: 1;
}

.doc-step-body {
  min-width: 0;
}

.doc-step h2 {
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.doc-step p {
  max-width: 66ch;
  margin-bottom: 16px;
  color: var(--ink-70);
  font-size: 16px;
  line-height: 1.65;
}

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

.doc-step strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-step em {
  font-style: italic;
}

.doc-step a:not(.btn) {
  color: var(--ink);
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: text-decoration-color 0.2s var(--ease-out);
}

.doc-step a:not(.btn):hover {
  text-decoration-color: var(--ink);
}

.doc-step p code,
.doc-step li code,
.doc-note code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.doc-list {
  max-width: 66ch;
  margin: 0 0 18px;
}

.doc-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 9px;
  color: var(--ink-70);
  font-size: 15.5px;
  line-height: 1.6;
}

.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1px;
  background: var(--ink-70);
}

.doc-list li:last-child {
  margin-bottom: 0;
}

.doc-code {
  max-width: 760px;
  margin: 22px 0 24px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 249, 245, 0.3) transparent;
}

.doc-code pre {
  margin: 0;
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.8;
}

.doc-code code {
  font-family: inherit;
  white-space: pre;
}

.doc-note {
  max-width: 760px;
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  background: var(--surface);
  color: var(--ink-70);
  font-size: 14px;
  line-height: 1.6;
}

.doc-note strong {
  color: var(--ink);
  font-weight: 600;
}

.doc-note-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-shot {
  max-width: 760px;
  margin: 28px 0 0;
}

.doc-shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--surface);
}

.doc-shot figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.doc-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  max-width: 760px;
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid var(--ink);
}

.doc-cta p {
  flex: 1;
  min-width: 200px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.doc-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--ink);
}

.doc-help h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc-help p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.doc-help a:not(.btn) {
  color: var(--ink);
  text-decoration-color: var(--rule-strong);
  text-underline-offset: 0.2em;
}

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

  .doc-step {
    grid-template-columns: 58px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .doc-hero {
    padding-top: 116px;
  }

  .doc-hero::after {
    width: 300px;
    height: 300px;
    top: -40px;
    right: -120px;
  }

  .doc-title {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .doc-meta {
    font-size: 9px;
  }

  .doc-meta span + span::before {
    display: none;
  }

  .doc-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .doc-step-num {
    padding-top: 0;
  }

  .doc-step h2 {
    font-size: 1.8rem;
  }

  .doc-step p,
  .doc-list li {
    font-size: 15px;
  }

  .doc-code pre {
    font-size: 11.5px;
    padding: 16px;
  }

  .doc-help {
    flex-direction: column;
    align-items: stretch;
  }

  .doc-cta {
    align-items: stretch;
  }

  .doc-cta .btn,
  .doc-help .btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .doc-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}
