/* Tool pages (tools/<tool>/), laid out by assets/partials/tool-page.php.
   Buttons, sections, the shell and .fill all come from site.css; only what is
   particular to these pages lives here. */
body:has(.tool-page) { background: var(--bg); }

/* the faint dot grid these pages draw in place of the shared constellation */
.tool-dots { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(rgb(var(--text-rgb) / 0.13) 1px, transparent 1px);
  background-size: 26px 26px; }

/* ── hero ───────────────────────────────────────────────────────── */
.tool-hero { max-width: var(--shell); margin: 0 auto; padding: clamp(34px,5vw,80px) var(--gutter) var(--space-6);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px,100%), 1fr));
  gap: clamp(26px,4vw,64px); align-items: center; }
.tool-hero__title { margin: 0 0 14px; font-size: clamp(38px,6.5vw,86px); line-height: 0.9;
  letter-spacing: -0.02em; text-transform: uppercase; color: #fff; }
.tool-hero__lede { max-width: 52ch; font-size: clamp(15px,1.5vw,19px); line-height: var(--lh-copy); color: rgb(var(--text-rgb) / 0.8); }
.tool-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--space-5); }

/* ── framed key art and screenshot (both open in the lightbox) ─── */
.tool-frame { margin: 0; border: 1px solid var(--line-strong); background: var(--panel); }
.tool-frame--wide { max-width: 980px; margin: 0 auto; }
.tool-frame__shot { position: relative; display: block; width: 100%; aspect-ratio: var(--ratio, 16 / 9);
  overflow: hidden; padding: 0; border: 0; background: var(--bg); font: inherit; }
.tool-frame__shot--contain .fill { object-fit: contain; }
.tool-frame__shot:is(:hover, :focus-visible) { box-shadow: 0 0 26px rgb(var(--accent-rgb) / 0.25); }
.tool-shot { padding-top: var(--space-6); padding-bottom: var(--space-6); }

/* ── feature and getting-started cards ──────────────────────────── */
.tool-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: clamp(16px,2.4vw,26px); }
.tool-cards--steps { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.tool-card { display: flex; flex-direction: column; gap: 8px; padding: var(--space-5);
  border: 1px solid var(--line-strong); background: var(--panel); transition: border-color var(--dur-fast) ease; }
.tool-card__title { font-size: 1em; text-transform: uppercase; color: #fff; }
.tool-card__text { font-size: 14px; line-height: var(--lh-copy); color: rgb(var(--text-rgb) / 0.72); }
.tool-steps__title { margin: 0 0 var(--space-5); font-size: var(--fs-heading-3); text-transform: uppercase; color: #fff; }
