*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* ─── App wrapper ─── */
.app {
  position: relative;
  width: 24.375rem;
  height: 52.75rem;
  margin: 0 auto;
  overflow: hidden;
  transform-origin: top left;
}

/* ─── Screen ─── */
.screen {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.screen--active {
  transform: translateX(0);
}

.screen--exit {
  transform: translateX(-100%);
}

.screen__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.screen--prayer::after,
.screen--how::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.screen--prayer::after {
  background: rgba(0, 0, 0, 0.08);
}

.screen--how::after {
  background: rgba(0, 0, 0, 0.35);
}

/* ─── Button ─── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: #0ed0fb;
  border: none;
  border-radius: 5rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: #191d23;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:active {
  opacity: 0.8;
}

.btn__icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
  border-radius: 50%;
}

/* ─── Brand text ─── */
.text--brand {
  color: #0ed0fb;
}

/* ─── Logo ─── */
.logo {
  position: absolute;
  top: 4rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.logo__img {
  display: block;
  width: 16.5625rem;
  height: 5rem;
  object-fit: contain;
}

/* ─── Stars ─── */
.stars {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stars::before {
  content: '';
  position: absolute;
  width: 2rem;
  height: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  filter: blur(0.75rem);
  left: 0.5rem;
  z-index: 0;
}

.stars__img {
  position: relative;
  width: 4rem;
  height: 1.6875rem;
  display: block;
  z-index: 1;
}

/* ════════════════════════════════
   SCREEN 1 — splash
════════════════════════════════ */

.splash__content {
  position: absolute;
  top: 12.875rem;
  left: 1.25rem;
  width: 21.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 1;
}

.splash__headline {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 2.625rem;
  line-height: 1.1;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  width: 100%;
}

.splash__subtext {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  font-size: 1.625rem;
  line-height: 1.2;
  text-align: center;
  color: #fff;
  text-shadow: 0 0 0.25rem rgba(1, 0, 22, 1);
  width: 100%;
}

.screen--splash .btn {
  position: absolute;
  top: 34.9375rem;
  left: 2rem;
  width: 20.3125rem;
  padding: 0.625rem 1.25rem;
  font-size: 1.25rem;
  line-height: 1.5rem;
  z-index: 1;
}

.splash__bottom {
  position: absolute;
  top: 45.1875rem;
  left: 2rem;
  width: 20.375rem;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.splash__bottom img {
  width: 100%;
}

/* ════════════════════════════════
   SCREEN 2 — prayer
════════════════════════════════ */

.prayer {
  position: absolute;
  top: 4rem;
  left: 2rem;
  width: 20.375rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.5rem;
  z-index: 1;
}

.prayer__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.prayer__title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 900;
  font-size: 2.25rem;
  line-height: 2.75rem;
  color: rgba(255, 255, 255, 0.96);
  text-align: left;
}

.prayer__stars {
  width: 6.625rem;
  height: 1.125rem;
  display: block;
}

.prayer__needs {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

.prayer__needs-label {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 2rem;
  color: #fff;
  text-align: left;
}

.prayer__needs-list {
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: rgba(255, 255, 255, 0.81);
  text-align: left;
}

.screen--prayer .btn {
  padding: 0.625rem 1.25rem;
  font-size: 1.25rem;
  line-height: 1.5rem;
}

.prayer__quote {
  font-family: 'Nunito', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: #fff;
  text-align: left;
}

/* ════════════════════════════════
   SCREEN 3 — how
════════════════════════════════ */

.how {
  position: absolute;
  top: 8.125rem;
  left: 1rem;
  width: 22.375rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  z-index: 1;
}

.how__title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 2rem;
  color: rgba(255, 255, 255, 0.93);
  text-align: center;
  align-self: stretch;
}

.feature {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: stretch;
}

.feature__icon {
  width: 3.75rem;
  height: 3.75rem;
  flex-shrink: 0;
}

.feature__text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.feature__title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.75rem;
  color: #fff;
  text-align: left;
}

.feature__desc {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.25rem;
  color: #fff;
  text-align: left;
}

.how__cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
  width: 20.375rem;
}

.how__cta-label {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: #fff;
  text-align: center;
}

.screen--how .btn {
  padding: 0.625rem 1.25rem;
  font-size: 1.125rem;
  line-height: 1.375rem;
}

/* ─── Scaling to viewport ─── */
@media screen {
  .app {
    transform: scale(var(--scale, 1));
  }
}
