/* Мобильный лендинг «Скачать приложение» — десктоп / ?web=1 не трогает */

html.aura-mag-pending .splash,
html.aura-mag-on .splash,
html.aura-mag-pending #app,
html.aura-mag-on #app {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.aura-mag-pending,
html.aura-mag-on {
  background: #030308;
}

.aura-mag {
  --mag-accent: #9482ff;
  --mag-accent-2: #5ac8ff;
  --mag-text: #f4f2ff;
  --mag-muted: rgba(220, 214, 255, 0.62);
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  color: var(--mag-text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(120% 90% at 50% 115%, rgba(40, 24, 72, 0.55), transparent 52%),
    radial-gradient(90% 70% at 12% 18%, rgba(72, 48, 140, 0.35), transparent 55%),
    radial-gradient(80% 60% at 88% 22%, rgba(30, 90, 160, 0.28), transparent 50%),
    #030308;
  overflow: hidden;
}

html.aura-mag-pending .aura-mag,
html.aura-mag-on .aura-mag {
  display: block;
}

.aura-mag[hidden] {
  display: none !important;
}

.aura-mag__scroll {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

.aura-mag__hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding:
    max(16px, env(safe-area-inset-top))
    22px
    max(28px, env(safe-area-inset-bottom))
    22px;
  box-sizing: border-box;
}

.aura-mag__brand {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  left: 18px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.aura-mag.is-copy-in .aura-mag__brand {
  opacity: 1;
  transform: translateY(0);
}

.aura-mag__logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
}

.aura-mag__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.aura-mag__phone-host {
  position: absolute;
  inset: 0 0 28% 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.05s cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-mag.is-phone-in .aura-mag__phone-host {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.aura-mag__phone-host .aura-updates-app-panel__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aura-mag__phone-host .aura-updates-app-panel__fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.aura-mag__cta {
  position: relative;
  z-index: 3;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.aura-mag.is-cta-in .aura-mag__cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.aura-mag__download {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #0b0814;
  text-decoration: none;
  text-align: center;
  background: linear-gradient(135deg, #c4b8ff 0%, #9482ff 45%, #6ec8ff 100%);
  box-shadow:
    0 14px 36px rgba(148, 130, 255, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.aura-mag__download:active {
  transform: scale(0.98);
  filter: brightness(0.96);
}

.aura-mag__download.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.2);
}

.aura-mag__ver {
  text-align: center;
  color: rgba(200, 190, 255, 0.45);
  font-size: 0.82rem;
  min-height: 1.1em;
}

.aura-mag__hint {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  font-size: 0.82rem;
  color: rgba(200, 190, 255, 0.45);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.6s ease 0.2s;
  animation: auraMagHintBob 2.4s ease-in-out infinite;
}

.aura-mag.is-cta-in .aura-mag__hint {
  opacity: 1;
}

@keyframes auraMagHintBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

.aura-mag__features {
  position: relative;
  z-index: 2;
  padding: 56px 20px max(72px, env(safe-area-inset-bottom));
  max-width: 560px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, transparent 0%, rgba(12, 10, 28, 0.55) 18%, rgba(8, 8, 18, 0.92) 100%);
}

.aura-mag__features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 280px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(148, 130, 255, 0.55),
    rgba(90, 200, 255, 0.45),
    transparent
  );
  box-shadow: 0 0 24px rgba(148, 130, 255, 0.35);
}

.aura-mag__features-head {
  text-align: center;
  margin-bottom: 28px;
}

.aura-mag__features-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 200, 255, 0.85);
  background: rgba(148, 130, 255, 0.12);
  border: 1px solid rgba(148, 130, 255, 0.22);
}

.aura-mag__features-title {
  margin: 0;
  font-size: clamp(1.55rem, 6.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(120deg, #fff 20%, #c8bcff 55%, #8ed8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aura-mag__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.aura-mag__card {
  position: relative;
  margin: 0;
  padding: 18px 16px 16px;
  border-radius: 20px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid rgba(168, 150, 255, 0.18);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
}

.aura-mag__card::after {
  content: '';
  position: absolute;
  inset: auto -20% -40% auto;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(148, 130, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.aura-mag__card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(90, 200, 255, 0.2), transparent 70%);
}

.aura-mag__card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(180, 120, 255, 0.2), transparent 70%);
}

.aura-mag__card:nth-child(4)::after {
  background: radial-gradient(circle, rgba(100, 180, 255, 0.18), transparent 70%);
}

.aura-mag__card.is-in {
  opacity: 1;
  transform: translateY(0);
}

.aura-mag__card-mark {
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mag-accent), var(--mag-accent-2));
  box-shadow: 0 0 12px rgba(148, 130, 255, 0.45);
}

.aura-mag__card h3 {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.aura-mag__card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--mag-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.aura-mag__footer {
  margin-top: 40px;
  text-align: center;
  color: rgba(200, 190, 255, 0.38);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.aura-mag__web {
  display: none !important;
}

.aura-mag__features-lead,
.aura-mag__sub,
.aura-mag__hero-copy {
  display: none !important;
}

html.aura-no-motion .aura-mag__phone-host,
html.aura-no-motion .aura-mag__brand,
html.aura-no-motion .aura-mag__cta,
html.aura-no-motion .aura-mag__card,
html.aura-no-motion .aura-mag__hint {
  transition: none !important;
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

@media (max-width: 360px) {
  .aura-mag__grid {
    grid-template-columns: 1fr;
  }
}
