/* MOTUS TRAINING — Premium Motion Identity.
   Monograma geométrico premium em camadas, sem linhas verdes. */

.mx-splash {
  display: none;
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  .mx-splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-content: center;
    justify-items: center;
    background: #0B0D0F;
    opacity: 1;
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 280ms ease-out;
    isolation: isolate;
  }
}

.mx-splash.out {
  opacity: 0;
  pointer-events: none;
}

.mx-logo {
  position: relative;
  z-index: 1;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  transform: translateY(10px);
}

.mx-logo::before,
.mx-logo::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 22px;
  pointer-events: none;
  opacity: 0;
}

.mx-logo::before {
  border: 2px solid rgba(255, 255, 255, 0.8);
  clip-path: polygon(25% 11%, 75% 11%, 91% 50%, 75% 89%, 25% 89%, 9% 50%);
  transform: translateX(-26px) rotate(-8deg) scale(0.76);
  animation: mx-shell-back 1440ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms forwards;
}

.mx-logo::after {
  inset: -8px;
  border: 2px solid rgba(255, 255, 255, 0.66);
  clip-path: polygon(25% 11%, 75% 11%, 91% 50%, 75% 89%, 25% 89%, 9% 50%);
  transform: translateX(24px) rotate(8deg) scale(0.82);
  animation: mx-shell-front 1360ms cubic-bezier(0.2, 0.8, 0.2, 1) 260ms forwards;
}

.mx-logo img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.82) translate(-12px, 16px) rotate(-8deg);
  animation: mx-mark-arrive 1160ms cubic-bezier(0.18, 0.85, 0.24, 1) 420ms forwards;
}

.mx-word {
  display: none;
}

@keyframes mx-mark-arrive {
  0% {
    opacity: 0;
    transform: scale(0.82) translate(-12px, 16px) rotate(-8deg);
  }

  48% {
    opacity: 1;
    transform: scale(1.04) translate(2px, -2px) rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) translate(0, 0) rotate(0deg);
  }
}

@keyframes mx-shell-back {
  0% {
    opacity: 0;
    transform: translateX(-26px) rotate(-8deg) scale(0.76);
  }

  28% {
    opacity: 0.7;
  }

  100% {
    opacity: 0;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@keyframes mx-shell-front {
  0% {
    opacity: 0;
    transform: translateX(24px) rotate(8deg) scale(0.82);
  }

  28% {
    opacity: 0.8;
  }

  100% {
    opacity: 0;
    transform: translateX(0) rotate(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mx-splash {
    transition: none;
  }

  .mx-logo::before,
  .mx-logo::after {
    animation: none;
    opacity: 0;
  }

  .mx-logo img {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* selo e textos de PREVIEW (2026-10-24): escondidos por padrão; só aparecem quando o SERVIDOR confirma o preview local
   (api.js loadConfig marca data-preview="on"). Antes eram removidos depois de carregar a config — se esse passo falhasse
   (servidor acordando, login do Supabase), o selo "DEMO DATA" ficava no app publicado. */
:root:not([data-preview="on"]) [data-preview-only] { display: none !important; }
