:root {
  --violet: #7c5cff;
  --rose: #ff5ca8;
  --ink: #211f34;
  --mist: #7e7d92;
  --panel: rgba(255, 255, 255, 0.92);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: linear-gradient(160deg, #f8f7ff 0%, #fff5fb 55%, #eef8ff 100%);
  color: var(--ink);
}

.onboarding {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
}

.slides {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 28px 12px;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.slide-inner {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.icon-ring {
  width: 120px;
  height: 120px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  box-shadow: 0 18px 40px rgba(124, 92, 255, 0.28);
}

.icon-ring svg {
  width: 64px;
  height: 64px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 7vw, 36px);
  line-height: 1.15;
  font-weight: 700;
}

.copy {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--mist);
}

.footer {
  flex-shrink: 0;
  padding: 12px 20px calc(16px + var(--safe-bottom));
  background: var(--panel);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(135, 130, 170, 0.18);
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.22);
  transition: width 0.25s ease, background 0.25s ease;
}

.dot.active {
  width: 22px;
  background: linear-gradient(90deg, var(--violet), var(--rose));
}

.cta {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 20px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--rose));
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.28);
  cursor: pointer;
}

.cta:active {
  transform: scale(0.98);
}

@media (max-height: 640px) {
  .icon-ring {
    width: 96px;
    height: 96px;
    border-radius: 28px;
  }

  .icon-ring svg {
    width: 52px;
    height: 52px;
  }

  h1 {
    font-size: 26px;
  }

  .copy {
    font-size: 15px;
  }
}
