/* 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, ol.steps { 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; }
.secondary-link { font-size: 0.95rem; }
.center { text-align: center; }
.center .cta-row { justify-content: center; }

/* ── the store badges ──────────────────────────────────────────────────
   Each badge is the store's own artwork and is never redrawn.  Google's PNG
   carries its required clear space inside the file (the button is 168 of its
   250 px), Apple's SVG is artwork edge to edge — so the two are given
   different heights to land on the same optical height, and the Apple badge
   gets the clear space Apple asks for as padding. */
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.center .store-badges { justify-content: center; }
.store-badge { display: inline-flex; border-radius: 10px; transition: transform 160ms ease, opacity 160ms ease; }
.store-badge img { display: block; width: auto; height: 65px; }
.store-badge-apple { padding: 10px 11px; }
.store-badge-apple img { height: 44px; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .store-badge { transition: none; } .store-badge:hover { transform: none; } }
.store-pending { font-size: 1.02rem; font-weight: 600; }
.footer-trademarks { margin-top: 18px; font-size: 0.78rem; line-height: 1.6; color: var(--mist); opacity: 0.75; }

/* ── 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; }
/* v2 — the kicker says what Hifzly is before the h1 says who it is for */
.hero-kicker {
  margin-bottom: 14px; font: 650 0.86rem/1.2 var(--sans); letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gilt);
}
.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.1c16bff23a.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(28.612% 27.167% 63.735% 60.733%)}
.words .w1{clip-path:inset(28.612% 38.667% 63.735% 55.233%)}
.words .w2{clip-path:inset(28.612% 44.167% 63.735% 46.767%)}
.words .w3{clip-path:inset(28.612% 52.633% 63.735% 33.133%)}
.words .w4{clip-path:inset(36.342% 19.817% 56.005% 63.767%)}
.words .w5{clip-path:inset(36.342% 35.633% 56.005% 58.567%)}
.words .w6{clip-path:inset(36.342% 40.833% 56.005% 46.2%)}
.words .w7{clip-path:inset(36.342% 53.2% 56.005% 25.783%)}
.words .w8{clip-path:inset(44.072% 3.9% 48.275% 80.933%)}
.words .w9{clip-path:inset(44.072% 20.667% 48.275% 62.183%)}
.words .w10{clip-path:inset(44.072% 47.6% 48.275% 37.05%)}
.words .w11{clip-path:inset(44.072% 64.55% 48.275% 28.2%)}
.words .w12{clip-path:inset(44.072% 73.417% 48.275% 12.067%)}
.words .w13{clip-path:inset(51.802% 4.167% 40.544% 84.017%)}
.words .w14{clip-path:inset(51.802% 17.867% 40.544% 70.167%)}
.words .w15{clip-path:inset(51.802% 31.717% 40.544% 54.133%)}
.words .w16{clip-path:inset(51.802% 47.733% 40.544% 30.633%)}
.words .w17{clip-path:inset(51.802% 79.683% 40.544% 4.183%)}
.words .w18{clip-path:inset(59.532% 12.383% 32.814% 72.633%)}
.words .w19{clip-path:inset(59.532% 26.783% 32.814% 52.7%)}
.words .w20{clip-path:inset(59.532% 52.65% 32.814% 35.15%)}
.words .w21{clip-path:inset(59.532% 64.25% 32.814% 25.883%)}
.words .w22{clip-path:inset(59.532% 73.5% 32.814% 12.4%)}
.words .w23{clip-path:inset(67.255% 20.367% 25.092% 66.833%)}
.words .w24{clip-path:inset(67.255% 32.583% 25.092% 59.017%)}
.words .w25{clip-path:inset(67.255% 40.383% 25.092% 34.75%)}
.words .w26{clip-path:inset(67.255% 64.633% 25.092% 20.383%)}
.words .w27{clip-path:inset(74.985% 32.4% 17.362% 60.35%)}
.words .w28{clip-path:inset(74.985% 39.05% 17.362% 38.35%)}

/* ── 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; }

/* ── watch: the silent clips, in the site's own green frame ────────── */
.watch .lede { color: var(--mist); }
.reel { margin: 0; }
.reel h3 { font-size: 1.16rem; margin-bottom: 14px; }
.reel-frame {
  position: relative; overflow: hidden; border-radius: 20px;
  background: var(--binding); border: 1px solid rgba(216, 181, 106, 0.3);
  box-shadow: 0 36px 60px -32px rgba(0, 0, 0, 0.8);
}
.reel-frame video { display: block; width: 100%; height: auto; background: var(--binding); }
.reel figcaption { margin-top: 14px; font-size: 0.95rem; color: var(--mist); max-width: 34rem; }
.reel-wide { margin-top: clamp(34px, 5vw, 56px); }
.reel-wide .reel-frame { border-radius: 24px; }
.reel-wide figcaption { margin-top: 18px; font-size: 1.02rem; color: var(--gilt); }
.reels {
  margin-top: clamp(40px, 6vw, 72px); max-width: 780px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 52px);
}
.page-hero .reel { max-width: 320px; margin-inline: auto; }
.page-hero .reel figcaption { text-align: center; }

/* ── 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; }

/* v2 — the home page's three cards: one screen, one heading, one line each */
.home-cards {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px);
}
.home-card { margin: 0; text-align: center; }
.home-card .phone { width: min(230px, 62vw); }
.home-card h3 { margin-top: 26px; font-size: 1.3rem; line-height: 1.25; }
.home-card p { margin-top: 8px; color: var(--ink-soft); }
.cards-more { margin-top: clamp(34px, 4vw, 52px); }
.center .cards-more { text-align: center; }
@media (max-width: 880px) { .home-cards { grid-template-columns: minmax(0, 1fr); gap: 54px; } }

/* 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 .store-badges { justify-content: center; gap: 8px 12px; }
.sticky-cta .store-badge img { height: 50px; }
.sticky-cta .store-badge-apple { padding: 7px 8px; }
.sticky-cta .store-badge-apple img { height: 34px; }
.sticky-cta.show { transform: none; }
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: 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); }

/* ── 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)); }
}
@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 { 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; }
  .hero h1 { max-width: 16ch; }
  .home-hero { grid-template-areas: "text" "demo" "ayah"; row-gap: 40px; }
}
@media (max-width: 620px) {
  .reels { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
}
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .cta-row .btn { width: 100%; }
  .brand span { font-size: 1.25rem; }
  .lang > summary { padding: 0 10px; }
  .faq details p { padding-inline-end: 0; }
}

/* ── 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; }
