/* الوحي — the public site. One stylesheet for Arabic (rtl) and English (ltr) through logical properties.
   Light: cream paper, deep green and gold. Dark (the phone's setting): deep green with gold. */

@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/Amiri-700-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB; }
@font-face { font-family: "Amiri"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/Amiri-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Aref Ruqaa"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/ArefRuqaa-700-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB; }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/NotoNaskhArabic-400-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB; }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/NotoNaskhArabic-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/NotoNaskhArabic-700-arabic.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB; }
@font-face { font-family: "Noto Naskh Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/NotoNaskhArabic-700-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: #F8F2E3; --paper: #FBF6E9; --arch-fill: #FFFDF6; --fg: #22312A; --muted: #4F6157;
  --green-ink: #1B5E43; --accent: #1B5E43; --on-accent: #fff; --gold: #C9A646; --gold-soft: #F3E3B0; --line: #E3D7B8;
  --badge-bg: #1B5E43; --badge-fg: #fff; --badge-border: #1B5E43;
  --panel: #0F3B2E; --panel-fg: #F3EAD0; --panel-muted: #DCE8DF;
  --phone-frame: #22312A; --phone-shadow: 0 30px 60px -28px rgba(27, 94, 67, .6);
  --star-opacity: .55;
  --title: "Amiri", "Noto Naskh Arabic", Georgia, serif;
  --body: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0F3B2E; --paper: #143F31; --arch-fill: #12382C; --fg: #F1EAD6; --muted: #C8D3CA;
    --green-ink: #F3E3B0; --accent: #D9B44A; --on-accent: #0F3B2E; --gold: #D9B44A; --gold-soft: #F3E3B0; --line: rgba(217, 180, 74, .28);
    --badge-bg: rgba(0, 0, 0, .25); --badge-fg: #F1EAD6; --badge-border: rgba(217, 180, 74, .55);
    --panel: #0B2A21; --panel-fg: #F3EAD0; --panel-muted: #DCE8DF;
    --phone-frame: #0A2A20; --phone-shadow: 0 0 0 1px rgba(217, 180, 74, .35), 0 40px 90px -30px rgba(255, 214, 120, .45);
    --star-opacity: .35;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--fg); background: var(--bg); line-height: 1.9; letter-spacing: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--title); font-weight: 700; line-height: 1.7; margin: 0; text-wrap: balance; overflow: visible; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.ruq { font-family: "Aref Ruqaa", var(--title); font-weight: 700; }
[lang="en"] .ruq { font-family: var(--title); }
.ami { font-family: var(--title); font-weight: 700; }

/* text styles from the owner's references */
.gold { background: linear-gradient(180deg, #FFF3C4 0%, #E6C25A 40%, #B9892A 70%, #8A6212 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(230, 194, 90, .35)); padding: .25em .4em; line-height: 1.8; }
.green-edge { color: var(--green-ink); text-shadow: 0 1px 0 var(--gold), 0 0 1px var(--gold), 2px 4px 8px rgba(40, 30, 0, .2); }
.orn { display: block; width: min(420px, 80%); height: 26px; margin: .6rem auto 1.2rem; color: var(--gold); }
.corner { position: absolute; width: 260px; height: 260px; pointer-events: none; opacity: var(--star-opacity);
  background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2780%27 height=%2780%27 viewBox=%270 0 80 80%27%3E%3Cg fill=%27none%27 stroke=%27%23C9A646%27 stroke-width=%271%27%3E%3Cpath d=%27M40 4l10 26 26 10-26 10-10 26-10-26-26-10 26-10z%27/%3E%3Cpath d=%27M40 14l7 19 19 7-19 7-7 19-7-19-19-7 19-7z%27/%3E%3Crect x=%2726%27 y=%2726%27 width=%2728%27 height=%2728%27 transform=%27rotate(45 40 40)%27/%3E%3C/g%3E%3C/svg%3E"); }
.corner.tl { top: 0; left: 0; -webkit-mask-image: radial-gradient(circle at 0 0, #000 20%, transparent 72%); mask-image: radial-gradient(circle at 0 0, #000 20%, transparent 72%); }
.corner.tr { top: 0; right: 0; -webkit-mask-image: radial-gradient(circle at 100% 0, #000 20%, transparent 72%); mask-image: radial-gradient(circle at 100% 0, #000 20%, transparent 72%); }
.corner.bl { bottom: 0; left: 0; -webkit-mask-image: radial-gradient(circle at 0 100%, #000 20%, transparent 72%); mask-image: radial-gradient(circle at 0 100%, #000 20%, transparent 72%); }
.corner.br { bottom: 0; right: 0; -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 20%, transparent 72%); mask-image: radial-gradient(circle at 100% 100%, #000 20%, transparent 72%); }

/* header */
header.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.brand span { font-size: 1.6rem; }
.top nav { display: flex; gap: 1.1rem; align-items: center; font-size: .95rem; }
.top nav a { text-decoration: none; opacity: .9; }
.btn { display: inline-block; padding: .65rem 1.3rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700; opacity: 1 !important; }

/* buttons and badges */
.badges { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.badge { display: inline-flex; align-items: center; gap: .7rem; line-height: 1.15; padding: .55rem 1.1rem .6rem; border-radius: 12px; text-decoration: none; min-width: 12rem; background: var(--badge-bg); color: var(--badge-fg); border: 1px solid var(--badge-border); }
.bicon { width: 30px; height: 30px; flex: 0 0 auto; }
.btxt { display: flex; flex-direction: column; }
.badge-small { font-size: .72rem; opacity: .8; }
.badge-big { font-size: 1.2rem; font-weight: 700; direction: ltr; text-align: start; font-family: Georgia, "Times New Roman", serif; }
.share-row { margin-top: 1.2rem; }
.share { font: inherit; font-weight: 700; padding: .55rem 1.3rem; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--accent); cursor: pointer; }
.share:focus-visible, .btn:focus-visible, .badge:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
section h2 { text-align: center; font-size: clamp(2.4rem, 5vw, 3.4rem); }
.sub { color: var(--muted); max-width: 42rem; margin: 0 0 2rem; }
.sub.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature { padding: 2rem 1.3rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 120px 120px 14px 14px; text-align: center; box-shadow: 0 1px 0 var(--gold) inset; }
.feature h3 { color: var(--green-ink); font-size: 1.7rem; margin-bottom: .2rem; }
.feature p, .why p { margin: 0; color: var(--muted); font-size: .98rem; }
.why { text-align: center; padding: 1.2rem; border-top: 2px solid var(--gold); background: var(--paper); }
.why h3 { color: var(--green-ink); font-size: 1.5rem; margin-bottom: .2rem; }

/* hero */
.hero-wrap { position: relative; overflow: hidden; }
.hero { position: relative; text-align: center; padding: 3.5rem 1rem 0; }
.arch { position: relative; max-width: 760px; margin: 0 auto; padding: 6.5rem 1.5rem 2.5rem; color: var(--gold); }
.arch-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.arch-fill { fill: var(--arch-fill); }
.arch > :not(.arch-svg) { position: relative; z-index: 1; color: var(--fg); }
.arch > .orn { color: var(--gold); margin-top: .5rem; }
.hero img.logo { display: block; width: min(260px, 60vw); height: auto; aspect-ratio: 1; border-radius: 24%; box-shadow: 0 24px 48px -20px rgba(27, 94, 67, .65); margin: 0 auto; }
.hero .tag { font-family: var(--body); font-size: clamp(1.25rem, 2.6vw, 1.7rem); color: var(--green-ink); font-weight: 700; margin: 0; line-height: 1.6; }
.hero .sub { margin: .6rem auto 1.4rem; }

/* screenshots */
.screens { padding-block: 0 clamp(2rem, 5vw, 4rem); }
.phones { display: flex; gap: 1.5rem; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.phone { margin: 0; width: 250px; flex: 0 0 auto; border-radius: 34px; border: 8px solid var(--phone-frame); background: var(--phone-frame); box-shadow: var(--phone-shadow); overflow: hidden; }
.phone:nth-child(2) { margin-bottom: 2rem; }
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; }

/* dedication */
.message { position: relative; overflow: hidden; background: var(--panel); color: var(--panel-fg); text-align: center; padding-inline: 1rem; }
.message .wrap { position: relative; }
.message h2 { color: var(--gold-soft); }
.message .lead { margin-top: 1rem; font-weight: 700; color: var(--gold-soft); }
.message .names { max-width: 46rem; margin: 0 auto; color: #fff; }
.message .dua { max-width: 46rem; margin: 1rem auto 2.5rem; color: var(--panel-muted); }
.verse { margin: 1.5rem auto 0; max-width: 40rem; padding: 1.2rem 1.6rem; border-radius: 16px; font-family: var(--title); font-size: 1.5rem; line-height: 2; background: transparent; border: 1px solid var(--gold); color: var(--gold-soft); }
.verse-note { max-width: 40rem; margin: .8rem auto 0; font-size: .95rem; color: var(--panel-muted); font-style: italic; }

/* download, extra, text pages */
.cta { text-align: center; }
.extra .prose, .text-page .prose { max-width: 46rem; margin-inline: auto; }
.prose p { margin: 0 0 1rem; }
.text-page { padding-block: 2rem 4rem; }
.text-page h1 { text-align: center; font-size: clamp(2.2rem, 5vw, 3rem); }
.text-page article.secondary { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.text-page article.secondary h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }

/* footer */
footer { padding-block: 2rem 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.social { display: flex; gap: .6rem; margin-bottom: .6rem; justify-content: center; }
.soc { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); }
.soc svg { width: 22px; height: 22px; }
footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; margin-bottom: .2rem; }
footer nav a { text-decoration: none; }
footer p { margin: .2rem 0; }
.fine { font-size: .8rem; opacity: .8; }

@media (max-width: 640px) {
  .top nav a:not(.btn):not(.switch) { display: none; }
  .phone { width: 220px; }
  .phone:nth-child(2) { margin-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
