/* ==========================================================================
   tools.css — Moves the free tools to the homepage look.
   Each tool keeps its own inline styles for the calculator parts. This file
   loads after them and replaces the shared tokens, the hero, the type, and
   the closing panel. Selectors start with `body` to win against inline rules.
   ========================================================================== */

:root {
  /* site-theme.css maps the paper, ink, and blue tokens. These are the ones it does not have. */
  --teal: #3D4BCA; --teal-2: #2B36A3; --cyan: #8DB9FF; --cyan-soft: #E8EBFF; --yellow: transparent;
  --shadow-sm: 0 1px 1px rgba(15, 22, 56, 0.04), 0 12px 32px -12px rgba(43, 54, 163, 0.18);
  --shadow-md: 0 1px 1px rgba(15, 22, 56, 0.04), 0 12px 32px -12px rgba(43, 54, 163, 0.18);
  --shadow-lg: 0 2px 4px rgba(15, 22, 56, 0.06), 0 40px 80px -24px rgba(43, 54, 163, 0.38);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
/* One text face and one display face, the same as the homepage. The tools set a mono face in many inline rules. */
body :is(main, section, .tool-container, .assessment-wrap, .results-wrap) :is(*, *::before, *::after) { font-family: var(--text) !important; }
body :is(main, section, .tool-container) :is(h1, h2, h1 *, h2 *) { font-family: var(--display) !important; font-weight: 600 !important; letter-spacing: -0.028em; }

/* ----- Hero ----- */
body :is(.calc-hero, .tool-hero, .bvb-hero, .assess-hero) { position: relative; padding-block: clamp(56px, 8vw, 120px) clamp(32px, 4vw, 56px); text-align: left; background: radial-gradient(50% 560px at 85% 0%, rgba(141, 185, 255, 0.5), transparent 70%), radial-gradient(40% 480px at 10% 60px, rgba(183, 169, 255, 0.3), transparent 70%), var(--bg) !important; border: 0; }
body :is(.glow-1, .glow-2, .glow-a, .glow-b, .grid-bg, .grid-overlay) { display: none; }
body :is(.calc-hero, .tool-hero, .bvb-hero, .assess-hero) > :is(.calc-container, .tool-container, .bvb-container, .assess-wrap) { max-width: 1336px; padding-inline: clamp(20px, 4vw, 48px); margin-inline: auto; text-align: left; align-items: flex-start; }
body :is(.bvb-eyebrow, .calc-eyebrow, .hero-eyebrow, .tool-eyebrow, .assess-eyebrow), body .tool-hero .eyebrow { display: block; margin: 0 0 20px; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 15px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--blue); }
body :is(.bvb-eyebrow, .calc-eyebrow, .hero-eyebrow, .tool-eyebrow, .assess-eyebrow, .eyebrow) svg { display: none; }
body .hero-eyebrow .badge-free { padding: 0; background: none; color: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; }
body .hero-eyebrow .badge-free::after { content: " ·"; }
body :is(.calc-hero, .tool-hero, .bvb-hero, .assess-hero) h1 { max-width: 20ch; margin: 0; font-size: clamp(44px, 6.6vw, 96px); line-height: 0.96; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
body :is(.calc-hero, .tool-hero, .bvb-hero, .assess-hero) h1 :is(.mute, .accent) { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
body :is(.calc-hero, .tool-hero, .bvb-hero, .assess-hero) h1 :is(.mute, .accent)::after { content: none; }
body :is(.calc-hero, .tool-hero, .bvb-hero, .assess-hero) :is(.lede, .subtitle, .calc-lede, .assess-hero-sub) { max-width: 52ch; margin: 28px 0 0; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.45; color: var(--ink-soft); }
body :is(.calc-hero, .tool-hero, .bvb-hero, .assess-hero) :is(.lede, .subtitle, .calc-lede, .assess-hero-sub) strong { font-weight: 500; color: var(--ink); }
body :is(.calc-hero, .tool-hero) :is(.pill-row, .cloud-tabs) { justify-content: flex-start; margin-inline: 0; }

/* ----- Section headings and input areas ----- */
body :is(.calc-inputs, .bvb-inputs) { background: linear-gradient(var(--bg), #fff); }
body :is(main, section) h2 { color: var(--ink); line-height: 1.05; }

/* ----- Buttons: pills ----- */
body :is(.btn, .btn-cta, .cta-btn, .btn-cta-primary, .btn-cta-secondary, .calc-btn, .start-btn, .btn-generate, .btn-action, .nav-btn, .lead-capture-btn, .te-box__btn) { border-radius: 999px; font-weight: 600; letter-spacing: -0.005em; text-transform: none; }
body :is(.btn-primary, .cta-btn-primary, .btn-cta-primary, .start-btn, .btn-generate, .lead-capture-btn) { background: var(--blue); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(15, 22, 56, 0.2), 0 12px 24px -8px rgba(61, 75, 202, 0.6); }

/* ----- Closing panel: the blue panel from the homepage ----- */
body :is(.cta-band, .calc-cta, .cta-section, .calc-demo-band) { padding: clamp(40px, 6vw, 88px) clamp(20px, 4vw, 48px) clamp(24px, 4vw, 48px); background: none; }
body :is(.cta-band, .calc-cta, .cta-section, .calc-demo-band) > div { max-width: 1480px; padding: 0; }
body :is(.cta-card, .calc-demo-card, .cta-banner) { position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 6vw, 88px) clamp(24px, 6vw, 88px); border: 0; border-radius: clamp(24px, 3vw, 40px); background: radial-gradient(55% 80% at 88% 8%, rgba(141, 185, 255, 0.75), transparent 62%), radial-gradient(50% 70% at 0% 100%, rgba(26, 33, 110, 0.9), transparent 68%), radial-gradient(40% 60% at 55% 110%, rgba(183, 169, 255, 0.55), transparent 65%), #3D4BCA; box-shadow: none; color: #fff; text-align: left; }
body :is(.cta-card, .calc-demo-card, .cta-banner) :is(.cta-glow, .glow)  { display: none; }
body :is(.cta-card, .calc-demo-card, .cta-banner) h2 { max-width: 16ch; margin: 0; font-size: clamp(36px, 5.2vw, 80px); line-height: 0.96; letter-spacing: -0.04em; color: #fff; }
body :is(.cta-card, .calc-demo-card, .cta-banner) p { max-width: 46ch; margin: 24px 0 0; font-size: 19px; line-height: 1.5; color: rgba(255, 255, 255, 0.86); }
body :is(.cta-card, .calc-demo-card, .cta-banner) :is(.btn, .btn-cta, .calc-btn, .btn-cta-primary, .cta-btn) { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 32px; padding: 14px 26px; border: 0; background: #fff; color: var(--blue-2); box-shadow: 0 12px 28px -10px rgba(8, 12, 48, 0.5); font-size: 16px; }
body :is(.cta-card, .calc-demo-card, .cta-banner) :is(.btn-outline, .btn-outline-light, .btn-cta-secondary, .cta-btn-secondary) { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
body :is(.cta-card, .calc-demo-card, .cta-banner) .cta-btns { margin-top: 0; justify-content: flex-start; }
body .cta-stat { border-radius: 20px; background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); border: 0; }
body .cta-stat .stat-n { font-family: var(--display) !important; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
body .cta-stat .stat-l { letter-spacing: 0; text-transform: none; color: rgba(255, 255, 255, 0.8); }

/* ----- Lead card and embed box ----- */
body .lead-capture-card { border: 0; border-radius: 28px; box-shadow: var(--shadow-sm); }
body .lead-capture-card::before { content: none; }
body .lead-capture-title { font-family: var(--display) !important; font-weight: 600; }
body .lead-capture-btn { background: var(--blue); }

/* ----- Footer: a tool's own styles must not darken the dark footer ----- */
body .footer .footer-links, body .footer .footer-links:visited { color: rgba(255, 255, 255, 0.78) !important; }
body .footer .footer-section-label { color: #C9D2F5 !important; }
