@import url('/brand.css');

.app-boot {
  box-sizing: border-box;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(2.5rem, env(safe-area-inset-top)) 1.25rem max(2.5rem, env(safe-area-inset-bottom));
  background: #f8fafc;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #334155;
  -webkit-font-smoothing: antialiased;
}

.app-boot__card {
  animation: app-boot-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-boot__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 0.5rem;
  margin-top: 1.75rem;
}

.app-boot__loader span {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 9999px;
  background: var(--color-brand);
  opacity: 0.35;
  animation: app-boot-dot 1.1s ease-in-out infinite;
}

.app-boot__loader span:nth-child(2) {
  animation-delay: 0.15s;
}

.app-boot__loader span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes app-boot-rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes app-boot-dot {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-boot__card,
  .app-boot__loader span {
    animation: none;
  }
}
