/* HearAI Paper Splash (§4.11 & iOS Mobile UX Safeguards) */
html, body {
  height: 100%;
  height: 100dvh;
  min-height: 100dvh;
  background-color: #F5F1EA;
  margin: 0;
  padding: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Safari iOS autozoom prevention (font-size >= 16px) */
input, textarea, select {
  font-size: 16px !important;
}

#splash {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #F5F1EA;
  z-index: 99999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0F2540;
  transition: opacity 0.3s ease-out;
}

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

/* The canonical lockup (И3.6): arcs mark breathing like the mobile
   SoundArcsLoader (sound being born), the wordmark pulled toward the mark,
   the tagline under it. Colors from docs/hearai_logo_mark.svg. */
.splash-mark {
  margin-bottom: -34px; /* paint-only pull-up, like BrandLockup's Transform */
  z-index: 1;
}

.splash-arcs {
  transform-origin: 100px 126px;
  animation: splash-breathe 1.8s ease-in-out infinite;
}

.splash-dot {
  transform-origin: 100px 126px;
  animation: splash-breathe 1.8s ease-in-out infinite;
}

@keyframes splash-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.72; }
}

.splash-wordmark {
  position: relative;
  z-index: 2;
  font-size: 40px;
  letter-spacing: -0.02em;
  color: #0F2540;
}

.splash-wordmark .accent {
  color: #D97757;
  font-weight: 700;
}

.splash-tagline {
  margin-top: 10px;
  font-size: 15px;
  /* = dawnLight textTertiary (the 2026-11 AA retune: #566A7E clears 4.5:1 on every light tint). */
  color: #566A7E;
}
