/* ── Tools page layout ── */
.tools-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 48px 48px;
}
.tools-header h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--text);
}
.tools-header p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Tool sections ── */
.tool-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px;
  border-top: 1px solid var(--border);
}
.tool-section-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.tool-section-label::before { content: '/'; opacity: 0.5; }
.tool-section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--text);
}
.tool-section-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ── Step cards ── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  align-items: start;
}
.step-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 48px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-faint);
}
.step-content {
  border: 1px solid var(--border);
  padding: 24px;
  background: var(--surface);
}
.step-title {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 10px;
}
.step-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}
.step-desc:last-child { margin-bottom: 0; }

/* ── Code blocks ── */
.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  line-height: 1.7;
  overflow-x: auto;
  margin-top: 12px;
  position: relative;
}
.code-block .code-label {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}

/* ── Link styles ── */
.tool-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--text-faint);
  transition: text-decoration-color 0.15s;
}
.tool-link:hover { text-decoration-color: var(--text); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .tools-header { padding: 100px 20px 32px; }
  .tool-section { padding: 32px 20px; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .step-number { font-size: 32px; }
}
