/* Lendware Predict page (/lendware-predict/). Owner: predict-v2 builder (was who-predict).
   Loads after who.css (chips, split, panel, quote). Structure from Figma Oct 7 Predict 11577:47759, restyled to concept 3.
   v2: glitch-free hero entrance, seamless marquee, one "signals -> readiness" chart (.pv), 4-step How it works. */

/* ---------- Hero + chat demo ---------- */
.pr-hero { padding-block: 96px; }   /* review v2: was 88/104; same as .sol-hero / .who-hero */
/* review v2: 1280 content column, split exactly like the homepage Predict section (home-cowork: copy 456 | 48 | 776 visual
   with 32px padding = 712 chat), so the lead table keeps its full "Recommended Action" column. */
.pr-hero__grid { display: grid; grid-template-columns: minmax(0, 456fr) minmax(0, 776fr); gap: 48px; align-items: center; }
.pr-hero .who-body { color: var(--white); }
.pr-hero h1 { text-wrap: balance; }
.page-predict .section-head .who-body { text-wrap: pretty; }

.pr-chat { padding: 32px; border-radius: var(--radius-md); background: var(--black); }   /* review v2: 16px like home-cowork__visual (was 8px) */
.pr-chat__card { display: flex; flex-direction: column; gap: 12px; padding: 18px 17px 20px; border: 1px solid var(--white); border-radius: var(--radius-md); overflow: hidden;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .14) 0%, rgba(241, 241, 241, .03) 60%, rgba(208, 208, 208, 0) 100%), rgba(26, 26, 26, .6); }
.pr-chat__bubble { align-self: flex-start; max-width: 100%; padding: 8px 16px; border-radius: 24px; background: var(--black); color: var(--n300); font-size: 14px; line-height: 1.5; }
.pr-chat__bubble--user { align-self: flex-end; background: var(--n600); color: var(--white); }
.pr-chat__bubble--ask { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding: 8px 16px 13px; border-radius: var(--radius-md); }
.pr-chat__btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--lime); color: var(--black); font-size: 14px; font-weight: 500; }
.pr-chat__btn img { width: 14px; height: 14px; }

/* Mockup type follows the homepage chat (concept 3 11743:19475), which is drawn at UI scale. */
.pr-chat__table { padding: 0 16px; border-radius: var(--radius-md); background: var(--black); }
.pr-chat__row { display: grid; grid-template-columns: 136px 84px minmax(0, 172px) minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--n700); font-size: 13px; line-height: 1.5; }
.pr-chat__row:last-child { border-bottom: 0; }
.pr-chat__row--head { padding: 12px 0; font-size: 11.25px; font-weight: 600; color: var(--n400); }
.pr-chat__who { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--white); font-weight: 500; white-space: nowrap; }
.pr-chat__who img { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: #b1d1e9; object-fit: cover; }
.pr-chat__chip { display: inline-flex; align-items: center; height: 20px; padding: 0 9px; border: 1px solid var(--lime); border-radius: 999px; color: var(--lime); font-size: 12px; white-space: nowrap; }
.pr-chat__signal { color: var(--n400); }
.pr-chat__action { color: var(--lime-200); }   /* review v2: wraps like the signal column; the ellipsis cut off 3 of 5 actions at the 1280 column */

.pr-chat__input { display: flex; align-items: center; gap: 16px; height: 58px; margin-top: 8px; padding: 0 11px; border: 1px solid var(--white); border-radius: var(--radius-md); }
.pr-chat__placeholder { flex: 1 1 auto; color: var(--n500); font-size: 14px; }
.pr-chat__icons { display: flex; gap: 8px; }
.pr-chat__ibtn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.pr-chat__ibtn--line { border-color: var(--n500); }
.pr-chat__ibtn--send { border-color: var(--lime); }

/* Entrance (v2 #25 fix). v1 painted the chat, then JS hid it and replayed it: a visible flash on every load.
   Now the stagger is a pure CSS animation that is already applied on first paint (fill-mode both), so nothing visible is
   ever hidden. predict.js only adds .is-held while the chat is still below the fold (phones) and removes it on scroll-in,
   which restarts the animation out of sight. Reduced motion: site.css turns animations off and everything shows. */
@keyframes pr-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pr-chat [data-step] { animation: pr-step-in .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.2s + var(--i, 0) * .11s); }
.pr-chat.is-held [data-step] { animation: none; opacity: 0; }

/* ---------- Signals band (lime): data points marquee + review ---------- */
.pr-signals { display: flex; flex-direction: column; align-items: center; gap: 48px; }
.pr-signals .display-md { text-align: center; max-width: 880px; }
.pr-marquee { width: 100%; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
/* v2 #25 fix: the loop distance must equal one copy plus its trailing gap. v1 put the 12px gap between the two copies on
   the track, so -50% landed 6px short and the chips jumped at every loop. Each copy now carries its own trailing space. */
.pr-marquee__track { display: flex; width: max-content; animation: pr-marquee 48s linear infinite; will-change: transform; backface-visibility: hidden; }
.pr-marquee__track--rev { animation-direction: reverse; animation-duration: 56s; }
.pr-marquee:hover .pr-marquee__track { animation-play-state: paused; }
.pr-marquee ul { display: flex; gap: 12px; padding-right: 12px; }
.pr-signal { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 14px; white-space: nowrap; }
.pr-signal b { font-weight: 500; color: var(--lime); }
.pr-signal--crm { background: var(--lime-50); color: var(--black); border: 1px solid var(--lime-500); }
.pr-signal--crm b { color: var(--green-700); }
@keyframes pr-marquee { to { transform: translateX(-50%); } }

/* ---------- Why Predict: signals -> readiness chart (v2 #26) ----------
   Lanes: A signals on the contact, B Predict readiness score (line), C traditional trigger. Columns = moments in time.
   Each step sets --v (0..1, demo readiness level) and --i (order). The SVG line uses the same column centres
   (viewBox 800 wide, 8 steps -> centres at 50 + 100i) and the same 0..1 scale as the HTML dots. */
.pv { --la: 92px; --lb: 248px; --lc: 76px; --hot: .7;
  --pv-a: #151515; --pv-b: #12150d; --pv-c: #151515;
  margin: 0; padding: 40px; border-radius: var(--radius-md); background: var(--black); border: 1px solid var(--n800); }   /* review v2: 16px system radius (was 24) */

.pv__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; }
.pv__contact { display: flex; align-items: center; gap: 12px; }
.pv__contact img { width: 40px; height: 40px; border-radius: 50%; background: #b1d1e9; object-fit: cover; }
.pv__contact b { display: block; font-size: 16px; line-height: 1.5; font-weight: 600; }
.pv__contact small { display: block; font-size: 14px; line-height: 1.5; color: var(--n400); }
.pv__legend { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; line-height: 1.5; color: var(--n300); }
.pv__legend-item { display: inline-flex; align-items: center; gap: 10px; }
.pv__legend-item::before { content: ""; width: 28px; border-top: 3px solid var(--lime); border-radius: 2px; }
.pv__legend-item--trad::before { border-top: 2px dashed var(--n500); border-radius: 0; }

.pv__body { position: relative; display: grid; grid-template-columns: 152px minmax(0, 1fr); }
.pv__body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--la) + var(--lb) + var(--lc)); border-radius: 12px;
  background: linear-gradient(to bottom,
    var(--pv-a) 0, var(--pv-a) calc(var(--la) - 1px), var(--n800) calc(var(--la) - 1px), var(--n800) var(--la),
    var(--pv-b) var(--la), var(--pv-b) calc(var(--la) + var(--lb)), var(--n800) calc(var(--la) + var(--lb)), var(--n800) calc(var(--la) + var(--lb) + 1px),
    var(--pv-c) calc(var(--la) + var(--lb) + 1px), var(--pv-c) 100%); }
.pv__lanes { position: relative; display: grid; grid-template-rows: var(--la) var(--lb) var(--lc); }
.pv__lanes li { display: flex; align-items: center; padding: 0 16px 0 24px; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--n300); }
.pv__lanes li:nth-child(2) { color: var(--lime-100); }
.pv__lanes li:nth-child(3) { color: var(--n400); }

.pv__plot { position: relative; z-index: 1; height: calc(var(--la) + var(--lb) + var(--lc)); }
.pv__steps { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.pv__step { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--la) var(--lb) var(--lc); min-width: 0; }
.pv__step > * { min-width: 0; }

/* Lane A: signal chips, with a dashed lead line down to the score they move */
.pv__sig { position: relative; display: flex; align-items: flex-end; justify-content: center; padding: 0 6px 16px; }
.pv__sig::after { content: ""; position: absolute; left: 50%; bottom: 0; height: 16px; border-left: 1px dashed rgba(210, 255, 112, .4); }
.pv__sig:empty::after { display: none; }
.pv__chip { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 32px; padding: 5px 10px; border-radius: 10px; border: 1px solid rgba(210, 255, 112, .4); background: rgba(210, 255, 112, .08); color: var(--lime-100); font-size: 13px; line-height: 1.3; font-weight: 500; text-align: center; }
.pv__step--start .pv__chip { border-color: var(--n600); background: var(--n800); color: var(--n300); }
.pv__step--start .pv__sig::after, .pv__step--start .pv__meter::before { border-color: var(--n600); }

/* Lane B: readiness score */
.pv__meter { position: relative; }
.pv__meter::before { content: ""; position: absolute; left: 50%; top: 0; height: max(0px, calc((1 - var(--v)) * var(--lb) - 9px)); border-left: 1px dashed rgba(210, 255, 112, .4); }
.pv__step--trig .pv__meter::before { display: none; }
.pv__dot { position: absolute; z-index: 3; left: 50%; bottom: calc(var(--v) * 100%); width: 12px; height: 12px; border-radius: 50%; transform: translate(-50%, 50%); background: var(--black); border: 2px solid var(--lime-200); }
.pv__step.is-hot .pv__dot { background: var(--lime); border-color: var(--lime); }
.pv__step--flag .pv__dot { width: 20px; height: 20px; box-shadow: 0 0 0 6px rgba(210, 255, 112, .2), 0 0 28px rgba(210, 255, 112, .55); }
.pv__flag { position: absolute; z-index: 4; right: calc(50% - 14px); bottom: calc(var(--lc) + var(--v) * var(--lb) + 24px); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--lime); color: var(--black); font-size: 14px; line-height: 1; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.pv__flag svg { flex: 0 0 auto; width: 16px; height: 16px; }

.pv__line { position: absolute; z-index: 2; left: 0; top: var(--la); width: 100%; height: var(--lb); overflow: visible; pointer-events: none; }
.pv__area { fill: url(#pv-fill); }
.pv__stroke { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.pv__threshold { position: absolute; z-index: 1; left: 0; right: 0; top: calc(var(--la) + (1 - var(--hot)) * var(--lb)); border-top: 1px dashed rgba(210, 255, 112, .45); }
.pv__threshold span { position: absolute; left: 12px; bottom: 6px; font-size: 13px; line-height: 1; font-weight: 500; color: var(--lime-200); white-space: nowrap; }

/* Head start: from the moment Predict flags the contact to the moment the traditional trigger fires */
.pv__window { position: absolute; z-index: 0; top: var(--la); height: calc(var(--lb) + var(--lc));
  left: calc((var(--flag) + .5) / var(--n) * 100% - 1px); width: calc((var(--trig) - var(--flag)) / var(--n) * 100%);
  border-left: 2px solid var(--lime); background: linear-gradient(to bottom, rgba(210, 255, 112, .1), rgba(210, 255, 112, .03)); }
.pv__window::after { content: ""; position: absolute; top: 0; bottom: 0; right: -1px; border-right: 2px dashed var(--n500); }

/* Lane C: traditional trigger. No new intel until it fires late. */
.pv__nointel { position: absolute; z-index: 1; top: calc(var(--la) + var(--lb) + var(--lc) / 2); left: calc(.5 / var(--n) * 100%); width: calc(var(--trig) / var(--n) * 100%); border-top: 2px dotted var(--n600); }
.pv__nointel::before { content: ""; position: absolute; left: -5px; top: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--n500); }
.pv__nointel span { position: absolute; left: 30%; top: 0; transform: translate(-50%, -50%); padding: 0 12px; background: var(--pv-c); font-size: 13px; line-height: 1.5; color: var(--n400); white-space: nowrap; }
.pv__evt { position: relative; display: flex; align-items: center; justify-content: center; }
.pv__trigger { position: relative; z-index: 4; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--n500); background: var(--n800); color: var(--white); font-size: 14px; line-height: 1; font-weight: 500; white-space: nowrap; }
.pv__trigger svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--n300); }
.pv__trigger-long { display: none; }

.pv__foot { position: relative; grid-column: 2; height: 52px; }
.pv__headstart { position: absolute; top: 0; height: 14px; left: calc((var(--flag) + .5) / var(--n) * 100% - 1px); width: calc((var(--trig) - var(--flag)) / var(--n) * 100% + 1px);
  border: 2px solid var(--lime); border-top: 0; border-radius: 0 0 8px 8px; }
.pv__headstart span { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--lime); white-space: nowrap; }

/* Reading key */
.pv__key { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--n800); }
.pv__key li { display: flex; gap: 14px; font-size: 14px; line-height: 1.5; color: var(--n400); }
.pv__key b { display: block; margin-bottom: 4px; font-size: 16px; line-height: 1.5; font-weight: 600; color: var(--white); }
.pv__key-mark { flex: 0 0 28px; height: 18px; margin-top: 3px; position: relative; }
.pv__key-mark--sig::before { content: ""; position: absolute; inset: 1px 2px; border-radius: 5px; border: 1px solid rgba(210, 255, 112, .5); background: rgba(210, 255, 112, .1); }
.pv__key-mark--predict::before { content: ""; position: absolute; left: 7px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(210, 255, 112, .2); }
.pv__key-mark--trad::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; border-top: 2px dashed var(--n500); }

/* Scroll-in sequence. predict.js adds .is-armed only while the chart is still off screen, then .is-in on scroll-in. */
.pv.is-armed .pv__line { clip-path: inset(0 100% 0 0); }
.pv.is-armed .pv__chip, .pv.is-armed .pv__dot, .pv.is-armed .pv__sig::after, .pv.is-armed .pv__meter::before { opacity: 0; }
.pv.is-armed .pv__chip { transform: translateY(6px); }
.pv.is-armed .pv__flag, .pv.is-armed .pv__window, .pv.is-armed .pv__headstart, .pv.is-armed .pv__trigger, .pv.is-armed .pv__nointel, .pv.is-armed .pv__threshold { opacity: 0; }
.pv.is-armed .pv__flag { transform: translateY(6px); }
.pv.is-armed .pv__meter::after { transform: scaleX(0); }
.pv.is-armed.is-in .pv__line { clip-path: inset(0 0 0 0); transition: clip-path 1.6s linear .15s; }
.pv.is-armed.is-in .pv__chip, .pv.is-armed.is-in .pv__dot, .pv.is-armed.is-in .pv__sig::after, .pv.is-armed.is-in .pv__meter::before { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; transition-delay: calc(.2s + var(--i) * .2s); }
.pv.is-armed.is-in .pv__dot { transform: translate(-50%, 50%); }
.pv.is-armed.is-in .pv__meter::after { transform: none; transition: transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(.1s + var(--i) * .12s); }
.pv.is-armed.is-in .pv__threshold, .pv.is-armed.is-in .pv__nointel { opacity: 1; transition: opacity .5s ease .1s; }
.pv.is-armed.is-in .pv__flag { opacity: 1; transform: none; transition: opacity .4s ease 1.05s, transform .4s ease 1.05s; }
.pv.is-armed.is-in .pv__window, .pv.is-armed.is-in .pv__headstart { opacity: 1; transition: opacity .6s ease 1.15s; }
.pv.is-armed.is-in .pv__trigger { opacity: 1; transition: opacity .4s ease 1.75s; }

/* ---------- How it works: four steps (v2 #27) ---------- */
.pr-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pr-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: var(--radius-md); background: var(--black); color: var(--white); }
.pr-step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.pr-step__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--n800); }
.pr-step__icon img { width: 20px; height: 20px; }
.pr-step__num { font-size: 14px; line-height: 1.5; font-weight: 500; color: var(--lime); }
.pr-step h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
.pr-step p { font-size: 16px; line-height: 1.5; color: var(--n300); }
.pr-step:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 40px; right: -21px; width: 18px; height: 18px; transform: translateY(-50%);
  background: url("/assets/icons/arrow-right.svg") center / 18px no-repeat; }

/* ---------- Action + Models cards (same component, themed by section) ---------- */
.pr-cards { display: flex; flex-direction: column; gap: 16px; }
.pr-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 24px; border-radius: var(--radius-md); }
.pr-card__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.pr-card__icon img { width: 20px; height: 20px; }
.pr-card h3 { font-size: 20px; line-height: 1.4; font-weight: 600; }
.pr-card p { font-size: 16px; line-height: 1.5; }
.theme-dark .pr-card { background: var(--n800); border: 1px solid var(--n600); }
.theme-dark .pr-card__icon { background: var(--n900); }
.theme-dark .pr-card p { color: var(--n300); }
.theme-lime .pr-card { background: var(--lime-50); border: 1px solid var(--lime-500); color: var(--black); }
.theme-lime .pr-card__icon { background: var(--black); }
.theme-lime .pr-card p { color: var(--n700); }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .pr-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .pr-hero .page-hero__copy { max-width: 720px; }
  .pr-chat { max-width: 828px; }
  .pr-steps { gap: 20px; }
  .pr-step { padding: 24px; }
  .pr-step:not(:last-child)::after { right: -19px; top: 36px; width: 16px; height: 16px; background-size: 16px; }
}
@media (max-width: 1400px) {
  .pv__step--trig .pv__evt { justify-content: flex-end; padding-right: 4px; }
}
/* Tablet: the legend names the lanes, so the label column goes and the chart gets the full width */
@media (max-width: 1180px) {
  .pv { padding: 32px; }
  .pv__body { grid-template-columns: minmax(0, 1fr); }
  .pv__lanes { display: none; }
  .pv__foot { grid-column: 1; }
}
@media (max-width: 1024px) {
  .pr-hero { padding-block: 72px; }   /* review v2: same tablet hero padding as .sol-hero / .who-hero */
  .pr-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-step:not(:last-child)::after { display: none; }
  .pv__key { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
/* Phone / small tablet: the chart turns into a vertical timeline. Time runs down, the score is a bar per moment. */
@media (max-width: 860px) {
  .pv { padding: 24px 20px; border-radius: var(--radius-md); }
  .pv__head { margin-bottom: 20px; }
  .pv__body::before, .pv__line, .pv__window, .pv__nointel { display: none; }
  .pv__plot { height: auto; padding-top: 28px; }
  .pv__steps { position: relative; display: flex; flex-direction: column; }
  .pv__step { grid-template-rows: none; grid-template-columns: minmax(0, 44%) minmax(0, 1fr); align-items: center; padding: 10px 0; border-top: 1px solid var(--n800); }
  .pv__step:first-child { border-top: 0; }
  .pv__sig { justify-content: flex-start; padding: 0; }
  .pv__sig::after, .pv__meter::before { display: none; }
  .pv__chip { text-align: left; justify-content: flex-start; }
  .pv__meter { height: 10px; margin-left: 12px; border-radius: 999px; background: var(--n800); }
  .pv__meter::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--v) * 100%); border-radius: inherit; background: rgba(210, 255, 112, .45); transform-origin: left center; }
  .pv__step.is-hot .pv__meter::after { background: var(--lime); }
  .pv__dot { left: calc(var(--v) * 100%); bottom: 50%; width: 14px; height: 14px; }
  .pv__step--flag .pv__dot { width: 18px; height: 18px; box-shadow: 0 0 0 5px rgba(210, 255, 112, .2), 0 0 20px rgba(210, 255, 112, .5); }
  .pv__evt { display: none; }
  /* Head start rows: from the flag to the trigger */
  .pv__step.is-hot { background: rgba(210, 255, 112, .06); box-shadow: inset 2px 0 0 var(--lime); padding-left: 12px; padding-right: 12px; margin-inline: -12px; border-top-color: rgba(210, 255, 112, .12); }
  .pv__step--flag { padding-bottom: 60px; }
  .pv__flag { right: auto; left: 12px; bottom: 14px; }
  .pv__step--trig { grid-template-columns: minmax(0, 1fr); padding-block: 14px; }
  .pv__step--trig .pv__sig, .pv__step--trig .pv__meter { display: none; }
  .pv__step--trig .pv__evt { display: flex; justify-content: flex-start; }
  .pv__trigger-short { display: none; }
  .pv__trigger-long { display: inline; }
  /* Hot-lead level becomes a vertical dashed line through the score bars */
  .pv__threshold { top: 28px; bottom: 0; right: auto; left: calc(44% + 12px + var(--hot) * (56% - 12px)); border-top: 0; border-left: 1px dashed rgba(210, 255, 112, .55); }
  .pv__threshold span { left: 0; bottom: auto; top: -22px; transform: translateX(-50%); }
  .pv__foot { height: auto; margin-top: 14px; }
  .pv__headstart { position: static; display: flex; height: auto; width: auto; border: 0; }
  .pv__headstart span { position: static; transform: none; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; }
  .pv__headstart span::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: rgba(210, 255, 112, .14); box-shadow: inset 2px 0 0 var(--lime); }
  /* Scroll-in on phones: each bar grows as its chip lands; the head-start tint arrives with the flag */
  .pv.is-armed.is-in .pv__meter::after { transition-delay: calc(.2s + var(--i) * .2s); }
  .pv.is-armed.is-in .pv__dot { transition-delay: calc(.45s + var(--i) * .2s); }
  .pv.is-armed .pv__step.is-hot { background: transparent; box-shadow: none; }
  .pv.is-armed.is-in .pv__step.is-hot { background: rgba(210, 255, 112, .06); box-shadow: inset 2px 0 0 var(--lime); transition: background-color .6s ease 1.05s, box-shadow .6s ease 1.05s; }
}
@media (max-width: 768px) {
  .pr-hero { padding-block: 48px 56px; }
  .pr-chat { padding: 10px; }
  .pr-chat__card { padding: 12px 10px 14px; gap: 10px; }
  .pr-chat__bubble { font-size: 13px; padding: 7px 12px; }
  .pr-chat__table { padding: 0 12px; }
  .pr-chat__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who chip" "signal signal" "action action"; gap: 4px 8px; padding: 12px 0; }
  .pr-chat__row > :nth-child(1) { grid-area: who; }
  .pr-chat__row > :nth-child(2) { grid-area: chip; }
  .pr-chat__row > :nth-child(3) { grid-area: signal; }
  .pr-chat__row > :nth-child(4) { grid-area: action; white-space: normal; }
  .pr-chat__row--head { display: none; }
  .pr-chat__input { height: 50px; gap: 10px; }
  .pr-chat__ibtn--ghost { display: none; }
  .pr-signals { gap: 32px; }
  .pr-signal { height: 36px; font-size: 13px; padding: 0 14px; }
  .pr-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pr-step { padding: 24px; }
  .pr-step__top { margin-bottom: 8px; }
  .pr-card { padding: 20px; gap: 4px 14px; }
  .pr-card h3 { font-size: 18px; }
}

/* Nov 13: the hero chat is the LO's AI assistant connected through Lendware MCP (Predict has no chat of its own) */
.pr-chat__head { display: flex; align-items: center; gap: 10px; padding: 0 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pr-chat__app { color: var(--n300); font-size: 13px; font-weight: 600; }
.pr-chat__conn { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--lime); border-radius: 999px; color: var(--lime); font-size: 12px; font-weight: 500; line-height: 1.5; }
.pr-chat__conn i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
