:root {
  color-scheme: dark;
  --background: #080f1c;
  --panel: #101c2e;
  --text: #f6f7fa;
  --muted: #a9b5c7;
  --brand-blue: #083876;
  --brand-red: #e21f26;
  --brand-red-ink: #ff9296;
  --accent: #9dc3ef;
  --border: rgba(173, 198, 228, .14);
}

* { box-sizing: border-box; }
html { height: 100%; overflow: hidden; direction: rtl; background: var(--background); }
/* Desktop uses a left-hand RTL scroller; touch/mobile uses native document scrolling below. */
body { margin: 0; min-width: 0; width: 100%; height: 100vh; height: 100dvh; position: relative; isolation: isolate; direction: rtl; overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; scroll-padding-top: 20px; scrollbar-gutter: stable; scrollbar-width: auto; scrollbar-color: #617c9e #0b1423; overflow-wrap: break-word; background: var(--background); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body::-webkit-scrollbar { width: 8px; height: 8px; }
body::-webkit-scrollbar-track { background: #0b1423; }
body::-webkit-scrollbar-thumb { background: #617c9e; border: 2px solid #0b1423; border-radius: 8px; }
img, svg { max-width: 100%; }
.shell > *, .hero-copy, .reciters-copy, .mobile-copy, .store-status, .contact-intro, .contact-form-card, .legal { min-inline-size: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
/* Decorative blue artwork must not be a fixed viewport-edge layer that Safari can sample. */
.ambient-layer { position: absolute; inset: 0; overflow: clip; z-index: -1; pointer-events: none; }
.ambient { position: absolute; border-radius: 999px; filter: blur(100px); opacity: .12; pointer-events: none; }
.ambient-one { width: 420px; height: 420px; background: var(--brand-blue); top: -180px; right: -140px; }
.ambient-two { width: 360px; height: 360px; background: #18355a; bottom: -180px; left: -120px; }

.site-header { height: 110px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-logo { display: block; width: 72px; height: 72px; object-fit: contain; }
.brand > span { display: grid; line-height: 1.25; gap: 6px; }
.brand strong { font-size: 20px; }
.brand small { color: var(--muted); font-size: 10px; }
.header-nav { display: flex; align-items: center; gap: 25px; font-size: 14px; }
.reciters-link { color: var(--muted); }
.reciters-link:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand-red); text-underline-offset: 6px; }
.header-link { padding: 11px 18px; border: 1px solid rgba(226, 31, 38, .28); border-radius: 999px; color: #e6edf6; background: rgba(226, 31, 38, .08); font-size: 14px; transition: .2s ease; }
.header-link:hover { border-color: var(--brand-red); background: rgba(226, 31, 38, .14); }

.hero { min-height: calc(100svh - 110px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 70px; padding-block: 45px 100px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #c3d0e0; font-size: 13px; font-weight: 700; }
.eyebrow > span { width: 22px; height: 2px; background: var(--brand-red); }
h1 { margin: 23px 0 24px; font-size: clamp(52px, 7.4vw, 102px); line-height: 1.1; letter-spacing: -.04em; }
h1 em { color: var(--accent); font-style: normal; }
.lead { max-width: 620px; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.85; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.primary-action { min-height: 62px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 11px 24px; border: 1px solid rgba(255, 146, 150, .3); border-radius: 17px; background: var(--brand-red); color: #fff; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.primary-action:hover { transform: translateY(-2px); background: #c71a22; }
.primary-action > span:nth-child(2) { display: grid; gap: 2px; }
.primary-action small { font-size: 10px; font-weight: 500; color: #fff; }
.play { direction: ltr; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #f7f9fd; color: var(--brand-red); font-size: 11px; }
.secondary-action { min-height: 62px; display: inline-flex; align-items: center; justify-content: center; padding: 0 23px; border: 1px solid var(--border); border-radius: 17px; color: #d8e1ed; font-weight: 700; }
.secondary-action:hover { border-color: var(--accent); }
.stats { display: flex; gap: clamp(24px, 5vw, 62px); margin: 48px 0 0; }
.stats div { display: grid; gap: 4px; }
.stats dt { direction: ltr; font-size: 24px; font-weight: 900; }
.stats dd { margin: 0; color: #99a7bc; font-size: 12px; }

.phone-stage { min-height: 600px; display: grid; place-items: center; position: relative; direction: rtl; overflow: clip; }
.orbit { position: absolute; border: 1px solid rgba(157, 195, 239, .1); border-radius: 50%; }
.orbit-one { width: 500px; height: 500px; }
.orbit-two { width: 390px; height: 390px; border-color: rgba(255, 255, 255, .045); }
.phone { width: 292px; height: 590px; overflow: hidden; position: relative; z-index: 2; border: 7px solid #253041; border-radius: 43px; background: #0b1422; box-shadow: 0 45px 80px rgba(0, 0, 0, .4), 0 0 0 1px #455267; transform: rotate(-3deg); }
.phone::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .055), transparent 28%); }
.phone-top { height: 64px; padding: 12px 16px 8px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.phone-top img { object-fit: contain; }
.phone-top i { font-style: normal; font-size: 18px; }
.phone-hero { margin: 8px 12px 22px; height: 190px; padding: 25px 20px; border: 1px solid rgba(157, 195, 239, .15); border-radius: 23px; background: linear-gradient(145deg, #132943, #123663); position: relative; overflow: hidden; }
.phone-hero::before { content: "ح"; position: absolute; left: -10px; bottom: -65px; font-size: 210px; font-weight: 900; opacity: .05; }
.mini-label { font-size: 9px; color: #b7cbe1; }
.phone-hero strong { display: block; margin-top: 12px; font-size: 25px; line-height: 1.35; }
.phone-listen { display: inline-block; position: relative; margin-top: 18px; padding: 9px 13px; border-radius: 999px; color: #fff; background: var(--brand-red); font-size: 10px; font-weight: 800; }
.phone-section-title { display: flex; justify-content: space-between; padding: 0 17px 12px; font-size: 11px; }
.phone-section-title small { color: var(--accent); }
.album-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 13px; }
.album-row > div { display: grid; gap: 4px; font-size: 9px; }
.album-row small { color: #8d9bb0; }
.cover { aspect-ratio: 1; display: grid; place-items: center; margin-bottom: 4px; border-radius: 14px; font-size: 14px; font-weight: 900; }
.cover-one { background: linear-gradient(145deg, #1a3555, #244f7d); }
.cover-two { background: linear-gradient(145deg, #242e3b, #475970); }
.mini-player { position: absolute; right: 9px; bottom: 12px; left: 9px; height: 58px; padding: 7px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 18px; background: rgba(23, 34, 51, .97); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); }
.mini-art { width: 42px; height: 42px; object-fit: contain; border-radius: 12px; }
.mini-player p { flex: 1; display: grid; gap: 3px; margin: 0; font-size: 9px; }
.mini-player small { color: #9eacc1; }
.mini-player::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 12px; width: 34%; height: 2px; border-radius: 2px; background: var(--brand-red); }
.pause { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-red); color: #fff; font-size: 11px; }

h2 { margin: 17px 0; font-size: clamp(34px, 5vw, 60px); line-height: 1.3; letter-spacing: -.025em; }
.mission-section { padding-block: 70px 100px; text-align: center; border-top: 1px solid var(--border); }
.mission-section h2 { margin-block: 24px; font-size: clamp(32px, 4.8vw, 56px); line-height: 1.55; }
.mission-section h2 span { color: var(--accent); }
.mission-section p { margin: 0; color: var(--muted); line-height: 1.9; font-size: 16px; }
.reciters-section { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 65px; padding: 55px; margin-bottom: 100px; border: 1px solid var(--border); border-radius: 30px; background: var(--panel); scroll-margin-top: 30px; }
.reciters-copy h2 { font-size: clamp(32px, 4vw, 46px); }
.reciters-copy > p { color: var(--muted); font-size: 17px; line-height: 1.95; }
.reciters-copy .primary-action { margin-top: 15px; }
.reciters-copy .contact-note { margin: 18px 0 0; font-size: 12px; }
.reciters-note { text-align: center; padding: 28px; border-inline-start: 1px solid var(--border); }
.reciters-note img { display: block; object-fit: contain; margin: 0 auto 23px; }
.free-label { display: inline-flex; padding: 8px 13px; border: 1px solid rgba(157, 195, 239, .2); border-radius: 999px; color: #c1d8f1; font-size: 12px; }
.reciters-note h3 { margin: 22px 0 12px; font-size: 22px; line-height: 1.6; }
.reciters-note p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }

.mobile-section { padding-block: 100px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; border-top: 1px solid var(--border); scroll-margin-top: 30px; }
.mobile-section p { color: var(--muted); max-width: 540px; line-height: 1.9; font-size: 17px; }
.store-grid { display: grid; gap: 14px; }
.store-card { min-height: 118px; padding: 18px 25px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid var(--border); border-radius: 22px; background: rgba(173, 198, 228, .035); direction: ltr; }
.store-badge { display: block; object-fit: contain; flex-shrink: 0; }
.apple-badge { width: 180px; height: 60px; margin-inline: 14px; }
.google-badge { width: 215px; height: auto; }
.store-status { display: grid; gap: 8px; text-align: right; direction: rtl; }
.store-status strong { color: #c1d8f1; font-size: 18px; }
.store-status small { color: var(--muted); font-size: 12px; }
.web-cta { margin-block: 20px 100px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--border); border-radius: 30px; background: #101c2e; }
.web-cta > div > span { color: var(--accent); font-size: 12px; font-weight: 800; }
.web-cta h2 { margin: 8px 0 0; font-size: clamp(27px, 4vw, 43px); }
.compact { min-height: 54px; white-space: nowrap; }
.site-footer { min-height: 140px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; border-top: 1px solid var(--border); }
.footer-brand .brand-logo { width: 64px; height: 64px; }
.site-footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 22px; color: var(--muted); font-size: 12px; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--brand-red); text-underline-offset: 5px; }
.site-footer > p { justify-self: end; direction: ltr; color: #98a5b9; font-size: 11px; }
.header-nav .header-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text); }
.header-nav .header-search:hover { border-color: var(--brand-red); color: var(--brand-red-ink); }

.legal { max-width: 840px; padding: 48px; margin-block: 45px 100px; border: 1px solid var(--border); border-radius: 30px; background: var(--panel); }
.legal h1 { margin-bottom: 10px; font-size: clamp(45px, 8vw, 78px); }
.legal h1::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 18px; background: var(--brand-red); }
.legal h2 { margin-top: 44px; font-size: 24px; }
.legal p { color: var(--muted); font-size: 16px; line-height: 2; }
.legal a:not(.brand):not(.primary-action):not(.secondary-action):not(.header-link) { color: var(--accent); text-decoration: underline; }
.legal-date { color: #98a5b9 !important; }

.contact-page { padding-block: 55px 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.contact-intro h1 { font-size: clamp(42px, 4.8vw, 66px); line-height: 1.4; margin-block: 20px; letter-spacing: -.025em; }
.contact-intro .lead { font-size: 18px; }
.contact-form-link { display: none; }
.contact-guidance { margin-top: 38px; padding: 27px; border: 1px solid var(--border); border-radius: 22px; background: var(--panel); }
.contact-guidance h2 { font-size: 25px; margin-block: 17px 12px; }
.contact-guidance p { margin-block: 0 14px; color: var(--muted); font-size: 15px; line-height: 1.9; }
.contact-guidance .contact-note { font-size: 12px; margin: 0; }
.contact-mission { margin-top: 30px; color: var(--accent); font-size: 17px; line-height: 2; }
.contact-form-card { padding: 32px; border: 1px solid var(--border); border-radius: 26px; background: var(--panel); }
.contact-form-card h2 { font-size: 25px; margin: 0 0 10px; }
.form-intro { margin: 0 0 28px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.contact-form { position: relative; display: grid; gap: 21px; }
.form-field { display: grid; gap: 9px; min-width: 0; }
.form-field label { font-size: 14px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 48px; border: 1px solid #3f5169; border-radius: 12px; background: #0b1422; color: var(--text); padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.65; }
.select-control { position: relative; min-width: 0; }
.form-field select { -webkit-appearance: none; appearance: none; display: block; padding-inline-end: 48px; cursor: pointer; }
.select-control::after { content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.form-field textarea { resize: vertical; min-height: 150px; }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-field [aria-invalid="true"] { border-color: #f3a8a8; }
.form-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(100%); white-space: nowrap; }
.field-hint, .field-error { margin: 0; font-size: 12px; line-height: 1.8; }
.field-hint { color: var(--muted); }
.field-error { color: #ffc2c2; }
.form-privacy { margin: 0; font-size: 12px; line-height: 1.8; color: var(--muted); }
.form-privacy a { color: var(--accent); text-decoration: underline; }
.contact-submit { width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
.form-notice { padding: 17px; margin-bottom: 25px; border: 1px solid; border-radius: 14px; font-size: 14px; line-height: 1.85; }
.form-notice p { margin: 8px 0 0; }
.form-success { color: #c3ecd9; background: #102b29; border-color: #417866; }
.form-error { color: #ffd0d0; background: #2c202a; border-color: #895366; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 30px; text-align: center; padding-top: 60px; }
  .hero-copy { display: grid; justify-items: center; }
  .stats { justify-content: center; }
  .phone-stage { min-height: 640px; }
  .reciters-section { grid-template-columns: 1fr; gap: 30px; padding: 40px; }
  .reciters-note { border-inline-start: 0; border-top: 1px solid var(--border); }
  .mobile-section { grid-template-columns: 1fr; gap: 35px; }
  .contact-page { grid-template-columns: 1fr; gap: 40px; padding-top: 35px; }
  .contact-form-link { display: inline-flex; min-height: 48px; gap: 12px; margin-top: 8px; }
  .site-footer { grid-template-columns: auto 1fr; }
  .site-footer > p { grid-column: 1 / -1; justify-self: center; margin-top: 0; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1160px); }
  .site-header { height: 94px; }
  .header-nav { gap: 13px; font-size: 12px; }
  .header-nav { flex-wrap: wrap; justify-content: flex-end; max-width: 48%; gap: 10px 14px; }
  .header-link { padding: 9px 12px; font-size: 11px; }
  .brand { gap: 8px; }
  .brand strong { font-size: 16px; }
  .brand small { font-size: 8px; }
  .brand-logo { width: 54px; height: 54px; }
  .hero { min-height: auto; padding-block: 55px 75px; }
  h1 { font-size: clamp(43px, 14vw, 67px); line-height: 1.2; }
  .lead { font-size: 16px; }
  .actions { width: 100%; display: grid; }
  .primary-action, .secondary-action { width: 100%; }
  .stats { width: 100%; justify-content: space-between; gap: 10px; }
  .stats dt { font-size: 20px; }
  .phone-stage { min-height: 640px; transform: scale(.9); margin-block: 0; overflow: clip; }
  .orbit-one { width: 350px; height: 350px; }
  .orbit-two { width: 310px; height: 310px; }
  .mission-section { padding-block: 65px 75px; }
  .mission-section h2 { font-size: clamp(26px, 7.4vw, 38px); }
  .reciters-section { padding: 32px 22px; margin-bottom: 75px; border-radius: 25px; }
  .reciters-note { padding: 30px 0 0; }
  .reciters-copy > p { font-size: 16px; }
  .mobile-section { padding-block: 75px; }
  .store-card { padding: 15px; gap: 15px; min-height: 110px; }
  .apple-badge { width: 160px; height: auto; margin-inline: 10px; }
  .google-badge { width: 185px; }
  .store-status small { font-size: 11px; }
  .contact-intro h1 { font-size: clamp(37px, 10vw, 54px); }
  .contact-intro .lead { font-size: 16px; }
  .contact-form-card { padding: 25px 20px; }
  .contact-guidance { padding: 24px 20px; }
  .legal { padding: 32px 22px; margin-block: 30px 75px; border-radius: 25px; }
  .legal h1 { font-size: clamp(34px, 10vw, 52px); margin-top: 0; }
  .web-cta { padding: 32px 22px; display: grid; text-align: center; margin-bottom: 75px; }
  .site-footer { padding-block: 30px; grid-template-columns: 1fr; justify-items: center; gap: 22px; }
  .site-footer > p { justify-self: center; }
}

@media (max-width: 380px) {
  .brand small { display: none; }
  .header-nav { gap: 10px; }
  .brand-logo { width: 46px; height: 46px; }
  .brand strong { font-size: 14px; }
  .store-card { padding: 14px 12px; gap: 10px; }
  .apple-badge { width: 140px; margin-inline: 10px; }
  .google-badge { width: 165px; }
  .store-card { flex-wrap: wrap; justify-content: center; }
  .store-status { flex: 1 1 100%; text-align: center; }
  .phone-stage { transform: none; }
  .phone { width: min(292px, 100% - 16px); transform: none; }
  .header-nav { max-width: 52%; gap: 8px; }
  .brand { flex-shrink: 0; }
}

/* Do not lock the document to dvh on mobile: Safari's bars must follow native
   page scrolling. Paint the full canvas navy, inset content (not the canvas),
   and leave end-of-page clearance above the home indicator/browser controls. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  html { height: auto; min-height: 100%; overflow-x: clip; overflow-y: auto; scroll-behavior: smooth; scroll-padding-top: 20px; }
  body { height: auto; min-height: 100svh; overflow: visible; scrollbar-gutter: auto; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) calc(24px + env(safe-area-inset-bottom, 0px)) env(safe-area-inset-left, 0px); }
}

@media (prefers-reduced-motion: reduce) {
  html, body { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .form-field select { -webkit-appearance: auto; appearance: auto; padding-inline-end: 14px; }
  .select-control::after { display: none; }
}
