/* Logo loader — shared by website, web app and extension.
   Sequence (follows the reference): dash tumbles in -> lands as a baseline -> symbol grows up from it
   -> wordmark slides out from behind the symbol -> 2.4s synced loop (logo breathe + progress bar). */
:root{--ll-color:#250077;--ll-bg:#fff;--ll-loop:2.4s;--ll-start:2.9s;--ll-ease:cubic-bezier(.65,0,.35,1);--ll-out:cubic-bezier(.16,1,.3,1)}
@media(prefers-color-scheme:dark){:root{--ll-color:#d6c9ff;--ll-bg:#0e0a1a}}
.ll{position:fixed;inset:0;z-index:99999;display:grid;place-content:center;justify-items:center;gap:22px;background:var(--ll-bg);transition:opacity .5s ease,visibility .5s}
.ll--inline{position:absolute}
.ll.is-done{opacity:0;visibility:hidden}
.ll-host{position:fixed;inset:0;z-index:99999;background:var(--ll-bg);transition:opacity .5s ease,visibility .5s}
.ll-logo{width:min(60vw,320px);height:auto;overflow:visible;color:var(--ll-color);transform:translateZ(0);
  transition:transform .5s var(--ll-out);animation:ll-breathe var(--ll-loop) ease-in-out var(--ll-start) infinite}
.ll.is-done .ll-logo{transform:scale(1.05)}
.ll--inline .ll-logo{width:min(60%,200px)}
.ll-logo path,.ll-logo polygon,.ll-logo rect.dash{fill:currentColor}
/* 1. falling dash: tumbles along an arc, lands flat, stretches into a baseline, then hands over to the symbol */
.ll-logo .dash{opacity:0;transform-box:fill-box;transform-origin:center;will-change:transform,opacity;animation:ll-dash 1.4s linear 0s both}
/* 2. symbol grows up from the baseline */
.ll-logo .mark{transform-origin:10px 14.7px;transform-box:view-box;opacity:0;will-change:transform,opacity;animation:ll-grow .8s var(--ll-out) .9s both}
.ll-logo .draw{fill-opacity:0;stroke:currentColor;stroke-width:.14;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;
  animation:ll-draw .9s var(--ll-ease) .95s both,ll-fill .5s ease-out 1.35s both}
.ll-logo .m{opacity:0;transform-box:fill-box;transform-origin:center;animation:ll-pop .6s var(--ll-out) 1.35s both}
/* 3. wordmark slides out from behind the symbol (clipped at the symbol's edge) */
.ll-logo .l{opacity:0;transform:translate3d(var(--dx,-20px),0,0);will-change:transform,opacity;
  animation:ll-slideout .9s var(--ll-out) calc(1.65s + var(--i)*.04s) both}
.ll-bar{position:relative;width:96px;height:2px;border-radius:2px;overflow:hidden;opacity:0;
  background:color-mix(in srgb,var(--ll-color) 15%,transparent);animation:ll-fadein .4s ease 2.3s both}
.ll-bar::after{content:"";position:absolute;inset:0;width:40%;border-radius:2px;background:var(--ll-color);
  transform:translate3d(-100%,0,0);animation:ll-slide var(--ll-loop) ease-in-out var(--ll-start) infinite}
@keyframes ll-dash{
  0.00%{opacity:0.00;transform:translate(15.00px,-60.00px) rotate(-170.0deg) scaleX(1.00)}
  2.68%{opacity:0.50;transform:translate(13.84px,-59.92px) rotate(-161.6deg) scaleX(1.00)}
  5.36%{opacity:1.00;transform:translate(11.78px,-59.69px) rotate(-153.2deg) scaleX(1.00)}
  8.04%{opacity:1.00;transform:translate(9.05px,-59.31px) rotate(-145.1deg) scaleX(1.00)}
  10.71%{opacity:1.00;transform:translate(5.91px,-58.78px) rotate(-137.0deg) scaleX(1.00)}
  13.39%{opacity:1.00;transform:translate(2.64px,-58.09px) rotate(-129.1deg) scaleX(1.00)}
  16.07%{opacity:1.00;transform:translate(-0.50px,-57.24px) rotate(-121.3deg) scaleX(1.00)}
  18.75%{opacity:1.00;transform:translate(-3.28px,-56.25px) rotate(-113.6deg) scaleX(1.00)}
  21.43%{opacity:1.00;transform:translate(-5.52px,-55.10px) rotate(-106.1deg) scaleX(1.00)}
  24.11%{opacity:1.00;transform:translate(-7.09px,-53.80px) rotate(-98.8deg) scaleX(1.00)}
  26.79%{opacity:1.00;transform:translate(-7.95px,-52.35px) rotate(-91.6deg) scaleX(1.00)}
  29.46%{opacity:1.00;transform:translate(-8.11px,-50.74px) rotate(-84.5deg) scaleX(1.00)}
  32.14%{opacity:1.00;transform:translate(-7.63px,-48.98px) rotate(-77.7deg) scaleX(1.00)}
  34.82%{opacity:1.00;transform:translate(-6.64px,-47.07px) rotate(-71.0deg) scaleX(1.00)}
  37.50%{opacity:1.00;transform:translate(-5.28px,-45.00px) rotate(-64.4deg) scaleX(1.00)}
  40.18%{opacity:1.00;transform:translate(-3.72px,-42.78px) rotate(-58.1deg) scaleX(1.00)}
  42.86%{opacity:1.00;transform:translate(-2.13px,-40.41px) rotate(-51.9deg) scaleX(1.00)}
  45.54%{opacity:1.00;transform:translate(-0.66px,-37.88px) rotate(-46.0deg) scaleX(1.00)}
  48.21%{opacity:1.00;transform:translate(0.59px,-35.20px) rotate(-40.2deg) scaleX(1.00)}
  50.89%{opacity:1.00;transform:translate(1.51px,-32.37px) rotate(-34.7deg) scaleX(1.00)}
  53.57%{opacity:1.00;transform:translate(2.08px,-29.39px) rotate(-29.4deg) scaleX(1.13)}
  56.25%{opacity:1.00;transform:translate(2.30px,-26.25px) rotate(-24.4deg) scaleX(1.52)}
  58.93%{opacity:1.00;transform:translate(2.21px,-22.96px) rotate(-19.7deg) scaleX(2.07)}
  61.61%{opacity:1.00;transform:translate(1.89px,-19.52px) rotate(-15.2deg) scaleX(2.74)}
  64.29%{opacity:1.00;transform:translate(1.43px,-15.92px) rotate(-11.2deg) scaleX(3.44)}
  66.96%{opacity:1.00;transform:translate(0.93px,-12.17px) rotate(-7.5deg) scaleX(4.10)}
  69.64%{opacity:1.00;transform:translate(0.48px,-8.27px) rotate(-4.2deg) scaleX(4.67)}
  72.32%{opacity:1.00;transform:translate(0.15px,-4.21px) rotate(-1.6deg) scaleX(5.05)}
  75.00%{opacity:1.00;transform:translate(0.00px,0.00px) rotate(-0.0deg) scaleX(5.20)}
  100%{opacity:0;transform:translate(0,0) rotate(0) scaleX(5.2)}}
@keyframes ll-grow{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:none}}
@keyframes ll-draw{to{stroke-dashoffset:0}}
@keyframes ll-fill{from{fill-opacity:0;stroke-opacity:1}to{fill-opacity:1;stroke-opacity:0}}
@keyframes ll-pop{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
@keyframes ll-slideout{to{opacity:1;transform:none}}
@keyframes ll-fadein{to{opacity:1}}
@keyframes ll-breathe{0%,100%{opacity:1}50%{opacity:.82}}
@keyframes ll-slide{from{transform:translate3d(-100%,0,0)}to{transform:translate3d(250%,0,0)}}
@media(prefers-reduced-motion:reduce){
  .ll-logo,.ll-logo .dash,.ll-logo .mark,.ll-logo .draw,.ll-logo .m,.ll-logo .l,.ll-bar,.ll-bar::after{animation:none!important;transition:none!important}
  .ll-logo .dash{display:none}
  .ll-logo .draw{fill-opacity:1;stroke:none}.ll-logo .mark,.ll-logo .m,.ll-logo .l,.ll-bar{opacity:1;transform:none}
  .ll-bar::after{transform:none;width:100%;opacity:.4}}
