/* ==========================================================================
   doc-l top-diligence.css: Version E of the diligence doc.
   Scope html[data-doc="l"]. Covers the split-out #case-studies section
   (copied from proof.css), the moved logo wall, the offer lede, the
   Book call 2 buttons and the calculator close block.
   ========================================================================== */

/* ---- Section bands: white / grey alternate in the new order ---- */
html[data-doc="l"] section#results.bg-gray-50 { background-color: var(--l-bg) !important; }
html[data-doc="l"] #results { padding-bottom: 80px; }
html[data-doc="l"] #claim { padding-bottom: 24px; }

/* ---- Offer lede under the H2 ---- */
html[data-doc="l"] #pricing .offer-lede {
  max-width: 640px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: var(--l-ink-2);
  text-wrap: balance;
}

/* ---- Book call 2 buttons ---- */
html[data-doc="l"] .dil-cta { display: flex; justify-content: center; margin-top: 32px; }
html[data-doc="l"] .dil-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: var(--l-r-pill);
  background-color: var(--l-blue);
  color: #FFFFFF !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--l-shadow-btn);
  transition: background-color 0.16s ease, transform 0.16s ease;
}
html[data-doc="l"] .dil-btn:hover { background-color: var(--l-blue-hover); }
html[data-doc="l"] .dil-btn:active { transform: translateY(1px); }
html[data-doc="l"] .dil-btn:focus-visible { outline: 2px solid var(--l-blue); outline-offset: 3px; }

/* ---- Share button status line (polite live region) ---- */
html[data-doc="l"] .dil-share-status {
  min-height: 24px;
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: var(--l-ink-2);
}

/* ---- Calculator header row with the Bruin badge ---- */
html[data-doc="l"] #roi-calculator .sc-headrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 0 0 40px;
  text-align: center;
}
html[data-doc="l"] #roi-calculator .sc-headrow .sc-head { margin: 0; max-width: 760px; }
html[data-doc="l"] .dil-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 16px 8px 10px;
  border-radius: var(--l-r-pill);
  background: var(--l-blue-soft);
  border: 1px solid var(--l-blue-line);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--l-blue-hover);
  white-space: nowrap;
}
html[data-doc="l"] .dil-badge svg { flex: none; }
html[data-doc="l"] .dil-badge svg circle { fill: var(--l-blue); stroke: var(--l-blue); }
html[data-doc="l"] .dil-badge svg path { stroke: #FFFFFF; }
html[data-doc="l"] .dil-badge-key { font-weight: 600; }
html[data-doc="l"] .dil-badge-sep { color: var(--l-muted); }
@media (min-width: 1024px) {
  html[data-doc="l"] #roi-calculator .sc-headrow {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    text-align: left;
  }
  html[data-doc="l"] #roi-calculator .sc-headrow .sc-head { text-align: left; }
  html[data-doc="l"] .dil-badge { flex: none; font-size: 15px; padding: 10px 20px 10px 12px; }
}

/* ---- Decision maker card under the calculator ---- */
html[data-doc="l"] #roi-calculator .dil-close {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  max-width: 1040px;
  margin: 56px auto 0;
  padding: 28px 20px;
  text-align: left;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: var(--l-r-card);
  box-shadow: var(--l-shadow-card);
}
html[data-doc="l"] #roi-calculator .dil-close h3 {
  margin: 10px 0 0;
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--l-ink);
  text-wrap: balance;
}
html[data-doc="l"] #roi-calculator .dil-close p:not(.dil-share-status) {
  max-width: 560px;
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--l-ink-2);
}
html[data-doc="l"] #roi-calculator .dil-close .dil-btn {
  width: 100%;
  padding-inline: 20px;
  min-height: 56px;
  padding: 14px 28px;
  color: #FFFFFF !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
html[data-doc="l"] #roi-calculator .dil-close .dil-share-status { margin-top: 12px; }
@media (min-width: 768px) {
  html[data-doc="l"] #roi-calculator .dil-close {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 36px 40px;
  }
  html[data-doc="l"] #roi-calculator .dil-close-action { flex: none; width: 372px; }
}
@media (max-width: 639px) {
  html[data-doc="l"] .dil-btn { width: 100%; }
  html[data-doc="l"] #roi-calculator .dil-close { margin-top: 40px; }
}

/* ---- Accessibility: contrast ---- */
/* Small eyebrows inside the blue offer panel: white on the blue. */
html[data-doc="l"] #pricing .pilot-head .eyebrow,
html[data-doc="l"] #pricing .pilot-side:nth-child(2) .pilot-head .eyebrow { color: #FFFFFF !important; opacity: 1; }
html[data-doc="l"] #pricing .pilot-side:nth-child(2) .pilot-sub { color: #FFFFFF; }

/* ---- Layout shift: metric-matched fallback so the Inter swap does not rewrap the hero ---- */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}
html[data-doc="l"] { --l-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
/* Phones: reserve the settled five-line hero headline so the late font swap cannot push the page down. */
@media (max-width: 479px) {
  html[data-doc="l"] #claim h1 { min-height: 5.5em; }
}
