:root {
  /* The page: light, as on Hudhud, with Wasl's plum where Hudhud uses teal */
  --page: #FFFFFF;
  --tint: #F7F4FA;
  --line: #ECE7F1;
  --text: #272525;
  --soft: #5E5470;
  --muted: #7A7088;
  --plum: #6B4F8A;
  --lilac: #CDB6DC;
  --butter: #F3D597;
  /* The app itself is dark, so the phone keeps the app's colours */
  --app-ground: #2A2235;
  --app-deep: #1B1420;
  --app-text: #F7F2E8;
  --app-soft: rgba(247, 242, 232, 0.74);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--text); font-family: 'Thmanyah Sans', system-ui, sans-serif; font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Header: Hudhud's layout. Floats 30px down, clear until the page scrolls, then a soft blur */
.top { position: fixed; inset: 30px 0 auto 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 32px; border-radius: 20px; transition: background-color 300ms var(--ease), backdrop-filter 300ms var(--ease); }
.top.scrolled .wrap { background: rgba(255, 255, 255, 0.5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo-icon { width: 36px; height: 36px; border-radius: 8px; }
.logo-name { font-size: 22px; font-weight: 500; line-height: 1; }
/* The wordmark's shape, filled with plum (footer and community section) */
.logo-mark { display: block; height: 34px; aspect-ratio: 520 / 340; background: var(--plum); -webkit-mask: url('assets/wordmark.png') center / contain no-repeat; mask: url('assets/wordmark.png') center / contain no-repeat; }
.top-actions { display: flex; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid #E5E7EB; background: #fff; color: var(--text); font-size: 17px; font-weight: 500; }
.chip svg { width: 16px; height: 16px; }
.chip { transition: border-color 150ms var(--ease); }
.chip:hover { border-color: var(--lilac); }
.mobile-only { display: none; }

.store { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 10px; background: var(--text); color: #fff; font-weight: 500; font-size: 15px; white-space: nowrap; }
.store small { display: block; font-size: 11px; font-weight: 300; line-height: 1.1; opacity: 0.75; }
.store span { line-height: 1.2; }
.store { transition: transform 150ms var(--ease), opacity 150ms var(--ease); }
.store:active { transform: scale(0.98); }
.store.dark { background: #fff; color: var(--text); border: 1px solid var(--line); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 48px; padding: 140px 0 80px; }
.hero h1 { font-weight: 500; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.25; }
.hero h1 em { font-style: normal; color: var(--plum); }
.hero p { margin-top: 20px; color: var(--soft); max-width: 32em; font-size: 18px; }
.hero .stores { margin-top: 32px; }

/* The phone, drawn from the app's own home screen */
.phone { justify-self: center; width: 300px; aspect-ratio: 9 / 19; border-radius: 46px; background: var(--app-deep); padding: 12px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16), inset 0 0 0 2px rgba(255, 255, 255, 0.06); color: var(--app-text); }
.screen { height: 100%; border-radius: 36px; background: var(--app-ground); overflow: hidden; padding: 44px 14px 14px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.screen::before { content: ''; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 14px; background: var(--app-deep); }
.greet { font-weight: 500; font-size: 19px; line-height: 1.3; }
.greet small { display: block; font-weight: 300; font-size: 11px; color: var(--app-soft); }
.verse-card { border-radius: 22px; padding: 16px 12px; text-align: center; background: url('assets/blur.jpg') center / cover; position: relative; overflow: hidden; }
.verse-card::before { content: ''; position: absolute; inset: 0; background: rgba(42, 34, 53, 0.55); }
.verse-card > * { position: relative; }
.verse-card .label { font-size: 10px; color: var(--butter); }
.verse-card .ayah { font-family: 'Amiri Quran', serif; font-size: 17px; line-height: 2; }
.verse-card .ref { font-size: 10px; color: var(--app-soft); }
.stars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.star-card { border-radius: 14px; padding: 24px 8px 12px; text-align: center; font-size: 9px; line-height: 1.4; position: relative; color: var(--app-deep); }
.star-card b { display: block; font-size: 10px; margin: 2px 0; }
.star-card i { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); width: 34px; height: 34px; background: var(--app-deep); clip-path: polygon(50% 0, 62% 26%, 85% 15%, 74% 38%, 100% 50%, 74% 62%, 85% 85%, 62% 74%, 50% 100%, 38% 74%, 15% 85%, 26% 62%, 0 50%, 26% 38%, 15% 15%, 38% 26%); display: grid; place-items: center; color: var(--butter); font-style: normal; font-size: 8px; }
.c1 { background: var(--plum); color: var(--app-text); }
.c2 { background: var(--lilac); }
.c3 { background: var(--butter); }
.mini-label { font-size: 11px; font-weight: 500; margin-top: 2px; }
.mini-reflection { border-radius: 16px; padding: 12px; background: url('assets/blur.jpg') center / cover; position: relative; overflow: hidden; font-size: 11px; }
.mini-reflection::before { content: ''; position: absolute; inset: 0; background: rgba(42, 34, 53, 0.6); }
.mini-reflection > * { position: relative; display: block; }
.mini-reflection b { font-size: 13px; line-height: 1.45; }
.mini-reflection span { color: var(--app-soft); margin-top: 6px; }
.ehsan-mini { border-radius: 16px; padding: 12px; background: linear-gradient(to left, #2A7467, #4F8F68); font-size: 11px; display: grid; gap: 8px; }
.ehsan-mini b { font-size: 12px; }
.ehsan-mini span { justify-self: start; border-radius: 10px; padding: 2px 10px; background: #1F5A47; color: #D5F0A8; }

/* Sections */
section { padding: 96px 0; }
.eyebrow { font-size: 14px; color: var(--plum); font-weight: 500; }
h2 { font-weight: 500; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; margin-top: 8px; }

/* Why: three needs, each with its answer */
.needs { padding: 0 0 32px; }
.needs .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.need { background: var(--tint); border-radius: 16px; padding: 24px; display: grid; gap: 4px; }
.need span { color: var(--soft); font-size: 15px; }
.need b { font-weight: 500; font-size: 20px; }

/* The journey */
.journey-head { text-align: center; padding: 96px 0 32px; }
.step { padding: 48px 0; }
.step .wrap { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.step.flip .wrap > :first-child { order: 2; }
.step-star { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; background: var(--plum); color: var(--butter); font-style: normal; font-size: 16px; clip-path: polygon(50% 0, 62% 26%, 85% 15%, 74% 38%, 100% 50%, 74% 62%, 85% 85%, 62% 74%, 50% 100%, 38% 74%, 15% 85%, 26% 62%, 0 50%, 26% 38%, 15% 15%, 38% 26%); }
.step h3 { font-weight: 500; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.35; margin-top: 4px; }
.step p { color: var(--soft); margin-top: 12px; font-size: 18px; }
.panel { border-radius: 20px; background: var(--tint); padding: 32px; min-height: 380px; display: grid; place-items: center; position: relative; overflow: hidden; }
/* A phone rising from the panel's bottom edge */
.panel.cut { padding: 40px 32px 0; min-height: 440px; place-items: end center; }
.cut-phone { width: 280px; height: 400px; aspect-ratio: auto; border-radius: 40px 40px 0 0; padding: 10px 10px 0; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.16); }
.cut-phone .screen { border-radius: 32px 32px 0 0; gap: 8px; }

/* Screens, drawn from the app */
.s-title { font-size: 18px; font-weight: 500; }
.s-chips { display: flex; gap: 6px; font-size: 10px; }
.s-chips span { border-radius: 10px; padding: 2px 10px; background: rgba(247, 242, 232, 0.08); color: var(--app-soft); }
.s-chips .on, .s-actions .on { background: var(--plum); color: var(--app-text); }
.m-row { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 10px 12px; background: rgba(247, 242, 232, 0.06); }
.m-row b { display: block; font-size: 12px; font-weight: 500; }
.m-row small { display: block; font-size: 10px; color: var(--app-soft); }
.badge { flex: none; display: grid; place-items: center; width: 40px; height: 40px; font-style: normal; font-size: 9px; color: var(--app-deep); clip-path: polygon(50% 0, 62% 26%, 85% 15%, 74% 38%, 100% 50%, 74% 62%, 85% 85%, 62% 74%, 50% 100%, 38% 74%, 15% 85%, 26% 62%, 0 50%, 26% 38%, 15% 15%, 38% 26%); }
.b1 { background: var(--butter); } .b2 { background: var(--lilac); } .b3 { background: #E9DCC4; }
.s-notif { border-radius: 14px; padding: 8px 12px; background: rgba(247, 242, 232, 0.94); color: var(--app-deep); font-size: 10px; line-height: 1.5; }
.s-notif b { display: block; font-size: 11px; font-weight: 500; }
.s-hero { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 8px 0 4px; }
.s-hero .badge { width: 52px; height: 52px; font-size: 10px; margin-bottom: 4px; }
.s-hero b { font-size: 16px; font-weight: 500; }
.s-hero small { font-size: 11px; color: var(--app-soft); }
.s-info { display: flex; justify-content: space-between; gap: 8px; padding: 8px 4px; border-top: 1px solid rgba(247, 242, 232, 0.08); font-size: 11px; }
.s-info span { color: var(--app-soft); }
.s-info b { font-weight: 500; }
.s-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 10px; border: 1px solid rgba(247, 242, 232, 0.16); font-size: 12px; }
.s-btn.on { background: var(--plum); border-color: var(--plum); }
.s-btn svg { width: 14px; height: 14px; }
.s-prompt { display: flex; gap: 8px; align-items: stretch; border-radius: 20px; padding: 24px 10px 10px; background: rgba(247, 242, 232, 0.06); }
.s-prompt .star-card { width: 92px; flex: none; }
.s-side { flex: 1; display: grid; gap: 6px; align-content: start; }
.s-side > b { font-size: 13px; font-weight: 500; color: var(--butter); }
.s-field { min-height: 88px; border-radius: 12px; padding: 8px 10px; border: 1px solid rgba(247, 242, 232, 0.16); font-size: 11px; line-height: 1.6; }
.caret { display: inline-block; width: 1px; height: 12px; margin-inline-start: 2px; vertical-align: middle; background: var(--app-text); }
.s-actions { display: flex; gap: 6px; font-size: 10px; }
.s-actions span { flex: 1; text-align: center; border-radius: 10px; padding: 6px 0; background: rgba(247, 242, 232, 0.08); }
.s-note { border-radius: 16px; padding: 12px; background: url('assets/blur.jpg') center / cover; position: relative; overflow: hidden; }
.s-note::before { content: ''; position: absolute; inset: 0; background: rgba(42, 34, 53, 0.6); }
.s-note > * { position: relative; display: block; }
.s-note b { font-size: 14px; font-weight: 500; line-height: 1.5; }
.s-note small { margin-top: 4px; font-size: 10px; color: var(--app-soft); }
.verse-card.big { padding: 20px 12px; }
.verse-card.big .ayah { font-size: 19px; }
.verse-card .q { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(247, 242, 232, 0.16); font-size: 11px; }
.deck { position: relative; padding-top: 8px; }
.deck::before { content: ''; position: absolute; inset: 0 12px auto; height: 24px; border-radius: 16px; background: rgba(247, 242, 232, 0.12); }

/* Community */
.together { text-align: center; }
.together .wrap { max-width: 760px; }
.together-logo { height: clamp(72px, 10vw, 112px); margin: 0 auto 24px; }
.together p { color: var(--soft); margin-top: 16px; }
.together .store { margin-top: 32px; background: var(--plum); }

/* Topics band */
.band { background: #F9F9F9; padding: 80px 0; }
.band-head { margin-bottom: 32px; text-align: center; }
.band-head h2 { font-weight: 500; font-size: clamp(24px, 2.8vw, 32px); }
.track { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 880px; margin-inline: auto; padding: 0 16px; }
.track span { flex: none; border: 1px solid var(--line); border-radius: 12px; padding: 12px 20px; color: var(--text); font-size: 16px; background: #fff; }

/* Closing */
.closing { text-align: center; padding: 96px 0; }
.closing h2 { font-size: clamp(28px, 3.6vw, 44px); }
.closing .stores { justify-content: center; margin-top: 32px; }

/* Footer: a rounded card, brand and links on one side, details in the middle */
footer { padding: 0 24px 64px; }
.footer-card { width: min(1160px, 100%); margin-inline: auto; background: #F7F8FA; border-radius: 20px; padding: 48px; display: grid; grid-template-columns: 320px 1fr; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 160px; }
.footer-brand .logo-mark { height: 40px; align-self: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--soft); }
.footer-links span { color: var(--muted); }
.footer-links a:hover { color: var(--plum); }
.footer-copy { margin-top: 8px; font-size: 14px; color: var(--muted); }
.footer-info { padding: 0 32px; display: grid; align-content: start; gap: 16px; font-size: 15px; color: var(--soft); }
.footer-info p { display: flex; gap: 12px; align-items: flex-start; }
.footer-info a:hover { color: var(--plum); }
.footer-info .footer-tagline { display: block; color: var(--muted); }
.footer-info svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--plum); }

/* Policy pages */
.doc { padding: 128px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: 38px; font-weight: 500; line-height: 1.3; }
.doc h2 { font-size: 20px; font-weight: 500; margin-top: 40px; }
.doc p, .doc li { color: var(--soft); margin-top: 12px; }
.doc .note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--tint); color: var(--plum); font-size: 15px; }

/* One entrance: the hero fades and rises once on load */
.hero .wrap { animation: rise 450ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 900px) {
  .footer-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .footer-brand { min-height: 0; }
  .footer-info { padding: 0; }
  .top { top: 12px; }
  .top .wrap { padding: 0 8px; }
  .top-actions .chip:not(.mobile-only) { display: none; }
  .chip { border-radius: 21px; }
  .mobile-only { display: inline-flex; }
  .hero .wrap, .step .wrap { grid-template-columns: 1fr; gap: 32px; }
  .step.flip .wrap > :first-child { order: 0; }
  .needs .wrap { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 32px 0; }
  .journey-head { padding: 64px 0 16px; }
  .hero .wrap { padding: 112px 0 56px; }
  section { padding: 64px 0; }
  .panel.cut { min-height: 400px; padding: 32px 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .wrap { animation: none; }
}
