/*
 * Xendiz — additions and overrides on top of app.css (the ported original CSS).
 * Replaces what the Vue/GSAP/ScrollMagic runtime used to do, with plain CSS.
 */

/* ---------------------------------------------------------------- utilities */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; z-index: 1000; left: 12px; top: -60px;
  padding: 10px 16px; background: #4b4cff; color: #fff;
}
.skip-link:focus { top: 12px; }
.skip-link:before, .skip-link:after { content: none !important; }

/* Placeholder values coming from js/site-config.js ("TODO: …") */
.is-todo {
  color: #f15139 !important;
  -webkit-text-fill-color: #f15139;
  outline: 1px dashed rgba(241, 81, 57, .6);
  outline-offset: 2px;
  font-style: italic;
}
a[aria-disabled="true"] { cursor: default; }

:focus-visible { outline: 2px solid #4b4cff; outline-offset: 3px; }

/* Buttons that replaced the original clickable <div>s */
.fast-menu, .close-menu {
  display: block;
  padding: 0; margin: 0;
  width: 28px; height: 28px;
  background: none; box-shadow: none; border: 0;
  position: relative;
  -webkit-appearance: none; appearance: none;
}
.fast-menu .m-line, .close-menu .m-line { display: block; left: 0; }

/* ------------------------------------------------------------- header / nav */
header .bod nav .nav-group { position: relative; display: inline-block; }
header .bod nav .nav-group .subnav { display: none; }
@media (min-width: 768px) {
  header .bod nav .nav-group .subnav {
    display: block;
    position: absolute; left: 0; top: 2.5rem;
    white-space: nowrap;
  }
  header .bod nav .nav-group .subnav a { margin-right: 20px; }
  header .bod nav .nav-group .subnav a.router-link-active:before { bottom: -3px; }
}
.page .page-head .txtrd .middle-text .row h1 { margin: 0 auto; }
.page .page-head .txtrd .middle-text .row h1.h3 { margin-bottom: 1rem; }

/* ----------------------------------------------------------- full-screen menu */
.modal-menu[hidden] { display: none; }
.modal-menu .overlay { transform: scaleY(.01) scaleX(0); transition: transform .4s ease-in-out .0s; }
.modal-menu .txtrd, .modal-menu nav > span, .modal-menu .close-menu,
.modal-menu .login-bttn, .modal-menu .soc a, .modal-menu .wel-foo address p,
.modal-menu .wel-foo .nav a, .modal-menu .wel-foo .dab label {
  opacity: 0;
  transition: opacity .4s ease-in-out;
}
.modal-menu .txtrd { transform: scale(1.2); transition: opacity 1.2s ease-in-out, transform 1.6s ease-in-out; }
.modal-menu .txtrd img { transform: rotate(60deg) scale(1.2); transition: transform 2.4s ease-in-out; }
.modal-menu .login-bttn { transform: translateX(50px); transition: opacity .4s ease-in-out .5s, transform .4s ease-in-out .5s; }
.modal-menu.is-open .overlay { transform: none; }
.modal-menu.is-open .txtrd { opacity: 1; transform: none; }
.modal-menu.is-open .txtrd img { transform: rotate(-5deg) scale(1); }
.modal-menu.is-open nav > span, .modal-menu.is-open .close-menu, .modal-menu.is-open .login-bttn,
.modal-menu.is-open .soc a, .modal-menu.is-open .wel-foo address p,
.modal-menu.is-open .wel-foo .nav a, .modal-menu.is-open .wel-foo .dab label { opacity: 1; }
.modal-menu.is-open .login-bttn { transform: none; }
.modal-menu.is-open .tlA { transition-delay: .4s; }
.modal-menu.is-open .tlB { transition-delay: .5s; }
.modal-menu.is-open .tlC { transition-delay: .6s; }
.modal-menu.is-open .tlD { transition-delay: .7s; }
.modal-menu.is-open .tlE { transition-delay: .8s; }
.modal-menu.is-open .tlF { transition-delay: .9s; }
.modal-menu.is-open .close-menu { transition-delay: .8s; }
.modal-menu.is-closing { opacity: 0; transform: translateY(50px) scale(.95, .9); transition: all .2s ease-in-out; }
.modal-menu .close-menu { color: #fff; }
.modal-menu nav > span a.h3 { display: inline-block; }
html.menu-open { overflow: hidden; }

/* ------------------------------------------------------------ scroll reveal */
html.js .s .v {
  opacity: 0;
  translate: 0 20px;
  transition: opacity .8s ease-in-out, translate .8s ease-in-out;
  transition-delay: calc(var(--i, 0) * .2s);
}
html.js .s.is-in .v { opacity: 1; translate: none; }
html.js .s .hr {
  scale: 0 1;
  transform-origin: left center;
  transition: scale .8s ease-in-out;
}
html.js .s.is-in .hr { scale: none; }

/* --------------------------------------------------------------- home hero */
/* intro sequence (was a GSAP timeline) */
html.js .home .top-screen .gTlA { animation: roughIn 1.2s linear .4s both, shadowIntenseA .8s ease infinite; }
html.js .home .top-screen .gTlB { animation: roughIn 1.2s linear .8s both, shadowIntenseA .8s ease infinite; }
html.js .home .top-screen .gTlC { animation: roughIn 1.2s linear 1.2s both, shadowIntenseA .8s ease infinite; }
html.js .home .gTlLineV { animation: growV .8s ease-in-out 1.6s both; }
html.js .home .gTlLineH { animation: growH .8s ease-in-out 1.6s both; }
html.js .home header nav, html.js .home .gTlD, html.js .home .gTlE, html.js .home .gTlF,
html.js .home .gTlG, html.js .home .gTlH, html.js .home .gTlI, html.js .home .gTlJ { animation: fadeIn .4s ease-in-out both; }
html.js .home header nav, html.js .home .gTlD { animation-delay: 2.2s; }
html.js .home .gTlE { animation-delay: 2.3s; }
html.js .home .gTlF { animation-delay: 2.4s; }
html.js .home .gTlG { animation-delay: 2.5s; }
html.js .home .gTlH { animation-delay: 2.7s; }
html.js .home .gTlI { animation-delay: 2.8s; }
html.js .home .gTlJ { animation-delay: 2.9s; }
html.js .home .gTlArrow { animation: arrowIn .4s ease-in-out 2.2s both; }
html.js .home .gTlBttn { animation: bttnIn .4s ease-in-out 2.4s both; }
@keyframes roughIn {
  0% { opacity: 0; } 8% { opacity: .6; } 12% { opacity: 0; } 22% { opacity: .3; } 30% { opacity: .05; }
  42% { opacity: .8; } 48% { opacity: .2; } 60% { opacity: .9; } 66% { opacity: .4; } 80% { opacity: 1; }
  86% { opacity: .7; } 100% { opacity: 1; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes arrowIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes bttnIn { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: none; } }
@keyframes growV { from { opacity: 0; transform: scaleX(0); } to { opacity: .2; transform: none; } }
@keyframes growH { from { opacity: 0; transform: scaleY(0); } to { opacity: .2; transform: translateX(-80px); } }
@media (max-width: 767px) {
  @keyframes growH { from { opacity: 0; transform: scaleY(0); } to { opacity: .2; transform: none; } }
}
.home .top-screen .wel-foo address p { margin-bottom: .2rem; }
.home .top-screen .wel-foo address a { color: inherit; }

/* page heads on inner pages: the outlined logo spins in (was a GSAP tween) */
html.js .page .page-head .wel-sec-h .xe-border { animation: xeBorderIn 2.4s ease-in-out both; }
@keyframes xeBorderIn {
  from { opacity: 0; rotate: 20deg; scale: 1.2; }
  to { opacity: 1; rotate: -5deg; scale: 1; }
}

/* ---------------------------------------------------------------- carousels
   Base layout that vue-carousel used to inject; on mobile the slides scroll. */
.VueCarousel { display: flex; flex-direction: column; position: relative; }
.VueCarousel-wrapper { width: 100%; position: relative; overflow: hidden; }
.VueCarousel-inner { display: flex; flex-direction: row; }
.VueCarousel-slide { flex-basis: inherit; flex-grow: 0; flex-shrink: 0; }
@media (min-width: 768px) {
  .about .expertise .VueCarousel-slide { flex: 1 1 25%; }
}

.carousel-dots { display: none; }
@media (max-width: 767px) {
  [data-carousel] .VueCarousel-wrapper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  [data-carousel] .VueCarousel-wrapper::-webkit-scrollbar { display: none; }
  [data-carousel] .VueCarousel-inner { display: flex; }
  [data-carousel] .VueCarousel-slide { flex: 0 0 100%; scroll-snap-align: center; }
  [data-carousel] .VueCarousel-inner .hr { display: none; }
  .home .features [data-carousel] .VueCarousel-wrapper { padding: 0; scroll-padding: 0 15%; }
  .home .features [data-carousel] .VueCarousel-inner { padding: 0 15%; }
  .home .features [data-carousel] .VueCarousel-slide { flex-basis: 100%; }
  .carousel-dots { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
  .carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: #848494; opacity: .4; transition: all .4s; }
  .carousel-dots span.on { background: #4b4cff; opacity: 1; }
}

/* ------------------------------------------- about: removed content blocks */
.about .key .facts .logos:empty { min-height: 1px; }

/* -------------------------------------------- product: "Top features" circle
   The original pinned the circle with ScrollMagic; here it is position:sticky. */
.product .features { overflow: hidden; overflow: clip; } /* clip (unlike hidden) keeps position:sticky working */
.product .features .fea-circle { --circle: min(700px, calc(100vw - 40px)); }
.product .features .fea-circle .pin-circle {
  position: sticky;
  top: calc(50vh - var(--circle) / 2);
  height: var(--circle);
  z-index: 0;
}
.product .features .fea-circle .pin-circle .pin-inner { position: relative; }
.product .features .fea-circle .pin-circle .pin-inner .hr { width: 100%; }
.product .features .fea-circle .pin-circle .pin-inner .circle-path .circle-path-inner .left .inner,
.product .features .fea-circle .pin-circle .pin-inner .circle-path .circle-path-inner .right .inner { transform: rotate(-180deg); }
.product .features .fea-circle .fea-list {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--circle) * -1);
}
.product .features .fea-circle .fea-list .li { height: calc(var(--circle) * 1.1); }
.product .features .fea-circle .fea-list .li .li-inner {
  position: sticky;
  top: calc(50vh - var(--circle) / 2);
  max-width: var(--circle);
  margin: 0 auto;
}
.product .features .fea-circle .fea-list .li .li-inner .img { max-width: min(180px, 30vw); }
.product .features .fea-circle .fea-list .li .li-inner h4,
.product .features .fea-circle .fea-list .li .li-inner p { padding: 0 12%; box-sizing: border-box; }
@media (max-width: 767px) {
  .product .features .fea-circle .fea-list .li .li-inner p { font-size: .85rem; padding: 0 8%; }
  .product .features .fea-circle .fea-list .li .li-inner h4 { font-size: 1.05rem; padding: 0 8%; }
}

/* ---------------------------------------------------------------- contacts */
.contacts .info .bod .soc.is-empty { visibility: hidden; }
.contacts .info .bod .email a { color: #fff; }
.contacts .info .bod .email a:before, .contacts .info .bod .email a:after { content: none; }
.contacts .formsec .head h2 {
  display: inline-block;
  white-space: nowrap;
}
.form .field .error[hidden] { display: none; }
/* keep native checkboxes focusable (the original hid them with display:none) */
.chb { position: relative; }
.chb input[type=checkbox] {
  display: block;
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  margin: 0; opacity: 0;
}
.chb input[type=checkbox]:focus-visible + label:before { outline: 2px solid #4b4cff; outline-offset: 2px; }
.form-note a, .form-note .is-todo { white-space: nowrap; }
.form-status { margin-top: 1rem; color: #848494; min-height: 1em; }
.form-status.is-error { color: #f15139; }

/* ------------------------------------------------------------ legal pages */
.info .icontent .icontent-inner table { display: block; overflow-x: auto; }
.legal-operator { color: #fff; }

/* ------------------------------------------------------------- market insights */
.article .acontent .acontent-inner h3 { font-size: 1.6rem; margin: 3.5rem 0 2rem; }
.article .acontent .acontent-inner h4 { font-size: 1.2rem; margin: 3rem 0 1.2rem; }
.article .page-head .article-date { margin-top: 1rem; }
.marketinsights .insights { padding-bottom: 120px; }
.marketinsights .insights .bod .list { min-height: 0; }

/* ----------------------------------------------------------------------- 404 */
.notfound-body { padding: 60px 0 140px; text-align: center; }
.notfound-body .bttn { display: inline-block; width: auto; padding: 18px 28px; }

/* ----------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001s !important;
    transition-delay: 0s !important;
  }
}

/* "It just works" background grid: drawn as a background so it scales
   (the original used content:url(), which cannot be resized). */
.home .we-start-with .grid:before {
  content: "";
  width: 120%;
  min-width: 120%;
  aspect-ratio: 1600 / 360;
  background: url(../img/grid.svg) center top / 100% auto no-repeat;
  margin-bottom: -60px;
}
@media (min-width: 768px) {
  .home .we-start-with .grid:before { width: 105%; min-width: 960px; margin-bottom: -240px; }
}

/* footer "Since <year>": the year is injected into a nested span */
footer .foo .copy div span span { margin: 0; opacity: 1; display: inline; }

/* ------------------------------------------------- Market insights cover
   gA.jpg is 2x (440x660); shown at 220x330 CSS px (crisp on retina), static. */
.home .insights .bod .adscreen .glitch-box { width: 220px; }
.home .insights .bod .adscreen .glitch-box .cover { display: block; width: 100%; height: auto; }
.home .insights .bod .adscreen .cover-link { display: block; }
.home .insights .bod .adscreen .cover-link:before, .home .insights .bod .adscreen .cover-link:after { content: none; }

/* article pages: byline, cover, closing call to action */
.article .page-head .article-byline { display: block; margin-top: .6rem; color: #848494; font-size: .9rem; }
.article .page-head .article-date time { font: inherit; color: inherit; }
.article .acontent .acontent-inner .article-cover { margin: 0 auto 3rem; width: 220px; max-width: 60%; }
.article .acontent .acontent-inner .article-cover img { display: block; width: 100%; height: auto; margin: 0; left: auto; transform: none; position: static; max-width: 100%; }
.article .acontent .acontent-inner pre {
  background: #101011; color: #d6d6e2; padding: 16px 20px; overflow-x: auto;
  font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; margin: 0 0 1.5rem;
}
.article .acontent .acontent-inner code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; color: #fff; }
.article .acontent .acontent-inner pre code { color: inherit; }
.article .acontent .acontent-inner ol { margin-bottom: 1.5rem; }
.article .acontent .acontent-inner ol li { counter-increment: art; position: relative; padding-left: 28px; margin-bottom: .6rem; }
.article .acontent .acontent-inner ol { counter-reset: art; }
.article .acontent .acontent-inner ol li:before { content: counter(art) "."; background: none; width: auto; height: auto; border-radius: 0; color: #4b4cff; top: 0; font-weight: 700; }
.article .acontent .acontent-inner .article-cta { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(132,132,148,.2); color: #fff; }

/* ------------------------------------------------------ white label service */
.solutions.white-label .wl-intro { margin: 60px 0 20px; }
.solutions.white-label .wl-intro .wrap { max-width: 820px; }
.solutions.white-label .wl-intro .large { color: #fff; }
.solutions .wl-features .columns { flex-wrap: wrap; }
.solutions .wl-features .columns .col p { margin-bottom: 0; }
@media (min-width: 768px) {
  .solutions .wl-features .columns .col { margin-bottom: 3rem; }
}
.solutions.white-label .wl-steps { margin: 20px 0 100px; }
.solutions.white-label .wl-steps .wrap { max-width: 820px; }
.solutions.white-label .wl-steps ol li { position: relative; padding-left: 36px; margin-bottom: 1rem; counter-increment: step; }
.solutions.white-label .wl-steps ol { counter-reset: step; }
.solutions.white-label .wl-steps ol li:before {
  content: counter(step); background: none; width: auto; height: auto; border-radius: 0;
  top: -2px; color: #4b4cff; font: 700 1.2rem Montserrat, Helvetica Neue, Arial, sans-serif;
}
.solutions.white-label .wl-steps ol li b { color: #fff; }
.wl-cta { position: relative; overflow: hidden; padding: 120px 0 140px; text-align: center; }
.wl-cta .txtrd { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.wl-cta .txtrd .middle-text .row span { opacity: .4; white-space: nowrap; -webkit-text-stroke-color: #4b4cff; }
.wl-cta .bod { position: relative; z-index: 2; }
.wl-cta .bod h3 { margin-bottom: 2rem; }
.wl-cta .bod .bttn, .wl-teaser .bttn, .wl-home .bttn { display: inline-block; width: auto; padding: 18px 28px; }

/* /solutions/ teaser and home link */
.wl-teaser { margin: 80px 0 0; }
.wl-teaser .wl-teaser-link {
  display: block; text-align: center; padding: 50px 20px;
  border: 1px solid rgba(75, 76, 255, .4); box-shadow: 0 0 32px rgba(52, 53, 230, .35);
  background: #101011;
}
.wl-teaser .wl-teaser-link:before, .wl-teaser .wl-teaser-link:after { content: none; }
.wl-teaser .wl-teaser-link .xe { color: #4b4cff; margin-bottom: .5rem; }
.wl-teaser .wl-teaser-link .h3 { margin-bottom: 1rem; }
.wl-teaser .wl-teaser-text { display: block; max-width: 560px; margin: 0 auto 2rem; color: #848494; }
.wl-home { margin: -40px 0 80px; }
.wl-home .wrap { text-align: center; }
.wl-home a:before, .wl-home a:after, .wl-cta a:before, .wl-cta a:after { content: none; }
.wl-home .bttn-arrow:after, .wl-cta .bttn-arrow:after, .wl-teaser .bttn-arrow:after { content: url(../img/bttn-arrow.svg); }
.wl-teaser .wl-teaser-link .bttn { background: linear-gradient(-45deg, #e83958, #f15139); color: #fff; box-shadow: 0 8px 24px rgba(16, 16, 17, .2); }
.info .icontent .icontent-inner .legal-effective { color: #fff; }
