/* ============================================================
   Hayya — hayyapp.com homepage (2026-09 redesign)
   Editorial, dark, one parchment moment. Brand navy + gold from
   the app's DesignSystem.swift; ivory text instead of pure white.
   ============================================================ */

:root {
  --ink:      #070F1C;
  --ink-2:    #0B1626;
  --night:    #04080F;
  --ivory:    #F2EBDD;
  --ivory-2:  #CFC7B8;
  --mute:     #8C98A6;
  --mute-2:   #5F6B79;
  --gold:     #D4A853;
  --gold-2:   #E9C98A;
  --ember:    #D9823B;
  --line:     rgba(242, 235, 221, 0.12);
  --line-2:   rgba(242, 235, 221, 0.22);
  --paper:    #EFE7D6;
  --paper-2:  #E6DCC7;
  --paper-ink:#1D1B17;

  --serif:  "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans:   "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Geeza Pro", serif;

  --max: 1240px;
  --gutter: clamp(16px, 4.5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Film grain over everything — keeps the flat navy from looking digital */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(212, 168, 83, .35); color: var(--ivory); }

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ivory); color: var(--ink); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type ---------- */

.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.label.quiet { color: var(--mute); }

.h-display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 9.2vw, 132px);
  line-height: .9;
  letter-spacing: -.02em;
}
.h-display em, .h2 em { font-style: italic; color: var(--gold-2); }

.h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: .98;
  letter-spacing: -.015em;
}

.h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.1;
}

.lede {
  font-size: clamp(18px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--ivory-2);
  max-width: 34em;
}

.arabic { font-family: var(--arabic); direction: rtl; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-solid { background: var(--ivory); color: var(--ink); }
.btn-solid:hover { background: #fff; transform: translateY(-1px); }
.btn-line { border: 1px solid var(--line-2); color: var(--ivory); }
.btn-line:hover { border-color: var(--ivory); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ivory); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid var(--line-2); padding-bottom: 3px;
  transition: border-color .3s var(--ease), gap .3s var(--ease);
}
.textlink:hover { border-color: var(--gold); gap: 12px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 15, 28, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 26px/1 var(--serif); letter-spacing: .01em;
  text-decoration: none; color: var(--ivory);
}
.brand svg { width: 22px; height: 22px; color: var(--gold); }

.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; }
.nav-links a:not(.btn) { color: var(--ivory-2); text-decoration: none; transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--ivory); }

.lang { display: inline-flex; gap: 2px; font-size: 13px; }
.lang a { padding: 4px 8px; border-radius: 6px; }
.lang a[aria-current] { color: var(--ivory) !important; background: rgba(242,235,221,.08); }
.lang a[lang="ar"] { font-family: var(--arabic); font-size: 16px; line-height: 1; }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after {
  display: block; width: 16px; height: 1.5px; background: var(--ivory); position: relative; content: "";
}
.menu summary span::before { position: absolute; top: -5px; }
.menu summary span::after { position: absolute; top: 5px; }
.menu-panel {
  position: absolute; right: 0; top: 54px; min-width: 220px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px; display: grid; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.menu-panel a { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ivory-2); }
.menu-panel a:hover { background: rgba(242,235,221,.06); color: var(--ivory); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 112px 0 64px;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; filter: saturate(.85) contrast(1.05); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,15,28,.94) 0%, rgba(7,15,28,.78) 42%, rgba(7,15,28,.35) 75%, rgba(7,15,28,.55) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(7,15,28,0) 30%);
}

.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px; }

.hero .call { font-size: clamp(30px, 3.4vw, 44px); color: var(--gold); line-height: 1.3; margin-bottom: 4px; text-align: left; }
.hero .call-tr { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--mute); margin-bottom: 28px; }
.hero .h-display { margin-bottom: 30px; }
.hero .lede { margin-bottom: 38px; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--mute); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); opacity: .8; }

.hero-phone { justify-self: center; position: relative; }

/* ---------- Phone ---------- */

.phone {
  --w: clamp(230px, 24vw, 320px);
  width: var(--w);
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .165);
  background: linear-gradient(150deg, #34373d 0%, #15171b 38%, #0a0b0d 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 0 0 1px rgba(0,0,0,.9),
    0 60px 100px -30px rgba(0,0,0,.85),
    0 30px 60px -30px rgba(212,168,83,.18);
  position: relative;
}
.phone .screen {
  position: relative;
  aspect-ratio: 1260 / 2736;
  border-radius: calc(var(--w) * .135);
  overflow: hidden;
  background: #000;
}
.phone .screen img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */

section { position: relative; }
.pad { padding: clamp(80px, 9.5vw, 136px) 0; }

.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head .label { grid-column: 1 / -1; }
.sec-head p:not(.label) { color: var(--ivory-2); max-width: 30em; font-size: 18px; }

/* ---------- Manifesto ---------- */

.manifesto { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 56px); }
.manifesto p {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.22;
  letter-spacing: -.005em;
  max-width: 21em;
  color: var(--ivory-2);
}
.manifesto p strong { font-weight: 500; color: var(--ivory); }
.manifesto p + p { margin-top: .8em; }
.manifesto .close { color: var(--gold-2); font-style: italic; }

.manifesto-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.manifesto-img { border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 4; }
.manifesto-img img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; filter: saturate(.85); }

.star-rule { display: flex; align-items: center; gap: 18px; color: var(--gold); margin-bottom: 44px; }
.star-rule::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.star-rule svg { width: 18px; height: 18px; }

/* ---------- Stories ---------- */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(40px, 5vw, 64px) clamp(20px, 2.4vw, 32px);
}
.story { display: flex; flex-direction: column; }
.story.s-lg { grid-column: span 7; }
.story.s-md { grid-column: span 5; }
.story.s-sm { grid-column: span 4; }

.story figure { position: relative; overflow: hidden; border-radius: 4px; background: var(--ink-2); margin-bottom: 24px; }
.story figure img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.8) contrast(1.04) brightness(.92);
  transition: transform 1.4s var(--ease);
}
.story:hover figure img { transform: scale(1.03); }
.story figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,15,28,0) 55%, rgba(7,15,28,.55) 100%);
  mix-blend-mode: multiply;
}
.story.s-lg figure, .story.s-md figure { height: clamp(340px, 34vw, 470px); }
.story.s-sm figure { aspect-ratio: 4 / 4.6; }

.story .stamp {
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(242,235,221,.85);
}

.story .moment {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 31px);
  line-height: 1.2;
  color: var(--ivory);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.story.s-sm .moment { font-size: clamp(22px, 1.9vw, 26px); }
.story .answer { color: var(--ivory-2); font-size: 16px; line-height: 1.6; padding-top: 16px; border-top: 1px solid var(--line); }
.story .answer b { color: var(--gold-2); font-weight: 600; }

/* Real testimonials (switched on in index.html once genuine, consented quotes exist) */
.voices { margin-top: clamp(64px, 8vw, 110px); padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 32px; }
.voices > .label { grid-column: 1 / -1; }
.voice img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 18px; filter: saturate(.9); }
.voice blockquote { font: 500 22px/1.3 var(--serif); color: var(--ivory); margin-bottom: 14px; }
.voice .who { font-size: 14px; color: var(--mute); }

/* ---------- Ayah (parchment) ---------- */

.ayah {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,.35), transparent 70%),
    var(--paper);
  color: var(--paper-ink);
  text-align: center;
  overflow: hidden;
}
.ayah .pattern { position: absolute; inset: 0; opacity: .09; pointer-events: none; }
.ayah .inner { position: relative; max-width: 980px; margin: 0 auto; }
.ayah .ar-verse { font-size: clamp(34px, 4.8vw, 64px); line-height: 1.75; color: #3a2d12; margin-bottom: 36px; }
.ayah .en-verse {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3;
  max-width: 24em; margin: 0 auto 18px;
}
.ayah cite { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8a6a2c; font-style: normal; }
.ayah .note { margin: 56px auto 0; max-width: 34em; color: #4c463b; font-size: 17px; }

/* ---------- Salah Lock ---------- */

.lock { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.lock-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(48px, 7vw, 120px); align-items: center; }
.lock .h2 { margin: 18px 0 28px; }
.lock .lede { margin-bottom: 44px; }

.steps { list-style: none; border-top: 1px solid var(--line); margin-bottom: 36px; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps .n { font: 500 15px/1.6 var(--serif); font-style: italic; color: var(--gold); font-size: 22px; line-height: 1.2; }
.steps h3 { font: 600 17px/1.4 var(--sans); margin-bottom: 4px; }
.steps p { color: var(--mute); font-size: 15.5px; }

.lock-fine { font-size: 14.5px; color: var(--mute); margin-bottom: 32px; max-width: 34em; }

.lock-visual { position: relative; justify-self: center; }
.lock-visual .halo {
  position: absolute; inset: -18% -30%; z-index: -1;
  background: radial-gradient(closest-side, rgba(212,168,83,.20), transparent 70%);
  filter: blur(10px);
}
.chip {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(13, 24, 40, .82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--ivory);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.8);
  white-space: nowrap;
}
.chip small { display: block; color: var(--mute); font-size: 12px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212,168,83,.18); flex: none; }
.chip.c1 { left: -40%; top: 6%; }
.chip.c2 { right: -30%; bottom: 20%; }

/* ---------- Features (interactive) ---------- */

.feat-grid { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: clamp(48px, 7vw, 110px); align-items: start; }
.feat-list { list-style: none; border-top: 1px solid var(--line); }
.feat-item { border-bottom: 1px solid var(--line); }
.feat-item button {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 24px;
  padding: 24px 0;
}
.feat-item .t { font: 500 clamp(26px, 2.6vw, 34px)/1.1 var(--serif); color: var(--mute); transition: color .35s var(--ease); }
.feat-item .ar { font-family: var(--arabic); font-size: 20px; color: var(--mute-2); transition: color .35s var(--ease); }
.feat-item .d {
  grid-column: 1 / -1; color: var(--ivory-2); font-size: 16px; max-width: 36em;
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .5s var(--ease), opacity .4s var(--ease), margin .5s var(--ease);
}
.feat-item .d > span { overflow: hidden; }
.feat-item.on .t, .feat-item button:hover .t { color: var(--ivory); }
.feat-item.on .ar { color: var(--gold); }
.feat-item.on .d { grid-template-rows: 1fr; opacity: 1; margin-top: 4px; }

.feat-also { margin-top: 28px; color: var(--mute); font-size: 15px; max-width: 40em; }
.feat-also b { color: var(--ivory-2); font-weight: 600; }

.feat-phone { position: sticky; top: 120px; justify-self: center; }
.feat-phone .screen img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); }
.feat-phone .screen img.on { opacity: 1; }

/* ---------- Journey band ---------- */

.journey { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0; }
.journey-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.journey-head p { color: var(--mute); max-width: 30em; font-size: 16px; }
.ranks { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.rank + .rank::before { content: ""; position: absolute; left: -6px; top: 38px; width: 12px; height: 12px; background: var(--gold); opacity: .55; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.rank { text-align: center; position: relative; }
.rank .ar { font-size: clamp(36px, 4vw, 54px); line-height: 88px; height: 88px; color: var(--ivory); }
.rank:last-child .ar { color: var(--gold-2); }
.rank .tr { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; margin-top: 10px; }
.rank .en { font-family: var(--serif); font-style: italic; color: var(--mute); font-size: 18px; margin-top: 6px; }

/* ---------- Privacy (maghrib) ---------- */

.privacy {
  background:
    linear-gradient(180deg, rgba(7,15,28,0) 55%, var(--ink) 100%),
    radial-gradient(ellipse 65% 50% at 88% 78%, rgba(217,130,59,.22), transparent 70%),
    radial-gradient(ellipse 55% 40% at 8% 90%, rgba(212,168,83,.10), transparent 70%),
    var(--ink);
}
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(48px, 7vw, 120px); align-items: start; }
.privacy .h2 { margin-top: 18px; }
.privacy .context { color: var(--ivory-2); font-size: 18px; margin: 28px 0 32px; max-width: 30em; }
.promises { list-style: none; counter-reset: p; border-top: 1px solid var(--line); }
.promises li { counter-increment: p; display: grid; grid-template-columns: 48px 1fr; padding: 24px 0; border-bottom: 1px solid var(--line); }
.promises li::before { content: counter(p, decimal-leading-zero); font: italic 500 20px/1.3 var(--serif); color: var(--gold); }
.promises b { display: block; font-weight: 600; margin-bottom: 4px; }
.promises span { color: var(--mute); font-size: 15.5px; }

/* ---------- Pricing (isha) ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.plan { padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.pro { background: linear-gradient(180deg, rgba(212,168,83,.10), rgba(212,168,83,.02) 70%); box-shadow: inset 0 1px 0 rgba(212,168,83,.5); }
.plan .name { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.plan .name h3 { font: 600 30px/1 var(--serif); }
.plan .badge { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 7px 10px; border-radius: 999px; }
.plan .price { font: 500 clamp(44px, 4.4vw, 60px)/1 var(--serif); letter-spacing: -.02em; }
.plan .price small { font: 400 16px/1 var(--sans); color: var(--mute); letter-spacing: 0; margin-left: 4px; }
.plan .alt { color: var(--mute); font-size: 14.5px; margin: 12px 0 28px; min-height: 2.9em; }
.plan ul { list-style: none; margin-bottom: 36px; flex: 1; }
.plan li { padding: 10px 0 10px 26px; position: relative; font-size: 15.5px; color: var(--ivory-2); border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 10px; height: 5px; border-left: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(-45deg); }
.plan li b { color: var(--ivory); font-weight: 600; }
.plan .btn { justify-content: center; }
.fine { margin-top: 22px; font-size: 13.5px; color: var(--mute-2); }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 100px); }
.faq-grid .aside p:not(.label) { color: var(--mute); margin-top: 20px; font-size: 16px; }
.faq-grid .aside a { color: var(--gold-2); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 0;
  font: 500 clamp(21px, 1.9vw, 25px)/1.25 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translateY(-4px); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .ans { padding: 0 0 26px; color: var(--ivory-2); font-size: 16px; max-width: 40em; }
.faq .ans a { color: var(--gold-2); }

/* ---------- Final CTA ---------- */

.final {
  position: relative; isolation: isolate; overflow: hidden;
  text-align: center;
  padding: clamp(120px, 15vw, 200px) 0;
  background: var(--ink);
}
.final-bg { position: absolute; inset: 0; z-index: -2; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; filter: saturate(.85); }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(7,15,28,.62), rgba(7,15,28,.86) 85%),
    linear-gradient(180deg, var(--ink) 0%, rgba(7,15,28,0) 22%, rgba(7,15,28,0) 78%, var(--night) 100%);
}
.final .call { font-size: clamp(34px, 4vw, 54px); color: var(--gold); margin-bottom: 8px; }
.final .call-tr { font-family: var(--serif); font-style: italic; color: var(--mute); font-size: 19px; margin-bottom: 36px; }
.final .h2 { max-width: 13em; margin: 0 auto 44px; }
.final .hero-note { justify-content: center; }

/* ---------- Footer ---------- */

footer { background: var(--night); border-top: 1px solid var(--line); padding: 56px 0 44px; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14.5px; }
.foot nav a { color: var(--ivory-2); text-decoration: none; }
.foot nav a:hover { color: var(--ivory); }
.foot .small { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--mute-2); font-size: 13.5px; padding-top: 28px; border-top: 1px solid var(--line); }
.foot .small .arabic { font-size: 16px; color: var(--gold); }

/* ---------- Reveal ---------- */

.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; }
.js .rv.d2 { transition-delay: .16s; }
.js .rv.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .story figure img, .feat-phone .screen img, .feat-item .d { transition: none; }
}

/* ---------- Sticky download ---------- */

/* The app's gold, slightly see-through over a blur so the page reads
   beneath it. Appears once the hero's button scrolls away and steps aside
   for the closing section and footer, which have their own. Without JS it
   simply stays. */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 168, 83, .86), rgba(233, 201, 138, .86));
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(242, 235, 221, .28);
  box-shadow: 0 14px 34px -10px rgba(4, 8, 15, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: var(--ink);
  font: 600 15px/1 var(--sans);
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s var(--ease);
}
.sticky-cta svg { width: 17px; height: 17px; flex: none; }
.sticky-cta:hover { background: linear-gradient(135deg, rgba(212, 168, 83, .96), rgba(233, 201, 138, .96)); }
.sticky-cta:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }

.js .sticky-cta:not(.show) {
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}

@media (max-width: 620px) {
  .sticky-cta { width: calc(100% - 32px); max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta, .js .sticky-cta:not(.show) { transition: none; transform: translateX(-50%); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .chip.c1 { left: -22%; }
  .chip.c2 { right: -18%; }
}

@media (max-width: 960px) {
  .nav-links > a:not(.btn), .nav-links > .lang { display: none; }
  .menu { display: block; }
  .nav-links { gap: 12px; }

  .hero { min-height: auto; padding: 116px 0 64px; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(7,15,28,.82) 0%, rgba(7,15,28,.7) 45%, var(--ink) 100%);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-phone { justify-self: start; }

  .sec-head { grid-template-columns: 1fr; }
  .manifesto-grid { grid-template-columns: 1fr; }
  .manifesto-img { aspect-ratio: 16 / 10; }

  .story.s-lg, .story.s-md { grid-column: span 12; }
  .story.s-sm { grid-column: span 6; }
  .story.s-sm:last-child { grid-column: span 12; }
  .story.s-sm:last-child figure { aspect-ratio: 16 / 10; }

  .lock-grid, .privacy-grid, .faq-grid { grid-template-columns: 1fr; }
  .lock-visual { order: -1; }
  .chip.c1 { left: -12%; top: 14%; }
  .chip.c2 { right: -12%; }

  .feat-grid { grid-template-columns: 1fr; }
  .feat-phone { display: none; }
  .feat-item .d { grid-template-rows: 1fr; opacity: 1; margin-top: 4px; }
  .feat-item .t { color: var(--ivory); }
  .feat-item .ar { color: var(--gold); }
  .feat-item button { cursor: default; }

  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .plan .alt { min-height: 0; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav-inner { height: 64px; }
  .nav-links .btn { display: none; }
  .hero-phone { justify-self: center; }
  .story.s-sm { grid-column: span 12; }
  .story.s-sm figure, .story.s-sm:last-child figure { aspect-ratio: 4 / 3.4; }
  .chip { font-size: 12.5px; padding: 10px 12px; }
  .chip.c1 { left: -8%; top: 10%; }
  .chip.c2 { right: -8%; bottom: 14%; }
  .ranks { grid-template-columns: 1fr; gap: 8px; }
  .rank + .rank::before { display: none; }
  .rank { display: grid; grid-template-columns: 90px 1fr; text-align: left; align-items: center; gap: 0 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .rank .ar { grid-row: span 2; line-height: 1.4; height: auto; text-align: right; font-size: 36px; }
  .rank .tr { margin-top: 0; }
  .rank .en { margin-top: 2px; }
  .foot { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
