/* Problem section: four pain cards, each with an animated scene,
   followed by a banner that links the pains to one root cause. */

.problem { background: #F6F6FA; overflow: hidden; isolation: isolate; }
.problem::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 35% at 85% 8%, rgba(108,99,255,.12), transparent 70%), radial-gradient(35% 30% at 5% 60%, rgba(92,170,255,.10), transparent 70%); }

.sec-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: #fff; border: 1px solid rgba(55,48,200,.16); font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 22px; box-shadow: 0 6px 16px -10px rgba(55,48,200,.35); }
.sec-pill i { width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }

.pr-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 56px; }
.pr-head h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; max-width: 20ch; }
.pr-head h2 span { color: #8A8A96; }
.pr-aside p { font-size: 18px; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 900px) { .pr-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; } }

/* Cards */
.pains2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .pains2 { grid-template-columns: 1fr; } }
.pcard { background: #fff; border-radius: 22px; border: 1px solid #ECECF2; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(30,27,110,.04), 0 24px 48px -32px rgba(30,27,110,.28);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity var(--t-slow) var(--ease); }
.js .pcard.in:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgba(30,27,110,.04), 0 36px 64px -32px rgba(30,27,110,.38); }

.pv { position: relative; height: 270px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid #EFEFF5;
  background: radial-gradient(70% 90% at 50% 0%, #FFFFFF, transparent 70%), linear-gradient(180deg, #F4F3FF, #FAFAFD); }
.pv::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(55,48,200,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(55,48,200,.06) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask: radial-gradient(70% 80% at 50% 50%, #000, transparent 85%); mask: radial-gradient(70% 80% at 50% 50%, #000, transparent 85%); }
.pv > * { position: relative; }

.pbody { padding: 28px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.plabel { font-size: 14px; font-weight: 600; color: var(--brand); margin-bottom: 10px; }
.pbody h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.18; letter-spacing: -.03em; margin-bottom: 10px; }
.pbody > p { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.pmeta { margin: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pmeta > div { border-radius: 14px; padding: 14px 16px; }
.pmeta dt { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.pmeta dt::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none; background-position: center; background-repeat: no-repeat; }
.pmeta dd { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink); font-weight: 600; letter-spacing: -.01em; }
.pmeta .cost { background: #FFF4F2; }
.pmeta .cost dt { color: #B42336; }
.pmeta .cost dt::before { background-color: #B42336; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M7 3.5v7M4.2 7.8L7 10.6l2.8-2.8' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E"); }
.pmeta .fix { background: #EFEEFD; }
.pmeta .fix dt { color: var(--brand); }
.pmeta .fix dt::before { background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E"); }
@media (max-width: 480px) { .pmeta { grid-template-columns: 1fr; } .pbody { padding: 24px 22px 24px; } .pv { height: 262px; } }

/* Shared mock pieces */
.mock { background: #fff; border: 1px solid #ECECF2; border-radius: 16px; box-shadow: 0 18px 36px -22px rgba(30,27,110,.35), 0 1px 2px rgba(30,27,110,.05); font-size: 13px; color: var(--ink); }
.mock small { display: block; font-size: 11.5px; color: #7A7A88; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.chip.amber { background: #FDF3E1; color: #9A6200; }
.spin { width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid currentColor; border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tag-float { position: absolute !important; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: #fff; box-shadow: 0 12px 24px -14px rgba(30,27,110,.45); white-space: nowrap; }
.tag-float svg { width: 14px; height: 14px; }
.tag-float.stale { color: #B42336; left: 50%; bottom: 7%; transform: translateX(-50%); }
.tag-float.warn { color: #9A6200; left: 50%; bottom: 10%; transform: translateX(-50%); }
.js .pcard .tag-float { opacity: 0; translate: 0 8px; transition: opacity .6s var(--ease) 1.2s, translate .6s var(--ease) 1.2s; }
.js .pcard.in .tag-float { opacity: 1; translate: 0 0; }

/* 1. Report that never finishes */
.pv-report .mock { width: min(340px, 84%); padding: 16px 18px; margin-top: -34px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.mock-head b { font-weight: 600; }
.ghost { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-bottom: 14px; padding-bottom: 6px; border-bottom: 1px dashed #E1E1EA; }
.ghost i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: repeating-linear-gradient(135deg, #EDEDF3 0 5px, #F6F6FA 5px 10px); animation: ghost 2.4s ease-in-out infinite; }
.ghost i:nth-child(odd) { animation-delay: .4s; }
@keyframes ghost { 50% { opacity: .45; } }
.prog > div { display: flex; justify-content: space-between; margin-bottom: 7px; }
.prog b { color: var(--ink); }
.prog > span { display: block; height: 7px; border-radius: 9px; background: #F0F0F5; overflow: hidden; }
.prog > span i { display: block; height: 100%; width: 66%; border-radius: 9px; background: linear-gradient(90deg, #F5B547, #E8890C); transform-origin: left; animation: crawl 5s ease-in-out infinite; }
@keyframes crawl { 0% { transform: scaleX(.92); } 60% { transform: scaleX(1); } 100% { transform: scaleX(.92); } }

/* 2. Chat that keeps chasing */
.pv-chat { place-items: start center; padding-top: 24px; }
.pv-chat .mock { width: min(330px, 86%); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #F0F0F5; background: #FBFBFD; }
.chat-head b { font-weight: 600; display: block; }
.av { width: 30px; height: 30px; border-radius: 50%; background: #22B35E; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.unread { margin-left: auto; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 99px; background: #E5484D; color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.unread.bump, .queue b.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }
.msgs { padding: 12px 14px 14px; display: grid; gap: 8px; background: linear-gradient(#fff, #F9FAF6); }
.msg { justify-self: start; max-width: 88%; background: #fff; border: 1px solid #ECECF2; border-radius: 4px 12px 12px 12px; padding: 7px 10px; font-size: 12.5px; line-height: 1.35; box-shadow: 0 2px 4px rgba(0,0,0,.03); }
.msg time { font-size: 10px; color: #9A9AA6; margin-left: 6px; }
.typing { justify-self: start; display: flex; gap: 4px; background: #fff; border: 1px solid #ECECF2; border-radius: 4px 12px 12px 12px; padding: 9px 11px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #B4B4C0; animation: dots 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { transform: translateY(-3px); background: #6B6B78; } }
.js .pv-chat .msg, .js .pv-chat .typing { opacity: 0; transform: translateY(10px) scale(.96); transform-origin: left; }
.js .pcard.in .pv-chat .msg, .js .pcard.in .pv-chat .typing { animation: msgIn .5s var(--ease) forwards; animation-delay: calc(.5s + var(--n) * .55s); }
.js .pcard.in .pv-chat .typing { animation: msgIn .5s var(--ease) forwards, none; animation-delay: calc(.5s + var(--n) * .55s); }
@keyframes msgIn { to { opacity: 1; transform: none; } }

/* 3. Same number, three tools */
.silos { display: flex; align-items: center; gap: 6px; margin-top: -24px; }
.silo { width: 112px; background: #fff; border: 1px solid #ECECF2; border-radius: 14px; padding: 10px 11px 12px; box-shadow: 0 16px 30px -20px rgba(30,27,110,.4); font-size: 12px; }
.sh { display: flex; align-items: center; gap: 6px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #F0F0F5; }
.sh b { font-weight: 600; font-size: 12px; }
.ic { width: 20px; height: 20px; border-radius: 6px; background: var(--c); display: grid; place-items: center; flex: none; }
.ic svg { width: 13px; height: 13px; }
.silo small { display: block; font-size: 10.5px; color: #8A8A96; margin-bottom: 4px; }
.type { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; border: 1px solid #E3E3EA; border-radius: 7px; padding: 4px 7px; width: 100%; white-space: nowrap; overflow: hidden; position: relative; }
.type.err { color: #B42336; border-color: #F3B9BE; background: #FFF6F6; }
.js .type { clip-path: inset(0 100% 0 0); }
.js .pcard.in .type { animation: typeIn 4.5s steps(8) infinite; animation-delay: calc(var(--n, 0) * .35s); }
.silo:nth-child(1) .type { --n: 0; } .silo:nth-child(3) .type { --n: 1; } .silo:nth-child(5) .type { --n: 2; }
@keyframes typeIn { 0% { clip-path: inset(0 100% 0 0); } 30%, 88% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: .3; } }
.brk { width: 22px; height: 22px; border-radius: 50%; background: #FFECEC; color: #E5484D; display: grid; place-items: center; flex: none; position: relative; }
.brk::before, .brk::after { content: ""; position: absolute; top: 50%; width: 6px; border-top: 1.5px dashed #E8B4B6; }
.brk::before { right: 100%; } .brk::after { left: 100%; }
.brk svg { width: 12px; height: 12px; }
@media (max-width: 420px) { .silos { gap: 3px; } .brk { width: 18px; height: 18px; } .brk::before, .brk::after { width: 3px; } .silo { width: 86px; padding: 8px; } .type { font-size: 12px; } .sh b { font-size: 11px; } }

/* 4. Everything converges on you */
.pv-queue { font-size: 12px; }
.you { width: 78px; height: 78px; display: grid; place-items: center; z-index: 2; }
.face { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #5B4FF0, #3730C8); color: #fff; font-weight: 700; font-size: 15px; box-shadow: 0 14px 28px -12px rgba(55,48,200,.7); position: relative; z-index: 2; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(55,48,200,.35); animation: ring 2.4s ease-out infinite; }
.ring.r2 { animation-delay: 1.2s; }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(2.1); opacity: 0; } }
.req { position: absolute !important; left: 50%; top: 46%; white-space: nowrap; background: #fff; border: 1px solid #ECECF2; border-radius: 10px; padding: 6px 11px; font-weight: 600; color: var(--ink); box-shadow: 0 10px 20px -12px rgba(30,27,110,.4); transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))); }
.req::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #F59E0B; margin-right: 7px; vertical-align: 1px; }
.js .pcard.in .req { animation: pull 5s var(--ease) infinite; animation-delay: calc(var(--n) * .9s); }
@keyframes pull {
  0%, 10% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); opacity: 1; }
  45% { transform: translate(calc(-50% + var(--x) * .18), calc(-50% + var(--y) * .18)) scale(.7); opacity: 0; }
  46% { transform: translate(calc(-50% + var(--x) * 1.15), calc(-50% + var(--y) * 1.15)) scale(.9); opacity: 0; }
  70%, 100% { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1); opacity: 1; }
}
.queue { position: absolute !important; bottom: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #1C1C21; color: #fff; border-radius: 99px; padding: 7px 14px; font-size: 12px; font-weight: 600; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5); }
.queue b { display: inline-block; color: #FFB547; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .req { font-size: 11px; padding: 5px 8px; } .req[style*="-150px"], .req[style*="-160px"] { --x: -84px !important; } .req[style*="140px"], .req[style*="150px"] { --x: 84px !important; } .req[style*="-92px"] { --y: -78px !important; } }

/* Bridge banner */
.pr-bridge { margin-top: 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: 28px 32px; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(60% 140% at 100% 0%, rgba(139,133,255,.45), transparent 60%), linear-gradient(120deg, #1C1C21 30%, #26206E); }
.pr-bridge p { margin: 0; flex: 1; min-width: 260px; font-size: 18px; line-height: 1.5; color: #C9C9D6; max-width: none; }
.pr-bridge strong { color: #fff; font-weight: 600; }
.pr-bridge .btn { border-radius: 10px; }
.pr-bridge-icons { position: relative; width: 120px; height: 56px; flex: none; }
.pr-bridge-icons span { position: absolute; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #3A3A46; border: 1.5px solid #5A5A68; font-size: 0; }
.pr-bridge-icons span:nth-child(1) { top: 0; } .pr-bridge-icons span:nth-child(2) { top: 14px; left: 14px; } .pr-bridge-icons span:nth-child(3) { top: 28px; left: 14px; } .pr-bridge-icons span:nth-child(4) { top: 42px; }
.pr-bridge-icons i { position: absolute; left: 34px; right: 40px; top: 27px; height: 2px; background: linear-gradient(90deg, #5A5A68, #8B85FF); }
.pr-bridge-icons i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, #fff, transparent); animation: sweep 2s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pr-bridge-icons b { position: absolute; right: 0; top: 10px; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); box-shadow: 0 0 0 6px rgba(139,133,255,.18), 0 10px 20px -8px rgba(55,48,200,.8); }
.pr-bridge-icons b::after { content: ""; position: absolute; left: 13px; top: 13px; width: 10px; height: 10px; background: #fff; }
@media (max-width: 600px) { .pr-bridge { padding: 24px; } .pr-bridge .btn { width: 100%; justify-content: center; } }

@media (prefers-reduced-motion: reduce) {
  .js .pv-chat .msg, .js .pv-chat .typing, .js .type, .js .pcard .tag-float { opacity: 1; transform: none; clip-path: none; translate: none; }
}

/* ---------- Compact layout: four across on wide screens, scenes scaled as one picture ---------- */
.problem .pr-head { margin-bottom: 40px; }
.pains2 { gap: 16px; }
.pcard { border-radius: 20px; }
.pv { zoom: .82; }
.pbody { padding: 20px 22px 22px; }
.plabel { font-size: 13px; margin-bottom: 6px; }
.pbody h3 { font-size: 20px; line-height: 1.2; margin-bottom: 8px; }
.pbody > p { font-size: 14.5px; line-height: 1.55; margin-bottom: 16px; }
.pmeta { grid-template-columns: 1fr; gap: 8px; }
.pmeta > div { border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: baseline; }
.pmeta dt { margin: 0; font-size: 11.5px; }
.pmeta dd { font-size: 13.5px; line-height: 1.35; }
@media (min-width: 1200px) {
  .pains2 { grid-template-columns: repeat(4, 1fr); }
  .pv { zoom: .7; }
  .pmeta > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 480px) { .pv { zoom: .9; } }
.pr-bridge { margin-top: 16px; padding: 22px 28px; border-radius: 20px; }
.pr-bridge p { font-size: 16.5px; }
.pv-queue { padding-bottom: 46px; }
