/* Al Zakirin site — shared design system. No dependencies, no external requests. */

@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("/assets/fonts/noto-naskh-arabic.woff") format("woff");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F, U+25CC;
}
@font-face {
  font-family: "Markazi Text";
  src: url("/assets/fonts/markazi-text.woff") format("woff");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}

:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --surface-2: #eef2e8;
  --border: #dfe5d8;
  --text: #141612;
  --text-2: #5e655a;
  --brand: #2e5b12;
  --brand-ink: #ffffff;
  --brand-soft: #e6efdd;
  --hero-1: #163108;
  --hero-2: #336518;
  --gold: #c9a45a;
  --radius: 22px;
  --maxw: 1120px;
  --shadow: 0 1px 2px rgba(20, 30, 10, .06), 0 12px 32px rgba(20, 40, 10, .08);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Noto Naskh Arabic", sans-serif;
  --arabic: "Noto Naskh Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Geeza Pro", sans-serif;
  --arabic-ui: "Markazi Text", "Noto Naskh Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f110e;
    --surface: #1b1e19;
    --surface-2: #151a12;
    --border: #2a3025;
    --text: #f3f5f0;
    --text-2: #a9b0a4;
    --brand: #9bd67a;
    --brand-ink: #0f1a08;
    --brand-soft: #1f2d17;
    --hero-1: #0c1a05;
    --hero-2: #21450e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}
:lang(ar) body, body:lang(ar) { font-family: var(--arabic); font-size: 18px; line-height: 1.8; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { font-family: var(--arabic-ui); letter-spacing: 0; line-height: 1.3; }
[lang="ar"] h1 { font-size: clamp(2.8rem, 7vw, 4.8rem); }
[lang="ar"] h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
[lang="ar"] h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sr-only:focus { position: fixed; top: 10px; left: 10px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: var(--surface); z-index: 100; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .container { display: flex; align-items: center; gap: 16px; height: 62px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.wordmark img { width: 30px; height: 30px; border-radius: 7px; }
.wordmark .ar { font-family: var(--arabic-ui); font-size: 1.35rem; font-weight: 600; color: var(--text-2); }
.site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--text-2); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { color: var(--text); }
.site-nav .lang {
  color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 4px 14px;
}
.site-nav .lang:lang(ar) { font-family: var(--arabic-ui); font-size: 1.15rem; padding: 0 14px; }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; color: var(--text); font-size: 1.5rem; padding: 6px; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 62px; inset-inline: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 20px 16px;
  }
  .site-nav[data-open] { display: flex; }
  .site-nav a { padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  .site-nav .lang { border: 0; border-radius: 0; padding: 12px 0; }
  .wordmark .ar { display: none; }
}

/* Buttons */

.btn-appstore {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px 11px 18px;
  background: #000; color: #fff; text-decoration: none; border-radius: 14px; line-height: 1.1;
  border: 1px solid rgba(255, 255, 255, .25); transition: transform .15s ease;
}
.btn-appstore:hover { transform: translateY(-1px); }
.btn-appstore small { display: block; font-size: .72rem; opacity: .85; }
.btn-appstore strong { display: block; font-size: 1.25rem; font-weight: 600; font-family: var(--sans); }
.btn-appstore svg { width: 26px; height: 26px; flex: none; }
.btn-ghost {
  display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 14px; text-decoration: none;
  color: #fff; border: 1px solid rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */

.hero {
  position: relative; overflow: hidden; color: #f4f8ef;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(155, 214, 122, .28), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(201, 164, 90, .18), transparent 60%),
    linear-gradient(160deg, var(--hero-2), var(--hero-1));
}
.hero::before {
  /* the 33 beads of the icon, as a faint ring */
  content: ""; position: absolute; width: 900px; height: 900px; inset-inline-end: -260px; top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 62%, rgba(255, 255, 255, .05) 62.5%, transparent 64%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; position: relative; }
.hero-copy { padding-bottom: 72px; }
.hero-icon { width: 92px; height: 92px; border-radius: 21px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); margin-bottom: 26px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #bfe3a8; margin-bottom: 14px; }
[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 1.05rem; }
.hero h1 { color: #fff; }
.hero h1 .soft { color: #bfe3a8; }
.hero .lead { font-size: 1.2rem; color: #dbe8d2; max-width: 34em; margin-bottom: 28px; }
.hero .meta { margin-top: 18px; font-size: .9rem; color: #b8c9ad; }
.hero-phones { position: relative; height: 560px; align-self: end; }
.hero-phones .phone { position: absolute; bottom: -80px; width: 270px; }
.hero-phones .phone:first-child { inset-inline-start: 6%; z-index: 2; }
.hero-phones .phone:last-child { inset-inline-start: 46%; bottom: -130px; transform: rotate(4deg); opacity: .96; }
[dir="rtl"] .hero-phones .phone:last-child { transform: rotate(-4deg); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-copy { padding-bottom: 0; }
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 210px; bottom: -70px; }
  .hero-phones .phone:first-child { inset-inline-start: calc(50% - 190px); }
  .hero-phones .phone:last-child { inset-inline-start: calc(50% - 10px); bottom: -110px; }
}

/* Device frames */

.phone {
  border-radius: 13.5% / 6.2%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 7px #1c1f1a, 0 0 0 8px rgba(255, 255, 255, .14), 0 30px 60px rgba(0, 0, 0, .35);
}
.phone img { width: 100%; }
.tv {
  border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 10px #151713, 0 0 0 11px rgba(255, 255, 255, .1), 0 30px 70px rgba(0, 0, 0, .35);
}
.tv img { width: 100%; }

/* Sections */

.section { padding: 110px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.12rem; }
.kicker { display: block; color: var(--brand); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
[lang="ar"] .kicker { letter-spacing: 0; font-size: 1.05rem; text-transform: none; }

/* Verse */

.verse { text-align: center; padding: 96px 0; }
.verse blockquote { margin: 0 auto; max-width: 900px; }
.verse .ayah {
  font-family: var(--arabic); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 2.25; color: var(--text);
  margin: 0 0 20px;
}
.verse .ayah mark { background: none; color: var(--brand); font-weight: 700; }
.verse .meaning { color: var(--text-2); font-style: italic; max-width: 680px; margin: 0 auto 8px; }
.verse cite { font-style: normal; color: var(--text-2); font-size: .92rem; }
.ornament { width: 64px; height: 12px; margin: 0 auto 28px; color: var(--gold); }

/* Feature rows */

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 40px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row .media { display: flex; justify-content: center; }
.feature-row .media .phone { width: 290px; }
.feature-row:nth-child(even) .media { order: -1; }
.feature-row p { color: var(--text-2); font-size: 1.08rem; }
.feature-row h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
[lang="ar"] .feature-row h3 { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-inline-start: 30px; }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%232e5b12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
:lang(ar) .ticks li::before { top: .6em; }
@media (prefers-color-scheme: dark) {
  .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%239bd67a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .feature-row:nth-child(even) .media { order: 0; }
  .feature-row .media .phone { width: 250px; }
}

/* Widget cards */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--text-2); margin: 0; font-size: .98rem; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.card .ico svg { width: 22px; height: 22px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.widgets-layout { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
.widgets-layout .cards { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .widgets-layout { grid-template-columns: 1fr; }
  .widgets-layout .phone { width: 260px; margin: 0 auto; }
}
@media (max-width: 560px) { .widgets-layout .cards { grid-template-columns: 1fr; } }

/* Apple TV */

.tv-section { background: linear-gradient(180deg, #0b0d0a, #141a10); color: #eef3ea; }
.tv-section .section-head p { color: #b3bdab; }
.tv-section .kicker { color: #9bd67a; }
.tv-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: start; }
.tv-grid figure { margin: 0; }
.tv-grid figcaption { color: #9aa592; font-size: .92rem; margin-top: 18px; }
.tv-side { display: grid; gap: 36px; }
@media (max-width: 860px) { .tv-grid { grid-template-columns: 1fr; } }

/* Everywhere / principles */

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }
.privacy-band {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--brand-soft); border-radius: 28px; padding: 36px 40px; margin-top: 18px;
}
.privacy-band .shield { width: 64px; height: 64px; color: var(--brand); }
.privacy-band h3 { font-size: 1.5rem; margin-bottom: 4px; }
.privacy-band p { margin: 0; color: var(--text-2); }
@media (max-width: 760px) { .privacy-band { grid-template-columns: 1fr; padding: 28px; } }

.ipad { max-width: 760px; margin: 56px auto 0; }
.ipad .frame {
  border-radius: 4.5%; overflow: hidden; background: #000;
  box-shadow: 0 0 0 10px #1c1f1a, 0 0 0 11px rgba(255, 255, 255, .12), 0 30px 60px rgba(0, 0, 0, .25);
}
.ipad .frame img { width: 100%; }

/* FAQ */

.faq { max-width: 800px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 22px 18px; color: var(--text-2); }
.faq details > div p:last-child { margin: 0; }

/* CTA + footer */

.cta { text-align: center; }
.cta .hero-icon { margin: 0 auto 24px; }
.cta .actions { justify-content: center; }
.cta-band { background: linear-gradient(160deg, var(--hero-2), var(--hero-1)); color: #fff; }
.cta-band p { color: #d5e4ca; }

.site-footer { padding: 40px 0 56px; border-top: 1px solid var(--border); color: var(--text-2); font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }

/* Document pages (privacy, support) */

.doc { padding: 56px 0 80px; }
.doc .container { max-width: 820px; }
.doc-head { text-align: center; margin-bottom: 36px; }
.doc-head img { width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 18px; }
.doc-head p { color: var(--text-2); }
.doc section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 30px; margin-bottom: 22px; }
.doc section h2 { font-size: 1.6rem; }
.doc section h3 { margin-top: 1.4em; margin-bottom: .3em; font-size: 1.1rem; }
[lang="ar"] .doc section h3 { font-size: 1.4rem; }
.doc .muted { color: var(--text-2); font-size: .95rem; }
.doc-toc { display: flex; justify-content: center; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.doc-toc a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 16px; text-decoration: none; color: var(--text); background: var(--surface); }
.doc .faq { max-width: none; }
.doc .faq details { background: var(--bg); }

/* Scroll reveal — hidden state only when JS is running */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
