/* ============================================================
   product.css — tool and platform pages only

   Loaded by tools.html and the self-contained tool pages. Editorial
   pages never load this: it is where elevation, the deeper surface
   scale, and the product radius live, and those are exactly the
   things the editorial pages are deliberately without.

   Load order on a tool page:
       tokens.css -> base.css -> components.css -> inner.css -> product.css
   On a self-contained tool page:
       tokens.css -> chrome.css -> product.css -> its own inline <style>
   ============================================================ */

/* ── Tool page hero ─────────────────────────────────────────
   Was an inline <style> block in lab.html. Inverted, so it sits on
   --bg-dark and needs the inverse ink scale. */

.tool-hero {
  background-color: var(--bg-dark);
  padding: calc(var(--nav-h) + var(--s-20)) var(--gutter) var(--s-20);
}

.tool-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--s-12) var(--s-16);
  align-items: center;
}

.tool-hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-hero__mark {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
  color: var(--ink-inv-2);
  overflow: visible;
}

.tool-hero__eyebrow {
  margin-bottom: var(--s-5);
}

.tool-hero__title {
  font-family: var(--serif);
  font-size: var(--t-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink-inv);
  max-width: 720px;
  margin-bottom: var(--s-6);
}

.tool-hero__sub {
  font-family: var(--sans);
  font-size: var(--t-lg);
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-inv-2);
  max-width: 58ch;
}

@media (max-width: 900px) {
  .tool-hero__inner {
    grid-template-columns: 1fr;
  }
  .tool-hero__mark {
    max-width: 140px;
  }
}

/* ── Embedded flagship tool ─────────────────────────────── */

.tool-embed {
  margin-top: var(--s-8);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #06060e; /* matches the instrument's own background while it loads */
}

.tool-embed iframe {
  display: block;
  width: 100%;
  height: min(80vh, 760px);
  border: 0;
}

/* ── Changelog ──────────────────────────────────────────── */

.changelog {
  margin-top: var(--s-8);
}

.changelog__entry {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--s-8);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.changelog__entry:last-child {
  border-bottom: 1px solid var(--rule);
}

.changelog__date {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: var(--s-1);
  white-space: nowrap;
}

.changelog__title {
  font-family: var(--serif);
  font-size: var(--t-lg);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: var(--s-2);
}

.changelog__body {
  font-family: var(--sans);
  font-size: var(--t-sm);
  color: var(--ink-2);
  line-height: 1.65;
  max-width: 68ch;
}

.changelog__entry {
    grid-template-columns: 1fr;
    gap: var(--s-2);
  }

/* ── Product surface wrapper ────────────────────────────────
   A SCOPING HOOK ONLY. The self-contained tool pages scope their
   bespoke token blocks to this class rather than :root, where they
   would leak upward and repaint the shared header and footer.

   It deliberately paints nothing. It briefly set a dark background
   and light ink, which is right for market-map but wrong for
   assistant-editor-essentials — a light, paper-coloured tool that
   inherited near-white text onto white cards and became unreadable.
   Each page paints itself inside its own scoped block; the two tools
   genuinely have different surfaces and this class must not assume
   either one. */

.tool-surface {
  /* intentionally empty — see above */
}
