/* Solutions B pages (owner: builder "sol-b", v2 change set items 9-16).
   /solutions/data-enrichment/, /solutions/reporting/, /solutions/mobile-app/
   Loaded after solutions.css. Every page here has body class .sol-b, which scopes the v2 design pass.
   Product visuals are plain HTML panels with demo data, in the concept 3 vocabulary:
   - dark dashboard panels (black cards, n800 hairlines, lime marks) like the homepage Predict chat (11743:19475)
   - white contact / phone UI like the homepage lead cards (11743:19600) and the Figma phone (11577:41864)
   - report widgets (label, value, delta) follow the concept 3 "Reports" widgets (11743:19833). */

/* =========================================================================
   Design pass: shared solutions components, aligned to the site.css type scale on these pages only
   ========================================================================= */
.sol-b .sol-card__num { font-weight: 500; }                       /* 14/600 -> body-sm-medium */
/* Numbered step cards use the same lime number badge as the list card and the mobile steps */
.sol-b .sol-steps .sol-card__num { width: 48px; height: 48px; margin-bottom: 12px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--black); font-size: 16px; line-height: 1; }
.sol-b .sol-list-card__num { font-size: 16px; font-weight: 500; } /* 16/600 -> body-md-medium */
.sol-b .sol-card p, .sol-b .sb-step p, .sol-b .sb-feature p { color: var(--n400); }
.sol-b .sol-copy .sol-link { margin-top: 8px; }
.sol-b .sol-section .check-list li { font-size: 16px; line-height: 1.5; }
.sol-b .theme-dark .sol-copy .check-list li { color: var(--n200); }

/* Balanced line breaks for two-tone headings (avoids one-word orphans at narrow widths) */
.sol-b :is(h1, h2) .muted, .sol-b :is(h1, h2) .strong, .sol-b .display-md { text-wrap: balance; }
.sol-b .body-lg, .sol-b .sol-card p, .sol-b .sb-step p, .sol-b .sb-feature p { text-wrap: pretty; }

/* Centered section head that can carry a long two-tone line on one row */
.sb-head-wide { max-width: 1040px; }
.sb-after-head { margin-top: 64px; }

/* Frames that hold an HTML panel (instead of an image) */
.sb-frame { padding: 48px 40px; }
.sb-frame--hero { min-height: 560px; }
.sb-frame--phone { align-items: flex-end; padding: 48px 24px 0; min-height: 560px; }

/* Shared figure semantics: the caption is for screen readers; panels hold demo data */
.sb-figure { margin: 0; width: 100%; display: flex; justify-content: center; }

/* Small inline arrow used for deltas */
.sb-up { flex: none; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 6px solid var(--lime); }

/* =========================================================================
   Dark dashboard panel (Reporting)
   ========================================================================= */
.sb-panel {
  width: 100%; max-width: 580px;
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px; border-radius: var(--radius-md);
  background: var(--black); border: 1px solid var(--n700);
  color: var(--white); text-align: left;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .28);
}
.theme-lime .sb-panel { border-color: var(--n800); }
.sb-panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sb-panel__title { font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--white); }
.sb-panel__title small { display: block; font-size: 12px; line-height: 1.5; font-weight: 400; color: var(--n400); }
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--n700); background: var(--n900);
  font-size: 12px; line-height: 1.5; color: var(--n300); white-space: nowrap;
}
.sb-chip .sol-icon { width: 10px; height: 10px; color: var(--n400); }

/* KPI widgets (concept 3 "Reports" widget: label 14 medium, value 18 semibold, delta + arrow) */
.sb-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sb-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-kpi { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px 10px; border-radius: 12px; background: var(--n900); border: 1px solid var(--n800); }
.sb-kpi__label { font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--n400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-kpi__value { font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sb-kpi__delta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.5; color: var(--n300); }

/* Inner tile */
.sb-tile { padding: 16px; border-radius: 12px; background: var(--n900); border: 1px solid var(--n800); }
.sb-tile__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sb-tile__title { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--white); }
.sb-tile__note { font-size: 12px; line-height: 1.5; color: var(--n400); white-space: nowrap; }

/* Horizontal bars (single series, lime, 4px rounded data end, recessive track) */
.sb-hbars { display: flex; flex-direction: column; gap: 10px; }
.sb-hbars li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 52px; align-items: center; gap: 12px; font-size: 13px; line-height: 1.5; }
.sb-hbars__name { color: var(--n300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-hbars__val { text-align: right; color: var(--white); font-weight: 500; font-variant-numeric: tabular-nums; }
.sb-bar { display: block; height: 8px; border-radius: 4px; background: var(--n800); overflow: hidden; }
.sb-bar > span { display: block; width: var(--v); height: 100%; border-radius: 4px; background: var(--lime); }

/* Data table (referral partners, lead sources) */
.sb-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.sb-table th { padding: 0 8px 10px; border-bottom: 1px solid var(--n800); text-align: left; font-size: 12px; font-weight: 500; color: var(--n400); white-space: nowrap; }
.sb-table td { padding: 10px 8px; border-bottom: 1px solid var(--n800); color: var(--n300); vertical-align: middle; white-space: nowrap; }
.sb-table th:first-child, .sb-table td:first-child { padding-left: 0; }
.sb-table th:last-child, .sb-table td:last-child { padding-right: 0; }
.sb-table tbody tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.sb-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.sb-table .is-strong { color: var(--white); font-weight: 500; }
.sb-table__barcell { width: 34%; }
.sb-table__barcell > span { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 10px; }
.sb-table__barcell .is-num { color: var(--white); font-weight: 500; }
.sb-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-person__avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--n800); color: var(--lime); font-size: 11px; line-height: 1; font-weight: 600; }
.sb-person__text { display: flex; flex-direction: column; min-width: 0; }
.sb-person__name { color: var(--white); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.sb-person__org { font-size: 12px; color: var(--n500); overflow: hidden; text-overflow: ellipsis; }
.sb-source { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 500; }
.sb-source::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* Lead journey: one lead from source to close */
.sb-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sb-journey li { position: relative; display: flex; flex-direction: column; gap: 2px; padding-top: 22px; min-width: 0; }
.sb-journey li::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(210, 255, 112, .14); }
.sb-journey li:not(:last-child)::after { content: ""; position: absolute; left: 20px; right: -4px; top: 5px; height: 2px; border-radius: 2px; background: var(--n700); }
.sb-journey__step { font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--white); }
.sb-journey__meta { font-size: 12px; line-height: 1.5; color: var(--n400); }
.sb-journey__meta strong { font-weight: 500; color: var(--lime); }

/* Out-of-the-box report cards: each gets its own mini visual */
.sb-reports { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.sb-report { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-md); background: var(--black); color: var(--white); }
.sb-report__viz { min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 16px; border-radius: 12px; background: var(--black); border: 1px solid var(--n800); }
.sb-report__viz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sb-report__viz-label { font-size: 12px; line-height: 1.5; color: var(--n400); }
.sb-report__viz-value { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--white); }
.sb-report h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
.sb-report p { font-size: 16px; line-height: 1.5; color: var(--n400); }
.sb-spark { display: block; width: 100%; height: 72px; overflow: visible; }
.sb-spark__area { fill: rgba(210, 255, 112, .14); }
.sb-spark__line { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sb-spark__grid { stroke: var(--n800); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sb-report .sb-hbars { gap: 8px; }
.sb-report .sb-hbars li { grid-template-columns: 76px minmax(0, 1fr) 28px; gap: 10px; font-size: 12px; }
.sb-goals { display: flex; flex-direction: column; gap: 10px; }
.sb-goals li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; font-size: 12px; line-height: 1.5; }
.sb-goals__name { color: var(--n300); }
.sb-goals__val { color: var(--white); font-weight: 500; font-variant-numeric: tabular-nums; }
.sb-goals .sb-bar { grid-column: 1 / -1; height: 6px; }

/* =========================================================================
   Contact record before / after enrichment (Data Enrichment). White UI like the homepage lead cards.
   ========================================================================= */
.sb-enrich { width: 100%; max-width: 580px; display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.12fr); align-items: center; gap: 12px; }
.sb-rec { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 12px; background: var(--white); color: var(--black); border: 1px solid var(--n200); text-align: left; }
.sb-rec--before { background: var(--n150); border-color: var(--n300); }
.sb-rec--after { box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.sb-rec__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sb-rec__label { font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--n600); }
.sb-rec__chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--lime-500); border-radius: 999px; background: var(--lime-100); color: var(--green-700); font-size: 12px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.sb-rec__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-rec__head img, .sb-rec__initials { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.sb-rec__initials { display: grid; place-items: center; background: var(--n300); color: var(--n700); font-size: 13px; font-weight: 600; }
.sb-rec__who { display: flex; flex-direction: column; min-width: 0; }
.sb-rec__name { font-size: 14px; line-height: 1.5; font-weight: 500; }
.sb-rec__email { font-size: 12px; line-height: 1.5; color: var(--n600); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-rec__rows { display: flex; flex-direction: column; }
.sb-rec__rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--n200); }
.sb-rec--before .sb-rec__rows > div { border-top-color: var(--n300); }
.sb-rec__rows dt { font-size: 12px; line-height: 1.5; color: var(--n600); white-space: nowrap; }
.sb-rec__rows dd { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--black); white-space: nowrap; }
.sb-rec--before .sb-rec__rows dd { color: var(--n500); font-weight: 400; }
.sb-rec__rows dd .sb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-500); }
.sb-rec__score { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--lime); }
.sb-rec__score span { font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--n800); }
.sb-rec__score strong { font-size: 20px; line-height: 1.4; font-weight: 600; color: var(--black); }
.sb-enrich__arrow { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--black); }
.sb-enrich__arrow .sol-icon { width: 16px; height: 16px; }

/* =========================================================================
   Phone with a Predict opportunity (Mobile App). White UI like the Figma phone mockup.
   ========================================================================= */
.sb-phone-stage { position: relative; display: flex; justify-content: center; width: 100%; max-width: 560px; }
.sb-phone {
  position: relative; flex: none; width: 304px; height: 528px; padding: 10px 10px 0;
  border-radius: 48px 48px 0 0; background: #111;
  box-shadow: inset 0 0 0 1.5px var(--n600), inset 0 0 0 4px #1c1c1c;
}
.sb-phone__screen { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 0; border-radius: 38px 38px 0 0; background: var(--n100); color: var(--black); overflow: hidden; text-align: left; }
.sb-phone__status { display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 12px 0 18px; font-size: 14px; line-height: 1; font-weight: 600; }
.sb-phone__island { width: 86px; height: 26px; border-radius: 999px; background: var(--black); }
.sb-phone__sys { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.sb-phone__sys i { display: block; width: 3px; border-radius: 1px; background: var(--black); }
.sb-phone__sys i:nth-child(1) { height: 4px; } .sb-phone__sys i:nth-child(2) { height: 6px; } .sb-phone__sys i:nth-child(3) { height: 8px; } .sb-phone__sys i:nth-child(4) { height: 11px; }
.sb-phone__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 0; }
.sb-phone__title { font-size: 18px; line-height: 1.4; font-weight: 600; }
.sb-phone__sub { font-size: 12px; line-height: 1.5; color: var(--n600); }
.sb-phone__badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--black); color: var(--lime); font-size: 12px; font-weight: 500; white-space: nowrap; }

.sb-opp { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--n200); }
.sb-opp--hot { background: var(--lime-50); border-color: var(--lime-500); box-shadow: 0 6px 20px rgba(0, 0, 0, .08); }
.sb-opp__head { display: flex; align-items: center; gap: 10px; }
.sb-opp__head img { flex: none; width: 36px; height: 36px; border-radius: 50%; }
.sb-opp__who { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.sb-opp__name { font-size: 14px; line-height: 1.4; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-opp__meta { font-size: 12px; line-height: 1.5; color: var(--n600); }
.sb-score { flex: none; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--lime-500); border-radius: 999px; background: var(--lime-100); color: var(--green-700); font-size: 12px; line-height: 1.5; font-weight: 500; white-space: nowrap; }
.sb-opp__rows { display: flex; flex-direction: column; gap: 6px; }
.sb-opp__rows > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; }
.sb-opp__rows dt { font-size: 12px; line-height: 1.5; color: var(--n600); }
.sb-opp__rows dd { margin: 0; font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--black); }
.sb-opp__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sb-opp__btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--n300); background: var(--white); font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--black); }
.sb-opp__btn--call { background: var(--lime); border-color: var(--lime); }
.sb-opp__btn .sol-icon { width: 14px; height: 14px; }
.sb-opp--compact .sb-opp__signal { font-size: 12px; line-height: 1.5; color: var(--n700); }
.sb-opp--compact .sb-opp__signal strong { font-weight: 500; color: var(--black); }

/* Floating notification (mirrors the floating message card on the Figma phone) */
.sb-toast {
  position: absolute; top: 26px; left: calc(50% + 28px); z-index: 1;
  width: 236px; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px;
  border-radius: 12px; background: var(--white); color: var(--black); text-align: left;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.sb-toast__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 1.5; color: var(--n600); }
.sb-toast__top span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--black); }
.sb-toast__top span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-500); }
.sb-toast p { font-size: 13px; line-height: 1.5; color: var(--n800); }

/* Numbered steps beside a visual */
.sb-steps { display: flex; flex-direction: column; }
.sb-step { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--n800); }
.sb-step:first-child { padding-top: 0; border-top: 0; }
.sb-step:last-child { padding-bottom: 0; }
.sb-step__num { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--black); font-size: 16px; line-height: 1; font-weight: 500; }
.sb-step h3 { font-size: 20px; line-height: 1.4; font-weight: 600; margin-bottom: 6px; }
.sb-step p { font-size: 16px; line-height: 1.5; }
.sb-steps + .sol-link { margin-top: 32px; }

/* Feature tiles (2 x 2) beside copy */
.sb-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sb-feature { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius-md); background: var(--black); color: var(--white); }
.sb-feature .sol-card__icon { margin-bottom: 8px; }
.sb-feature h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
.sb-feature p { font-size: 16px; line-height: 1.5; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1280px) {
  .sb-hbars li { grid-template-columns: 96px minmax(0, 1fr) 48px; }
  .sb-reports { gap: 16px; }
  .sb-report { padding: 20px; }
}
@media (max-width: 1024px) {
  .sb-frame--hero { min-height: 0; }
  .sb-frame--phone { min-height: 0; }
  .sb-after-head { margin-top: 48px; }
}
@media (max-width: 860px) {
  .sb-reports { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}
@media (max-width: 768px) {
  .sol-b .sol-list-card__text { font-size: 18px; }
  .sb-frame { padding: 24px 16px; }
  .sb-frame--phone { padding: 32px 12px 0; }
  .sb-after-head { margin-top: 40px; }
  .sb-reports { margin-top: 40px; }
  .sb-step { gap: 16px; padding: 24px 0; }
  .sb-features { grid-template-columns: 1fr; gap: 12px; }
  .sb-feature { padding: 20px; }
}
@media (max-width: 640px) {
  .sb-panel { padding: 16px; gap: 12px; }
  .sb-kpis, .sb-kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-kpis--3 .sb-kpi:last-child { grid-column: 1 / -1; }
  .sb-hbars li { grid-template-columns: 84px minmax(0, 1fr) 44px; gap: 8px; font-size: 12px; }
  .sb-tile { padding: 12px; }
  .sb-table { font-size: 12px; }
  .sb-table th, .sb-table td { padding-inline: 5px; }
  .sb-table th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
  .sb-source::before { display: none; }
  .sb-table .sb-hide-sm, .sb-table__barcell .sb-bar, .sb-person__org { display: none; }
  .sb-table__barcell { width: auto; }
  .sb-table__barcell > span { display: block; }
  .sb-person__avatar { display: none; }
  .sb-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .sb-journey li:nth-child(2)::after { display: none; }
  .sb-enrich { grid-template-columns: 1fr; gap: 10px; justify-items: center; }
  .sb-enrich > .sb-rec { width: 100%; }
  .sb-enrich__arrow { transform: rotate(90deg); }
  .sb-frame--phone { padding: 32px 8px 0; }
  .sb-phone { width: 300px; height: 500px; border-radius: 44px 44px 0 0; }
  .sb-opp__rows > div { grid-template-columns: 76px minmax(0, 1fr); }
  .sb-phone__screen { border-radius: 35px 35px 0 0; }
  .sb-toast { display: none; }
}
@media (max-width: 400px) {
  .sb-frame { padding: 20px 10px; }
  .sb-panel { padding: 12px; }
  .sb-table th, .sb-table td { padding-inline: 4px; }
}
