/* =============================================================
   QuranSphere — App Landing Page styles
   Extends styles.css (design tokens reused). Conversion-focused.
   ============================================================= */

/* ---------- App hero ---------- */
.app-hero { position: relative; overflow: hidden; padding-top: 3rem; }
.app-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(212,175,55,.12), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(16,185,129,.14), transparent 60%);
}
.app-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; min-height: 86vh; }
.app-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); margin: 1.2rem 0; }
.app-hero .sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-dim); max-width: 540px; }

/* Ratings inline */
.rating-inline { display: flex; align-items: center; gap: 1.4rem; margin: 1.8rem 0; flex-wrap: wrap; }
.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 20px; height: 20px; fill: var(--gold-400); }
.rating-inline .score { font-weight: 700; color: var(--white); }
.rating-inline .muted { color: var(--text-dim); font-size: .92rem; }
.rating-inline .divider { width: 1px; height: 22px; background: rgba(255,255,255,.12); }

/* Store grid reused from styles.css (.store-grid/.store-btn) */
.app-hero .store-grid { margin-top: 1.8rem; max-width: 440px; }

/* Trust row */
.trust-row { display: flex; gap: 2rem; margin-top: 2.4rem; flex-wrap: wrap; }
.trust-row .t .n { font-family: var(--font-display); font-size: 1.9rem; color: var(--gold-300); font-weight: 700; }
.trust-row .t .l { font-size: .82rem; color: var(--text-dim); }

/* ---------- Big phone showcase (hero) ---------- */
.hero-phones { position: relative; display: grid; place-items: center; }
.hero-phones .phone { margin: 0; }
.hero-phones .phone.back {
  position: absolute; transform: scale(.84) translateX(38%) rotate(8deg); opacity: .65; z-index: 0;
  animation: floatB 7s ease-in-out infinite;
}
.hero-phones .phone.front { position: relative; z-index: 1; }
@keyframes floatB { 0%,100% { transform: scale(.84) translateX(38%) rotate(8deg); } 50% { transform: scale(.84) translateX(38%) translateY(-14px) rotate(8deg); } }
.glow-orb { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(16,185,129,.35), transparent 70%); filter: blur(20px); z-index: -1; }

/* ---------- Logos / social proof strip ---------- */
.proof-strip { border-block: 1px solid rgba(255,255,255,.07); padding: 1.6rem 0; }
.proof-strip .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.proof-item { display: flex; align-items: center; gap: .7rem; color: var(--text-dim); font-size: .92rem; }
.proof-item svg { width: 22px; height: 22px; stroke: var(--gold-300); }
.proof-item b { color: var(--white); }

/* ---------- Feature showcase (alternating) ---------- */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; margin-bottom: 5rem; }
.feat-row:nth-child(even) .feat-visual { order: -1; }
.feat-row .pill { display: inline-block; font-size: .78rem; color: var(--gold-400); letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8rem; }
.feat-row h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--white); margin-bottom: .9rem; }
.feat-row p { color: var(--text-dim); margin-bottom: 1.4rem; }
.feat-list li { display: flex; gap: .7rem; align-items: center; color: var(--text-dim); margin-bottom: .7rem; }
.feat-list svg { width: 20px; height: 20px; stroke: var(--emerald-300); flex: none; }
.feat-visual { display: grid; place-items: center; }
.feat-visual .phone { width: 240px; height: 480px; }

/* ---------- Screenshot carousel ---------- */
.shots { overflow: hidden; }
.shots-track {
  display: flex; gap: 1.4rem; padding: 1rem .2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shots-track::-webkit-scrollbar { display: none; }
.shot {
  flex: none; width: 230px; height: 470px; border-radius: 30px; scroll-snap-align: center;
  background: linear-gradient(170deg, var(--emerald-900), var(--slate-900));
  border: 2px solid rgba(255,255,255,.1); padding: 1.3rem 1rem; position: relative; overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.shot .shot-top { display: flex; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: .72rem; margin-bottom: 1rem; }
.shot .shot-ar { font-family: var(--font-arabic); font-size: 1.7rem; color: var(--gold-300); text-align: right; line-height: 2; direction: rtl; }
.shot .shot-label { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; text-align: center; color: var(--white); font-weight: 600; font-size: .9rem; }
.shot-chip { display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: rgba(212,175,55,.14); color: var(--gold-300); font-size: .68rem; }
.shots-nav { display: flex; gap: .8rem; justify-content: center; margin-top: 1.6rem; }
.shots-nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--glass-brd); background: var(--glass-bg); display: grid; place-items: center; transition: border-color .25s; }
.shots-nav button:hover { border-color: var(--glass-brd-strong); }
.shots-nav svg { width: 20px; height: 20px; stroke: var(--text); }

/* ---------- Comparison table ---------- */
.compare { overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare th, .compare td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07); }
.compare thead th { color: var(--text-dim); font-weight: 600; font-size: .9rem; }
.compare thead th.us { color: var(--gold-300); }
.compare tbody td:first-child { color: var(--text); }
.compare td.check svg { width: 22px; height: 22px; stroke: var(--emerald-300); }
.compare td.cross svg { width: 20px; height: 20px; stroke: #ef6b6b; opacity: .7; }
.compare td { text-align: center; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare .us-col { background: rgba(212,175,55,.05); }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.4rem; }
.review { padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.review .stars svg { width: 16px; height: 16px; }
.review p { color: var(--ink); font-size: .98rem; line-height: 1.6; }
.review .who { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.review .who .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--emerald-600), var(--slate-800)); color: var(--gold-300); font-weight: 700; }
.review .who .nm { color: var(--white); font-weight: 600; font-size: .92rem; }
.review .who .src { color: var(--text-dim); font-size: .78rem; }

/* ---------- Ratings breakdown ---------- */
.ratings-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; }
.big-score { text-align: center; padding: 2rem; }
.big-score .num { font-family: var(--font-display); font-size: 4.5rem; color: var(--white); line-height: 1; }
.big-score .stars svg { width: 24px; height: 24px; }
.big-score .count { color: var(--text-dim); margin-top: .6rem; }
.bars .bar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .7rem; }
.bars .bar-row .lab { width: 14px; color: var(--text-dim); font-size: .9rem; }
.bars .track { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.bars .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); width: 0; transition: width 1.2s var(--ease); }
.bars .pc { width: 42px; text-align: right; color: var(--text-dim); font-size: .85rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.08); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; text-align: left; font-weight: 600; color: var(--white); font-size: 1.05rem; }
.faq-q .ic { flex: none; width: 24px; height: 24px; transition: transform .3s var(--ease); }
.faq-q .ic svg { width: 24px; height: 24px; stroke: var(--gold-300); }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a p { color: var(--text-dim); padding-bottom: 1.4rem; }

/* ---------- Big CTA band ---------- */
.cta-band { position: relative; text-align: center; padding: clamp(4rem, 8vw, 6rem) 0; overflow: hidden; }
.cta-band .glass { padding: clamp(2.5rem, 5vw, 4rem); position: relative; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.cta-band p { color: var(--text-dim); max-width: 520px; margin: 0 auto 2rem; }
.cta-band .store-grid { max-width: 460px; margin-inline: auto; }

/* ---------- Sticky bottom bar ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  background: rgba(6,13,11,.9); backdrop-filter: blur(18px);
  border-top: 1px solid var(--glass-brd-strong);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.sticky-cta .info { display: flex; align-items: center; gap: .9rem; }
.sticky-cta .info .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800)); border: 1px solid var(--glass-brd-strong); flex: none; }
.sticky-cta .info .ic svg { width: 22px; height: 22px; stroke: var(--gold-300); }
.sticky-cta .info .tx b { color: var(--white); display: block; font-size: .95rem; }
.sticky-cta .info .tx small { color: var(--text-dim); }
.sticky-cta .actions { display: flex; gap: .7rem; }

/* ---------- Exit-intent modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(3,8,6,.7); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  max-width: 460px; width: 100%; padding: 2.5rem; text-align: center; position: relative;
  transform: scale(.94); transition: transform .35s var(--ease);
}
.modal-overlay.show .modal { transform: scale(1); }
.modal .close { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--glass-brd); color: var(--text-dim); font-size: 1.2rem; }
.modal .gift { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); }
.modal .gift svg { width: 32px; height: 32px; stroke: #2a1f00; }
.modal h3 { font-size: 1.7rem; color: var(--white); margin-bottom: .6rem; }
.modal p { color: var(--text-dim); margin-bottom: 1.6rem; }
.modal .store-grid { grid-template-columns: 1fr 1fr; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .app-hero-grid, .feat-row, .ratings-wrap { grid-template-columns: 1fr; }
  .feat-row { gap: 2rem; margin-bottom: 3.5rem; }
  .feat-row:nth-child(even) .feat-visual { order: 0; }
  .hero-phones { margin-top: 1rem; }
}
@media (max-width: 600px) {
  .sticky-cta .info .tx small { display: none; }
  .sticky-cta .actions .btn-ghost { display: none; }
  .trust-row { gap: 1.4rem; }
}

/* ---------- Video facade (lazy YouTube) ---------- */
.video-facade {
  position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16/9;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  background-size: cover; background-position: center;
}
.video-facade::after { content: ""; position: absolute; inset: 0; background: rgba(4,15,12,.45); transition: background .3s; }
.video-facade:hover::after { background: rgba(4,15,12,.25); }
.video-facade:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 3px; }
.video-play {
  position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #2a1f00;
  box-shadow: 0 14px 40px -8px rgba(212,175,55,.6); transition: transform .25s var(--ease);
}
.video-facade:hover .video-play { transform: translate(-50%,-50%) scale(1.08); }
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
