/* ==========================================================
   HauzPay – Sub-pages stylesheet
   Shared by how-it-works, solutions & support pages
   ========================================================== */

html,
body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(14px, 1.5vw, 16px);
}

/* Fluid Typography */
h1 {
  font-size: clamp(2rem, 5vw + 1rem, 4rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw + 0.5rem, 2.5rem);
}

h3 {
  font-size: clamp(1.125rem, 2vw + 0.5rem, 1.5rem);
}

h4 {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
}

p,
li,
a {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1.125rem);
}

/* ── Gradient utilities ── */
.gradient-text {
  background: linear-gradient(135deg, #E63946, #D63384, #9B59B6, #6366F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-hauz-gradient {
  background: linear-gradient(135deg, #E63946, #D63384, #9B59B6, #6366F1);
}

.bg-hauz-gradient-light {
  background: linear-gradient(135deg, #fff1f2, #f5f3ff);
}

/* ── Blobs ── */
.blob {
  position: absolute;
  filter: blur(80px);
  opacity: 0.3;
  z-index: -1;
  border-radius: 50%;
  animation: morph 20s ease-in-out infinite alternate;
}

@keyframes morph {
  0% {
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    transform: translate(0, 0) scale(1);
  }
  33% {
    border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
    transform: translate(20px, -30px) scale(1.1);
  }
  66% {
    border-radius: 40% 60% 50% 50% / 50% 40% 60% 50%;
    transform: translate(-10px, 20px) scale(0.9);
  }
  100% {
    border-radius: 60% 40% 60% 40% / 40% 60% 40% 60%;
    transform: translate(0, 0) scale(1);
  }
}

/* ── Navbar ── */
#app-navbar {
  backdrop-filter: blur(24px);
}

#app-navbar.nav-transparent {
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

#app-navbar.nav-solid {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgb(241 245 249);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
}

/* ── Nav links ── */
.nav-link {
  color: rgb(100 116 139);
  text-transform: uppercase;
}

.nav-link .nav-link-underline {
  width: 0;
  opacity: 0;
  transition: width 300ms ease, opacity 300ms ease;
}

.nav-link.is-active {
  color: #E63946;
}

.nav-link.is-active .nav-link-underline {
  width: 100%;
  opacity: 1;
}

/* ── Mobile nav ── */
.mobile-nav-link.is-active {
  color: #E63946;
}

.mobile-nav-link.is-active .mobile-active-dot {
  display: block;
}

/* ── Flow-runner animation (How It Works) ── */
.flow-runner {
  animation: runline 3s linear infinite;
}

@keyframes runline {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* ── Scroll animations ── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-slide-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-slide-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-slide-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.animate-scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-scale-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

.animate-fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
.animate-fade-in.is-visible {
  opacity: 1;
}

/* ── Selection ── */
::selection {
  background: rgba(230, 57, 70, 0.2);
  color: #E63946;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #E63946 0%, #9B59B6 100%);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #D63384 0%, #6366F1 100%);
}

.demo-compose-open {
  overflow: hidden;
}

.demo-compose-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.demo-compose-modal.is-open {
  display: block;
}

.demo-compose-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.demo-compose-modal__panel {
  position: relative;
  width: min(92vw, 620px);
  margin: 7vh auto 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 250, 255, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 32px;
  padding: 40px 32px 32px;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
}

.demo-compose-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.demo-compose-modal__eyebrow {
  color: #d63384;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.demo-compose-modal__title {
  color: #0f172a;
  font-size: clamp(1.5rem, 1.4rem + 0.7vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
}

.demo-compose-modal__copy {
  color: #475569;
  line-height: 1.7;
  margin: 0 0 24px;
}

.demo-compose-modal__actions {
  display: grid;
  gap: 12px;
}

.demo-compose-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.demo-compose-modal__action:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  border-color: #94a3b8;
}

.demo-compose-modal__action--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #e63946, #d63384, #9b59b6, #6366f1);
}

.demo-compose-modal__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.demo-compose-modal__text-action {
  border: 0;
  padding: 0;
  background: transparent;
  color: #d63384;
  font-weight: 700;
  cursor: pointer;
}

.demo-compose-modal__status {
  min-height: 24px;
  margin: 16px 0 0;
  color: #475569;
  font-size: 14px;
}

@media (max-width: 640px) {
  .demo-compose-modal__panel {
    width: min(94vw, 620px);
    margin-top: 5vh;
    padding: 34px 22px 24px;
    border-radius: 24px;
  }

  .demo-compose-modal__secondary {
    flex-direction: column;
    align-items: flex-start;
  }
}
