/* Mutaqi website. The colours are the app's own tokens (lib/design/tokens/
   color.dart): ink, inkDeep, surface, primary, secondary and the label
   greys. The Latin face is the app's too: SF Pro Rounded where Apple
   ships it, Nunito everywhere else. Fonts are served from this site, not
   from Google, so no visitor's IP address goes to a third party. */

@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/Nunito-Bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("fonts/Amiri-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0A1716;
  --ink-deep: #0F2221;
  --sheet: #142B29;
  --surface: #1C3C3A;
  --surface-pressed: #26504D;
  --primary: #44928C;
  --primary-deep: #2F6662;
  --primary-light: #8FBDBA;
  --secondary: #CAF0AF;
  --on-secondary: #1C3C3A;
  --label: #FFFFFF;
  --label-2: rgba(235, 235, 245, 0.68);
  --label-3: rgba(235, 235, 245, 0.5);
  --line: rgba(235, 235, 245, 0.09);
  --prayed: #30D158;

  --radius-s: 14px;
  --radius-m: 20px;
  --radius-l: 28px;
  --radius-xl: 40px;
  --gutter: 24px;
  --max: 1160px;

  --face: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Geeza Pro", serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--label);
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary-light);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--secondary); }
.muted { color: var(--label-2); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--secondary); color: var(--on-secondary); padding: 8px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 8px; }

/* Glow behind the page, the same teal bloom the app's sheets carry. */
.glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glow::before, .glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55;
}
.glow::before { width: 620px; height: 620px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(68,146,140,0.75), transparent 65%); }
.glow::after { width: 520px; height: 520px; left: -220px; top: 280px; background: radial-gradient(circle, rgba(202,240,175,0.22), transparent 65%); }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 23, 22, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--label); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; }
.nav-links a { color: var(--label-2); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--label); text-decoration: none; }
.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: var(--surface);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--label); position: relative;
}
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -6px; }
.menu summary span::after { top: 6px; }
.menu-panel {
  position: absolute; right: 0; top: 54px; min-width: 220px; padding: 8px;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
}
.menu-panel a { display: block; padding: 12px 14px; border-radius: 12px; color: var(--label); font-weight: 600; }
.menu-panel a:hover { background: var(--surface); text-decoration: none; }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; border: 0;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-accent { background: var(--secondary); color: var(--on-secondary); }
.btn-accent:hover { background: #d8f6c3; }
.btn-ghost { background: var(--surface); color: var(--label); }
.btn-ghost:hover { background: var(--surface-pressed); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }

.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store { display: inline-block; border-radius: 10px; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store img { height: 52px; width: auto; }
/* Google's badge carries its own transparent margin; this evens the two. */
.store.play img { height: 76px; margin: -12px -10px; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; padding: 72px 0 96px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--secondary); }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--label-2); max-width: 34ch; margin-bottom: 32px; }
.hero .stores { margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; color: var(--label-2); font-size: 15px; font-weight: 600; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%23CAF0AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }

.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage::before {
  content: ""; position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(68,146,140,0.55), rgba(68,146,140,0) 68%);
}
.phone {
  position: relative; width: min(330px, 78vw);
  border-radius: 46px; overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.06);
  background: #000;
}
.phone video { width: 100%; height: auto; }
.hero-figure {
  position: absolute; width: 150px; bottom: -28px; left: -36px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

/* ── Sections ───────────────────────────────────────────────────── */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 14px 0 16px; }
.section-head p { font-size: 19px; color: var(--label-2); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.panel {
  background: linear-gradient(180deg, rgba(28,60,58,0.62), rgba(15,34,33,0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

/* Story: from the late-night scroll to the walk to the masjid. */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story figure { margin: 0; position: relative; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.story img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.4; }
.story figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 24px;
  background: linear-gradient(180deg, transparent, rgba(10,23,22,0.92));
}
.story figcaption b { display: block; font-size: 22px; margin-bottom: 4px; }
.story figcaption span { color: var(--label-2); font-size: 16px; }
.tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }
.tag-before { background: rgba(235,235,245,0.12); color: var(--label-2); }
.tag-after { background: var(--secondary); color: var(--on-secondary); }

/* Prayer Focus. */
.focus { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; padding: 56px; overflow: hidden; }
.focus .phone { width: min(300px, 72vw); margin: 0 auto; }
.focus h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 16px; }
.focus .shield { width: 84px; margin-bottom: 8px; }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); color: var(--secondary); font-weight: 800;
}
.steps b { display: block; font-size: 18px; }
.steps span { color: var(--label-2); font-size: 16px; }
.note { margin-top: 22px; font-size: 14px; color: var(--label-3); }

/* Feature grid. */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 28px; border-radius: var(--radius-l);
  background: var(--ink-deep); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(143,189,186,0.3); }
.feature img { width: 76px; height: 76px; object-fit: contain; margin-bottom: 18px; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.45)); }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--label-2); font-size: 16px; }

/* Verse block. */
.verse { padding: 64px 56px; text-align: center; overflow: hidden; position: relative; }
.verse .ar { font-family: var(--arabic); font-size: clamp(30px, 4.6vw, 48px); line-height: 1.9; direction: rtl; margin-bottom: 14px; }
.verse .tr { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; max-width: 30ch; margin: 0 auto 10px; }
.verse .ref { color: var(--primary-light); font-weight: 700; font-size: 15px; }

/* Split rows: Quran, Circle. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 16px; }
.split p.body { color: var(--label-2); font-size: 18px; }
.split .art { border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); }
.split .art img { width: 100%; }
.circle-art { display: grid; place-items: center; position: relative; }
.circle-art img.screen { width: min(300px, 70vw); border-radius: 40px; box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8); }
.circle-art img.badge { position: absolute; width: 110px; right: 8%; top: 6%; filter: drop-shadow(0 16px 24px rgba(0,0,0,0.5)); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--label-2); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.4l3 3L15.5 8' fill='none' stroke='%23CAF0AF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }

/* Languages. */
.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.langs span { padding: 9px 16px; border-radius: 999px; background: var(--ink-deep); border: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--label-2); }

/* Privacy promise. */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.promise div { padding: 26px; border-radius: var(--radius-l); background: var(--ink-deep); border: 1px solid var(--line); }
.promise b { display: block; font-size: 18px; margin-bottom: 6px; }
.promise p { color: var(--label-2); font-size: 15px; }

/* FAQ. */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border-radius: var(--radius-m); background: var(--ink-deep); border: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--primary-light); border-bottom: 2px solid var(--primary-light);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--label-2); }

/* Final call. */
.cta { padding: 64px 56px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: center; overflow: hidden; }
.cta h2 { font-size: clamp(32px, 4.4vw, 50px); margin-bottom: 14px; }
.cta p { color: var(--label-2); font-size: 18px; margin-bottom: 28px; }
.cta img { width: 100%; max-width: 420px; justify-self: end; filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5)); }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; color: var(--label-2); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; color: var(--label); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--label-2); }
.footer-grid a:hover { color: var(--label); }
.footer-brand p { margin-top: 12px; max-width: 30ch; }
.footer-base { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--label-3); font-size: 14px; }
.footer-base .ar { font-family: var(--arabic); font-size: 18px; color: var(--primary-light); }

/* ── Legal and contact pages ────────────────────────────────────── */
.page-head { position: relative; padding: 72px 0 40px; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(38px, 5.4vw, 60px); margin: 14px 0 14px; }
.page-head p { color: var(--label-2); font-size: 18px; max-width: 60ch; }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 96px; padding: 20px; border-radius: var(--radius-m); background: var(--ink-deep); border: 1px solid var(--line); font-size: 14px; }
.toc b { display: block; margin-bottom: 10px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label-3); }
.toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.toc a { color: var(--label-2); }
.toc a:hover { color: var(--label); }
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 48px 0 14px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--label-2); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; margin: 12px 0; display: grid; gap: 8px; }
.prose strong { color: var(--label); }
.summary-card { padding: 26px 28px; border-radius: var(--radius-l); background: linear-gradient(180deg, rgba(28,60,58,0.62), rgba(15,34,33,0.9)); border: 1px solid var(--line); margin-bottom: 8px; }
.summary-card h2 { margin: 0 0 12px; font-size: 20px; }
.summary-card ul { margin: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--radius-m); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: var(--ink-deep); color: var(--label); font-weight: 700; }
td { color: var(--label-2); }
tr:last-child td { border-bottom: 0; }
.updated { color: var(--label-3); font-size: 15px; margin-top: 10px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.contact-card { padding: 28px; border-radius: var(--radius-l); background: var(--ink-deep); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.contact-card img { width: 64px; height: 64px; object-fit: contain; }
.contact-card h3 { font-size: 20px; }
.contact-card p { color: var(--label-2); font-size: 15px; flex: 1; }
.contact-card a.mail { font-weight: 800; font-size: 17px; }
.form { padding: 36px; display: grid; gap: 18px; }
.form h2 { font-size: 28px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--label); background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 14px 16px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(68,146,140,0.3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .hint { color: var(--label-3); font-size: 14px; }

/* ── Reveal on scroll (only when motion is welcome) ─────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ── Narrow screens ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero .wrap, .focus, .split, .cta { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 72px; }
  .hero .wrap { gap: 56px; }
  .phone-stage { order: 2; }
  .features, .promise, .contact-grid { grid-template-columns: 1fr 1fr; }
  .focus { padding: 40px 28px; }
  .focus .phone-col { order: 2; }
  .split .art-col { order: 2; }
  .cta img { justify-self: center; max-width: 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal { grid-template-columns: 1fr; }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu { display: block; }
  :root { --gutter: 16px; }
  .section { padding: 72px 0; }
  .story, .features, .promise, .contact-grid, .form-row { grid-template-columns: 1fr; }
  .verse, .cta { padding: 44px 22px; }
  .form { padding: 26px 20px; }
  .hero-figure { width: 110px; left: -8px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* The Pro marker, the paywall's own lime. */
.pro {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--secondary); color: var(--on-secondary);
}

/* A button inside the nav keeps its own ink, not the links' grey. */
.nav-links a.btn-accent, .nav-links a.btn-accent:hover { color: var(--on-secondary); }
/* The story tags sit inside the caption, whose span rule would grey them. */
.story figcaption .tag { display: inline-block; font-size: 12px; }
.story figcaption .tag-before { color: var(--label-2); }
.story figcaption .tag-after { color: var(--on-secondary); }

.page-head p.updated { color: var(--label-3); font-size: 15px; }
