/* Pavitra Mantra — onboarding / splash (mobile) */
:root {
  --pm-orange: #ff9800;
  --pm-orange-shadow: rgba(255, 152, 0, 0.35);
  --pm-icon-bg: #fff9f0;
  --pm-title: #333333;
  --pm-text: #666666;
  --pm-skip: #888888;
  --pm-dot: #d3d3d3;
  --pm-white: #ffffff;
  --pm-slide-count: 3;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body.pm-splash-body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--pm-white);
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.pm-splash-app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--pm-white);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.pm-splash-skip {
  align-self: flex-end;
  margin: 22px 24px 0;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--pm-skip);
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 5;
}

.pm-splash-skip:focus {
  outline: none;
}

.pm-splash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  width: 100%;
  padding: 8px 0 0;
}

/* Clip adjacent slides — fixes next-slide text bleed */
.pm-splash-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.pm-splash-track {
  display: flex;
  width: calc(var(--pm-slide-count) * 100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.pm-splash-slide {
  flex: 0 0 calc(100% / var(--pm-slide-count));
  width: calc(100% / var(--pm-slide-count));
  min-width: calc(100% / var(--pm-slide-count));
  max-width: calc(100% / var(--pm-slide-count));
  text-align: center;
  padding: 0 32px;
  overflow: hidden;
}

.pm-splash-icon-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--pm-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pm-splash-icon-wrap svg {
  display: block;
  width: 104px;
  height: 104px;
}

.pm-splash-icon-wrap--tv svg {
  width: 100px;
  height: 90px;
}

.pm-splash-icon-wrap--sparkles svg {
  width: 112px;
  height: 102px;
}

.pm-splash-title {
  margin: 40px 0 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--pm-title);
  letter-spacing: -0.02em;
}

.pm-splash-desc {
  margin: 14px auto 0;
  max-width: 280px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--pm-text);
}

.pm-splash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
  flex-shrink: 0;
}

.pm-splash-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 8px;
}

.pm-splash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pm-dot);
  border: none;
  padding: 0;
  transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
}

.pm-splash-dot.is-active {
  width: 24px;
  height: 8px;
  border-radius: 4px;
  background: var(--pm-orange);
}

.pm-splash-btn {
  min-width: 108px;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 10px;
  background: var(--pm-orange);
  color: var(--pm-white);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--pm-orange-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pm-splash-btn:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px var(--pm-orange-shadow);
}

.pm-splash-btn:focus {
  outline: none;
}

@media (max-width: 360px) {
  .pm-splash-slide {
    padding: 0 24px;
  }

  .pm-splash-icon-wrap {
    width: 200px;
    height: 200px;
  }

  .pm-splash-icon-wrap svg {
    width: 88px;
    height: 88px;
  }
}

@media (min-width: 481px) {
  body.pm-splash-body {
    background: #f5f5f5;
  }

  .pm-splash-app {
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
  }
}
