/* Paid-marketing module styles.
 *
 * The design system lives in core/app.css, which loads after this file and
 * owns every shared token and component. What remains here is only what the
 * paid-marketing screens use and the platform does not: the money figure, the
 * waste-attribution finding block, and the dimension term list.
 *
 * Previously this file carried the whole design system — tokens, type scale,
 * shell, forms, tables. All of that moved, which is why the old 11px uppercase
 * mono headings and the 15px body are gone from here too.
 */

/* ── money ──────────────────────────────────────────────────────────── */

/* Wasted spend is the paid module's hero figure. Red is the status "critical"
 * role rather than a series colour — money lost is a state, not a category —
 * and it is always written out beside a label, never colour alone. */
.headline-figure {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--sev-critical);
  font-variant-numeric: proportional-nums;
}

td.money, .money { color: var(--sev-critical); font-variant-numeric: tabular-nums; }

.finding-amount {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--sev-critical);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ── finding block ──────────────────────────────────────────────────── */

.finding {
  display: flex; flex-direction: column; gap: 11px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--lift-1);
}
.finding + .finding { margin-top: 12px; }
.finding--quiet { opacity: .8; }

.finding-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.finding-head h3 { font-size: 1.0625rem; font-weight: 600; line-height: 1.35; }

.recommendation {
  background: var(--surface-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.6;
}

.rule-code {
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-3);
  background: var(--surface-2); border-radius: 5px; padding: 1px 6px;
}

/* ── severity pills (legacy name for the badge) ─────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: 20px;
  font-size: 0.8125rem; font-weight: 550; line-height: 1.5;
  white-space: nowrap; border: 1px solid transparent;
}
.pill--critical { color: var(--sev-critical); background: var(--sev-critical-wash);
                  border-color: color-mix(in srgb, var(--sev-critical) 22%, transparent); }
.pill--high     { color: var(--sev-high);     background: var(--sev-high-wash);
                  border-color: color-mix(in srgb, var(--sev-high) 22%, transparent); }
.pill--medium   { color: var(--sev-medium);   background: var(--sev-medium-wash);
                  border-color: color-mix(in srgb, var(--sev-medium) 22%, transparent); }
.pill--low      { color: var(--sev-low);      background: var(--sev-low-wash);
                  border-color: color-mix(in srgb, var(--sev-low) 25%, transparent); }

/* ── dimension terms ───────────────────────────────────────────────── */

/* The account-level figures that frame a paid report. */
.terms {
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  padding: 14px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem; color: var(--ink-2);
}
.terms b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.detail { display: block; font-size: 0.8125rem; color: var(--ink-3); margin-top: 2px; }

/* ── the paid module's "how it works" grid ─────────────────────────── */

.guide {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 26px; border-top: 1px solid var(--rule);
}
.guide-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.guide h3 { font-size: 1rem; margin-bottom: 7px; }
.guide ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 0.9375rem; }
.guide li { margin-bottom: 5px; }
