/* Hifzly marketing site.
   The idea: the site is the Mushaf's binding (brand green, gilt) and the
   pages inside it are paper — the same cream as the app's own page.
   `asset:` URLs are rewritten to hashed files by build.mjs. */

@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata.7b928641a3.woff2") format("woff2");
  font-weight: 400 650;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk.51c4a1e32c.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
/* Arabic UI + headings: unicode-range means Latin-script pages never download these */
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-400.11a97ee902.woff2") format("woff2");
  font-weight: 400 500; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Plex Arabic";
  src: url("/assets/fonts/plex-arabic-600.b0509dfba8.woff2") format("woff2");
  font-weight: 600 800; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Naskh Arabic";
  src: url("/assets/fonts/naskh-arabic.6424be3b06.woff2") format("woff2");
  font-weight: 500 700; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Amiri Ayah";
  src: url("/assets/fonts/amiri-ayah.3eef94d237.woff2") format("woff2");
  font-display: swap;
}

:root {
  --binding: #0b3a2e;
  --binding-deep: #072a21;
  --binding-raised: #0f4536;
  --gilt: #d8b56a;
  --gilt-strong: #e8c982;
  --paper: #f4eedf;
  --paper-light: #faf6ec;
  --rule: #dccfb2;
  --ink: #221d14;
  --ink-soft: #564d3d;
  --mist: #bdcec4;
  --leaf: #2b6f4c;
  --serif: "Literata", "Naskh Arabic", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Plex Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --arabic: "Amiri Ayah", "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --focus: var(--binding);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 17px/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, :where(ol.steps, ol.install) { margin: 0; padding: 0; list-style: none; }
[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--gilt); color: var(--binding-deep); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ── bands: green binding, paper pages ─────────────────────────────── */
.band-green { background: var(--binding); color: var(--mist); --focus: var(--gilt); }
.band-green h1, .band-green h2, .band-green h3 { color: var(--paper); }
.band-deep { background: var(--binding-deep); color: var(--mist); --focus: var(--gilt); }
.band-paper { background: var(--paper); color: var(--ink); }
.band-light { background: var(--paper-light); color: var(--ink); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.rule-top { border-top: 1px solid var(--rule); }

.h2 { font-size: clamp(1.9rem, 1.15rem + 2.5vw, 2.85rem); line-height: 1.12; letter-spacing: -0.01em; max-width: 22ch; }
.lede { margin-top: 18px; font-size: 1.12rem; color: var(--ink-soft); max-width: 40rem; }
.band-green .lede { color: var(--mist); }

/* ── header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--binding); color: var(--mist);
  border-bottom: 1px solid rgba(216, 181, 106, 0.18);
  --focus: var(--gilt);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--paper); margin-inline-end: auto; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font: 600 1.35rem/1 var(--serif); letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.97rem; color: var(--mist); }
.nav a:hover { color: var(--paper); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* language menu — a <details>, so it works without JavaScript */
.lang { position: relative; }
.lang > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(189, 206, 196, 0.28);
  color: var(--paper); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { border-color: rgba(216, 181, 106, 0.6); }
.lang svg { width: 17px; height: 17px; }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 180px; z-index: 50;
  background: var(--paper-light); color: var(--ink); border-radius: 12px; padding: 6px;
  box-shadow: 0 18px 40px -12px rgba(4, 20, 15, 0.45); border: 1px solid var(--rule);
  --focus: var(--binding);
}
.lang-list a { display: flex; justify-content: space-between; gap: 16px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.lang-list a:hover { background: var(--paper); }
.lang-list a[aria-current="true"] { font-weight: 650; }
.lang-list a[aria-current="true"]::after { content: "✓"; color: var(--leaf); }
.site-footer .lang-list { top: auto; bottom: calc(100% + 8px); inset-inline-end: auto; inset-inline-start: 0; }

.menu { display: none; }
.menu > summary {
  list-style: none; cursor: pointer; width: 42px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid rgba(189, 206, 196, 0.28); color: var(--paper);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu svg { width: 20px; height: 20px; }
.menu-panel {
  position: absolute; inset-inline: 0; top: 100%; background: var(--binding);
  border-bottom: 1px solid rgba(216, 181, 106, 0.2); padding: 8px var(--gutter) 22px;
}
.menu-panel a { display: block; padding: 13px 4px; text-decoration: none; color: var(--paper); font-size: 1.05rem; border-bottom: 1px solid rgba(189, 206, 196, 0.12); }
.menu-panel .btn { margin-top: 16px; width: 100%; border-bottom: 0; }

/* ── buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 14px; border: 0; cursor: pointer;
  font: 650 1.05rem/1 var(--sans); text-decoration: none;
  background: var(--gilt); color: var(--binding-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 14px 30px -14px rgba(0, 0, 0, 0.55);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--gilt-strong); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 10px; font-size: 0.95rem; }
.btn-dark { background: var(--binding); color: var(--paper); }
.btn-dark:hover { background: var(--binding-raised); }
.btn-ghost {
  background: transparent; color: var(--paper); box-shadow: none;
  border: 1px solid rgba(216, 181, 106, 0.55);
}
.btn-ghost:hover { background: rgba(216, 181, 106, 0.1); }
.text-link { font-weight: 600; color: var(--leaf); text-underline-offset: 3px; }
.band-green .text-link, .band-deep .text-link { color: var(--gilt); }

.cta-block { margin-top: 34px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-notes { margin-top: 16px; font-size: 0.95rem; line-height: 1.55; }
.cta-notes p + p { margin-top: 4px; opacity: 0.85; }
.ios-note { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(216, 181, 106, 0.12); color: var(--paper); font-size: 0.95rem; }
html.is-ios .ios-note { display: block; }
.secondary-link { font-size: 0.95rem; }
.center { text-align: center; }
.center .cta-row { justify-content: center; }

/* ── hero ──────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.home-hero { grid-template-areas: "text demo" "ayah demo"; grid-template-rows: auto 1fr; row-gap: 0; }
.home-hero .hero-text { grid-area: text; align-self: end; }
.home-hero .ayah { grid-area: ayah; align-self: start; }
.home-hero .demo { grid-area: demo; margin: 0; }
.hero h1 { font-size: clamp(2.4rem, 1.2rem + 4.3vw, 4.15rem); line-height: 1.05; letter-spacing: -0.018em; max-width: 16ch; }
.hero-sub { margin-top: 22px; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem); max-width: 34rem; color: var(--mist); }
.ayah {
  margin-top: 28px; padding-inline-start: 18px; border-inline-start: 2px solid rgba(216, 181, 106, 0.55);
  max-width: 30rem;
}
.ayah-ar { text-align: left; font-family: var(--arabic); font-size: clamp(1.7rem, 1.4rem + 1vw, 2.15rem); line-height: 1.7; color: var(--gilt); }
.ayah-meaning { font-size: 0.95rem; color: var(--mist); }
.ayah-meaning cite { font-style: normal; opacity: 0.75; }

/* ── the phone, and the live Recite demo ───────────────────────────── */
.phone {
  position: relative; width: min(300px, 74vw); margin-inline: auto;
  border-radius: 46px; padding: 9px; background: #121511;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07) inset, 0 40px 70px -30px rgba(0, 0, 0, 0.7);
}
.screen { position: relative; border-radius: 38px; overflow: hidden; aspect-ratio: 600 / 1304; background: var(--paper); }
.screen > img { width: 100%; height: 100%; object-fit: cover; }
.band-paper .phone, .band-light .phone { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 34px 60px -28px rgba(40, 30, 10, 0.55); }
.demo figcaption { margin-top: 20px; text-align: center; font-size: 0.93rem; color: var(--mist); max-width: 22rem; margin-inline: auto; }
.words { position: absolute; inset: 0; }
.words i {
  position: absolute; inset: 0; background: url("/assets/shots/mushaf.ccb7d536e3.webp") 0 0 / 100% 100% no-repeat;
  transition: opacity 0.25s ease;
}
html.js .words i { opacity: 0; }
html.js .words i.on { opacity: 1; }
.words.fade i { transition-duration: 0.7s; }
@media (prefers-reduced-motion: reduce) { .words i { transition: none; } }
/* word rectangles are generated by build.mjs from the measured page (below) */
.words .w0{clip-path:inset(23.913% 27.312% 70.423% 64.003%)}
.words .w1{clip-path:inset(23.913% 35.397% 70.423% 55.421%)}
.words .w2{clip-path:inset(23.913% 43.979% 70.423% 46.839%)}
.words .w3{clip-path:inset(23.913% 52.561% 70.423% 34.526%)}
.words .w4{clip-path:inset(31.979% 19.725% 62.471% 64.625%)}
.words .w5{clip-path:inset(31.979% 34.775% 62.471% 58.531%)}
.words .w6{clip-path:inset(31.979% 40.869% 62.471% 50.322%)}
.words .w7{clip-path:inset(31.979% 49.078% 62.471% 26.566%)}
.words .w8{clip-path:inset(39.302% 4.053% 54.805% 81.665%)}
.words .w9{clip-path:inset(39.302% 20.844% 54.805% 63.506%)}
.words .w10{clip-path:inset(39.302% 47.834% 54.805% 38.133%)}
.words .w11{clip-path:inset(39.302% 64.377% 54.805% 28.307%)}
.words .w12{clip-path:inset(39.302% 73.581% 54.805% 13.382%)}
.words .w13{clip-path:inset(47.14% 4.426% 47.597% 85.023%)}
.words .w14{clip-path:inset(47.14% 18.108% 47.597% 71.342%)}
.words .w15{clip-path:inset(47.14% 31.914% 47.597% 55.173%)}
.words .w16{clip-path:inset(47.14% 47.834% 47.597% 31.914%)}
.words .w17{clip-path:inset(47.14% 79.924% 47.597% 5.421%)}
.words .w18{clip-path:inset(54.519% 12.635% 39.931% 73.332%)}
.words .w19{clip-path:inset(54.519% 26.068% 39.931% 51.939%)}
.words .w20{clip-path:inset(54.519% 47.461% 39.931% 40.62%)}
.words .w21{clip-path:inset(54.519% 58.78% 39.931% 26.814%)}
.words .w22{clip-path:inset(54.519% 72.586% 39.931% 13.755%)}
.words .w23{clip-path:inset(62.529% 20.596% 31.808% 66.74%)}
.words .w24{clip-path:inset(62.529% 32.66% 31.808% 57.66%)}
.words .w25{clip-path:inset(62.529% 41.74% 31.808% 35.148%)}
.words .w26{clip-path:inset(62.529% 64.252% 31.808% 21.964%)}
.words .w27{clip-path:inset(70.309% 32.536% 24.657% 58.406%)}
.words .w28{clip-path:inset(70.309% 40.994% 24.657% 39.625%)}

/* ── proof strip ───────────────────────────────────────────────────── */
.proof { border-top: 1px solid rgba(216, 181, 106, 0.22); padding-block: 30px 34px; }
.proof ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.proof strong { display: block; color: var(--paper); font: 600 1.08rem/1.3 var(--serif); }
.proof span { display: block; margin-top: 4px; font-size: 0.95rem; }

/* ── features ──────────────────────────────────────────────────────── */
.features-list { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: clamp(72px, 10vw, 128px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.feature:nth-child(even) .feature-visual { order: -1; }
.feature-label { display: inline-block; font-weight: 650; font-size: 0.98rem; color: var(--leaf); }
.feature h3 { margin-top: 10px; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.2rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 20ch; }
.feature p { margin-top: 16px; color: var(--ink-soft); font-size: 1.06rem; max-width: 34rem; }
.checks { margin-top: 22px; display: grid; gap: 11px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.checks svg { width: 20px; height: 20px; margin-top: 2px; color: var(--leaf); }
.band-green .checks svg, .pro-card .checks svg { color: var(--gilt); }
.pair { display: flex; justify-content: center; align-items: flex-end; }
.pair .phone { width: min(236px, 42vw); }
.pair .phone:first-child { margin-inline-end: -28px; transform: translateY(-26px); z-index: 1; }

/* the rest of the routine: a quieter grid under the four big features */
.more-h { margin-top: clamp(80px, 10vw, 128px); font-size: clamp(1.5rem, 1.15rem + 1.2vw, 2rem); line-height: 1.15; max-width: 22ch; }
.more-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.more-grid li { padding: 22px 0 26px; border-top: 1px solid var(--rule); }
.more-grid h4 { margin: 0; font: 600 1.15rem/1.3 var(--serif); }
.more-grid p { margin-top: 6px; color: var(--ink-soft); }
@media (max-width: 880px) { .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .more-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── how it works (a real sequence, so it is numbered) ─────────────── */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { padding-block: 26px 8px; padding-inline: 0 28px; border-top: 2px solid var(--binding); margin-inline-end: 28px; }
.steps .num { font: 600 2.4rem/1 var(--serif); color: var(--binding); }
.steps h3 { margin-top: 18px; font-size: 1.3rem; }
.steps p { margin-top: 8px; color: var(--ink-soft); }

/* ── pricing ───────────────────────────────────────────────────────── */
.plans { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 22px; align-items: stretch; }
.plan { border-radius: 22px; padding: clamp(26px, 4vw, 38px); display: flex; flex-direction: column; }
.free-card { background: var(--paper-light); border: 1px solid var(--rule); }
.pro-card { background: var(--binding); color: var(--mist); --focus: var(--gilt); position: relative; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan h3 { font-size: 1.5rem; }
.pro-card h3 { color: var(--paper); }
.badge { display: inline-block; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(216, 181, 106, 0.6); color: var(--gilt); font-size: 0.85rem; font-weight: 650; }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.price strong { font: 600 2.6rem/1 var(--serif); letter-spacing: -0.02em; }
.pro-card .price strong { color: var(--gilt); }
.price span { font-size: 0.98rem; opacity: 0.8; }
.plan .checks { margin-top: 26px; margin-bottom: 30px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.footnote { margin-top: 18px; font-size: 0.9rem; color: var(--ink-soft); }

/* ── faq ───────────────────────────────────────────────────────────── */
.faq { margin-top: 40px; max-width: 48rem; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: baseline;
  padding: 22px 0; font: 600 1.18rem/1.35 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--leaf); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-block: 0 24px; padding-inline: 0 44px; color: var(--ink-soft); max-width: 42rem; }
.more-link { display: inline-block; margin-top: 28px; }

/* ── closing call to action ────────────────────────────────────────── */
.final h2 { line-height: 1.1; font-size: clamp(2rem, 1.2rem + 3vw, 3.2rem); margin-inline: auto; max-width: 18ch; }
.final .lede { margin-inline: auto; }
.share { margin-top: 34px; display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; font-size: 0.97rem; }
.share a { display: inline-flex; align-items: center; gap: 8px; color: var(--gilt); font-weight: 600; text-underline-offset: 3px; }
.share svg { width: 19px; height: 19px; }

/* ── footer ────────────────────────────────────────────────────────── */
.site-footer { padding-block: 56px 36px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px 60px; }
.site-footer .brand { margin: 0; }
.footer-tag { margin-top: 14px; max-width: 30rem; font-size: 0.97rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-content: start; }
.footer-links a { color: var(--paper); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-lang { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 0.95rem; }
.footer-lang svg { width: 17px; height: 17px; }
.footer-lang a { color: var(--mist); text-underline-offset: 3px; }
.footer-lang a[aria-current="true"] { color: var(--paper); font-weight: 650; text-decoration: none; }
.footer-base {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(189, 206, 196, 0.16);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 0.88rem; opacity: 0.85;
}
.footer-base a { color: var(--mist); }

/* ── sticky download bar (phones, once the hero button scrolls away) ── */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: none;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 42, 33, 0.97); border-top: 1px solid rgba(216, 181, 106, 0.28);
  transform: translateY(110%); transition: transform 0.25s ease; --focus: var(--gilt);
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.show { transform: none; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ── download page ─────────────────────────────────────────────────── */
.install { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.install li { background: var(--paper-light); border: 1px solid var(--rule); border-radius: 18px; padding: 24px; }
.install .num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--binding); color: var(--gilt); font: 600 1.05rem/1 var(--serif); }
.install h3 { margin-top: 16px; font-size: 1.2rem; }
.install p { margin-top: 8px; color: var(--ink-soft); font-size: 0.99rem; }
#requirements { margin-top: clamp(56px, 7vw, 88px); }
.reqs { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; }
.reqs h3 { font-size: 1.2rem; }
.reqs p { margin-top: 6px; color: var(--ink-soft); }
.callouts { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.callout { border-radius: 18px; padding: 26px 28px; border: 1px solid var(--rule); background: var(--paper-light); }
.callout h3 { font-size: 1.2rem; }
.callout p { margin-top: 8px; color: var(--ink-soft); }
.callout.safety { background: var(--binding); color: var(--mist); border-color: transparent; --focus: var(--gilt); }
.callout.safety h3 { color: var(--paper); }
.callout.safety p { color: var(--mist); }
.callout .text-link { display: inline-block; margin-top: 12px; }
.qr { display: none; margin-top: 56px; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 26px; border-radius: 18px; border: 1px solid var(--rule); background: #fff; }
.qr img { width: 150px; height: 150px; }
.qr h3 { font-size: 1.3rem; }
.qr p { margin-top: 6px; color: var(--ink-soft); max-width: 30rem; }
@media (hover: hover) and (pointer: fine) { .qr { display: grid; } }
html.is-android .qr, html.is-ios .qr { display: none; }

/* ── support ───────────────────────────────────────────────────────── */
.page-hero { padding-block: clamp(48px, 7vw, 88px); }
.page-hero h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.5rem); line-height: 1.08; letter-spacing: -0.015em; max-width: 18ch; }
.page-hero .lede { color: var(--mist); }
.page-hero .btn-ghost { margin-top: 28px; }
.delete-card { margin-top: 56px; max-width: 48rem; border-radius: 20px; padding: clamp(24px, 4vw, 36px); background: var(--paper-light); border: 1px solid var(--rule); }
.delete-card h2 { font-size: 1.5rem; }
.delete-card p { margin-top: 10px; color: var(--ink-soft); }
.delete-card .links { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px 26px; }

/* ── legal documents ───────────────────────────────────────────────── */
.doc { max-width: 44rem; }
.doc h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); }
.doc .updated { margin-top: 10px; color: var(--ink-soft); font-size: 0.95rem; }
.doc h2 { margin-top: 38px; font-size: 1.35rem; }
.doc p, .doc li { color: var(--ink); }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 12px; padding-inline-start: 22px; list-style: disc; display: grid; gap: 8px; }
.doc code { font-size: 0.88em; background: var(--paper-light); border: 1px solid var(--rule); padding: 1px 6px; border-radius: 5px; }
.doc a { color: var(--leaf); }

/* ── dialog ────────────────────────────────────────────────────────── */
dialog.get {
  width: min(28rem, calc(100vw - 32px)); border: 0; border-radius: 22px; padding: 30px 28px 26px;
  background: var(--paper-light); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
dialog.get::backdrop { background: rgba(4, 22, 17, 0.62); }
dialog.get h2 { font-size: 1.45rem; padding-inline-end: 36px; }
dialog.get p { margin-top: 10px; color: var(--ink-soft); }
dialog.get ol { margin: 14px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; }
dialog.get .close {
  position: absolute; top: 16px; inset-inline-end: 16px; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--rule); background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--ink);
}
dialog.get .close svg { width: 18px; height: 18px; }
dialog.get .panel { display: none; }
dialog.get[data-show="android"] .panel-android,
dialog.get[data-show="desktop"] .panel-desktop,
dialog.get[data-show="ios"] .panel-ios { display: block; }
dialog.get .qr-img { margin: 18px auto 4px; width: 172px; height: 172px; }
dialog.get .small-link { display: inline-block; margin-top: 16px; font-size: 0.95rem; color: var(--leaf); }

/* ── not found ─────────────────────────────────────────────────────── */
.nf { min-height: 62vh; display: grid; align-items: center; }
.nf h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.2rem); max-width: 16ch; }

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .nav, .header-actions .btn-sm { display: none; }
  .menu { display: block; }
  .sticky-cta { display: block; }
  .site-footer { padding-bottom: 110px; }
  .hero-grid, .feature, .plans, .footer-grid, .callouts { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { margin-inline-end: 0; padding-inline-end: 0; }
  .reqs { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 16ch; }
  .home-hero { grid-template-areas: "text" "demo" "ayah"; row-gap: 40px; }
}
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .install { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { width: 100%; }
  .brand span { font-size: 1.25rem; }
  .lang > summary { padding: 0 10px; }
  .faq details p { padding-inline-end: 0; }
  .qr { grid-template-columns: minmax(0, 1fr); }
}

/* ── right-to-left (Arabic) ────────────────────────────────────────── */
[dir="rtl"] body { line-height: 1.85; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }
[dir="rtl"] .h2, [dir="rtl"] .feature h3, [dir="rtl"] .page-hero h1, [dir="rtl"] .final h2, [dir="rtl"] .more-h { line-height: 1.4; }
[dir="rtl"] .hero h1 { line-height: 1.3; letter-spacing: 0; }
[dir="rtl"] .ayah-ar { text-align: right; }
[dir="rtl"] .lang > summary { letter-spacing: 0; }
/* The switcher's own "العربية" label uses the system Arabic font, so
   Latin-script pages don't download the Arabic web fonts for one word. */
:not([lang="ar"]) > .lang-list a[lang="ar"],
:not([lang="ar"]) > .footer-lang a[lang="ar"],
html:not([lang="ar"]) a[lang="ar"] { font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif; }
