/* ──────────────────────────────────────────────────────────────────────────
   tools.css — the per-tool landing pages (/tools/*.html)
   Layered on top of /shared.css; loaded by _layouts/tool.html. Carries the
   Bench design language: warm surfaces, a terminal-style smart-paste panel,
   related-tool cards that lift on hover, and an ink call-to-action that warms
   to the spot color, matching the flagship buttons on bench.html.
   ────────────────────────────────────────────────────────────────────────── */

main {
  flex: 1;
  padding: 3rem 1.5rem;
}

.lede {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  line-height: 1.6;
  letter-spacing: -0.01em;
  margin: 0.75rem 0 1.85rem;
}

/* Smart-paste + how-to-open callouts — accent-tinted panels with a spine.
   The example payload sits in a warm terminal token that reads in both modes. */
.smart-paste,
.how-to-open {
  background: var(--accent-light);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
  margin: 1.25rem 0 0.5rem;
}
.smart-paste p,
.how-to-open p {
  color: var(--body-text);
}
.smart-paste code {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 0.45rem 0.65rem;
  border-radius: 6px;
  margin-top: 0.35rem;
  word-break: break-all;
}

/* Related tools — cards that lift toward you on hover. */
.related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}
.related a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.95rem 1.05rem;
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.related a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -14px rgba(20, 17, 15, 0.28);
}
.related .name {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
}
.related .hook {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 700px) {
  .related {
    grid-template-columns: 1fr;
  }
}

/* Call-to-action band — ink button that warms to the spot color on hover,
   mirroring .btn-primary on the flagship. */
.cta-band {
  background: var(--accent-light);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 1.5rem 1.65rem;
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cta-band p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--body-text);
  max-width: 44ch;
}
.cta-band strong {
  color: var(--ink);
}
.cta-band a {
  background: var(--ink);
  color: var(--bg);
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.cta-band a:hover {
  background: var(--spot);
  color: var(--bg);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .related a,
  .cta-band a {
    transition: none;
  }
  .related a:hover,
  .cta-band a:hover {
    transform: none;
  }
}
