/* مصاحف ليبيا: a library of Libyan mushafs.
   Parchment by day and a green-black reading room by night, following the device the way
   the app follows its page. Leather and foil carry the brand (hero, books, download); the
   real bindings and printed pages carry the colour; everything else is ink and paper. */

@font-face {
  font-family: "Thmanyah Sans";
  src: url("../assets/fonts/thmanyahsans-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../assets/fonts/thmanyahsans-medium.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}
@font-face {
  font-family: "Thmanyah Sans";
  src: url("../assets/fonts/thmanyahsans-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #f6efe1;
  --paper-deep: #efe5d1;
  --card: #fcf8f0;
  --line: rgba(74, 56, 26, 0.13);
  --ink: #1f1a12;
  --ink-2: #4c4334;
  --ink-3: #6b604c;

  /* The leather of the bindings, and the foil stamped into it. */
  --leather: #123f31;
  --leather-deep: #0a2820;
  --leather-lift: #1a5441;
  --on-leather: #f3ead8;
  --on-leather-2: rgba(243, 234, 216, 0.76);
  --on-leather-line: rgba(236, 212, 154, 0.22);
  --foil: #c9a45c;
  --foil-light: #ecd49a;
  /* Gold that still reads as text on paper (4.8:1 on --paper). */
  --gold-text: #7f5f1c;

  --walnut-top: #8a5d37;
  --walnut: #5d3b21;
  --walnut-deep: #3b2412;

  --font: "Thmanyah Sans", system-ui, "Segoe UI", Tahoma, sans-serif;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: max(16px, min(4vw, 40px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --page: min(74rem, 100% - 2 * var(--gutter));
  --bar-h: 64px;

  /* Translucent washes, precomputed per theme (no color-mix(), for older phones). */
  --bar-bg: rgba(246, 239, 225, 0.84);
  --wash-foil: rgba(201, 164, 92, 0.16);
  --wash-leather: rgba(18, 63, 49, 0.1);
  --chip-in: #155c45;
  --shadow: 0 1px 2px rgba(44, 32, 12, 0.06), 0 12px 32px -12px rgba(44, 32, 12, 0.22);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1512;
    --paper-deep: #0b100d;
    --card: #151d19;
    --line: rgba(236, 222, 190, 0.11);
    --ink: #eee6d5;
    --ink-2: #cbc1ac;
    --ink-3: #a49a84;

    --leather: #0f3427;
    --leather-deep: #071a14;
    --leather-lift: #134536;
    --gold-text: #d9b770;

    --bar-bg: rgba(15, 21, 18, 0.84);
    --wash-foil: rgba(214, 179, 109, 0.14);
    --wash-leather: rgba(127, 195, 163, 0.12);
    --chip-in: #9fd4b9;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 36px -16px rgba(0, 0, 0, 0.7);
  }
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

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

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--leather);
  color: var(--on-leather);
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

.wrap {
  width: var(--page);
  margin-inline: auto;
}
.wrap--narrow {
  width: min(48rem, 100% - 2 * var(--gutter));
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--gold-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}
.eyebrow--foil {
  color: var(--foil-light);
}

.lead {
  color: var(--ink-2);
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.9;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
}
.section--deep {
  background: var(--paper-deep);
}

.head {
  max-width: 44rem;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.head h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  margin-bottom: 14px;
}
.head--center {
  margin-inline: auto;
  text-align: center;
}

/* ── Leather: the hero, the books and the download share one binding ──────── */

.hero,
.section--leather {
  position: relative;
  isolation: isolate;
  color: var(--on-leather);
  background:
    radial-gradient(120% 80% at 85% 0%, var(--leather-lift) 0%, transparent 60%),
    linear-gradient(180deg, var(--leather) 0%, var(--leather-deep) 100%);
}
/* A faint eight-pointed tooling, the star on the Kharraz binding, repeated. */
.hero::before,
.section--leather::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ecd49a' stroke-width='1'%3E%3Crect x='18' y='18' width='20' height='20'/%3E%3Crect x='18' y='18' width='20' height='20' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.section--leather .lead {
  color: var(--on-leather-2);
}
.section--leather .head h2 {
  color: var(--on-leather);
}

/* ── Top bar ──────────────────────────────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bar-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.bar.is-scrolled {
  border-bottom-color: var(--line);
}
.bar__inner {
  width: var(--page);
  height: var(--bar-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  white-space: nowrap;
}
.brand__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.bar__nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 2vw, 24px);
  font-size: 15px;
}
.bar__link {
  color: var(--ink-2);
  text-decoration: none;
  padding: 6px 4px;
}
.bar__link:hover {
  color: var(--ink);
}
.bar__cta {
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--leather);
  color: var(--on-leather);
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 520px) {
  .bar__link {
    display: none;
  }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(40px, 7vw, 96px) 0;
  overflow: hidden;
}
.hero__inner {
  width: var(--page);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: end;
}
.hero__text {
  padding-bottom: 0;
}
.pill {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--on-leather-line);
  border-radius: 999px;
  background: rgba(236, 212, 154, 0.08);
  color: var(--foil-light);
  font-size: 14px;
  font-weight: 500;
}
.hero__title {
  margin-top: 18px;
  font-size: clamp(46px, 8.4vw, 92px);
  line-height: 1.1;
  color: var(--on-leather);
}
.hero__tag {
  margin-top: 12px;
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--foil-light);
  text-wrap: balance;
}
.hero__lede {
  margin-top: 14px;
  max-width: 34rem;
  color: var(--on-leather-2);
  font-size: clamp(16px, 1.6vw, 18.5px);
}
.hero__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 18px;
  color: var(--on-leather-2);
  font-size: 14px;
}
.hero__notes li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero__notes li::before {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--foil);
}

/* The shelf: four bindings, the visitor's way in, standing on walnut. */
.hero__art {
  position: relative;
  padding-top: 8px;
}
.shelf {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(8px, 2vw, 20px);
  padding-inline: 4px;
}
.book {
  flex: 0 1 150px;
  min-width: 0;
}
.book a {
  display: block;
  border-radius: 3px 6px 6px 3px;
  transition: transform 0.4s var(--ease);
}
.book img {
  width: 100%;
  height: auto;
  border-radius: 3px 6px 6px 3px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.35),
    0 18px 32px -10px rgba(0, 0, 0, 0.6);
}
.book a:hover,
.book a:focus-visible {
  transform: translateY(-10px);
}
.plank {
  height: 18px;
  margin-inline: -24px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--walnut-top) 0%, var(--walnut) 45%, var(--walnut-deep) 100%);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.12) inset;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  }
  .hero__text {
    padding-bottom: clamp(56px, 7vw, 96px);
  }
}

/* ── Downloads ───────────────────────────────────────────────────────────── */

.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 176px), 1fr));
  gap: 10px;
  margin-top: 28px;
  max-width: 600px;
}
.stores--center {
  margin-inline: auto;
}
.store {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 16px;
  border: 1px solid var(--on-leather-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--on-leather);
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.store:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(236, 212, 154, 0.45);
  transform: translateY(-1px);
}
.store svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: currentColor;
}
.store[data-platform="android"] svg {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.store span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  text-align: start;
}
.store small {
  font-size: 12.5px;
  color: var(--on-leather-2);
}
.store b {
  font-size: 17px;
  font-weight: 700;
}
/* The visitor's own platform, in foil. */
.store--yours {
  background: linear-gradient(180deg, var(--foil-light) 0%, var(--foil) 100%);
  border-color: transparent;
  color: #1d1609;
  box-shadow: 0 10px 24px -12px rgba(201, 164, 92, 0.8);
}
.store--yours small {
  color: rgba(29, 22, 9, 0.72);
}
.store--yours:hover {
  background: linear-gradient(180deg, #f3dfae 0%, #d3b16c 100%);
}

/* ── At a glance ─────────────────────────────────────────────────────────── */

.glance {
  border-bottom: 1px solid var(--line);
}
.glance__list {
  width: var(--page);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.glance__list li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 8px;
  text-align: center;
  line-height: 1.4;
}
.glance__list li + li {
  border-inline-start: 1px solid var(--line);
}
.glance__list b {
  font-size: clamp(22px, 3vw, 30px);
  color: var(--gold-text);
}
.glance__list span {
  color: var(--ink-3);
  font-size: 14px;
}
@media (max-width: 600px) {
  .glance__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .glance__list li:nth-child(3) {
    border-inline-start: 0;
  }
  .glance__list li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ── Split rows (text beside a capture) ──────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.split__text h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  margin-bottom: 16px;
}
.feature-title {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-bottom: 14px;
}
@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.split--feature {
  margin-bottom: clamp(56px, 8vw, 96px);
}
.split__art {
  justify-self: center;
  width: min(340px, 78vw);
}
.split__art--wide {
  width: min(440px, 88vw);
}
.split__art img {
  width: 100%;
  height: auto;
}

.ticks {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.ticks li {
  position: relative;
  padding-inline-start: 30px;
  color: var(--ink-2);
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wash-foil)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m5.5 9.2 2.3 2.3 4.7-5' fill='none' stroke='%23a07a2c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

/* Two phones, one slightly lower: the same surah in two mushafs. */
.phones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 3vw, 28px);
  justify-self: center;
  width: min(100%, 540px);
}
.phone-card--low {
  margin-top: clamp(28px, 6vw, 64px);
}
.phone {
  border-radius: clamp(22px, 5vw, 38px);
  padding: clamp(5px, 1vw, 8px);
  background: #111;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: clamp(17px, 4.2vw, 31px);
}
.phone-card figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  text-align: center;
  line-height: 1.45;
}
.phone-card figcaption b {
  font-size: 15px;
}
.phone-card figcaption span {
  color: var(--ink-3);
  font-size: 13px;
}

/* ── The mushafs ─────────────────────────────────────────────────────────── */

.mushafs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
  gap: clamp(16px, 2.4vw, 28px);
}
.mushaf {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.mushaf__pages {
  display: block;
  aspect-ratio: 4 / 3;
  padding: clamp(14px, 3vw, 28px);
  background:
    radial-gradient(90% 70% at 50% 40%, rgba(255, 255, 255, 0.55), transparent 70%),
    #e9dfca;
  border-bottom: 1px solid var(--line);
}
.mushaf__pages img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(60, 40, 10, 0.22));
}
@media (prefers-color-scheme: dark) {
  .mushaf__pages {
    background:
      radial-gradient(90% 70% at 50% 40%, rgba(255, 255, 255, 0.06), transparent 70%),
      #1b241f;
  }
  .mushaf__pages img {
    filter: brightness(0.92) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  }
}
.mushaf__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  padding: clamp(18px, 3vw, 28px);
}
.mushaf__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.mushaf__cover {
  flex: none;
  width: 52px;
  height: auto;
  border-radius: 2px 4px 4px 2px;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.mushaf h3 {
  font-size: clamp(20px, 2.2vw, 23px);
}
.chip {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--wash-foil);
  color: var(--gold-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}
.chip--in {
  background: var(--wash-leather);
  color: var(--chip-in);
}
.mushaf__about {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.85;
}
.mushaf__about a {
  color: var(--gold-text);
  font-weight: 500;
}
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}
.facts div {
  padding: 10px 12px;
  background: var(--card);
  min-width: 0;
}
.facts dt {
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.5;
}
.facts dd {
  margin: 0;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.facts small {
  display: block;
  color: var(--ink-3);
  font-weight: 400;
  font-size: 12px;
}
@media (max-width: 560px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}
.rights {
  margin-top: auto;
  padding-top: 4px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.7;
}

/* ── The sister app ──────────────────────────────────────────────────────── */

.sister {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 24px;
  align-items: center;
  margin-block: clamp(48px, 7vw, 80px);
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.sister__icon {
  width: clamp(64px, 9vw, 96px);
  height: auto;
  border-radius: 22%;
  box-shadow: var(--shadow);
}
.sister h2 {
  font-size: clamp(21px, 2.6vw, 27px);
  margin-bottom: 6px;
}
.sister__text p:last-child {
  color: var(--ink-2);
  font-size: 16px;
}
.sister .eyebrow {
  margin-bottom: 4px;
}
.sister__links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sister__links a {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.sister__links a:hover {
  border-color: var(--foil);
  background: var(--wash-foil);
}
@media (max-width: 599px) {
  .sister {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 900px) {
  .sister {
    grid-template-columns: auto 1fr auto;
  }
  .sister__links {
    grid-column: auto;
    justify-content: flex-end;
    max-width: 20rem;
  }
}

/* ── Features ────────────────────────────────────────────────────────────── */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.tags li {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: clamp(12px, 2vw, 20px);
}
.card {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--wash-foil);
}
.card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--gold-text);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}
.card p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}

/* The Awqaf books, as four spines of foil on leather. */
.books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: clamp(12px, 2vw, 18px);
}
.books li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 20px;
  padding-inline-start: 30px;
  border: 1px solid var(--on-leather-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  line-height: 1.6;
}
.books li::before {
  content: "";
  position: absolute;
  inset-block: 18px;
  inset-inline-start: 14px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--foil-light), var(--foil));
}
.books b {
  font-size: 20px;
  color: var(--foil-light);
}
.books span {
  color: var(--on-leather);
  font-size: 15.5px;
}
.books small {
  margin-top: auto;
  padding-top: 6px;
  color: var(--on-leather-2);
  font-size: 13px;
}

.mini {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}
.mini li {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  line-height: 1.7;
}
.mini b {
  font-size: 16px;
}
.mini span {
  color: var(--ink-2);
  font-size: 15px;
}

/* ── Download ────────────────────────────────────────────────────────────── */

.download__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.download__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 20px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.6);
}
.download h2 {
  font-size: clamp(30px, 4.6vw, 48px);
  margin-bottom: 12px;
}
.download .lead {
  max-width: 40rem;
}
.download .stores {
  width: 100%;
}
.download__more {
  margin-top: 20px;
  font-size: 15px;
}
.download__more a {
  color: var(--foil-light);
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: rgba(201, 164, 92, 0.5);
}
.faq summary {
  position: relative;
  padding: 16px 20px;
  padding-inline-end: 52px;
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  background:
    linear-gradient(var(--gold-text), var(--gold-text)) center / 14px 2px no-repeat,
    linear-gradient(var(--gold-text), var(--gold-text)) center / 2px 14px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.9;
}
.faq a {
  color: var(--gold-text);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 15px;
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.foot__icon {
  border-radius: 7px;
}
.foot__apps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.foot__apps a,
.foot__legal a {
  color: var(--ink-2);
  text-decoration: none;
}
.foot__apps a:hover,
.foot__legal a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot__apps a[aria-current="page"] {
  color: var(--gold-text);
  font-weight: 500;
}
.foot__legal {
  color: var(--ink-3);
}

/* ── Motion ──────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* Latin names inside Arabic lines stay whole. */
bdi,
[dir="ltr"] {
  white-space: nowrap;
}
