/* Bridge | Insurance — "pop" layer: movement, pulses and flare for /insurance (phone first), v0.58.0.
   Motion is on for every visitor; html.calm (footer "Calm motion" switch) turns all of it off. */

/* scroll progress */
.pop-bar{position:fixed;left:0;top:0;width:100%;height:3px;z-index:60;pointer-events:none;transform-origin:0 50%;transform:scaleX(var(--p,0));background:linear-gradient(90deg,var(--accent),var(--coral),var(--gold));box-shadow:0 0 12px rgba(255,139,120,.85)}

/* hero: slow photo drift, glowing orbs, light sweep */
@keyframes popKb{from{transform:scale(1) translate3d(0,0,0)}to{transform:scale(1.14) translate3d(-2%,-1.5%,0)}}
.pop .slide{animation:popKb 14s ease-in-out infinite alternate;will-change:transform}
.pop .slides{will-change:transform}
.pop-orbs{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.pop-orbs i{position:absolute;border-radius:50%;width:92vmin;height:92vmin;max-width:640px;max-height:640px;mix-blend-mode:screen;will-change:transform}
.pop-orbs i:nth-child(1){left:-30%;top:-18%;background:radial-gradient(circle,rgba(255,139,120,.62),transparent 64%);animation:popD1 9s ease-in-out infinite alternate}
.pop-orbs i:nth-child(2){right:-36%;top:22%;background:radial-gradient(circle,rgba(70,194,180,.5),transparent 64%);animation:popD2 12s ease-in-out infinite alternate}
.pop-orbs i:nth-child(3){left:6%;bottom:-34%;background:radial-gradient(circle,rgba(245,184,61,.5),transparent 64%);animation:popD3 10s ease-in-out infinite alternate}
@keyframes popD1{to{transform:translate3d(32vw,14vh,0) scale(1.3)}}
@keyframes popD2{to{transform:translate3d(-30vw,-12vh,0) scale(1.22)}}
@keyframes popD3{to{transform:translate3d(24vw,-14vh,0) scale(1.35)}}
.pop-sweep{position:absolute;top:-20%;bottom:-20%;left:0;width:40%;z-index:1;pointer-events:none;background:linear-gradient(100deg,transparent,rgba(255,255,255,.14) 40%,rgba(255,214,200,.3) 52%,transparent);transform:translateX(-150%) skewX(-18deg);animation:popSweep 7s ease-in-out 1.2s infinite}
@keyframes popSweep{0%{transform:translateX(-150%) skewX(-18deg)}36%,100%{transform:translateX(420%) skewX(-18deg)}}

/* headline + display accents: light sheen sweeping through the letters */
@supports ((-webkit-background-clip:text) or (background-clip:text)){
 .pop .hero h1{background:linear-gradient(100deg,#fff 0,#fff 40%,#ffb9a9 50%,#fff 60%,#fff 100%) 120% 0/260% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:popSheen 5.5s ease-in-out infinite}
 .pop .disp em{background:linear-gradient(100deg,var(--accent) 0,var(--accent) 38%,#ff8b78 50%,var(--accent) 62%,var(--accent) 100%) 120% 0/260% 100%;-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;animation:popSheen 6s ease-in-out infinite}
 .pop .dark .disp em,.pop .black .disp em{background-image:linear-gradient(100deg,var(--coral) 0,var(--coral) 38%,#fff 50%,var(--coral) 62%,var(--coral) 100%)}
}
@keyframes popSheen{0%{background-position:120% 0}55%,100%{background-position:-60% 0}}

/* live dot on the hero eyebrow */
.pop .hero .eyebrow:before{content:"";display:inline-block;width:9px;height:9px;margin-right:10px;border-radius:50%;background:var(--coral);vertical-align:.05em;animation:popDot 1.6s ease-out infinite}
@keyframes popDot{0%{box-shadow:0 0 0 0 rgba(255,139,120,.8)}80%,100%{box-shadow:0 0 0 12px rgba(255,139,120,0)}}

/* primary buttons: breathing ring + travelling shine */
.pop .btn-primary{position:relative;overflow:hidden;animation:popRing 2.4s ease-out infinite}
.pop .btn-primary:after{content:"";position:absolute;top:0;bottom:0;left:0;width:46%;pointer-events:none;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:translateX(-160%) skewX(-20deg);animation:popShine 3.4s ease-in-out .6s infinite}
.pop .sizeband .btn-primary{animation-name:popRingW}
@keyframes popRing{0%{box-shadow:0 12px 24px -10px rgba(209,58,37,.75),0 0 0 0 rgba(209,58,37,.55)}70%,100%{box-shadow:0 12px 24px -10px rgba(209,58,37,.75),0 0 0 16px rgba(209,58,37,0)}}
@keyframes popRingW{0%{box-shadow:0 0 0 0 rgba(255,255,255,.6)}70%,100%{box-shadow:0 0 0 16px rgba(255,255,255,0)}}
@keyframes popShine{0%{transform:translateX(-160%) skewX(-20deg)}40%,100%{transform:translateX(420%) skewX(-20deg)}}
.pop .btn:active,.pop .tap9 button:active,.pop .journey li:active{transform:scale(.96)}

/* hero flow: each step lights up in turn, current runs down the connector */
.pop .flowviz li:nth-child(2) .nd{--i:1}.pop .flowviz li:nth-child(3) .nd{--i:2}.pop .flowviz li:nth-child(4) .nd{--i:3}
.pop .flowviz .nd{animation:popNode 4.8s ease-in-out infinite;animation-delay:calc(var(--i,0)*1s)}
.pop .flowviz li.fin .nd{animation:popFin 4.8s ease-in-out infinite;animation-delay:3s}
@keyframes popNode{0%,24%,100%{transform:none;border-color:rgba(255,255,255,.35);box-shadow:0 0 0 0 rgba(255,139,120,0)}8%{transform:scale(1.14);border-color:var(--coral);box-shadow:0 0 0 12px rgba(255,139,120,.32)}}
@keyframes popFin{0%,30%,100%{transform:none;box-shadow:0 0 0 8px rgba(209,58,37,.25)}10%{transform:scale(1.2);box-shadow:0 0 0 20px rgba(209,58,37,.12),0 0 34px 6px rgba(255,139,120,.7)}}
.pop .flowviz li:before{background:linear-gradient(180deg,rgba(255,255,255,.18) 0,rgba(255,139,120,.95) 50%,rgba(255,255,255,.18) 100%) 0 0/100% 220%;animation:popFlow 1.8s linear infinite}
@keyframes popFlow{from{background-position:0 220%}to{background-position:0 0}}

/* cards spring in with a glow flash the first time they are seen */
.pop-pre{opacity:0}
.pop-hit{animation:popHit .75s cubic-bezier(.2,.9,.3,1.25) var(--pd,0s) backwards}
@keyframes popHit{0%{opacity:0;transform:translateY(30px) scale(.9)}55%{opacity:1;transform:translateY(-5px) scale(1.035);box-shadow:0 0 0 7px rgba(255,139,120,.38)}100%{opacity:1;transform:none}}

/* touch ripple */
.pop .btn,.pop .tap9 button,.pop .journey li{position:relative;overflow:hidden}
.pop-rip{position:absolute;width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:50%;pointer-events:none;background:rgba(255,255,255,.55);animation:popRip .65s ease-out forwards}
@keyframes popRip{to{transform:scale(18);opacity:0}}

/* calm motion switch */
.pop-calm{margin-top:4px;justify-self:start;min-height:40px;padding:0 16px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:transparent;color:#fff;font:600 .78rem/1 var(--sans);letter-spacing:.06em;cursor:pointer}
.pop-calm[aria-pressed=true]{background:#fff;color:var(--navy2)}

.calm .pop-orbs,.calm .pop-sweep,.calm .pop-bar,.calm .btn-primary:after,.calm .pop-rip{display:none}
.calm .pop-pre{opacity:1}
