/* Coral Active - LivePerson Sync page only. Loads after site.css. */
.vid { padding: 0 var(--gut) 4vh; perspective: 1600px; }
.vid__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--navy);
  box-shadow: 0 50px 90px -50px rgba(30,36,64,.55), 0 0 0 1px var(--rule);
  transform: rotateX(10deg) scale(.94); transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.vid.in .vid__frame { transform: none; }
.vid__poster { display: grid; place-items: center; text-decoration: none; color: #fff;
  background: radial-gradient(60% 80% at 80% 20%, rgba(229,78,128,.55), transparent 60%), radial-gradient(50% 70% at 15% 90%, rgba(255,107,87,.45), transparent 60%), #1E2440; }
.vid__orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.9), rgba(255,170,170,.35) 40%, rgba(229,78,128,.15) 70%); animation: floaty 7s ease-in-out infinite; }
.vid__orb.o1 { width: 18%; aspect-ratio: 1; left: 8%; top: 12%; }
.vid__orb.o2 { width: 10%; aspect-ratio: 1; right: 12%; top: 55%; animation-delay: -2s; }
.vid__orb.o3 { width: 6%; aspect-ratio: 1; left: 30%; bottom: 10%; animation-delay: -4s; }
.vid__ttl { position: absolute; left: clamp(18px, 4vw, 48px); bottom: clamp(18px, 4vw, 44px); display: grid; gap: 8px; text-align: left; }
.vid__ttl .lbl { color: rgba(255,255,255,.75); }
.vid__ttl b { font: 300 clamp(20px, 3vw, 40px)/1.1 var(--f-head); letter-spacing: -.02em; }
.vid__play { width: clamp(64px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--grad); display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 20px 50px -10px rgba(229,78,128,.8); transition: transform .3s ease; position: relative; }
.vid__play svg { width: 40%; margin-left: 6%; }
.vid__play::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); animation: ping 2.4s ease-out infinite; }
.vid__poster:hover .vid__play { transform: scale(1.08); }
.vid__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid__glow { position: absolute; inset: -40px var(--gut) auto; height: 70%; background: var(--grad); filter: blur(70px); opacity: .22; z-index: -1; border-radius: 50%; }
.vid { position: relative; z-index: 0; overflow-x: clip; }

.feat-rows { display: grid; gap: clamp(56px, 10vh, 120px); }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.frow.rev .frow__txt { order: 2; }
.frow__txt { display: grid; gap: 14px; }
.frow__txt .lbl { color: var(--coral-ink); }
.frow.rev .frow__txt .lbl { color: var(--teal-ink); }
.frow__txt h3 { font: 400 clamp(24px, 2.4vw, 34px)/1.15 var(--f-head); letter-spacing: -.02em; max-width: 20ch; }
.frow__txt p { color: var(--ink-2); max-width: 50ch; }
@media (max-width: 860px) { .frow { grid-template-columns: 1fr; } .frow.rev .frow__txt { order: 0; } }

/* Stage: everything inside is sized in em, and em scales with the stage width */
.stage { position: relative; container-type: inline-size; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden;
  background: radial-gradient(60% 70% at 85% 10%, rgba(229,78,128,.16), transparent 70%), radial-gradient(60% 60% at 10% 95%, rgba(255,107,87,.14), transparent 70%), linear-gradient(160deg, #F4F1FA, #FBF2F2);
  perspective: 1400px; }
.stage__in { position: absolute; inset: 0; font-size: 2.05cqw; perspective: 1400px; transition: transform .5s ease-out; }
.stage .ui { position: absolute; background: #fff; border-radius: 1em; border: 1px solid rgba(30,36,64,.12);
  box-shadow: 0 2.4em 4em -2em rgba(30,36,64,.35), 0 .3em .8em rgba(30,36,64,.06); font-family: var(--f-body); color: var(--navy); overflow: hidden; }
.stage .t { font-size: .62em; line-height: 1.35; }
.stage .tt { font-size: .5em; line-height: 1.3; color: var(--ink-3); }
.stage .bb { font-weight: 700; }

/* Pop-in helper: elements with .pop appear when the stage is in view, staggered by --d */
.stage .pop { opacity: 0; transform: translateY(.8em) scale(.96); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.stage.in .pop { opacity: 1; transform: none; }

/* Floating */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.5em); } }

/* ---- Graphic 1: CRM in the workspace ---- */
.g1 .win { left: 6%; right: 6%; top: 20%; bottom: 20%; display: grid; grid-template-columns: 2.2em 13.5em minmax(0, 1fr) 12em; transform: rotateX(9deg) rotateY(-8deg); transform-origin: 50% 60%; }
.g1 .win__top { position: absolute; left: 0; right: 0; top: 0; height: 2.2em; border-bottom: 1px solid var(--rule-2); display: flex; align-items: center; padding: 0 1em; gap: .5em; }
.g1 .side { padding-top: 2.8em; display: grid; justify-items: center; align-content: start; gap: .9em; border-right: 1px solid var(--rule-2); }
.g1 .side i { width: .8em; height: .8em; border-radius: .25em; background: rgba(30,36,64,.14); display: block; }
.g1 .side i.on { background: #4F5BFF; border-radius: 50%; width: 1.1em; height: 1.1em; }
.g1 .chat { margin: 2.8em .6em .6em; border: 1px solid var(--rule-2); border-radius: .7em; padding: .7em; display: grid; gap: .5em; align-content: start; box-shadow: 0 .6em 1.4em -1em rgba(30,36,64,.3); }
.lp-mark { display: flex; align-items: center; gap: .4em; justify-content: center; font: 600 .6em/1 var(--f-label); letter-spacing: .22em; }
.lp-mark i { width: 1.2em; height: 1.2em; border-radius: 50%; border: .3em dotted #FF6A13; display: block; }
.bub { padding: .5em .7em; border-radius: .7em; max-width: 92%; }
.bub--in { background: #fff; border: 1px solid var(--rule); justify-self: start; border-bottom-left-radius: .2em; }
.bub--out { background: #4F5BFF; color: #fff; justify-self: end; border-bottom-right-radius: .2em; }
.bub--card { border: 1px solid var(--rule); border-radius: .7em; padding: .5em .6em; background: #F6F7FF; }
.bub--card b { color: #4F5BFF; }
.g1 .prof { padding: 2.8em 1em 1em; display: grid; grid-template-columns: 1fr 1fr; gap: .9em 1em; align-content: start; }
.g1 .prof .full { grid-column: 1 / -1; }
.g1 .prof .who { display: flex; gap: .6em; align-items: center; padding-bottom: .7em; border-bottom: 1px solid var(--rule-2); }
.g1 .prof .who i { width: 1.6em; height: 1.6em; border-radius: 50%; background: linear-gradient(135deg, #DDE0FF, #F7D9E6); display: block; flex: none; }
.g1 .rcol { padding: 2.8em .8em .8em 0; display: grid; gap: .7em; align-content: start; }
.g1 .box { border: 1px solid var(--rule-2); border-radius: .7em; padding: .6em .7em; display: grid; gap: .35em; }
.g1 .btn-mini { justify-self: end; background: #4F5BFF; color: #fff; border-radius: 1em; padding: .25em .9em; font-size: .5em; }
.g1 .hist { display: grid; grid-template-columns: .9em 1fr; gap: .3em .5em; align-items: start; }
.g1 .hist i { width: .9em; height: .9em; border-radius: 50%; border: .22em solid #4F5BFF; display: block; margin-top: .1em; }
.callout { position: absolute; z-index: 3; display: grid; justify-items: center; translate: -50% 0; }
.callout b { font: 600 1em/1 var(--f-head); background: #fff; border: 2px solid var(--navy); border-radius: .5em; padding: .45em .8em; box-shadow: .25em .25em 0 var(--navy); white-space: nowrap; }
.callout s { width: 2px; height: 2.2em; background: var(--coral); display: block; text-decoration: none; transform-origin: top; }
.callout u { width: .7em; height: .7em; border-radius: 50%; background: var(--coral); display: block; position: relative; }
.callout u::after { content: ""; position: absolute; inset: -.5em; border-radius: 50%; border: 2px solid var(--coral); opacity: 0; animation: ping 2.2s ease-out infinite; animation-delay: inherit; }
@keyframes ping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

/* ---- Graphic 2: choose your CRM ---- */
.g2 .lp { left: 50%; top: 9%; transform: translateX(-50%); padding: 1em 1.8em; display: grid; justify-items: center; gap: .3em; z-index: 2; animation: floaty 5s ease-in-out infinite; }
.g2 .lp .lp-mark { font-size: 1.05em; }
.g2 .beam { position: absolute; left: 50%; top: 22%; height: 17%; width: 3px; transform: translateX(-50%); background: linear-gradient(var(--star), var(--star-dk)); z-index: 1; }
.g2 .beam::before, .g2 .beam::after { content: ""; position: absolute; left: 50%; width: .8em; height: .8em; margin-left: -.4em; border-radius: 50%; background: var(--star-dk); box-shadow: 0 0 .8em var(--star); animation: drop 1.8s linear infinite; }
.g2 .beam::after { animation-delay: .9s; }
@keyframes drop { from { top: -.25em; opacity: 0; } 15% { opacity: 1; } to { top: 100%; opacity: 0; } }
.g2 .grid { left: 8%; right: 8%; top: 38%; padding: 1.2em; display: grid; gap: .9em; transform: rotateX(16deg); transform-origin: 50% 0; }
.g2 .grid h4 { margin: 0; text-align: center; font: 600 1.1em/1.2 var(--f-head); }
.g2 .crms { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.g2 .crm { height: 5em; border: 1px solid var(--rule); border-radius: .7em; display: grid; place-items: center; background: #fff; position: relative; animation: lit 7.2s ease-in-out infinite; animation-delay: var(--d); }
.g2 .crm img { height: 2.2em; max-width: 78%; object-fit: contain; }
.g2 .crm .w { font: 700 1.25em/1 var(--f-body); letter-spacing: .02em; }
.g2 .crm .w.or { color: #C74634; }
.g2 .crm .w.mo { font: 600 .8em/1 var(--f-body); color: var(--navy); }
@keyframes lit { 0%, 18%, 100% { box-shadow: none; border-color: var(--rule); transform: none; } 6%, 12% { box-shadow: 0 0 0 2px var(--star-dk), 0 1em 1.6em -.8em rgba(46,143,149,.6); border-color: transparent; transform: translateY(-.25em); } }

/* ---- Graphic 3: conversations inside the CRM ---- */
.g3 .chatw { left: 7%; top: 9%; width: 40%; padding: .9em; display: grid; gap: .55em; transform: rotateY(12deg) rotateZ(-1deg); z-index: 2; animation: floaty 6s ease-in-out infinite; }
.g3 .chatw .in { display: flex; gap: .4em; align-items: flex-end; }
.g3 .chatw .in i { width: 1.4em; height: 1.4em; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #fff 0 18%, #C3307A 19%); flex: none; display: block; }
.g3 .chatw .typ { border: 1px solid var(--rule); border-radius: 1em; padding: .4em .8em; display: flex; justify-content: space-between; }
.g3 .case { right: 6%; top: 30%; width: 44%; padding: 1em; display: grid; gap: .6em; transform: rotateY(-10deg); z-index: 1; }
.g3 .case h5 { margin: 0; font: 600 .8em/1 var(--f-head); }
.g3 .fields { display: grid; grid-template-columns: 1fr 1fr; gap: .5em .7em; }
.g3 .fld { display: grid; gap: .2em; }
.g3 .fld.full { grid-column: 1 / -1; }
.g3 .fld span { display: block; background: #F3F5FB; border-radius: .35em; padding: .35em .5em; min-height: 1.6em; overflow: hidden; white-space: nowrap; }
.g3 .fld span em { font-style: normal; display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path .9s steps(18); transition-delay: var(--d); }
.g3.in .fld span em { clip-path: inset(0 0 0 0); }
.g3 .save { justify-self: end; background: #4F5BFF; color: #fff; border-radius: 1em; padding: .3em 1.1em; font-size: .55em; }
.g3 svg.arc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; overflow: visible; }
.g3 svg.arc path { fill: none; stroke: var(--star-dk); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 6 7; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }

/* ---- Graphic 4: wrap-up ---- */
.g4 .stage__in { font-size: 2.35cqw; }
.g4 .sum { left: 5%; top: 12%; width: 66%; transform: rotateY(10deg) rotateX(4deg); z-index: 1; }
.g4 .sum__hd { background: #FF6A13; color: #fff; display: flex; gap: 2em; padding: .7em 1.2em 0; font: 600 .9em/1 var(--f-head); }
.g4 .sum__hd span { padding-bottom: .6em; opacity: .85; }
.g4 .sum__hd span.on { border-bottom: 3px solid #fff; opacity: 1; }
.g4 .sum__bd { padding: 1em 1.2em 1.4em; }
.g4 .sum__bd .t { font-size: .72em; }
.g4 .sum__bd em { font-style: normal; display: inline; background: linear-gradient(90deg, var(--navy) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 2.4s linear .4s; }
.g4.in .sum__bd em { background-position: 0 0; }
.g4 .act { right: 5%; top: 46%; width: 58%; padding: 1em; display: grid; gap: .6em; z-index: 2; box-shadow: .35em .35em 0 var(--navy), 0 2.4em 4em -2em rgba(30,36,64,.4); border: 2px solid var(--navy); transform: rotateY(-8deg); }
.g4 .act h5 { margin: 0; font: 600 .85em/1 var(--f-head); display: flex; gap: .4em; align-items: center; }
.g4 .spark { color: #FF6A13; }
.g4 .row { border: 1px solid var(--rule); border-radius: .6em; padding: .55em .7em; display: grid; grid-template-columns: 1fr auto; gap: .2em .6em; align-items: center; }
.g4 .row .ed { grid-row: 1 / span 2; grid-column: 2; width: 1.2em; height: 1.2em; display: block; }
.g4 .row.hl { animation: hl 4.5s ease-in-out infinite 2.6s; }
@keyframes hl { 0%, 30%, 100% { box-shadow: none; } 38%, 70% { box-shadow: 0 0 0 2px var(--star-dk), 0 .8em 1.4em -.8em rgba(46,143,149,.6); } }
.g4 .chk { display: flex; gap: .9em; font-size: .6em; }
.g4 .chk span { display: inline-flex; gap: .35em; align-items: center; }
.g4 .chk i { width: 1.15em; height: 1.15em; border: 1.5px solid var(--navy); border-radius: .2em; display: inline-grid; place-items: center; font-style: normal; font-size: 1em; line-height: 1; font-weight: 700; }
.g4 .chk i.off { border-color: var(--rule); }
.g4 .cursor { position: absolute; z-index: 4; width: 1.8em; left: 70%; top: 85%; animation: cur 4.5s ease-in-out infinite 2.6s; filter: drop-shadow(0 .2em .3em rgba(0,0,0,.25)); }
@keyframes cur { 0% { left: 70%; top: 85%; } 35%, 70% { left: 86.5%; top: 58%; } 40% { transform: scale(.85); } 45% { transform: none; } 100% { left: 70%; top: 85%; } }

@media (prefers-reduced-motion: reduce) {
  .stage .pop { opacity: 1; transform: none; transition: none; }
  .stage *, .stage *::before, .stage *::after { animation: none !important; }
  .g3 .fld span em { clip-path: none; transition: none; }
  .g4 .sum__bd em { background-position: 0 0; transition: none; }
  .vid__frame { transform: none; }
}
.facts-note a { color: var(--pink-ink); }

