@font-face {
  font-family: "KFGQPC";
  src: url("../assets/fonts/KFGQPC-Uthmanic-Script-HAFS-Regular.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: #020e0d;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  background: linear-gradient(135deg, #020e0d 0%, #041a18 55%, #062826 100%);
}

.pilgrim-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.logo-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.24;
}

.logo-backdrop img {
  position: absolute;
  left: var(--logo-left, 50%);
  top: var(--logo-top, 50%);
  width: var(--logo-size, min(68vw, 46vh));
  height: auto;
}

.logo-ambient {
  position: absolute;
  left: var(--logo-left, 50%);
  top: var(--logo-top, 50%);
  width: var(--logo-size, min(68vw, 46vh));
  height: var(--logo-size, min(68vw, 46vh));
  pointer-events: none;
}

.talbiyah-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.talbiyah-lines {
  width: min(100%, 640px);
  transition: opacity 600ms ease-in-out;
}

.talbiyah-lines.is-fading-out {
  opacity: 0;
}

.talbiyah-line {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 0;
  font-family: "KFGQPC", "Amiri", serif;
  font-size: clamp(1.35rem, 4.8vw, 1.875rem);
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  color: #ffffff;
  opacity: 0;
}

.talbiyah-line.is-visible {
  opacity: 1;
}

.talbiyah-line.is-fading-in {
  animation: line-fade-in 2000ms ease-in forwards;
}

@keyframes line-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.footer {
  position: relative;
  z-index: 1;
  padding: 0 24px calc(28px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}

.footer-brand {
  margin: 0 0 6px;
  font-size: clamp(1rem, 3.2vw, 1.125rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.footer-tagline {
  margin: 0;
  font-size: clamp(0.75rem, 2.8vw, 0.875rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #c9a962;
}
