/* ph-tool.css — the bridge that dresses the live free-tool shell (tool-shell.css, untouched)
   in the ProduceHits Next design. Loaded AFTER tool-shell.css and ph-chrome.css on tool pages only.
   Rules: re-point the shell's tokens to warm ink + Satoshi/Zodiak, retire its own header/footer
   (our chrome replaces them), and never rename or restructure a class the tools' JS depends on. */

/* Token re-point. html:root out-ranks the shell's :root and its @supports block. */
/* @tooltokens:start */
html:root {
  --bg: #ffffff;
  --bg-2: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --surface-3: #e2e7f0;
  --text: #0b0f17;
  --text-muted: rgba(11,15,23,.70);
  --text-faint: rgba(11,15,23,.60);
  --line: rgba(11,15,23,.08);
  --line-strong: rgba(11,15,23,.15);
  --accent-contrast: #0b0f17;
  --accent-dim: color-mix(in oklab, var(--accent) 80%, #000);
  --accent-glow: color-mix(in oklab, var(--accent) 30%, transparent);
  --shadow: rgba(0,0,0,.55);
  --scrim: color-mix(in oklab, #ffffff 88%, transparent);
  --font-display: "Inter Tight","Inter Tight Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans","PingFang SC",Helvetica,Arial,sans-serif;
  --font: "Inter Tight","Inter Tight Fallback",-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans","PingFang SC","Microsoft YaHei",Helvetica,Arial,sans-serif;
  --maxw: 1240px;
  --radius: calc(12px - 2px);
  --radius-sm: 8px;
  --radius-lg: 12px;
}
/* @tooltokens:end */

/* The shell paints a 3px accent bar on <body>; our header already carries the 2px doorway strip. */
body { border-top: 0; display: block; }

/* Retired shell chrome (kept in CSS for safety; our pages don't emit it). */
.tool-header, .tool-footer { display: none; }

/* Page frame */
.tool-main { max-width: 1240px; padding: 56px clamp(16px,4vw,40px) 96px; }
.tool-hero { max-width: none; border-bottom: 1px solid var(--line); padding-bottom: 32px; margin-bottom: 32px; }
.tool-hero .crumbs { margin-bottom: 20px; }
.tool-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(36px,4.6vw,60px); line-height: 1.04; letter-spacing: -.025em; max-width: 20ch; margin: 14px 0 18px; }
.tool-hero .lede { font-size: clamp(17px,1.5vw,19px); color: var(--text-muted); max-width: 60ch; }
.tool-eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--text-faint); }
.tool-eyebrow::before { width: 10px; height: 10px; border-radius: 2px; }
.privacy-line { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-faint); margin-top: 18px; }
.privacy-line svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
/* Pass 25: accent-coloured icons and readouts on the light tool shell keep their hue; only their lightness is
   capped (as the product marks are, --ink-l) so they reach 3:1. The drop zone's small print steps up to muted ink. */
@supports (color: oklch(from red l c h)) {
  .dropzone .dz-icon, .big-num.accent, .count-num.accent-1 { color: oklch(from var(--accent) min(l, var(--ink-l, .6)) c h); }
}
.dropzone .dz-sub, .dropzone-sm span { color: var(--text-muted); }
/* An empty sample pad is still a live control (click to load). It reads as an open slot (dashed edge, no fill)
   instead of being faded to 35%, which left its key and "empty" label at 1.5:1. Key letters step up to muted ink. */
.pad.empty { opacity: 1; background: transparent; border-style: dashed; }
.pad .pad-key { color: var(--text-muted); }

/* Display headings inside reused prose follow the house type. */
.tool-main .prose h2, .tool-main .article-body h2, .tool-main .related > h2 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.015em; }
.tool-main h2, .tool-main h3 { font-family: var(--font); }
.tool-main .prose h2, .tool-main .article-body h2 { font-family: var(--font-display); }

/* Our bands after the tool */
.tooldo { margin-top: 56px; }
.tooldo .group__h { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tooldo .group__h h2 { font: 600 20px var(--font); margin: 0; }
.tooldo .group__h .mono { margin-left: auto; }
.tooldo .cta-band h2 { font-family: var(--font-display); font-weight: 400; }

/* Chrome links must not inherit the shell's accent link colour or underline. */
.hdr a, .ftr a, .subnav a, .mega a, .tooldo a.lrow, .tooldo .cbtn { text-decoration: none; }
.hdr a:hover, .ftr a:hover, .subnav a:hover, .mega a:hover, .tooldo a:hover { text-decoration: none; }
.ftr a { color: var(--text-muted); }
.tooldo a.lrow, .hdr a, .mega a { color: var(--text); }

@media (max-width: 640px) {
  .tool-main { padding-top: 32px; }
}
.tool-hero .crumbs a { color: var(--text-faint); text-decoration: none; }
.tool-hero .crumbs a:hover { color: var(--text); }

/* Pass 26: text links in the guide and notes read in ink and carry the accent in their underline, like every other
   page (a light accent such as BPM & Key's yellow was 2.16:1 as link text). */
.tool-main :is(.article-body, .article-cta, .prose) a:not(.lrow, .cbtn) { color: var(--text); text-decoration: underline;
  text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
/* Pass 27: the shell's primary button darkened its accent on hover, which took its dark label under 4.5:1 (4.14:1 on
   SongChoreo's counter). It now lifts toward white instead, so the label gains contrast as the button responds. */
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 86%, #fff); border-color: color-mix(in oklab, var(--accent) 86%, #fff); }
